1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libltdl 2.4.2.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: bug-libtool@gnu.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libltdl'
592PACKAGE_TARNAME='libltdl'
593PACKAGE_VERSION='2.4.2'
594PACKAGE_STRING='libltdl 2.4.2'
595PACKAGE_BUGREPORT='bug-libtool@gnu.org'
596PACKAGE_URL=''
597
598ac_unique_file="ltdl.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LTDLOPEN
639LT_CONFIG_H
640CONVENIENCE_LTDL_FALSE
641CONVENIENCE_LTDL_TRUE
642INSTALL_LTDL_FALSE
643INSTALL_LTDL_TRUE
644ARGZ_H
645LIBOBJS
646sys_symbol_underscore
647LIBADD_DL
648LT_DLPREOPEN
649LIBADD_DLD_LINK
650LIBADD_SHL_LOAD
651LIBADD_DLOPEN
652LT_DLLOADERS
653CPP
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669EGREP
670GREP
671SED
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697LIBTOOL
698OBJDUMP
699DLLTOOL
700AS
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743runstatedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770enable_dependency_tracking
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_ltdl_install
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823runstatedir='${localstatedir}/run'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
840  # If the previous option needs an argument, assign it.
841  if test -n "$ac_prev"; then
842    eval $ac_prev=\$ac_option
843    ac_prev=
844    continue
845  fi
846
847  case $ac_option in
848  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849  *=)   ac_optarg= ;;
850  *)    ac_optarg=yes ;;
851  esac
852
853  # Accept the important Cygnus configure options, so we can diagnose typos.
854
855  case $ac_dashdash$ac_option in
856  --)
857    ac_dashdash=yes ;;
858
859  -bindir | --bindir | --bindi | --bind | --bin | --bi)
860    ac_prev=bindir ;;
861  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862    bindir=$ac_optarg ;;
863
864  -build | --build | --buil | --bui | --bu)
865    ac_prev=build_alias ;;
866  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867    build_alias=$ac_optarg ;;
868
869  -cache-file | --cache-file | --cache-fil | --cache-fi \
870  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871    ac_prev=cache_file ;;
872  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874    cache_file=$ac_optarg ;;
875
876  --config-cache | -C)
877    cache_file=config.cache ;;
878
879  -datadir | --datadir | --datadi | --datad)
880    ac_prev=datadir ;;
881  -datadir=* | --datadir=* | --datadi=* | --datad=*)
882    datadir=$ac_optarg ;;
883
884  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885  | --dataroo | --dataro | --datar)
886    ac_prev=datarootdir ;;
887  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889    datarootdir=$ac_optarg ;;
890
891  -disable-* | --disable-*)
892    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893    # Reject names that are not valid shell variable names.
894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895      as_fn_error $? "invalid feature name: $ac_useropt"
896    ac_useropt_orig=$ac_useropt
897    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898    case $ac_user_opts in
899      *"
900"enable_$ac_useropt"
901"*) ;;
902      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903	 ac_unrecognized_sep=', ';;
904    esac
905    eval enable_$ac_useropt=no ;;
906
907  -docdir | --docdir | --docdi | --doc | --do)
908    ac_prev=docdir ;;
909  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910    docdir=$ac_optarg ;;
911
912  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913    ac_prev=dvidir ;;
914  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915    dvidir=$ac_optarg ;;
916
917  -enable-* | --enable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=\$ac_optarg ;;
932
933  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935  | --exec | --exe | --ex)
936    ac_prev=exec_prefix ;;
937  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939  | --exec=* | --exe=* | --ex=*)
940    exec_prefix=$ac_optarg ;;
941
942  -gas | --gas | --ga | --g)
943    # Obsolete; use --with-gas.
944    with_gas=yes ;;
945
946  -help | --help | --hel | --he | -h)
947    ac_init_help=long ;;
948  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949    ac_init_help=recursive ;;
950  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951    ac_init_help=short ;;
952
953  -host | --host | --hos | --ho)
954    ac_prev=host_alias ;;
955  -host=* | --host=* | --hos=* | --ho=*)
956    host_alias=$ac_optarg ;;
957
958  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959    ac_prev=htmldir ;;
960  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961  | --ht=*)
962    htmldir=$ac_optarg ;;
963
964  -includedir | --includedir | --includedi | --included | --include \
965  | --includ | --inclu | --incl | --inc)
966    ac_prev=includedir ;;
967  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968  | --includ=* | --inclu=* | --incl=* | --inc=*)
969    includedir=$ac_optarg ;;
970
971  -infodir | --infodir | --infodi | --infod | --info | --inf)
972    ac_prev=infodir ;;
973  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974    infodir=$ac_optarg ;;
975
976  -libdir | --libdir | --libdi | --libd)
977    ac_prev=libdir ;;
978  -libdir=* | --libdir=* | --libdi=* | --libd=*)
979    libdir=$ac_optarg ;;
980
981  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982  | --libexe | --libex | --libe)
983    ac_prev=libexecdir ;;
984  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985  | --libexe=* | --libex=* | --libe=*)
986    libexecdir=$ac_optarg ;;
987
988  -localedir | --localedir | --localedi | --localed | --locale)
989    ac_prev=localedir ;;
990  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991    localedir=$ac_optarg ;;
992
993  -localstatedir | --localstatedir | --localstatedi | --localstated \
994  | --localstate | --localstat | --localsta | --localst | --locals)
995    ac_prev=localstatedir ;;
996  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998    localstatedir=$ac_optarg ;;
999
1000  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001    ac_prev=mandir ;;
1002  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003    mandir=$ac_optarg ;;
1004
1005  -nfp | --nfp | --nf)
1006    # Obsolete; use --without-fp.
1007    with_fp=no ;;
1008
1009  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010  | --no-cr | --no-c | -n)
1011    no_create=yes ;;
1012
1013  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015    no_recursion=yes ;;
1016
1017  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019  | --oldin | --oldi | --old | --ol | --o)
1020    ac_prev=oldincludedir ;;
1021  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024    oldincludedir=$ac_optarg ;;
1025
1026  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027    ac_prev=prefix ;;
1028  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029    prefix=$ac_optarg ;;
1030
1031  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032  | --program-pre | --program-pr | --program-p)
1033    ac_prev=program_prefix ;;
1034  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036    program_prefix=$ac_optarg ;;
1037
1038  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039  | --program-suf | --program-su | --program-s)
1040    ac_prev=program_suffix ;;
1041  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043    program_suffix=$ac_optarg ;;
1044
1045  -program-transform-name | --program-transform-name \
1046  | --program-transform-nam | --program-transform-na \
1047  | --program-transform-n | --program-transform- \
1048  | --program-transform | --program-transfor \
1049  | --program-transfo | --program-transf \
1050  | --program-trans | --program-tran \
1051  | --progr-tra | --program-tr | --program-t)
1052    ac_prev=program_transform_name ;;
1053  -program-transform-name=* | --program-transform-name=* \
1054  | --program-transform-nam=* | --program-transform-na=* \
1055  | --program-transform-n=* | --program-transform-=* \
1056  | --program-transform=* | --program-transfor=* \
1057  | --program-transfo=* | --program-transf=* \
1058  | --program-trans=* | --program-tran=* \
1059  | --progr-tra=* | --program-tr=* | --program-t=*)
1060    program_transform_name=$ac_optarg ;;
1061
1062  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063    ac_prev=pdfdir ;;
1064  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065    pdfdir=$ac_optarg ;;
1066
1067  -psdir | --psdir | --psdi | --psd | --ps)
1068    ac_prev=psdir ;;
1069  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070    psdir=$ac_optarg ;;
1071
1072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073  | -silent | --silent | --silen | --sile | --sil)
1074    silent=yes ;;
1075
1076  -runstatedir | --runstatedir | --runstatedi | --runstated \
1077  | --runstate | --runstat | --runsta | --runst | --runs \
1078  | --run | --ru | --r)
1079    ac_prev=runstatedir ;;
1080  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1081  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1082  | --run=* | --ru=* | --r=*)
1083    runstatedir=$ac_optarg ;;
1084
1085  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086    ac_prev=sbindir ;;
1087  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088  | --sbi=* | --sb=*)
1089    sbindir=$ac_optarg ;;
1090
1091  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093  | --sharedst | --shareds | --shared | --share | --shar \
1094  | --sha | --sh)
1095    ac_prev=sharedstatedir ;;
1096  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099  | --sha=* | --sh=*)
1100    sharedstatedir=$ac_optarg ;;
1101
1102  -site | --site | --sit)
1103    ac_prev=site ;;
1104  -site=* | --site=* | --sit=*)
1105    site=$ac_optarg ;;
1106
1107  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108    ac_prev=srcdir ;;
1109  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110    srcdir=$ac_optarg ;;
1111
1112  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113  | --syscon | --sysco | --sysc | --sys | --sy)
1114    ac_prev=sysconfdir ;;
1115  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117    sysconfdir=$ac_optarg ;;
1118
1119  -target | --target | --targe | --targ | --tar | --ta | --t)
1120    ac_prev=target_alias ;;
1121  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122    target_alias=$ac_optarg ;;
1123
1124  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125    verbose=yes ;;
1126
1127  -version | --version | --versio | --versi | --vers | -V)
1128    ac_init_version=: ;;
1129
1130  -with-* | --with-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182    ;;
1183
1184  *=*)
1185    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186    # Reject names that are not valid shell variable names.
1187    case $ac_envvar in #(
1188      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190    esac
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211  case $enable_option_checking in
1212    no) ;;
1213    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215  esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220		datadir sysconfdir sharedstatedir localstatedir includedir \
1221		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222		libdir localedir mandir runstatedir
1223do
1224  eval ac_val=\$$ac_var
1225  # Remove trailing slashes.
1226  case $ac_val in
1227    */ )
1228      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229      eval $ac_var=\$ac_val;;
1230  esac
1231  # Be sure to have absolute directory names.
1232  case $ac_val in
1233    [\\/$]* | ?:[\\/]* )  continue;;
1234    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235  esac
1236  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266  as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271  ac_srcdir_defaulted=yes
1272  # Try the directory containing this script, then the parent directory.
1273  ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275	 X"$as_myself" : 'X\(//\)[^/]' \| \
1276	 X"$as_myself" : 'X\(//\)$' \| \
1277	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)[^/].*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\).*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  s/.*/./; q'`
1296  srcdir=$ac_confdir
1297  if test ! -r "$srcdir/$ac_unique_file"; then
1298    srcdir=..
1299  fi
1300else
1301  ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310	pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313  srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_env_${ac_var}_value=\$${ac_var}
1324  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332  # Omit some internal or obsolete options to make the list less imposing.
1333  # This message is too long to be a string in the A/UX 3.1 sh.
1334  cat <<_ACEOF
1335\`configure' configures libltdl 2.4.2 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345  -h, --help              display this help and exit
1346      --help=short        display options specific to this package
1347      --help=recursive    display the short help of all the included packages
1348  -V, --version           display version information and exit
1349  -q, --quiet, --silent   do not print \`checking ...' messages
1350      --cache-file=FILE   cache test results in FILE [disabled]
1351  -C, --config-cache      alias for \`--cache-file=config.cache'
1352  -n, --no-create         do not create output files
1353      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356  --prefix=PREFIX         install architecture-independent files in PREFIX
1357                          [$ac_default_prefix]
1358  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                          [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369  --bindir=DIR            user executables [EPREFIX/bin]
1370  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1376  --libdir=DIR            object code libraries [EPREFIX/lib]
1377  --includedir=DIR        C header files [PREFIX/include]
1378  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR           info documentation [DATAROOTDIR/info]
1382  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR            man documentation [DATAROOTDIR/man]
1384  --docdir=DIR            documentation root [DATAROOTDIR/doc/libltdl]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393Program names:
1394  --program-prefix=PREFIX            prepend PREFIX to installed program names
1395  --program-suffix=SUFFIX            append SUFFIX to installed program names
1396  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398System types:
1399  --build=BUILD     configure for building on BUILD [guessed]
1400  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405  case $ac_init_help in
1406     short | recursive ) echo "Configuration of libltdl 2.4.2:";;
1407   esac
1408  cat <<\_ACEOF
1409
1410Optional Features:
1411  --disable-option-checking  ignore unrecognized --enable/--with options
1412  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414  --enable-shared[=PKGS]  build shared libraries [default=yes]
1415  --enable-static[=PKGS]  build static libraries [default=yes]
1416  --enable-fast-install[=PKGS]
1417                          optimize for fast installation [default=yes]
1418  --disable-dependency-tracking  speeds up one-time build
1419  --enable-dependency-tracking   do not reject slow dependency extractors
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --enable-ltdl-install   install libltdl
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429  --with-sysroot=DIR Search for dependent libraries within DIR
1430                        (or the compiler's sysroot if not specified).
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  CPP         C preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to <bug-libtool@gnu.org>.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451  # If there are subdirs, report their specific --help.
1452  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453    test -d "$ac_dir" ||
1454      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455      continue
1456    ac_builddir=.
1457
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462  # A ".." for each directory in $ac_dir_suffix.
1463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464  case $ac_top_builddir_sub in
1465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467  esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $srcdir in
1475  .)  # We are building in place.
1476    ac_srcdir=.
1477    ac_top_srcdir=$ac_top_builddir_sub
1478    ac_abs_top_srcdir=$ac_pwd ;;
1479  [\\/]* | ?:[\\/]* )  # Absolute name.
1480    ac_srcdir=$srcdir$ac_dir_suffix;
1481    ac_top_srcdir=$srcdir
1482    ac_abs_top_srcdir=$srcdir ;;
1483  *) # Relative name.
1484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485    ac_top_srcdir=$ac_top_build_prefix$srcdir
1486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487esac
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490    cd "$ac_dir" || { ac_status=$?; continue; }
1491    # Check for guested configure.
1492    if test -f "$ac_srcdir/configure.gnu"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495    elif test -f "$ac_srcdir/configure"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure" --help=recursive
1498    else
1499      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500    fi || ac_status=$?
1501    cd "$ac_pwd" || { ac_status=$?; break; }
1502  done
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507  cat <<\_ACEOF
1508libltdl configure 2.4.2
1509generated by GNU Autoconf 2.69
1510
1511Copyright (C) 2012 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515  exit
1516fi
1517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528  rm -f conftest.$ac_objext
1529  if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536  (eval "$ac_compile") 2>conftest.err
1537  ac_status=$?
1538  if test -s conftest.err; then
1539    grep -v '^ *+' conftest.err >conftest.er1
1540    cat conftest.er1 >&5
1541    mv -f conftest.er1 conftest.err
1542  fi
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } && {
1545	 test -z "$ac_c_werror_flag" ||
1546	 test ! -s conftest.err
1547       } && test -s conftest.$ac_objext; then :
1548  ac_retval=0
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553	ac_retval=1
1554fi
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556  as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_compile
1559
1560# ac_fn_c_try_link LINENO
1561# -----------------------
1562# Try to link conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_link ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext conftest$ac_exeext
1567  if { { ac_try="$ac_link"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_link") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest$ac_exeext && {
1586	 test "$cross_compiling" = yes ||
1587	 test -x conftest$ac_exeext
1588       }; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1597  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1598  # interfere with the next link command; also delete a directory that is
1599  # left behind by Apple's compiler.  We do this before executing the actions.
1600  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_link
1605
1606# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1607# -------------------------------------------------------
1608# Tests whether HEADER exists and can be compiled using the include files in
1609# INCLUDES, setting the cache variable VAR accordingly.
1610ac_fn_c_check_header_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616  $as_echo_n "(cached) " >&6
1617else
1618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h.  */
1620$4
1621#include <$2>
1622_ACEOF
1623if ac_fn_c_try_compile "$LINENO"; then :
1624  eval "$3=yes"
1625else
1626  eval "$3=no"
1627fi
1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629fi
1630eval ac_res=\$$3
1631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634
1635} # ac_fn_c_check_header_compile
1636
1637# ac_fn_c_try_cpp LINENO
1638# ----------------------
1639# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_cpp ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if { { ac_try="$ac_cpp conftest.$ac_ext"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651  ac_status=$?
1652  if test -s conftest.err; then
1653    grep -v '^ *+' conftest.err >conftest.er1
1654    cat conftest.er1 >&5
1655    mv -f conftest.er1 conftest.err
1656  fi
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } > conftest.i && {
1659	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660	 test ! -s conftest.err
1661       }; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667    ac_retval=1
1668fi
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670  as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_cpp
1673
1674# ac_fn_c_try_run LINENO
1675# ----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677# that executables *can* be run.
1678ac_fn_c_try_run ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692  { { case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_try") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; }; }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: program exited with status $ac_status" >&5
1705       $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_run
1715
1716# ac_fn_c_check_func LINENO FUNC VAR
1717# ----------------------------------
1718# Tests whether FUNC exists, setting the cache variable VAR accordingly
1719ac_fn_c_check_func ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1731#define $2 innocuous_$2
1732
1733/* System header to define __stub macros and hopefully few prototypes,
1734    which can conflict with char $2 (); below.
1735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736    <limits.h> exists even on freestanding compilers.  */
1737
1738#ifdef __STDC__
1739# include <limits.h>
1740#else
1741# include <assert.h>
1742#endif
1743
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 ();
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main ()
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext \
1774    conftest$ac_exeext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_func
1782
1783# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1784# ---------------------------------------------
1785# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1786# accordingly.
1787ac_fn_c_check_decl ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  as_decl_name=`echo $2|sed 's/ *(.*//'`
1791  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1793$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1794if eval \${$3+:} false; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799$4
1800int
1801main ()
1802{
1803#ifndef $as_decl_name
1804#ifdef __cplusplus
1805  (void) $as_decl_use;
1806#else
1807  (void) $as_decl_name;
1808#endif
1809#endif
1810
1811  ;
1812  return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816  eval "$3=yes"
1817else
1818  eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827} # ac_fn_c_check_decl
1828
1829# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1830# -------------------------------------------
1831# Tests whether TYPE exists after having included INCLUDES, setting cache
1832# variable VAR accordingly.
1833ac_fn_c_check_type ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if eval \${$3+:} false; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  eval "$3=no"
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844$4
1845int
1846main ()
1847{
1848if (sizeof ($2))
1849	 return 0;
1850  ;
1851  return 0;
1852}
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857$4
1858int
1859main ()
1860{
1861if (sizeof (($2)))
1862	    return 0;
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868
1869else
1870  eval "$3=yes"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881} # ac_fn_c_check_type
1882cat >config.log <<_ACEOF
1883This file contains any messages produced by compilers while
1884running configure, to aid debugging if configure makes a mistake.
1885
1886It was created by libltdl $as_me 2.4.2, which was
1887generated by GNU Autoconf 2.69.  Invocation command line was
1888
1889  $ $0 $@
1890
1891_ACEOF
1892exec 5>>config.log
1893{
1894cat <<_ASUNAME
1895## --------- ##
1896## Platform. ##
1897## --------- ##
1898
1899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1907
1908/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1909/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1912/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1913/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1914/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1915
1916_ASUNAME
1917
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923    $as_echo "PATH: $as_dir"
1924  done
1925IFS=$as_save_IFS
1926
1927} >&5
1928
1929cat >&5 <<_ACEOF
1930
1931
1932## ----------- ##
1933## Core tests. ##
1934## ----------- ##
1935
1936_ACEOF
1937
1938
1939# Keep a trace of the command line.
1940# Strip out --no-create and --no-recursion so they do not pile up.
1941# Strip out --silent because we don't want to record it for future runs.
1942# Also quote any args containing shell meta-characters.
1943# Make two passes to allow for proper duplicate-argument suppression.
1944ac_configure_args=
1945ac_configure_args0=
1946ac_configure_args1=
1947ac_must_keep_next=false
1948for ac_pass in 1 2
1949do
1950  for ac_arg
1951  do
1952    case $ac_arg in
1953    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955    | -silent | --silent | --silen | --sile | --sil)
1956      continue ;;
1957    *\'*)
1958      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959    esac
1960    case $ac_pass in
1961    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962    2)
1963      as_fn_append ac_configure_args1 " '$ac_arg'"
1964      if test $ac_must_keep_next = true; then
1965	ac_must_keep_next=false # Got value, back to normal.
1966      else
1967	case $ac_arg in
1968	  *=* | --config-cache | -C | -disable-* | --disable-* \
1969	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971	  | -with-* | --with-* | -without-* | --without-* | --x)
1972	    case "$ac_configure_args0 " in
1973	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974	    esac
1975	    ;;
1976	  -* ) ac_must_keep_next=true ;;
1977	esac
1978      fi
1979      as_fn_append ac_configure_args " '$ac_arg'"
1980      ;;
1981    esac
1982  done
1983done
1984{ ac_configure_args0=; unset ac_configure_args0;}
1985{ ac_configure_args1=; unset ac_configure_args1;}
1986
1987# When interrupted or exit'd, cleanup temporary files, and complete
1988# config.log.  We remove comments because anyway the quotes in there
1989# would cause problems or look ugly.
1990# WARNING: Use '\'' to represent an apostrophe within the trap.
1991# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992trap 'exit_status=$?
1993  # Save into config.log some information that might help in debugging.
1994  {
1995    echo
1996
1997    $as_echo "## ---------------- ##
1998## Cache variables. ##
1999## ---------------- ##"
2000    echo
2001    # The following way of writing the cache mishandles newlines in values,
2002(
2003  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004    eval ac_val=\$$ac_var
2005    case $ac_val in #(
2006    *${as_nl}*)
2007      case $ac_var in #(
2008      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010      esac
2011      case $ac_var in #(
2012      _ | IFS | as_nl) ;; #(
2013      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014      *) { eval $ac_var=; unset $ac_var;} ;;
2015      esac ;;
2016    esac
2017  done
2018  (set) 2>&1 |
2019    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020    *${as_nl}ac_space=\ *)
2021      sed -n \
2022	"s/'\''/'\''\\\\'\'''\''/g;
2023	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024      ;; #(
2025    *)
2026      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027      ;;
2028    esac |
2029    sort
2030)
2031    echo
2032
2033    $as_echo "## ----------------- ##
2034## Output variables. ##
2035## ----------------- ##"
2036    echo
2037    for ac_var in $ac_subst_vars
2038    do
2039      eval ac_val=\$$ac_var
2040      case $ac_val in
2041      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042      esac
2043      $as_echo "$ac_var='\''$ac_val'\''"
2044    done | sort
2045    echo
2046
2047    if test -n "$ac_subst_files"; then
2048      $as_echo "## ------------------- ##
2049## File substitutions. ##
2050## ------------------- ##"
2051      echo
2052      for ac_var in $ac_subst_files
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    fi
2062
2063    if test -s confdefs.h; then
2064      $as_echo "## ----------- ##
2065## confdefs.h. ##
2066## ----------- ##"
2067      echo
2068      cat confdefs.h
2069      echo
2070    fi
2071    test "$ac_signal" != 0 &&
2072      $as_echo "$as_me: caught signal $ac_signal"
2073    $as_echo "$as_me: exit $exit_status"
2074  } >&5
2075  rm -f core *.core core.conftest.* &&
2076    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077    exit $exit_status
2078' 0
2079for ac_signal in 1 2 13 15; do
2080  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081done
2082ac_signal=0
2083
2084# confdefs.h avoids OS command line length limits that DEFS can exceed.
2085rm -f -r conftest* confdefs.h
2086
2087$as_echo "/* confdefs.h */" > confdefs.h
2088
2089# Predefined preprocessor variables.
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_NAME "$PACKAGE_NAME"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_VERSION "$PACKAGE_VERSION"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_STRING "$PACKAGE_STRING"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_URL "$PACKAGE_URL"
2113_ACEOF
2114
2115
2116# Let the site file select an alternate cache file if it wants to.
2117# Prefer an explicitly selected file to automatically selected ones.
2118ac_site_file1=NONE
2119ac_site_file2=NONE
2120if test -n "$CONFIG_SITE"; then
2121  # We do not want a PATH search for config.site.
2122  case $CONFIG_SITE in #((
2123    -*)  ac_site_file1=./$CONFIG_SITE;;
2124    */*) ac_site_file1=$CONFIG_SITE;;
2125    *)   ac_site_file1=./$CONFIG_SITE;;
2126  esac
2127elif test "x$prefix" != xNONE; then
2128  ac_site_file1=$prefix/share/config.site
2129  ac_site_file2=$prefix/etc/config.site
2130else
2131  ac_site_file1=$ac_default_prefix/share/config.site
2132  ac_site_file2=$ac_default_prefix/etc/config.site
2133fi
2134for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135do
2136  test "x$ac_site_file" = xNONE && continue
2137  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140    sed 's/^/| /' "$ac_site_file" >&5
2141    . "$ac_site_file" \
2142      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144as_fn_error $? "failed to load site script $ac_site_file
2145See \`config.log' for more details" "$LINENO" 5; }
2146  fi
2147done
2148
2149if test -r "$cache_file"; then
2150  # Some versions of bash will fail to source /dev/null (special files
2151  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2152  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154$as_echo "$as_me: loading cache $cache_file" >&6;}
2155    case $cache_file in
2156      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157      *)                      . "./$cache_file";;
2158    esac
2159  fi
2160else
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162$as_echo "$as_me: creating cache $cache_file" >&6;}
2163  >$cache_file
2164fi
2165
2166# Check that the precious variables saved in the cache have kept the same
2167# value.
2168ac_cache_corrupted=false
2169for ac_var in $ac_precious_vars; do
2170  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171  eval ac_new_set=\$ac_env_${ac_var}_set
2172  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173  eval ac_new_val=\$ac_env_${ac_var}_value
2174  case $ac_old_set,$ac_new_set in
2175    set,)
2176      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178      ac_cache_corrupted=: ;;
2179    ,set)
2180      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182      ac_cache_corrupted=: ;;
2183    ,);;
2184    *)
2185      if test "x$ac_old_val" != "x$ac_new_val"; then
2186	# differences in whitespace do not lead to failure.
2187	ac_old_val_w=`echo x $ac_old_val`
2188	ac_new_val_w=`echo x $ac_new_val`
2189	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192	  ac_cache_corrupted=:
2193	else
2194	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196	  eval $ac_var=\$ac_old_val
2197	fi
2198	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2199$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2200	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2201$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2202      fi;;
2203  esac
2204  # Pass precious variables to config.status.
2205  if test "$ac_new_set" = set; then
2206    case $ac_new_val in
2207    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208    *) ac_arg=$ac_var=$ac_new_val ;;
2209    esac
2210    case " $ac_configure_args " in
2211      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2212      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213    esac
2214  fi
2215done
2216if $ac_cache_corrupted; then
2217  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222fi
2223## -------------------- ##
2224## Main body of script. ##
2225## -------------------- ##
2226
2227ac_ext=c
2228ac_cpp='$CPP $CPPFLAGS'
2229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
2233
2234ac_config_headers="$ac_config_headers config.h:config-h.in"
2235
2236
2237ac_aux_dir=
2238for ac_dir in config "$srcdir"/config; do
2239  if test -f "$ac_dir/install-sh"; then
2240    ac_aux_dir=$ac_dir
2241    ac_install_sh="$ac_aux_dir/install-sh -c"
2242    break
2243  elif test -f "$ac_dir/install.sh"; then
2244    ac_aux_dir=$ac_dir
2245    ac_install_sh="$ac_aux_dir/install.sh -c"
2246    break
2247  elif test -f "$ac_dir/shtool"; then
2248    ac_aux_dir=$ac_dir
2249    ac_install_sh="$ac_aux_dir/shtool install -c"
2250    break
2251  fi
2252done
2253if test -z "$ac_aux_dir"; then
2254  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2255fi
2256
2257# These three variables are undocumented and unsupported,
2258# and are intended to be withdrawn in a future Autoconf release.
2259# They can cause serious problems if a builder's source tree is in a directory
2260# whose full name contains unusual characters.
2261ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2262ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2263ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2264
2265
2266
2267
2268
2269
2270
2271
2272 # I am me!
2273
2274
2275## ------------------------ ##
2276## Automake Initialisation. ##
2277## ------------------------ ##
2278
2279am__api_version='1.11'
2280
2281# Find a good install program.  We prefer a C program (faster),
2282# so one script is as good as another.  But avoid the broken or
2283# incompatible versions:
2284# SysV /etc/install, /usr/sbin/install
2285# SunOS /usr/etc/install
2286# IRIX /sbin/install
2287# AIX /bin/install
2288# AmigaOS /C/install, which installs bootblocks on floppy discs
2289# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2290# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2291# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2292# OS/2's system install, which has a completely different semantic
2293# ./install, which can be erroneously created by make from ./install.sh.
2294# Reject install programs that cannot install multiple files.
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2296$as_echo_n "checking for a BSD-compatible install... " >&6; }
2297if test -z "$INSTALL"; then
2298if ${ac_cv_path_install+:} false; then :
2299  $as_echo_n "(cached) " >&6
2300else
2301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306    # Account for people who put trailing slashes in PATH elements.
2307case $as_dir/ in #((
2308  ./ | .// | /[cC]/* | \
2309  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2310  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2311  /usr/ucb/* ) ;;
2312  *)
2313    # OSF1 and SCO ODT 3.0 have their own names for install.
2314    # Don't use installbsd from OSF since it installs stuff as root
2315    # by default.
2316    for ac_prog in ginstall scoinst install; do
2317      for ac_exec_ext in '' $ac_executable_extensions; do
2318	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2319	  if test $ac_prog = install &&
2320	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321	    # AIX install.  It has an incompatible calling convention.
2322	    :
2323	  elif test $ac_prog = install &&
2324	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325	    # program-specific install script used by HP pwplus--don't use.
2326	    :
2327	  else
2328	    rm -rf conftest.one conftest.two conftest.dir
2329	    echo one > conftest.one
2330	    echo two > conftest.two
2331	    mkdir conftest.dir
2332	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2333	      test -s conftest.one && test -s conftest.two &&
2334	      test -s conftest.dir/conftest.one &&
2335	      test -s conftest.dir/conftest.two
2336	    then
2337	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2338	      break 3
2339	    fi
2340	  fi
2341	fi
2342      done
2343    done
2344    ;;
2345esac
2346
2347  done
2348IFS=$as_save_IFS
2349
2350rm -rf conftest.one conftest.two conftest.dir
2351
2352fi
2353  if test "${ac_cv_path_install+set}" = set; then
2354    INSTALL=$ac_cv_path_install
2355  else
2356    # As a last resort, use the slow shell script.  Don't cache a
2357    # value for INSTALL within a source directory, because that will
2358    # break other packages using the cache if that directory is
2359    # removed, or if the value is a relative name.
2360    INSTALL=$ac_install_sh
2361  fi
2362fi
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2364$as_echo "$INSTALL" >&6; }
2365
2366# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2367# It thinks the first close brace ends the variable substitution.
2368test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2369
2370test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2371
2372test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2373
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2375$as_echo_n "checking whether build environment is sane... " >&6; }
2376# Just in case
2377sleep 1
2378echo timestamp > conftest.file
2379# Reject unsafe characters in $srcdir or the absolute working directory
2380# name.  Accept space and tab only in the latter.
2381am_lf='
2382'
2383case `pwd` in
2384  *[\\\"\#\$\&\'\`$am_lf]*)
2385    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2386esac
2387case $srcdir in
2388  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2389    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2390esac
2391
2392# Do `set' in a subshell so we don't clobber the current shell's
2393# arguments.  Must try -L first in case configure is actually a
2394# symlink; some systems play weird games with the mod time of symlinks
2395# (eg FreeBSD returns the mod time of the symlink's containing
2396# directory).
2397if (
2398   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2399   if test "$*" = "X"; then
2400      # -L didn't work.
2401      set X `ls -t "$srcdir/configure" conftest.file`
2402   fi
2403   rm -f conftest.file
2404   if test "$*" != "X $srcdir/configure conftest.file" \
2405      && test "$*" != "X conftest.file $srcdir/configure"; then
2406
2407      # If neither matched, then we have a broken ls.  This can happen
2408      # if, for instance, CONFIG_SHELL is bash and it inherits a
2409      # broken ls alias from the environment.  This has actually
2410      # happened.  Such a system could not be considered "sane".
2411      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2412alias in your environment" "$LINENO" 5
2413   fi
2414
2415   test "$2" = conftest.file
2416   )
2417then
2418   # Ok.
2419   :
2420else
2421   as_fn_error $? "newly created file is older than distributed files!
2422Check your system clock" "$LINENO" 5
2423fi
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2425$as_echo "yes" >&6; }
2426test "$program_prefix" != NONE &&
2427  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428# Use a double $ so make ignores it.
2429test "$program_suffix" != NONE &&
2430  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431# Double any \ or $.
2432# By default was `s,x,x', remove it if useless.
2433ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2435
2436# expand $ac_aux_dir to an absolute path
2437am_aux_dir=`cd $ac_aux_dir && pwd`
2438
2439if test x"${MISSING+set}" != xset; then
2440  case $am_aux_dir in
2441  *\ * | *\	*)
2442    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2443  *)
2444    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2445  esac
2446fi
2447# Use eval to expand $SHELL
2448if eval "$MISSING --run true"; then
2449  am_missing_run="$MISSING --run "
2450else
2451  am_missing_run=
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2453$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2454fi
2455
2456if test x"${install_sh}" != xset; then
2457  case $am_aux_dir in
2458  *\ * | *\	*)
2459    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2460  *)
2461    install_sh="\${SHELL} $am_aux_dir/install-sh"
2462  esac
2463fi
2464
2465# Installed binaries are usually stripped using `strip' when the user
2466# run `make install-strip'.  However `strip' might not be the right
2467# tool to use in cross-compilation environments, therefore Automake
2468# will honor the `STRIP' environment variable to overrule this program.
2469if test "$cross_compiling" != no; then
2470  if test -n "$ac_tool_prefix"; then
2471  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}strip; ac_word=$2
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
2475if ${ac_cv_prog_STRIP+:} false; then :
2476  $as_echo_n "(cached) " >&6
2477else
2478  if test -n "$STRIP"; then
2479  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484  IFS=$as_save_IFS
2485  test -z "$as_dir" && as_dir=.
2486    for ac_exec_ext in '' $ac_executable_extensions; do
2487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490    break 2
2491  fi
2492done
2493  done
2494IFS=$as_save_IFS
2495
2496fi
2497fi
2498STRIP=$ac_cv_prog_STRIP
2499if test -n "$STRIP"; then
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2501$as_echo "$STRIP" >&6; }
2502else
2503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504$as_echo "no" >&6; }
2505fi
2506
2507
2508fi
2509if test -z "$ac_cv_prog_STRIP"; then
2510  ac_ct_STRIP=$STRIP
2511  # Extract the first word of "strip", so it can be a program name with args.
2512set dummy strip; ac_word=$2
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$ac_ct_STRIP"; then
2519  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526    for ac_exec_ext in '' $ac_executable_extensions; do
2527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528    ac_cv_prog_ac_ct_STRIP="strip"
2529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533  done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539if test -n "$ac_ct_STRIP"; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2541$as_echo "$ac_ct_STRIP" >&6; }
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547  if test "x$ac_ct_STRIP" = x; then
2548    STRIP=":"
2549  else
2550    case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554ac_tool_warned=yes ;;
2555esac
2556    STRIP=$ac_ct_STRIP
2557  fi
2558else
2559  STRIP="$ac_cv_prog_STRIP"
2560fi
2561
2562fi
2563INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2564
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2566$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2567if test -z "$MKDIR_P"; then
2568  if ${ac_cv_path_mkdir+:} false; then :
2569  $as_echo_n "(cached) " >&6
2570else
2571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_prog in mkdir gmkdir; do
2577	 for ac_exec_ext in '' $ac_executable_extensions; do
2578	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2579	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2580	     'mkdir (GNU coreutils) '* | \
2581	     'mkdir (coreutils) '* | \
2582	     'mkdir (fileutils) '4.1*)
2583	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2584	       break 3;;
2585	   esac
2586	 done
2587       done
2588  done
2589IFS=$as_save_IFS
2590
2591fi
2592
2593  test -d ./--version && rmdir ./--version
2594  if test "${ac_cv_path_mkdir+set}" = set; then
2595    MKDIR_P="$ac_cv_path_mkdir -p"
2596  else
2597    # As a last resort, use the slow shell script.  Don't cache a
2598    # value for MKDIR_P within a source directory, because that will
2599    # break other packages using the cache if that directory is
2600    # removed, or if the value is a relative name.
2601    MKDIR_P="$ac_install_sh -d"
2602  fi
2603fi
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2605$as_echo "$MKDIR_P" >&6; }
2606
2607mkdir_p="$MKDIR_P"
2608case $mkdir_p in
2609  [\\/$]* | ?:[\\/]*) ;;
2610  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2611esac
2612
2613for ac_prog in gawk mawk nawk awk
2614do
2615  # Extract the first word of "$ac_prog", so it can be a program name with args.
2616set dummy $ac_prog; ac_word=$2
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618$as_echo_n "checking for $ac_word... " >&6; }
2619if ${ac_cv_prog_AWK+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  if test -n "$AWK"; then
2623  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630    for ac_exec_ext in '' $ac_executable_extensions; do
2631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632    ac_cv_prog_AWK="$ac_prog"
2633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637  done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642AWK=$ac_cv_prog_AWK
2643if test -n "$AWK"; then
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2645$as_echo "$AWK" >&6; }
2646else
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648$as_echo "no" >&6; }
2649fi
2650
2651
2652  test -n "$AWK" && break
2653done
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2656$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2657set x ${MAKE-make}
2658ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2659if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  cat >conftest.make <<\_ACEOF
2663SHELL = /bin/sh
2664all:
2665	@echo '@@@%%%=$(MAKE)=@@@%%%'
2666_ACEOF
2667# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2668case `${MAKE-make} -f conftest.make 2>/dev/null` in
2669  *@@@%%%=?*=@@@%%%*)
2670    eval ac_cv_prog_make_${ac_make}_set=yes;;
2671  *)
2672    eval ac_cv_prog_make_${ac_make}_set=no;;
2673esac
2674rm -f conftest.make
2675fi
2676if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678$as_echo "yes" >&6; }
2679  SET_MAKE=
2680else
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683  SET_MAKE="MAKE=${MAKE-make}"
2684fi
2685
2686rm -rf .tst 2>/dev/null
2687mkdir .tst 2>/dev/null
2688if test -d .tst; then
2689  am__leading_dot=.
2690else
2691  am__leading_dot=_
2692fi
2693rmdir .tst 2>/dev/null
2694
2695if test "`cd $srcdir && pwd`" != "`pwd`"; then
2696  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2697  # is not polluted with repeated "-I."
2698  am__isrc=' -I$(srcdir)'
2699  # test to see if srcdir already configured
2700  if test -f $srcdir/config.status; then
2701    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2702  fi
2703fi
2704
2705# test whether we have cygpath
2706if test -z "$CYGPATH_W"; then
2707  if (cygpath --version) >/dev/null 2>/dev/null; then
2708    CYGPATH_W='cygpath -w'
2709  else
2710    CYGPATH_W=echo
2711  fi
2712fi
2713
2714
2715# Define the identity of the package.
2716 PACKAGE='libltdl'
2717 VERSION='2.4.2'
2718
2719
2720cat >>confdefs.h <<_ACEOF
2721#define PACKAGE "$PACKAGE"
2722_ACEOF
2723
2724
2725cat >>confdefs.h <<_ACEOF
2726#define VERSION "$VERSION"
2727_ACEOF
2728
2729# Some tools Automake needs.
2730
2731ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2732
2733
2734AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2735
2736
2737AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2738
2739
2740AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2741
2742
2743MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2744
2745# We need awk for the "check" target.  The system "awk" is bad on
2746# some platforms.
2747# Always define AMTAR for backward compatibility.  Yes, it's still used
2748# in the wild :-(  We should find a proper way to deprecate it ...
2749AMTAR='$${TAR-tar}'
2750
2751am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2752
2753
2754
2755
2756
2757
2758
2759## ------------------------------- ##
2760## Libtool specific configuration. ##
2761## ------------------------------- ##
2762pkgdatadir='${datadir}'"/${PACKAGE}"
2763
2764
2765## ----------------------- ##
2766## Libtool initialisation. ##
2767## ----------------------- ##
2768case `pwd` in
2769  *\ * | *\	*)
2770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2771$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2772esac
2773
2774
2775
2776macro_version='2.4.2'
2777macro_revision='1.3337'
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791ltmain="$ac_aux_dir/ltmain.sh"
2792
2793# Make sure we can run config.sub.
2794$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2795  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2796
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2798$as_echo_n "checking build system type... " >&6; }
2799if ${ac_cv_build+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  ac_build_alias=$build_alias
2803test "x$ac_build_alias" = x &&
2804  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2805test "x$ac_build_alias" = x &&
2806  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2807ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2808  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2809
2810fi
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2812$as_echo "$ac_cv_build" >&6; }
2813case $ac_cv_build in
2814*-*-*) ;;
2815*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2816esac
2817build=$ac_cv_build
2818ac_save_IFS=$IFS; IFS='-'
2819set x $ac_cv_build
2820shift
2821build_cpu=$1
2822build_vendor=$2
2823shift; shift
2824# Remember, the first character of IFS is used to create $*,
2825# except with old shells:
2826build_os=$*
2827IFS=$ac_save_IFS
2828case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2829
2830
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2832$as_echo_n "checking host system type... " >&6; }
2833if ${ac_cv_host+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  if test "x$host_alias" = x; then
2837  ac_cv_host=$ac_cv_build
2838else
2839  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2840    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2841fi
2842
2843fi
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2845$as_echo "$ac_cv_host" >&6; }
2846case $ac_cv_host in
2847*-*-*) ;;
2848*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2849esac
2850host=$ac_cv_host
2851ac_save_IFS=$IFS; IFS='-'
2852set x $ac_cv_host
2853shift
2854host_cpu=$1
2855host_vendor=$2
2856shift; shift
2857# Remember, the first character of IFS is used to create $*,
2858# except with old shells:
2859host_os=$*
2860IFS=$ac_save_IFS
2861case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2862
2863
2864# Backslashify metacharacters that are still active within
2865# double-quoted strings.
2866sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2867
2868# Same as above, but do not quote variable references.
2869double_quote_subst='s/\(["`\\]\)/\\\1/g'
2870
2871# Sed substitution to delay expansion of an escaped shell variable in a
2872# double_quote_subst'ed string.
2873delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2874
2875# Sed substitution to delay expansion of an escaped single quote.
2876delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2877
2878# Sed substitution to avoid accidental globbing in evaled expressions
2879no_glob_subst='s/\*/\\\*/g'
2880
2881ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2882ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2883ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2884
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2886$as_echo_n "checking how to print strings... " >&6; }
2887# Test print first, because it will be a builtin if present.
2888if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2889   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2890  ECHO='print -r --'
2891elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2892  ECHO='printf %s\n'
2893else
2894  # Use this function as a fallback that always works.
2895  func_fallback_echo ()
2896  {
2897    eval 'cat <<_LTECHO_EOF
2898$1
2899_LTECHO_EOF'
2900  }
2901  ECHO='func_fallback_echo'
2902fi
2903
2904# func_echo_all arg...
2905# Invoke $ECHO with all args, space-separated.
2906func_echo_all ()
2907{
2908    $ECHO ""
2909}
2910
2911case "$ECHO" in
2912  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2913$as_echo "printf" >&6; } ;;
2914  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2915$as_echo "print -r" >&6; } ;;
2916  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2917$as_echo "cat" >&6; } ;;
2918esac
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933DEPDIR="${am__leading_dot}deps"
2934
2935ac_config_commands="$ac_config_commands depfiles"
2936
2937
2938am_make=${MAKE-make}
2939cat > confinc << 'END'
2940am__doit:
2941	@echo this is the am__doit target
2942.PHONY: am__doit
2943END
2944# If we don't find an include directive, just comment out the code.
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2946$as_echo_n "checking for style of include used by $am_make... " >&6; }
2947am__include="#"
2948am__quote=
2949_am_result=none
2950# First try GNU make style include.
2951echo "include confinc" > confmf
2952# Ignore all kinds of additional output from `make'.
2953case `$am_make -s -f confmf 2> /dev/null` in #(
2954*the\ am__doit\ target*)
2955  am__include=include
2956  am__quote=
2957  _am_result=GNU
2958  ;;
2959esac
2960# Now try BSD make style include.
2961if test "$am__include" = "#"; then
2962   echo '.include "confinc"' > confmf
2963   case `$am_make -s -f confmf 2> /dev/null` in #(
2964   *the\ am__doit\ target*)
2965     am__include=.include
2966     am__quote="\""
2967     _am_result=BSD
2968     ;;
2969   esac
2970fi
2971
2972
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2974$as_echo "$_am_result" >&6; }
2975rm -f confinc confmf
2976
2977# Check whether --enable-dependency-tracking was given.
2978if test "${enable_dependency_tracking+set}" = set; then :
2979  enableval=$enable_dependency_tracking;
2980fi
2981
2982if test "x$enable_dependency_tracking" != xno; then
2983  am_depcomp="$ac_aux_dir/depcomp"
2984  AMDEPBACKSLASH='\'
2985  am__nodep='_no'
2986fi
2987 if test "x$enable_dependency_tracking" != xno; then
2988  AMDEP_TRUE=
2989  AMDEP_FALSE='#'
2990else
2991  AMDEP_TRUE='#'
2992  AMDEP_FALSE=
2993fi
2994
2995
2996ac_ext=c
2997ac_cpp='$CPP $CPPFLAGS'
2998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001if test -n "$ac_tool_prefix"; then
3002  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029CC=$ac_cv_prog_CC
3030if test -n "$CC"; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032$as_echo "$CC" >&6; }
3033else
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038
3039fi
3040if test -z "$ac_cv_prog_CC"; then
3041  ac_ct_CC=$CC
3042  # Extract the first word of "gcc", so it can be a program name with args.
3043set dummy gcc; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_ac_ct_CC+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test -n "$ac_ct_CC"; then
3050  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057    for ac_exec_ext in '' $ac_executable_extensions; do
3058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_ac_ct_CC="gcc"
3060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064  done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070if test -n "$ac_ct_CC"; then
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072$as_echo "$ac_ct_CC" >&6; }
3073else
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
3076fi
3077
3078  if test "x$ac_ct_CC" = x; then
3079    CC=""
3080  else
3081    case $cross_compiling:$ac_tool_warned in
3082yes:)
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085ac_tool_warned=yes ;;
3086esac
3087    CC=$ac_ct_CC
3088  fi
3089else
3090  CC="$ac_cv_prog_CC"
3091fi
3092
3093if test -z "$CC"; then
3094          if test -n "$ac_tool_prefix"; then
3095    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096set dummy ${ac_tool_prefix}cc; ac_word=$2
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098$as_echo_n "checking for $ac_word... " >&6; }
3099if ${ac_cv_prog_CC+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test -n "$CC"; then
3103  ac_cv_prog_CC="$CC" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112    ac_cv_prog_CC="${ac_tool_prefix}cc"
3113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114    break 2
3115  fi
3116done
3117  done
3118IFS=$as_save_IFS
3119
3120fi
3121fi
3122CC=$ac_cv_prog_CC
3123if test -n "$CC"; then
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125$as_echo "$CC" >&6; }
3126else
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128$as_echo "no" >&6; }
3129fi
3130
3131
3132  fi
3133fi
3134if test -z "$CC"; then
3135  # Extract the first word of "cc", so it can be a program name with args.
3136set dummy cc; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_CC+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$CC"; then
3143  ac_cv_prog_CC="$CC" # Let the user override the test.
3144else
3145  ac_prog_rejected=no
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149  IFS=$as_save_IFS
3150  test -z "$as_dir" && as_dir=.
3151    for ac_exec_ext in '' $ac_executable_extensions; do
3152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154       ac_prog_rejected=yes
3155       continue
3156     fi
3157    ac_cv_prog_CC="cc"
3158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161done
3162  done
3163IFS=$as_save_IFS
3164
3165if test $ac_prog_rejected = yes; then
3166  # We found a bogon in the path, so make sure we never use it.
3167  set dummy $ac_cv_prog_CC
3168  shift
3169  if test $# != 0; then
3170    # We chose a different compiler from the bogus one.
3171    # However, it has the same basename, so the bogon will be chosen
3172    # first if we set CC to just the basename; use the full file name.
3173    shift
3174    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3175  fi
3176fi
3177fi
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189fi
3190if test -z "$CC"; then
3191  if test -n "$ac_tool_prefix"; then
3192  for ac_prog in cl.exe
3193  do
3194    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$CC"; then
3202  ac_cv_prog_CC="$CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209    for ac_exec_ext in '' $ac_executable_extensions; do
3210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216  done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221CC=$ac_cv_prog_CC
3222if test -n "$CC"; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224$as_echo "$CC" >&6; }
3225else
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230
3231    test -n "$CC" && break
3232  done
3233fi
3234if test -z "$CC"; then
3235  ac_ct_CC=$CC
3236  for ac_prog in cl.exe
3237do
3238  # Extract the first word of "$ac_prog", so it can be a program name with args.
3239set dummy $ac_prog; ac_word=$2
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241$as_echo_n "checking for $ac_word... " >&6; }
3242if ${ac_cv_prog_ac_ct_CC+:} false; then :
3243  $as_echo_n "(cached) " >&6
3244else
3245  if test -n "$ac_ct_CC"; then
3246  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247else
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251  IFS=$as_save_IFS
3252  test -z "$as_dir" && as_dir=.
3253    for ac_exec_ext in '' $ac_executable_extensions; do
3254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255    ac_cv_prog_ac_ct_CC="$ac_prog"
3256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257    break 2
3258  fi
3259done
3260  done
3261IFS=$as_save_IFS
3262
3263fi
3264fi
3265ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266if test -n "$ac_ct_CC"; then
3267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3268$as_echo "$ac_ct_CC" >&6; }
3269else
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271$as_echo "no" >&6; }
3272fi
3273
3274
3275  test -n "$ac_ct_CC" && break
3276done
3277
3278  if test "x$ac_ct_CC" = x; then
3279    CC=""
3280  else
3281    case $cross_compiling:$ac_tool_warned in
3282yes:)
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285ac_tool_warned=yes ;;
3286esac
3287    CC=$ac_ct_CC
3288  fi
3289fi
3290
3291fi
3292
3293
3294test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296as_fn_error $? "no acceptable C compiler found in \$PATH
3297See \`config.log' for more details" "$LINENO" 5; }
3298
3299# Provide some information about the compiler.
3300$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3301set X $ac_compile
3302ac_compiler=$2
3303for ac_option in --version -v -V -qversion; do
3304  { { ac_try="$ac_compiler $ac_option >&5"
3305case "(($ac_try" in
3306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307  *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
3311  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3312  ac_status=$?
3313  if test -s conftest.err; then
3314    sed '10a\
3315... rest of stderr output deleted ...
3316         10q' conftest.err >conftest.er1
3317    cat conftest.er1 >&5
3318  fi
3319  rm -f conftest.er1 conftest.err
3320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321  test $ac_status = 0; }
3322done
3323
3324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325/* end confdefs.h.  */
3326
3327int
3328main ()
3329{
3330
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335ac_clean_files_save=$ac_clean_files
3336ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3337# Try to create an executable without -o first, disregard a.out.
3338# It will help us diagnose broken compilers, and finding out an intuition
3339# of exeext.
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3341$as_echo_n "checking whether the C compiler works... " >&6; }
3342ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343
3344# The possible output files:
3345ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3346
3347ac_rmfiles=
3348for ac_file in $ac_files
3349do
3350  case $ac_file in
3351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3353  esac
3354done
3355rm -f $ac_rmfiles
3356
3357if { { ac_try="$ac_link_default"
3358case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363$as_echo "$ac_try_echo"; } >&5
3364  (eval "$ac_link_default") 2>&5
3365  ac_status=$?
3366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367  test $ac_status = 0; }; then :
3368  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3369# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3370# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3371# so that the user can short-circuit this test for compilers unknown to
3372# Autoconf.
3373for ac_file in $ac_files ''
3374do
3375  test -f "$ac_file" || continue
3376  case $ac_file in
3377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3378	;;
3379    [ab].out )
3380	# We found the default executable, but exeext='' is most
3381	# certainly right.
3382	break;;
3383    *.* )
3384	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3385	then :; else
3386	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387	fi
3388	# We set ac_cv_exeext here because the later test for it is not
3389	# safe: cross compilers may not add the suffix if given an `-o'
3390	# argument, so we may need to know it at that point already.
3391	# Even if this section looks crufty: it has the advantage of
3392	# actually working.
3393	break;;
3394    * )
3395	break;;
3396  esac
3397done
3398test "$ac_cv_exeext" = no && ac_cv_exeext=
3399
3400else
3401  ac_file=''
3402fi
3403if test -z "$ac_file"; then :
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405$as_echo "no" >&6; }
3406$as_echo "$as_me: failed program was:" >&5
3407sed 's/^/| /' conftest.$ac_ext >&5
3408
3409{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411as_fn_error 77 "C compiler cannot create executables
3412See \`config.log' for more details" "$LINENO" 5; }
3413else
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415$as_echo "yes" >&6; }
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3418$as_echo_n "checking for C compiler default output file name... " >&6; }
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3420$as_echo "$ac_file" >&6; }
3421ac_exeext=$ac_cv_exeext
3422
3423rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3424ac_clean_files=$ac_clean_files_save
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3426$as_echo_n "checking for suffix of executables... " >&6; }
3427if { { ac_try="$ac_link"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_link") 2>&5
3435  ac_status=$?
3436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }; then :
3438  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440# work properly (i.e., refer to `conftest.exe'), while it won't with
3441# `rm'.
3442for ac_file in conftest.exe conftest conftest.*; do
3443  test -f "$ac_file" || continue
3444  case $ac_file in
3445    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447	  break;;
3448    * ) break;;
3449  esac
3450done
3451else
3452  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3455See \`config.log' for more details" "$LINENO" 5; }
3456fi
3457rm -f conftest conftest$ac_cv_exeext
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3459$as_echo "$ac_cv_exeext" >&6; }
3460
3461rm -f conftest.$ac_ext
3462EXEEXT=$ac_cv_exeext
3463ac_exeext=$EXEEXT
3464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465/* end confdefs.h.  */
3466#include <stdio.h>
3467int
3468main ()
3469{
3470FILE *f = fopen ("conftest.out", "w");
3471 return ferror (f) || fclose (f) != 0;
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477ac_clean_files="$ac_clean_files conftest.out"
3478# Check that the compiler produces executables we can run.  If not, either
3479# the compiler is broken, or we cross compile.
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3481$as_echo_n "checking whether we are cross compiling... " >&6; }
3482if test "$cross_compiling" != yes; then
3483  { { ac_try="$ac_link"
3484case "(($ac_try" in
3485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486  *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489$as_echo "$ac_try_echo"; } >&5
3490  (eval "$ac_link") 2>&5
3491  ac_status=$?
3492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493  test $ac_status = 0; }
3494  if { ac_try='./conftest$ac_cv_exeext'
3495  { { case "(($ac_try" in
3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497  *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500$as_echo "$ac_try_echo"; } >&5
3501  (eval "$ac_try") 2>&5
3502  ac_status=$?
3503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504  test $ac_status = 0; }; }; then
3505    cross_compiling=no
3506  else
3507    if test "$cross_compiling" = maybe; then
3508	cross_compiling=yes
3509    else
3510	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512as_fn_error $? "cannot run C compiled programs.
3513If you meant to cross compile, use \`--host'.
3514See \`config.log' for more details" "$LINENO" 5; }
3515    fi
3516  fi
3517fi
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3519$as_echo "$cross_compiling" >&6; }
3520
3521rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3522ac_clean_files=$ac_clean_files_save
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3524$as_echo_n "checking for suffix of object files... " >&6; }
3525if ${ac_cv_objext+:} false; then :
3526  $as_echo_n "(cached) " >&6
3527else
3528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530
3531int
3532main ()
3533{
3534
3535  ;
3536  return 0;
3537}
3538_ACEOF
3539rm -f conftest.o conftest.obj
3540if { { ac_try="$ac_compile"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546$as_echo "$ac_try_echo"; } >&5
3547  (eval "$ac_compile") 2>&5
3548  ac_status=$?
3549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550  test $ac_status = 0; }; then :
3551  for ac_file in conftest.o conftest.obj conftest.*; do
3552  test -f "$ac_file" || continue;
3553  case $ac_file in
3554    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3555    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3556       break;;
3557  esac
3558done
3559else
3560  $as_echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565as_fn_error $? "cannot compute suffix of object files: cannot compile
3566See \`config.log' for more details" "$LINENO" 5; }
3567fi
3568rm -f conftest.$ac_cv_objext conftest.$ac_ext
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3571$as_echo "$ac_cv_objext" >&6; }
3572OBJEXT=$ac_cv_objext
3573ac_objext=$OBJEXT
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3575$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3576if ${ac_cv_c_compiler_gnu+:} false; then :
3577  $as_echo_n "(cached) " >&6
3578else
3579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585#ifndef __GNUC__
3586       choke me
3587#endif
3588
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593if ac_fn_c_try_compile "$LINENO"; then :
3594  ac_compiler_gnu=yes
3595else
3596  ac_compiler_gnu=no
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599ac_cv_c_compiler_gnu=$ac_compiler_gnu
3600
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3603$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3604if test $ac_compiler_gnu = yes; then
3605  GCC=yes
3606else
3607  GCC=
3608fi
3609ac_test_CFLAGS=${CFLAGS+set}
3610ac_save_CFLAGS=$CFLAGS
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3612$as_echo_n "checking whether $CC accepts -g... " >&6; }
3613if ${ac_cv_prog_cc_g+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  ac_save_c_werror_flag=$ac_c_werror_flag
3617   ac_c_werror_flag=yes
3618   ac_cv_prog_cc_g=no
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
3633else
3634  CFLAGS=""
3635      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637
3638int
3639main ()
3640{
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646if ac_fn_c_try_compile "$LINENO"; then :
3647
3648else
3649  ac_c_werror_flag=$ac_save_c_werror_flag
3650	 CFLAGS="-g"
3651	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662if ac_fn_c_try_compile "$LINENO"; then :
3663  ac_cv_prog_cc_g=yes
3664fi
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668fi
3669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670   ac_c_werror_flag=$ac_save_c_werror_flag
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3673$as_echo "$ac_cv_prog_cc_g" >&6; }
3674if test "$ac_test_CFLAGS" = set; then
3675  CFLAGS=$ac_save_CFLAGS
3676elif test $ac_cv_prog_cc_g = yes; then
3677  if test "$GCC" = yes; then
3678    CFLAGS="-g -O2"
3679  else
3680    CFLAGS="-g"
3681  fi
3682else
3683  if test "$GCC" = yes; then
3684    CFLAGS="-O2"
3685  else
3686    CFLAGS=
3687  fi
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3690$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3691if ${ac_cv_prog_cc_c89+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  ac_cv_prog_cc_c89=no
3695ac_save_CC=$CC
3696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698#include <stdarg.h>
3699#include <stdio.h>
3700struct stat;
3701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3702struct buf { int x; };
3703FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704static char *e (p, i)
3705     char **p;
3706     int i;
3707{
3708  return p[i];
3709}
3710static char *f (char * (*g) (char **, int), char **p, ...)
3711{
3712  char *s;
3713  va_list v;
3714  va_start (v,p);
3715  s = g (p, va_arg (v,int));
3716  va_end (v);
3717  return s;
3718}
3719
3720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3721   function prototypes and stuff, but not '\xHH' hex character constants.
3722   These don't provoke an error unfortunately, instead are silently treated
3723   as 'x'.  The following induces an error, until -std is added to get
3724   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3725   array size at least.  It's necessary to write '\x00'==0 to get something
3726   that's true only with -std.  */
3727int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3728
3729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730   inside strings and character constants.  */
3731#define FOO(x) 'x'
3732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3733
3734int test (int i, double x);
3735struct s1 {int (*f) (int a);};
3736struct s2 {int (*f) (double a);};
3737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3738int argc;
3739char **argv;
3740int
3741main ()
3742{
3743return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3744  ;
3745  return 0;
3746}
3747_ACEOF
3748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3750do
3751  CC="$ac_save_CC $ac_arg"
3752  if ac_fn_c_try_compile "$LINENO"; then :
3753  ac_cv_prog_cc_c89=$ac_arg
3754fi
3755rm -f core conftest.err conftest.$ac_objext
3756  test "x$ac_cv_prog_cc_c89" != "xno" && break
3757done
3758rm -f conftest.$ac_ext
3759CC=$ac_save_CC
3760
3761fi
3762# AC_CACHE_VAL
3763case "x$ac_cv_prog_cc_c89" in
3764  x)
3765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3766$as_echo "none needed" >&6; } ;;
3767  xno)
3768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769$as_echo "unsupported" >&6; } ;;
3770  *)
3771    CC="$CC $ac_cv_prog_cc_c89"
3772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3773$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3774esac
3775if test "x$ac_cv_prog_cc_c89" != xno; then :
3776
3777fi
3778
3779ac_ext=c
3780ac_cpp='$CPP $CPPFLAGS'
3781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
3785depcc="$CC"   am_compiler_list=
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788$as_echo_n "checking dependency style of $depcc... " >&6; }
3789if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793  # We make a subdir and do the tests there.  Otherwise we can end up
3794  # making bogus files that we don't know about and never remove.  For
3795  # instance it was reported that on HP-UX the gcc test will end up
3796  # making a dummy file named `D' -- because `-MD' means `put the output
3797  # in D'.
3798  rm -rf conftest.dir
3799  mkdir conftest.dir
3800  # Copy depcomp to subdir because otherwise we won't find it if we're
3801  # using a relative directory.
3802  cp "$am_depcomp" conftest.dir
3803  cd conftest.dir
3804  # We will build objects and dependencies in a subdirectory because
3805  # it helps to detect inapplicable dependency modes.  For instance
3806  # both Tru64's cc and ICC support -MD to output dependencies as a
3807  # side effect of compilation, but ICC will put the dependencies in
3808  # the current directory while Tru64 will put them in the object
3809  # directory.
3810  mkdir sub
3811
3812  am_cv_CC_dependencies_compiler_type=none
3813  if test "$am_compiler_list" = ""; then
3814     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815  fi
3816  am__universal=false
3817  case " $depcc " in #(
3818     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3819     esac
3820
3821  for depmode in $am_compiler_list; do
3822    # Setup a source with many dependencies, because some compilers
3823    # like to wrap large dependency lists on column 80 (with \), and
3824    # we should not choose a depcomp mode which is confused by this.
3825    #
3826    # We need to recreate these files for each test, as the compiler may
3827    # overwrite some of them when testing with obscure command lines.
3828    # This happens at least with the AIX C compiler.
3829    : > sub/conftest.c
3830    for i in 1 2 3 4 5 6; do
3831      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833      # Solaris 8's {/usr,}/bin/sh.
3834      touch sub/conftst$i.h
3835    done
3836    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
3838    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839    # mode.  It turns out that the SunPro C++ compiler does not properly
3840    # handle `-M -o', and we need to detect this.  Also, some Intel
3841    # versions had trouble with output in subdirs
3842    am__obj=sub/conftest.${OBJEXT-o}
3843    am__minus_obj="-o $am__obj"
3844    case $depmode in
3845    gcc)
3846      # This depmode causes a compiler race in universal mode.
3847      test "$am__universal" = false || continue
3848      ;;
3849    nosideeffect)
3850      # after this tag, mechanisms are not by side-effect, so they'll
3851      # only be used when explicitly requested
3852      if test "x$enable_dependency_tracking" = xyes; then
3853	continue
3854      else
3855	break
3856      fi
3857      ;;
3858    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3859      # This compiler won't grok `-c -o', but also, the minuso test has
3860      # not run yet.  These depmodes are late enough in the game, and
3861      # so weak that their functioning should not be impacted.
3862      am__obj=conftest.${OBJEXT-o}
3863      am__minus_obj=
3864      ;;
3865    none) break ;;
3866    esac
3867    if depmode=$depmode \
3868       source=sub/conftest.c object=$am__obj \
3869       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871         >/dev/null 2>conftest.err &&
3872       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876      # icc doesn't choke on unknown options, it will just issue warnings
3877      # or remarks (even with -Werror).  So we grep stderr for any message
3878      # that says an option was ignored or not supported.
3879      # When given -MP, icc 7.0 and 7.1 complain thusly:
3880      #   icc: Command line warning: ignoring option '-M'; no argument required
3881      # The diagnosis changed in icc 8.0:
3882      #   icc: Command line remark: option '-MP' not supported
3883      if (grep 'ignoring option' conftest.err ||
3884          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885        am_cv_CC_dependencies_compiler_type=$depmode
3886        break
3887      fi
3888    fi
3889  done
3890
3891  cd ..
3892  rm -rf conftest.dir
3893else
3894  am_cv_CC_dependencies_compiler_type=none
3895fi
3896
3897fi
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901
3902 if
3903  test "x$enable_dependency_tracking" != xno \
3904  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905  am__fastdepCC_TRUE=
3906  am__fastdepCC_FALSE='#'
3907else
3908  am__fastdepCC_TRUE='#'
3909  am__fastdepCC_FALSE=
3910fi
3911
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3914$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3915if ${ac_cv_path_SED+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3919     for ac_i in 1 2 3 4 5 6 7; do
3920       ac_script="$ac_script$as_nl$ac_script"
3921     done
3922     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3923     { ac_script=; unset ac_script;}
3924     if test -z "$SED"; then
3925  ac_path_SED_found=false
3926  # Loop through the user's path and test for each of PROGNAME-LIST
3927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932    for ac_prog in sed gsed; do
3933    for ac_exec_ext in '' $ac_executable_extensions; do
3934      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3935      as_fn_executable_p "$ac_path_SED" || continue
3936# Check for GNU ac_path_SED and select it if it is found.
3937  # Check for GNU $ac_path_SED
3938case `"$ac_path_SED" --version 2>&1` in
3939*GNU*)
3940  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3941*)
3942  ac_count=0
3943  $as_echo_n 0123456789 >"conftest.in"
3944  while :
3945  do
3946    cat "conftest.in" "conftest.in" >"conftest.tmp"
3947    mv "conftest.tmp" "conftest.in"
3948    cp "conftest.in" "conftest.nl"
3949    $as_echo '' >> "conftest.nl"
3950    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952    as_fn_arith $ac_count + 1 && ac_count=$as_val
3953    if test $ac_count -gt ${ac_path_SED_max-0}; then
3954      # Best one so far, save it but keep looking for a better one
3955      ac_cv_path_SED="$ac_path_SED"
3956      ac_path_SED_max=$ac_count
3957    fi
3958    # 10*(2^10) chars as input seems more than enough
3959    test $ac_count -gt 10 && break
3960  done
3961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962esac
3963
3964      $ac_path_SED_found && break 3
3965    done
3966  done
3967  done
3968IFS=$as_save_IFS
3969  if test -z "$ac_cv_path_SED"; then
3970    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3971  fi
3972else
3973  ac_cv_path_SED=$SED
3974fi
3975
3976fi
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3978$as_echo "$ac_cv_path_SED" >&6; }
3979 SED="$ac_cv_path_SED"
3980  rm -f conftest.sed
3981
3982test -z "$SED" && SED=sed
3983Xsed="$SED -e 1s/^X//"
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3996$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3997if ${ac_cv_path_GREP+:} false; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  if test -z "$GREP"; then
4001  ac_path_GREP_found=false
4002  # Loop through the user's path and test for each of PROGNAME-LIST
4003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006  IFS=$as_save_IFS
4007  test -z "$as_dir" && as_dir=.
4008    for ac_prog in grep ggrep; do
4009    for ac_exec_ext in '' $ac_executable_extensions; do
4010      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4011      as_fn_executable_p "$ac_path_GREP" || continue
4012# Check for GNU ac_path_GREP and select it if it is found.
4013  # Check for GNU $ac_path_GREP
4014case `"$ac_path_GREP" --version 2>&1` in
4015*GNU*)
4016  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4017*)
4018  ac_count=0
4019  $as_echo_n 0123456789 >"conftest.in"
4020  while :
4021  do
4022    cat "conftest.in" "conftest.in" >"conftest.tmp"
4023    mv "conftest.tmp" "conftest.in"
4024    cp "conftest.in" "conftest.nl"
4025    $as_echo 'GREP' >> "conftest.nl"
4026    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028    as_fn_arith $ac_count + 1 && ac_count=$as_val
4029    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4030      # Best one so far, save it but keep looking for a better one
4031      ac_cv_path_GREP="$ac_path_GREP"
4032      ac_path_GREP_max=$ac_count
4033    fi
4034    # 10*(2^10) chars as input seems more than enough
4035    test $ac_count -gt 10 && break
4036  done
4037  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
4040      $ac_path_GREP_found && break 3
4041    done
4042  done
4043  done
4044IFS=$as_save_IFS
4045  if test -z "$ac_cv_path_GREP"; then
4046    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047  fi
4048else
4049  ac_cv_path_GREP=$GREP
4050fi
4051
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4054$as_echo "$ac_cv_path_GREP" >&6; }
4055 GREP="$ac_cv_path_GREP"
4056
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4059$as_echo_n "checking for egrep... " >&6; }
4060if ${ac_cv_path_EGREP+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064   then ac_cv_path_EGREP="$GREP -E"
4065   else
4066     if test -z "$EGREP"; then
4067  ac_path_EGREP_found=false
4068  # Loop through the user's path and test for each of PROGNAME-LIST
4069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071do
4072  IFS=$as_save_IFS
4073  test -z "$as_dir" && as_dir=.
4074    for ac_prog in egrep; do
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077      as_fn_executable_p "$ac_path_EGREP" || continue
4078# Check for GNU ac_path_EGREP and select it if it is found.
4079  # Check for GNU $ac_path_EGREP
4080case `"$ac_path_EGREP" --version 2>&1` in
4081*GNU*)
4082  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083*)
4084  ac_count=0
4085  $as_echo_n 0123456789 >"conftest.in"
4086  while :
4087  do
4088    cat "conftest.in" "conftest.in" >"conftest.tmp"
4089    mv "conftest.tmp" "conftest.in"
4090    cp "conftest.in" "conftest.nl"
4091    $as_echo 'EGREP' >> "conftest.nl"
4092    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094    as_fn_arith $ac_count + 1 && ac_count=$as_val
4095    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096      # Best one so far, save it but keep looking for a better one
4097      ac_cv_path_EGREP="$ac_path_EGREP"
4098      ac_path_EGREP_max=$ac_count
4099    fi
4100    # 10*(2^10) chars as input seems more than enough
4101    test $ac_count -gt 10 && break
4102  done
4103  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104esac
4105
4106      $ac_path_EGREP_found && break 3
4107    done
4108  done
4109  done
4110IFS=$as_save_IFS
4111  if test -z "$ac_cv_path_EGREP"; then
4112    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4113  fi
4114else
4115  ac_cv_path_EGREP=$EGREP
4116fi
4117
4118   fi
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4121$as_echo "$ac_cv_path_EGREP" >&6; }
4122 EGREP="$ac_cv_path_EGREP"
4123
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4126$as_echo_n "checking for fgrep... " >&6; }
4127if ${ac_cv_path_FGREP+:} false; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4131   then ac_cv_path_FGREP="$GREP -F"
4132   else
4133     if test -z "$FGREP"; then
4134  ac_path_FGREP_found=false
4135  # Loop through the user's path and test for each of PROGNAME-LIST
4136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138do
4139  IFS=$as_save_IFS
4140  test -z "$as_dir" && as_dir=.
4141    for ac_prog in fgrep; do
4142    for ac_exec_ext in '' $ac_executable_extensions; do
4143      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4144      as_fn_executable_p "$ac_path_FGREP" || continue
4145# Check for GNU ac_path_FGREP and select it if it is found.
4146  # Check for GNU $ac_path_FGREP
4147case `"$ac_path_FGREP" --version 2>&1` in
4148*GNU*)
4149  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4150*)
4151  ac_count=0
4152  $as_echo_n 0123456789 >"conftest.in"
4153  while :
4154  do
4155    cat "conftest.in" "conftest.in" >"conftest.tmp"
4156    mv "conftest.tmp" "conftest.in"
4157    cp "conftest.in" "conftest.nl"
4158    $as_echo 'FGREP' >> "conftest.nl"
4159    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161    as_fn_arith $ac_count + 1 && ac_count=$as_val
4162    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4163      # Best one so far, save it but keep looking for a better one
4164      ac_cv_path_FGREP="$ac_path_FGREP"
4165      ac_path_FGREP_max=$ac_count
4166    fi
4167    # 10*(2^10) chars as input seems more than enough
4168    test $ac_count -gt 10 && break
4169  done
4170  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171esac
4172
4173      $ac_path_FGREP_found && break 3
4174    done
4175  done
4176  done
4177IFS=$as_save_IFS
4178  if test -z "$ac_cv_path_FGREP"; then
4179    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180  fi
4181else
4182  ac_cv_path_FGREP=$FGREP
4183fi
4184
4185   fi
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4188$as_echo "$ac_cv_path_FGREP" >&6; }
4189 FGREP="$ac_cv_path_FGREP"
4190
4191
4192test -z "$GREP" && GREP=grep
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212# Check whether --with-gnu-ld was given.
4213if test "${with_gnu_ld+set}" = set; then :
4214  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4215else
4216  with_gnu_ld=no
4217fi
4218
4219ac_prog=ld
4220if test "$GCC" = yes; then
4221  # Check if gcc -print-prog-name=ld gives a path.
4222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4223$as_echo_n "checking for ld used by $CC... " >&6; }
4224  case $host in
4225  *-*-mingw*)
4226    # gcc leaves a trailing carriage return which upsets mingw
4227    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4228  *)
4229    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4230  esac
4231  case $ac_prog in
4232    # Accept absolute paths.
4233    [\\/]* | ?:[\\/]*)
4234      re_direlt='/[^/][^/]*/\.\./'
4235      # Canonicalize the pathname of ld
4236      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4237      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4238	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4239      done
4240      test -z "$LD" && LD="$ac_prog"
4241      ;;
4242  "")
4243    # If it fails, then pretend we aren't using GCC.
4244    ac_prog=ld
4245    ;;
4246  *)
4247    # If it is relative, then search for the first ld in PATH.
4248    with_gnu_ld=unknown
4249    ;;
4250  esac
4251elif test "$with_gnu_ld" = yes; then
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4253$as_echo_n "checking for GNU ld... " >&6; }
4254else
4255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4256$as_echo_n "checking for non-GNU ld... " >&6; }
4257fi
4258if ${lt_cv_path_LD+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  if test -z "$LD"; then
4262  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4263  for ac_dir in $PATH; do
4264    IFS="$lt_save_ifs"
4265    test -z "$ac_dir" && ac_dir=.
4266    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4267      lt_cv_path_LD="$ac_dir/$ac_prog"
4268      # Check to see if the program is GNU ld.  I'd rather use --version,
4269      # but apparently some variants of GNU ld only accept -v.
4270      # Break only if it was the GNU/non-GNU ld that we prefer.
4271      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4272      *GNU* | *'with BFD'*)
4273	test "$with_gnu_ld" != no && break
4274	;;
4275      *)
4276	test "$with_gnu_ld" != yes && break
4277	;;
4278      esac
4279    fi
4280  done
4281  IFS="$lt_save_ifs"
4282else
4283  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4284fi
4285fi
4286
4287LD="$lt_cv_path_LD"
4288if test -n "$LD"; then
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4290$as_echo "$LD" >&6; }
4291else
4292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293$as_echo "no" >&6; }
4294fi
4295test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4297$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4298if ${lt_cv_prog_gnu_ld+:} false; then :
4299  $as_echo_n "(cached) " >&6
4300else
4301  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4302case `$LD -v 2>&1 </dev/null` in
4303*GNU* | *'with BFD'*)
4304  lt_cv_prog_gnu_ld=yes
4305  ;;
4306*)
4307  lt_cv_prog_gnu_ld=no
4308  ;;
4309esac
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4312$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4313with_gnu_ld=$lt_cv_prog_gnu_ld
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4324$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4325if ${lt_cv_path_NM+:} false; then :
4326  $as_echo_n "(cached) " >&6
4327else
4328  if test -n "$NM"; then
4329  # Let the user override the test.
4330  lt_cv_path_NM="$NM"
4331else
4332  lt_nm_to_check="${ac_tool_prefix}nm"
4333  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4334    lt_nm_to_check="$lt_nm_to_check nm"
4335  fi
4336  for lt_tmp_nm in $lt_nm_to_check; do
4337    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4338    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4339      IFS="$lt_save_ifs"
4340      test -z "$ac_dir" && ac_dir=.
4341      tmp_nm="$ac_dir/$lt_tmp_nm"
4342      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4343	# Check to see if the nm accepts a BSD-compat flag.
4344	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4345	#   nm: unknown option "B" ignored
4346	# Tru64's nm complains that /dev/null is an invalid object file
4347	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4348	*/dev/null* | *'Invalid file or object type'*)
4349	  lt_cv_path_NM="$tmp_nm -B"
4350	  break
4351	  ;;
4352	*)
4353	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4354	  */dev/null*)
4355	    lt_cv_path_NM="$tmp_nm -p"
4356	    break
4357	    ;;
4358	  *)
4359	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4360	    continue # so that we can try to find one that supports BSD flags
4361	    ;;
4362	  esac
4363	  ;;
4364	esac
4365      fi
4366    done
4367    IFS="$lt_save_ifs"
4368  done
4369  : ${lt_cv_path_NM=no}
4370fi
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4373$as_echo "$lt_cv_path_NM" >&6; }
4374if test "$lt_cv_path_NM" != "no"; then
4375  NM="$lt_cv_path_NM"
4376else
4377  # Didn't find any BSD compatible name lister, look for dumpbin.
4378  if test -n "$DUMPBIN"; then :
4379    # Let the user override the test.
4380  else
4381    if test -n "$ac_tool_prefix"; then
4382  for ac_prog in dumpbin "link -dump"
4383  do
4384    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4385set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387$as_echo_n "checking for $ac_word... " >&6; }
4388if ${ac_cv_prog_DUMPBIN+:} false; then :
4389  $as_echo_n "(cached) " >&6
4390else
4391  if test -n "$DUMPBIN"; then
4392  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397  IFS=$as_save_IFS
4398  test -z "$as_dir" && as_dir=.
4399    for ac_exec_ext in '' $ac_executable_extensions; do
4400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403    break 2
4404  fi
4405done
4406  done
4407IFS=$as_save_IFS
4408
4409fi
4410fi
4411DUMPBIN=$ac_cv_prog_DUMPBIN
4412if test -n "$DUMPBIN"; then
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4414$as_echo "$DUMPBIN" >&6; }
4415else
4416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
4418fi
4419
4420
4421    test -n "$DUMPBIN" && break
4422  done
4423fi
4424if test -z "$DUMPBIN"; then
4425  ac_ct_DUMPBIN=$DUMPBIN
4426  for ac_prog in dumpbin "link -dump"
4427do
4428  # Extract the first word of "$ac_prog", so it can be a program name with args.
4429set dummy $ac_prog; ac_word=$2
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431$as_echo_n "checking for $ac_word... " >&6; }
4432if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4433  $as_echo_n "(cached) " >&6
4434else
4435  if test -n "$ac_ct_DUMPBIN"; then
4436  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441  IFS=$as_save_IFS
4442  test -z "$as_dir" && as_dir=.
4443    for ac_exec_ext in '' $ac_executable_extensions; do
4444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447    break 2
4448  fi
4449done
4450  done
4451IFS=$as_save_IFS
4452
4453fi
4454fi
4455ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4456if test -n "$ac_ct_DUMPBIN"; then
4457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4458$as_echo "$ac_ct_DUMPBIN" >&6; }
4459else
4460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461$as_echo "no" >&6; }
4462fi
4463
4464
4465  test -n "$ac_ct_DUMPBIN" && break
4466done
4467
4468  if test "x$ac_ct_DUMPBIN" = x; then
4469    DUMPBIN=":"
4470  else
4471    case $cross_compiling:$ac_tool_warned in
4472yes:)
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475ac_tool_warned=yes ;;
4476esac
4477    DUMPBIN=$ac_ct_DUMPBIN
4478  fi
4479fi
4480
4481    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4482    *COFF*)
4483      DUMPBIN="$DUMPBIN -symbols"
4484      ;;
4485    *)
4486      DUMPBIN=:
4487      ;;
4488    esac
4489  fi
4490
4491  if test "$DUMPBIN" != ":"; then
4492    NM="$DUMPBIN"
4493  fi
4494fi
4495test -z "$NM" && NM=nm
4496
4497
4498
4499
4500
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4503$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4504if ${lt_cv_nm_interface+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  lt_cv_nm_interface="BSD nm"
4508  echo "int some_variable = 0;" > conftest.$ac_ext
4509  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4510  (eval "$ac_compile" 2>conftest.err)
4511  cat conftest.err >&5
4512  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4513  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4514  cat conftest.err >&5
4515  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4516  cat conftest.out >&5
4517  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4518    lt_cv_nm_interface="MS dumpbin"
4519  fi
4520  rm -f conftest*
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4523$as_echo "$lt_cv_nm_interface" >&6; }
4524
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4526$as_echo_n "checking whether ln -s works... " >&6; }
4527LN_S=$as_ln_s
4528if test "$LN_S" = "ln -s"; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530$as_echo "yes" >&6; }
4531else
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4533$as_echo "no, using $LN_S" >&6; }
4534fi
4535
4536# find the maximum length of command line arguments
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4538$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4539if ${lt_cv_sys_max_cmd_len+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542    i=0
4543  teststring="ABCD"
4544
4545  case $build_os in
4546  msdosdjgpp*)
4547    # On DJGPP, this test can blow up pretty badly due to problems in libc
4548    # (any single argument exceeding 2000 bytes causes a buffer overrun
4549    # during glob expansion).  Even if it were fixed, the result of this
4550    # check would be larger than it should be.
4551    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4552    ;;
4553
4554  gnu*)
4555    # Under GNU Hurd, this test is not required because there is
4556    # no limit to the length of command line arguments.
4557    # Libtool will interpret -1 as no limit whatsoever
4558    lt_cv_sys_max_cmd_len=-1;
4559    ;;
4560
4561  cygwin* | mingw* | cegcc*)
4562    # On Win9x/ME, this test blows up -- it succeeds, but takes
4563    # about 5 minutes as the teststring grows exponentially.
4564    # Worse, since 9x/ME are not pre-emptively multitasking,
4565    # you end up with a "frozen" computer, even though with patience
4566    # the test eventually succeeds (with a max line length of 256k).
4567    # Instead, let's just punt: use the minimum linelength reported by
4568    # all of the supported platforms: 8192 (on NT/2K/XP).
4569    lt_cv_sys_max_cmd_len=8192;
4570    ;;
4571
4572  mint*)
4573    # On MiNT this can take a long time and run out of memory.
4574    lt_cv_sys_max_cmd_len=8192;
4575    ;;
4576
4577  amigaos*)
4578    # On AmigaOS with pdksh, this test takes hours, literally.
4579    # So we just punt and use a minimum line length of 8192.
4580    lt_cv_sys_max_cmd_len=8192;
4581    ;;
4582
4583  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4584    # This has been around since 386BSD, at least.  Likely further.
4585    if test -x /sbin/sysctl; then
4586      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4587    elif test -x /usr/sbin/sysctl; then
4588      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4589    else
4590      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4591    fi
4592    # And add a safety zone
4593    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4594    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4595    ;;
4596
4597  interix*)
4598    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4599    lt_cv_sys_max_cmd_len=196608
4600    ;;
4601
4602  os2*)
4603    # The test takes a long time on OS/2.
4604    lt_cv_sys_max_cmd_len=8192
4605    ;;
4606
4607  osf*)
4608    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4609    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4610    # nice to cause kernel panics so lets avoid the loop below.
4611    # First set a reasonable default.
4612    lt_cv_sys_max_cmd_len=16384
4613    #
4614    if test -x /sbin/sysconfig; then
4615      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4616        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4617      esac
4618    fi
4619    ;;
4620  sco3.2v5*)
4621    lt_cv_sys_max_cmd_len=102400
4622    ;;
4623  sysv5* | sco5v6* | sysv4.2uw2*)
4624    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4625    if test -n "$kargmax"; then
4626      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4627    else
4628      lt_cv_sys_max_cmd_len=32768
4629    fi
4630    ;;
4631  *)
4632    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4633    if test -n "$lt_cv_sys_max_cmd_len" && \
4634	test undefined != "$lt_cv_sys_max_cmd_len"; then
4635      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4636      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4637    else
4638      # Make teststring a little bigger before we do anything with it.
4639      # a 1K string should be a reasonable start.
4640      for i in 1 2 3 4 5 6 7 8 ; do
4641        teststring=$teststring$teststring
4642      done
4643      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4644      # If test is not a shell built-in, we'll probably end up computing a
4645      # maximum length that is only half of the actual maximum length, but
4646      # we can't tell.
4647      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4648	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4649	      test $i != 17 # 1/2 MB should be enough
4650      do
4651        i=`expr $i + 1`
4652        teststring=$teststring$teststring
4653      done
4654      # Only check the string length outside the loop.
4655      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4656      teststring=
4657      # Add a significant safety factor because C++ compilers can tack on
4658      # massive amounts of additional arguments before passing them to the
4659      # linker.  It appears as though 1/2 is a usable value.
4660      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4661    fi
4662    ;;
4663  esac
4664
4665fi
4666
4667if test -n $lt_cv_sys_max_cmd_len ; then
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4669$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4670else
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4672$as_echo "none" >&6; }
4673fi
4674max_cmd_len=$lt_cv_sys_max_cmd_len
4675
4676
4677
4678
4679
4680
4681: ${CP="cp -f"}
4682: ${MV="mv -f"}
4683: ${RM="rm -f"}
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4686$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4687# Try some XSI features
4688xsi_shell=no
4689( _lt_dummy="a/b/c"
4690  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4691      = c,a/b,b/c, \
4692    && eval 'test $(( 1 + 1 )) -eq 2 \
4693    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4694  && xsi_shell=yes
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4696$as_echo "$xsi_shell" >&6; }
4697
4698
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4700$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4701lt_shell_append=no
4702( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4703    >/dev/null 2>&1 \
4704  && lt_shell_append=yes
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4706$as_echo "$lt_shell_append" >&6; }
4707
4708
4709if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4710  lt_unset=unset
4711else
4712  lt_unset=false
4713fi
4714
4715
4716
4717
4718
4719# test EBCDIC or ASCII
4720case `echo X|tr X '\101'` in
4721 A) # ASCII based system
4722    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4723  lt_SP2NL='tr \040 \012'
4724  lt_NL2SP='tr \015\012 \040\040'
4725  ;;
4726 *) # EBCDIC based system
4727  lt_SP2NL='tr \100 \n'
4728  lt_NL2SP='tr \r\n \100\100'
4729  ;;
4730esac
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4741$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4742if ${lt_cv_to_host_file_cmd+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  case $host in
4746  *-*-mingw* )
4747    case $build in
4748      *-*-mingw* ) # actually msys
4749        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4750        ;;
4751      *-*-cygwin* )
4752        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4753        ;;
4754      * ) # otherwise, assume *nix
4755        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4756        ;;
4757    esac
4758    ;;
4759  *-*-cygwin* )
4760    case $build in
4761      *-*-mingw* ) # actually msys
4762        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4763        ;;
4764      *-*-cygwin* )
4765        lt_cv_to_host_file_cmd=func_convert_file_noop
4766        ;;
4767      * ) # otherwise, assume *nix
4768        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4769        ;;
4770    esac
4771    ;;
4772  * ) # unhandled hosts (and "normal" native builds)
4773    lt_cv_to_host_file_cmd=func_convert_file_noop
4774    ;;
4775esac
4776
4777fi
4778
4779to_host_file_cmd=$lt_cv_to_host_file_cmd
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4781$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4782
4783
4784
4785
4786
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4788$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4789if ${lt_cv_to_tool_file_cmd+:} false; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792  #assume ordinary cross tools, or native build.
4793lt_cv_to_tool_file_cmd=func_convert_file_noop
4794case $host in
4795  *-*-mingw* )
4796    case $build in
4797      *-*-mingw* ) # actually msys
4798        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4799        ;;
4800    esac
4801    ;;
4802esac
4803
4804fi
4805
4806to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4808$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4809
4810
4811
4812
4813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4815$as_echo_n "checking for $LD option to reload object files... " >&6; }
4816if ${lt_cv_ld_reload_flag+:} false; then :
4817  $as_echo_n "(cached) " >&6
4818else
4819  lt_cv_ld_reload_flag='-r'
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4822$as_echo "$lt_cv_ld_reload_flag" >&6; }
4823reload_flag=$lt_cv_ld_reload_flag
4824case $reload_flag in
4825"" | " "*) ;;
4826*) reload_flag=" $reload_flag" ;;
4827esac
4828reload_cmds='$LD$reload_flag -o $output$reload_objs'
4829case $host_os in
4830  cygwin* | mingw* | pw32* | cegcc*)
4831    if test "$GCC" != yes; then
4832      reload_cmds=false
4833    fi
4834    ;;
4835  darwin*)
4836    if test "$GCC" = yes; then
4837      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4838    else
4839      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4840    fi
4841    ;;
4842esac
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852if test -n "$ac_tool_prefix"; then
4853  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4854set dummy ${ac_tool_prefix}objdump; ac_word=$2
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856$as_echo_n "checking for $ac_word... " >&6; }
4857if ${ac_cv_prog_OBJDUMP+:} false; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  if test -n "$OBJDUMP"; then
4861  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868    for ac_exec_ext in '' $ac_executable_extensions; do
4869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872    break 2
4873  fi
4874done
4875  done
4876IFS=$as_save_IFS
4877
4878fi
4879fi
4880OBJDUMP=$ac_cv_prog_OBJDUMP
4881if test -n "$OBJDUMP"; then
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4883$as_echo "$OBJDUMP" >&6; }
4884else
4885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886$as_echo "no" >&6; }
4887fi
4888
4889
4890fi
4891if test -z "$ac_cv_prog_OBJDUMP"; then
4892  ac_ct_OBJDUMP=$OBJDUMP
4893  # Extract the first word of "objdump", so it can be a program name with args.
4894set dummy objdump; ac_word=$2
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896$as_echo_n "checking for $ac_word... " >&6; }
4897if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  if test -n "$ac_ct_OBJDUMP"; then
4901  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4902else
4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906  IFS=$as_save_IFS
4907  test -z "$as_dir" && as_dir=.
4908    for ac_exec_ext in '' $ac_executable_extensions; do
4909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912    break 2
4913  fi
4914done
4915  done
4916IFS=$as_save_IFS
4917
4918fi
4919fi
4920ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4921if test -n "$ac_ct_OBJDUMP"; then
4922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4923$as_echo "$ac_ct_OBJDUMP" >&6; }
4924else
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926$as_echo "no" >&6; }
4927fi
4928
4929  if test "x$ac_ct_OBJDUMP" = x; then
4930    OBJDUMP="false"
4931  else
4932    case $cross_compiling:$ac_tool_warned in
4933yes:)
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4936ac_tool_warned=yes ;;
4937esac
4938    OBJDUMP=$ac_ct_OBJDUMP
4939  fi
4940else
4941  OBJDUMP="$ac_cv_prog_OBJDUMP"
4942fi
4943
4944test -z "$OBJDUMP" && OBJDUMP=objdump
4945
4946
4947
4948
4949
4950
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4952$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4953if ${lt_cv_deplibs_check_method+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  lt_cv_file_magic_cmd='$MAGIC_CMD'
4957lt_cv_file_magic_test_file=
4958lt_cv_deplibs_check_method='unknown'
4959# Need to set the preceding variable on all platforms that support
4960# interlibrary dependencies.
4961# 'none' -- dependencies not supported.
4962# `unknown' -- same as none, but documents that we really don't know.
4963# 'pass_all' -- all dependencies passed with no checks.
4964# 'test_compile' -- check by making test program.
4965# 'file_magic [[regex]]' -- check by looking for files in library path
4966# which responds to the $file_magic_cmd with a given extended regex.
4967# If you have `file' or equivalent on your system and you're not sure
4968# whether `pass_all' will *always* work, you probably want this one.
4969
4970case $host_os in
4971aix[4-9]*)
4972  lt_cv_deplibs_check_method=pass_all
4973  ;;
4974
4975beos*)
4976  lt_cv_deplibs_check_method=pass_all
4977  ;;
4978
4979bsdi[45]*)
4980  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4981  lt_cv_file_magic_cmd='/usr/bin/file -L'
4982  lt_cv_file_magic_test_file=/shlib/libc.so
4983  ;;
4984
4985cygwin*)
4986  # func_win32_libid is a shell function defined in ltmain.sh
4987  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4988  lt_cv_file_magic_cmd='func_win32_libid'
4989  ;;
4990
4991mingw* | pw32*)
4992  # Base MSYS/MinGW do not provide the 'file' command needed by
4993  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4994  # unless we find 'file', for example because we are cross-compiling.
4995  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4996  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4997    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4998    lt_cv_file_magic_cmd='func_win32_libid'
4999  else
5000    # Keep this pattern in sync with the one in func_win32_libid.
5001    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5002    lt_cv_file_magic_cmd='$OBJDUMP -f'
5003  fi
5004  ;;
5005
5006cegcc*)
5007  # use the weaker test based on 'objdump'. See mingw*.
5008  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5009  lt_cv_file_magic_cmd='$OBJDUMP -f'
5010  ;;
5011
5012darwin* | rhapsody*)
5013  lt_cv_deplibs_check_method=pass_all
5014  ;;
5015
5016freebsd* | dragonfly*)
5017  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5018    case $host_cpu in
5019    i*86 )
5020      # Not sure whether the presence of OpenBSD here was a mistake.
5021      # Let's accept both of them until this is cleared up.
5022      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5023      lt_cv_file_magic_cmd=/usr/bin/file
5024      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5025      ;;
5026    esac
5027  else
5028    lt_cv_deplibs_check_method=pass_all
5029  fi
5030  ;;
5031
5032haiku*)
5033  lt_cv_deplibs_check_method=pass_all
5034  ;;
5035
5036hpux10.20* | hpux11*)
5037  lt_cv_file_magic_cmd=/usr/bin/file
5038  case $host_cpu in
5039  ia64*)
5040    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5041    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5042    ;;
5043  hppa*64*)
5044    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]'
5045    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5046    ;;
5047  *)
5048    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5049    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5050    ;;
5051  esac
5052  ;;
5053
5054interix[3-9]*)
5055  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5056  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5057  ;;
5058
5059irix5* | irix6* | nonstopux*)
5060  case $LD in
5061  *-32|*"-32 ") libmagic=32-bit;;
5062  *-n32|*"-n32 ") libmagic=N32;;
5063  *-64|*"-64 ") libmagic=64-bit;;
5064  *) libmagic=never-match;;
5065  esac
5066  lt_cv_deplibs_check_method=pass_all
5067  ;;
5068
5069# This must be glibc/ELF.
5070linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5071  lt_cv_deplibs_check_method=pass_all
5072  ;;
5073
5074netbsd* | netbsdelf*-gnu)
5075  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5076    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5077  else
5078    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5079  fi
5080  ;;
5081
5082newos6*)
5083  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5084  lt_cv_file_magic_cmd=/usr/bin/file
5085  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5086  ;;
5087
5088*nto* | *qnx*)
5089  lt_cv_deplibs_check_method=pass_all
5090  ;;
5091
5092openbsd*)
5093  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5094    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5095  else
5096    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5097  fi
5098  ;;
5099
5100osf3* | osf4* | osf5*)
5101  lt_cv_deplibs_check_method=pass_all
5102  ;;
5103
5104rdos*)
5105  lt_cv_deplibs_check_method=pass_all
5106  ;;
5107
5108solaris*)
5109  lt_cv_deplibs_check_method=pass_all
5110  ;;
5111
5112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5113  lt_cv_deplibs_check_method=pass_all
5114  ;;
5115
5116sysv4 | sysv4.3*)
5117  case $host_vendor in
5118  motorola)
5119    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]'
5120    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5121    ;;
5122  ncr)
5123    lt_cv_deplibs_check_method=pass_all
5124    ;;
5125  sequent)
5126    lt_cv_file_magic_cmd='/bin/file'
5127    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5128    ;;
5129  sni)
5130    lt_cv_file_magic_cmd='/bin/file'
5131    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5132    lt_cv_file_magic_test_file=/lib/libc.so
5133    ;;
5134  siemens)
5135    lt_cv_deplibs_check_method=pass_all
5136    ;;
5137  pc)
5138    lt_cv_deplibs_check_method=pass_all
5139    ;;
5140  esac
5141  ;;
5142
5143tpf*)
5144  lt_cv_deplibs_check_method=pass_all
5145  ;;
5146esac
5147
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5150$as_echo "$lt_cv_deplibs_check_method" >&6; }
5151
5152file_magic_glob=
5153want_nocaseglob=no
5154if test "$build" = "$host"; then
5155  case $host_os in
5156  mingw* | pw32*)
5157    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5158      want_nocaseglob=yes
5159    else
5160      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5161    fi
5162    ;;
5163  esac
5164fi
5165
5166file_magic_cmd=$lt_cv_file_magic_cmd
5167deplibs_check_method=$lt_cv_deplibs_check_method
5168test -z "$deplibs_check_method" && deplibs_check_method=unknown
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191if test -n "$ac_tool_prefix"; then
5192  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5193set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
5196if ${ac_cv_prog_DLLTOOL+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  if test -n "$DLLTOOL"; then
5200  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205  IFS=$as_save_IFS
5206  test -z "$as_dir" && as_dir=.
5207    for ac_exec_ext in '' $ac_executable_extensions; do
5208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211    break 2
5212  fi
5213done
5214  done
5215IFS=$as_save_IFS
5216
5217fi
5218fi
5219DLLTOOL=$ac_cv_prog_DLLTOOL
5220if test -n "$DLLTOOL"; then
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5222$as_echo "$DLLTOOL" >&6; }
5223else
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227
5228
5229fi
5230if test -z "$ac_cv_prog_DLLTOOL"; then
5231  ac_ct_DLLTOOL=$DLLTOOL
5232  # Extract the first word of "dlltool", so it can be a program name with args.
5233set dummy dlltool; ac_word=$2
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235$as_echo_n "checking for $ac_word... " >&6; }
5236if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239  if test -n "$ac_ct_DLLTOOL"; then
5240  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5241else
5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245  IFS=$as_save_IFS
5246  test -z "$as_dir" && as_dir=.
5247    for ac_exec_ext in '' $ac_executable_extensions; do
5248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251    break 2
5252  fi
5253done
5254  done
5255IFS=$as_save_IFS
5256
5257fi
5258fi
5259ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5260if test -n "$ac_ct_DLLTOOL"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5262$as_echo "$ac_ct_DLLTOOL" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268  if test "x$ac_ct_DLLTOOL" = x; then
5269    DLLTOOL="false"
5270  else
5271    case $cross_compiling:$ac_tool_warned in
5272yes:)
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275ac_tool_warned=yes ;;
5276esac
5277    DLLTOOL=$ac_ct_DLLTOOL
5278  fi
5279else
5280  DLLTOOL="$ac_cv_prog_DLLTOOL"
5281fi
5282
5283test -z "$DLLTOOL" && DLLTOOL=dlltool
5284
5285
5286
5287
5288
5289
5290
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5292$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5293if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  lt_cv_sharedlib_from_linklib_cmd='unknown'
5297
5298case $host_os in
5299cygwin* | mingw* | pw32* | cegcc*)
5300  # two different shell functions defined in ltmain.sh
5301  # decide which to use based on capabilities of $DLLTOOL
5302  case `$DLLTOOL --help 2>&1` in
5303  *--identify-strict*)
5304    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5305    ;;
5306  *)
5307    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5308    ;;
5309  esac
5310  ;;
5311*)
5312  # fallback: assume linklib IS sharedlib
5313  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5314  ;;
5315esac
5316
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5319$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5320sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5321test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5322
5323
5324
5325
5326
5327
5328
5329
5330if test -n "$ac_tool_prefix"; then
5331  for ac_prog in ar
5332  do
5333    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336$as_echo_n "checking for $ac_word... " >&6; }
5337if ${ac_cv_prog_AR+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  if test -n "$AR"; then
5341  ac_cv_prog_AR="$AR" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346  IFS=$as_save_IFS
5347  test -z "$as_dir" && as_dir=.
5348    for ac_exec_ext in '' $ac_executable_extensions; do
5349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352    break 2
5353  fi
5354done
5355  done
5356IFS=$as_save_IFS
5357
5358fi
5359fi
5360AR=$ac_cv_prog_AR
5361if test -n "$AR"; then
5362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5363$as_echo "$AR" >&6; }
5364else
5365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367fi
5368
5369
5370    test -n "$AR" && break
5371  done
5372fi
5373if test -z "$AR"; then
5374  ac_ct_AR=$AR
5375  for ac_prog in ar
5376do
5377  # Extract the first word of "$ac_prog", so it can be a program name with args.
5378set dummy $ac_prog; ac_word=$2
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
5381if ${ac_cv_prog_ac_ct_AR+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  if test -n "$ac_ct_AR"; then
5385  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392    for ac_exec_ext in '' $ac_executable_extensions; do
5393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394    ac_cv_prog_ac_ct_AR="$ac_prog"
5395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399  done
5400IFS=$as_save_IFS
5401
5402fi
5403fi
5404ac_ct_AR=$ac_cv_prog_ac_ct_AR
5405if test -n "$ac_ct_AR"; then
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5407$as_echo "$ac_ct_AR" >&6; }
5408else
5409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
5411fi
5412
5413
5414  test -n "$ac_ct_AR" && break
5415done
5416
5417  if test "x$ac_ct_AR" = x; then
5418    AR="false"
5419  else
5420    case $cross_compiling:$ac_tool_warned in
5421yes:)
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424ac_tool_warned=yes ;;
5425esac
5426    AR=$ac_ct_AR
5427  fi
5428fi
5429
5430: ${AR=ar}
5431: ${AR_FLAGS=cru}
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5444$as_echo_n "checking for archiver @FILE support... " >&6; }
5445if ${lt_cv_ar_at_file+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  lt_cv_ar_at_file=no
5449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451
5452int
5453main ()
5454{
5455
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_compile "$LINENO"; then :
5461  echo conftest.$ac_objext > conftest.lst
5462      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5463      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5464  (eval $lt_ar_try) 2>&5
5465  ac_status=$?
5466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467  test $ac_status = 0; }
5468      if test "$ac_status" -eq 0; then
5469	# Ensure the archiver fails upon bogus file names.
5470	rm -f conftest.$ac_objext libconftest.a
5471	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5472  (eval $lt_ar_try) 2>&5
5473  ac_status=$?
5474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475  test $ac_status = 0; }
5476	if test "$ac_status" -ne 0; then
5477          lt_cv_ar_at_file=@
5478        fi
5479      fi
5480      rm -f conftest.* libconftest.a
5481
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5487$as_echo "$lt_cv_ar_at_file" >&6; }
5488
5489if test "x$lt_cv_ar_at_file" = xno; then
5490  archiver_list_spec=
5491else
5492  archiver_list_spec=$lt_cv_ar_at_file
5493fi
5494
5495
5496
5497
5498
5499
5500
5501if test -n "$ac_tool_prefix"; then
5502  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}strip; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
5506if ${ac_cv_prog_STRIP+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  if test -n "$STRIP"; then
5510  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515  IFS=$as_save_IFS
5516  test -z "$as_dir" && as_dir=.
5517    for ac_exec_ext in '' $ac_executable_extensions; do
5518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521    break 2
5522  fi
5523done
5524  done
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529STRIP=$ac_cv_prog_STRIP
5530if test -n "$STRIP"; then
5531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5532$as_echo "$STRIP" >&6; }
5533else
5534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538
5539fi
5540if test -z "$ac_cv_prog_STRIP"; then
5541  ac_ct_STRIP=$STRIP
5542  # Extract the first word of "strip", so it can be a program name with args.
5543set dummy strip; ac_word=$2
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
5546if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5547  $as_echo_n "(cached) " >&6
5548else
5549  if test -n "$ac_ct_STRIP"; then
5550  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555  IFS=$as_save_IFS
5556  test -z "$as_dir" && as_dir=.
5557    for ac_exec_ext in '' $ac_executable_extensions; do
5558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559    ac_cv_prog_ac_ct_STRIP="strip"
5560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561    break 2
5562  fi
5563done
5564  done
5565IFS=$as_save_IFS
5566
5567fi
5568fi
5569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570if test -n "$ac_ct_STRIP"; then
5571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5572$as_echo "$ac_ct_STRIP" >&6; }
5573else
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576fi
5577
5578  if test "x$ac_ct_STRIP" = x; then
5579    STRIP=":"
5580  else
5581    case $cross_compiling:$ac_tool_warned in
5582yes:)
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587    STRIP=$ac_ct_STRIP
5588  fi
5589else
5590  STRIP="$ac_cv_prog_STRIP"
5591fi
5592
5593test -z "$STRIP" && STRIP=:
5594
5595
5596
5597
5598
5599
5600if test -n "$ac_tool_prefix"; then
5601  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5602set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if ${ac_cv_prog_RANLIB+:} false; then :
5606  $as_echo_n "(cached) " >&6
5607else
5608  if test -n "$RANLIB"; then
5609  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614  IFS=$as_save_IFS
5615  test -z "$as_dir" && as_dir=.
5616    for ac_exec_ext in '' $ac_executable_extensions; do
5617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620    break 2
5621  fi
5622done
5623  done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628RANLIB=$ac_cv_prog_RANLIB
5629if test -n "$RANLIB"; then
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5631$as_echo "$RANLIB" >&6; }
5632else
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637
5638fi
5639if test -z "$ac_cv_prog_RANLIB"; then
5640  ac_ct_RANLIB=$RANLIB
5641  # Extract the first word of "ranlib", so it can be a program name with args.
5642set dummy ranlib; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  if test -n "$ac_ct_RANLIB"; then
5649  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658    ac_cv_prog_ac_ct_RANLIB="ranlib"
5659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5669if test -n "$ac_ct_RANLIB"; then
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5671$as_echo "$ac_ct_RANLIB" >&6; }
5672else
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675fi
5676
5677  if test "x$ac_ct_RANLIB" = x; then
5678    RANLIB=":"
5679  else
5680    case $cross_compiling:$ac_tool_warned in
5681yes:)
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684ac_tool_warned=yes ;;
5685esac
5686    RANLIB=$ac_ct_RANLIB
5687  fi
5688else
5689  RANLIB="$ac_cv_prog_RANLIB"
5690fi
5691
5692test -z "$RANLIB" && RANLIB=:
5693
5694
5695
5696
5697
5698
5699# Determine commands to create old-style static archives.
5700old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5701old_postinstall_cmds='chmod 644 $oldlib'
5702old_postuninstall_cmds=
5703
5704if test -n "$RANLIB"; then
5705  case $host_os in
5706  openbsd*)
5707    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5708    ;;
5709  *)
5710    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5711    ;;
5712  esac
5713  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5714fi
5715
5716case $host_os in
5717  darwin*)
5718    lock_old_archive_extraction=yes ;;
5719  *)
5720    lock_old_archive_extraction=no ;;
5721esac
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761# If no C compiler was specified, use CC.
5762LTCC=${LTCC-"$CC"}
5763
5764# If no C compiler flags were specified, use CFLAGS.
5765LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5766
5767# Allow CC to be a program name with arguments.
5768compiler=$CC
5769
5770
5771# Check for command to grab the raw symbol name followed by C symbol from nm.
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5773$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5774if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777
5778# These are sane defaults that work on at least a few old systems.
5779# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5780
5781# Character class describing NM global symbol codes.
5782symcode='[BCDEGRST]'
5783
5784# Regexp to match symbols that can be accessed directly from C.
5785sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5786
5787# Define system-specific variables.
5788case $host_os in
5789aix*)
5790  symcode='[BCDT]'
5791  ;;
5792cygwin* | mingw* | pw32* | cegcc*)
5793  symcode='[ABCDGISTW]'
5794  ;;
5795hpux*)
5796  if test "$host_cpu" = ia64; then
5797    symcode='[ABCDEGRST]'
5798  fi
5799  ;;
5800irix* | nonstopux*)
5801  symcode='[BCDEGRST]'
5802  ;;
5803osf*)
5804  symcode='[BCDEGQRST]'
5805  ;;
5806solaris*)
5807  symcode='[BDRT]'
5808  ;;
5809sco3.2v5*)
5810  symcode='[DT]'
5811  ;;
5812sysv4.2uw2*)
5813  symcode='[DT]'
5814  ;;
5815sysv5* | sco5v6* | unixware* | OpenUNIX*)
5816  symcode='[ABDT]'
5817  ;;
5818sysv4)
5819  symcode='[DFNSTU]'
5820  ;;
5821esac
5822
5823# If we're using GNU nm, then use its standard symbol codes.
5824case `$NM -V 2>&1` in
5825*GNU* | *'with BFD'*)
5826  symcode='[ABCDGIRSTW]' ;;
5827esac
5828
5829# Transform an extracted symbol line into a proper C declaration.
5830# Some systems (esp. on ia64) link data and code symbols differently,
5831# so use this general approach.
5832lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5833
5834# Transform an extracted symbol line into symbol name and symbol address
5835lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5836lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5837
5838# Handle CRLF in mingw tool chain
5839opt_cr=
5840case $build_os in
5841mingw*)
5842  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5843  ;;
5844esac
5845
5846# Try without a prefix underscore, then with it.
5847for ac_symprfx in "" "_"; do
5848
5849  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5850  symxfrm="\\1 $ac_symprfx\\2 \\2"
5851
5852  # Write the raw and C identifiers.
5853  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5854    # Fake it for dumpbin and say T for any non-static function
5855    # and D for any global variable.
5856    # Also find C++ and __fastcall symbols from MSVC++,
5857    # which start with @ or ?.
5858    lt_cv_sys_global_symbol_pipe="$AWK '"\
5859"     {last_section=section; section=\$ 3};"\
5860"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5861"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5862"     \$ 0!~/External *\|/{next};"\
5863"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5864"     {if(hide[section]) next};"\
5865"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5866"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5867"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5868"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5869"     ' prfx=^$ac_symprfx"
5870  else
5871    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5872  fi
5873  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5874
5875  # Check to see that the pipe works correctly.
5876  pipe_works=no
5877
5878  rm -f conftest*
5879  cat > conftest.$ac_ext <<_LT_EOF
5880#ifdef __cplusplus
5881extern "C" {
5882#endif
5883char nm_test_var;
5884void nm_test_func(void);
5885void nm_test_func(void){}
5886#ifdef __cplusplus
5887}
5888#endif
5889int main(){nm_test_var='a';nm_test_func();return(0);}
5890_LT_EOF
5891
5892  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5893  (eval $ac_compile) 2>&5
5894  ac_status=$?
5895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896  test $ac_status = 0; }; then
5897    # Now try to grab the symbols.
5898    nlist=conftest.nm
5899    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5900  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5901  ac_status=$?
5902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903  test $ac_status = 0; } && test -s "$nlist"; then
5904      # Try sorting and uniquifying the output.
5905      if sort "$nlist" | uniq > "$nlist"T; then
5906	mv -f "$nlist"T "$nlist"
5907      else
5908	rm -f "$nlist"T
5909      fi
5910
5911      # Make sure that we snagged all the symbols we need.
5912      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5913	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5914	  cat <<_LT_EOF > conftest.$ac_ext
5915/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5916#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5917/* DATA imports from DLLs on WIN32 con't be const, because runtime
5918   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5919# define LT_DLSYM_CONST
5920#elif defined(__osf__)
5921/* This system does not cope well with relocations in const data.  */
5922# define LT_DLSYM_CONST
5923#else
5924# define LT_DLSYM_CONST const
5925#endif
5926
5927#ifdef __cplusplus
5928extern "C" {
5929#endif
5930
5931_LT_EOF
5932	  # Now generate the symbol file.
5933	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5934
5935	  cat <<_LT_EOF >> conftest.$ac_ext
5936
5937/* The mapping between symbol names and symbols.  */
5938LT_DLSYM_CONST struct {
5939  const char *name;
5940  void       *address;
5941}
5942lt__PROGRAM__LTX_preloaded_symbols[] =
5943{
5944  { "@PROGRAM@", (void *) 0 },
5945_LT_EOF
5946	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5947	  cat <<\_LT_EOF >> conftest.$ac_ext
5948  {0, (void *) 0}
5949};
5950
5951/* This works around a problem in FreeBSD linker */
5952#ifdef FREEBSD_WORKAROUND
5953static const void *lt_preloaded_setup() {
5954  return lt__PROGRAM__LTX_preloaded_symbols;
5955}
5956#endif
5957
5958#ifdef __cplusplus
5959}
5960#endif
5961_LT_EOF
5962	  # Now try linking the two files.
5963	  mv conftest.$ac_objext conftstm.$ac_objext
5964	  lt_globsym_save_LIBS=$LIBS
5965	  lt_globsym_save_CFLAGS=$CFLAGS
5966	  LIBS="conftstm.$ac_objext"
5967	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5968	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5969  (eval $ac_link) 2>&5
5970  ac_status=$?
5971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5973	    pipe_works=yes
5974	  fi
5975	  LIBS=$lt_globsym_save_LIBS
5976	  CFLAGS=$lt_globsym_save_CFLAGS
5977	else
5978	  echo "cannot find nm_test_func in $nlist" >&5
5979	fi
5980      else
5981	echo "cannot find nm_test_var in $nlist" >&5
5982      fi
5983    else
5984      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5985    fi
5986  else
5987    echo "$progname: failed program was:" >&5
5988    cat conftest.$ac_ext >&5
5989  fi
5990  rm -rf conftest* conftst*
5991
5992  # Do not use the global_symbol_pipe unless it works.
5993  if test "$pipe_works" = yes; then
5994    break
5995  else
5996    lt_cv_sys_global_symbol_pipe=
5997  fi
5998done
5999
6000fi
6001
6002if test -z "$lt_cv_sys_global_symbol_pipe"; then
6003  lt_cv_sys_global_symbol_to_cdecl=
6004fi
6005if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6007$as_echo "failed" >&6; }
6008else
6009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6010$as_echo "ok" >&6; }
6011fi
6012
6013# Response file support.
6014if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6015  nm_file_list_spec='@'
6016elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6017  nm_file_list_spec='@'
6018fi
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6047$as_echo_n "checking for sysroot... " >&6; }
6048
6049# Check whether --with-sysroot was given.
6050if test "${with_sysroot+set}" = set; then :
6051  withval=$with_sysroot;
6052else
6053  with_sysroot=no
6054fi
6055
6056
6057lt_sysroot=
6058case ${with_sysroot} in #(
6059 yes)
6060   if test "$GCC" = yes; then
6061     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6062   fi
6063   ;; #(
6064 /*)
6065   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6066   ;; #(
6067 no|'')
6068   ;; #(
6069 *)
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6071$as_echo "${with_sysroot}" >&6; }
6072   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6073   ;;
6074esac
6075
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6077$as_echo "${lt_sysroot:-no}" >&6; }
6078
6079
6080
6081
6082
6083# Check whether --enable-libtool-lock was given.
6084if test "${enable_libtool_lock+set}" = set; then :
6085  enableval=$enable_libtool_lock;
6086fi
6087
6088test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6089
6090# Some flags need to be propagated to the compiler or linker for good
6091# libtool support.
6092case $host in
6093ia64-*-hpux*)
6094  # Find out which ABI we are using.
6095  echo 'int i;' > conftest.$ac_ext
6096  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097  (eval $ac_compile) 2>&5
6098  ac_status=$?
6099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100  test $ac_status = 0; }; then
6101    case `/usr/bin/file conftest.$ac_objext` in
6102      *ELF-32*)
6103	HPUX_IA64_MODE="32"
6104	;;
6105      *ELF-64*)
6106	HPUX_IA64_MODE="64"
6107	;;
6108    esac
6109  fi
6110  rm -rf conftest*
6111  ;;
6112*-*-irix6*)
6113  # Find out which ABI we are using.
6114  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6115  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6116  (eval $ac_compile) 2>&5
6117  ac_status=$?
6118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119  test $ac_status = 0; }; then
6120    if test "$lt_cv_prog_gnu_ld" = yes; then
6121      case `/usr/bin/file conftest.$ac_objext` in
6122	*32-bit*)
6123	  LD="${LD-ld} -melf32bsmip"
6124	  ;;
6125	*N32*)
6126	  LD="${LD-ld} -melf32bmipn32"
6127	  ;;
6128	*64-bit*)
6129	  LD="${LD-ld} -melf64bmip"
6130	;;
6131      esac
6132    else
6133      case `/usr/bin/file conftest.$ac_objext` in
6134	*32-bit*)
6135	  LD="${LD-ld} -32"
6136	  ;;
6137	*N32*)
6138	  LD="${LD-ld} -n32"
6139	  ;;
6140	*64-bit*)
6141	  LD="${LD-ld} -64"
6142	  ;;
6143      esac
6144    fi
6145  fi
6146  rm -rf conftest*
6147  ;;
6148
6149x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6150s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6151  # Find out which ABI we are using.
6152  echo 'int i;' > conftest.$ac_ext
6153  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6154  (eval $ac_compile) 2>&5
6155  ac_status=$?
6156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157  test $ac_status = 0; }; then
6158    case `/usr/bin/file conftest.o` in
6159      *32-bit*)
6160	case $host in
6161	  x86_64-*kfreebsd*-gnu)
6162	    LD="${LD-ld} -m elf_i386_fbsd"
6163	    ;;
6164	  x86_64-*linux*)
6165	    case `/usr/bin/file conftest.o` in
6166	      *x86-64*)
6167		LD="${LD-ld} -m elf32_x86_64"
6168		;;
6169	      *)
6170		LD="${LD-ld} -m elf_i386"
6171		;;
6172	    esac
6173	    ;;
6174	  powerpc64le-*)
6175	    LD="${LD-ld} -m elf32lppclinux"
6176	    ;;
6177	  powerpc64-*)
6178	    LD="${LD-ld} -m elf32ppclinux"
6179	    ;;
6180	  s390x-*linux*)
6181	    LD="${LD-ld} -m elf_s390"
6182	    ;;
6183	  sparc64-*linux*)
6184	    LD="${LD-ld} -m elf32_sparc"
6185	    ;;
6186	esac
6187	;;
6188      *64-bit*)
6189	case $host in
6190	  x86_64-*kfreebsd*-gnu)
6191	    LD="${LD-ld} -m elf_x86_64_fbsd"
6192	    ;;
6193	  x86_64-*linux*)
6194	    LD="${LD-ld} -m elf_x86_64"
6195	    ;;
6196	  powerpcle-*)
6197	    LD="${LD-ld} -m elf64lppc"
6198	    ;;
6199	  powerpc-*)
6200	    LD="${LD-ld} -m elf64ppc"
6201	    ;;
6202	  s390*-*linux*|s390*-*tpf*)
6203	    LD="${LD-ld} -m elf64_s390"
6204	    ;;
6205	  sparc*-*linux*)
6206	    LD="${LD-ld} -m elf64_sparc"
6207	    ;;
6208	esac
6209	;;
6210    esac
6211  fi
6212  rm -rf conftest*
6213  ;;
6214
6215*-*-sco3.2v5*)
6216  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6217  SAVE_CFLAGS="$CFLAGS"
6218  CFLAGS="$CFLAGS -belf"
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6220$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6221if ${lt_cv_cc_needs_belf+:} false; then :
6222  $as_echo_n "(cached) " >&6
6223else
6224  ac_ext=c
6225ac_cpp='$CPP $CPPFLAGS'
6226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229
6230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231/* end confdefs.h.  */
6232
6233int
6234main ()
6235{
6236
6237  ;
6238  return 0;
6239}
6240_ACEOF
6241if ac_fn_c_try_link "$LINENO"; then :
6242  lt_cv_cc_needs_belf=yes
6243else
6244  lt_cv_cc_needs_belf=no
6245fi
6246rm -f core conftest.err conftest.$ac_objext \
6247    conftest$ac_exeext conftest.$ac_ext
6248     ac_ext=c
6249ac_cpp='$CPP $CPPFLAGS'
6250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6256$as_echo "$lt_cv_cc_needs_belf" >&6; }
6257  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6258    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6259    CFLAGS="$SAVE_CFLAGS"
6260  fi
6261  ;;
6262*-*solaris*)
6263  # Find out which ABI we are using.
6264  echo 'int i;' > conftest.$ac_ext
6265  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6266  (eval $ac_compile) 2>&5
6267  ac_status=$?
6268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269  test $ac_status = 0; }; then
6270    case `/usr/bin/file conftest.o` in
6271    *64-bit*)
6272      case $lt_cv_prog_gnu_ld in
6273      yes*)
6274        case $host in
6275        i?86-*-solaris*)
6276          LD="${LD-ld} -m elf_x86_64"
6277          ;;
6278        sparc*-*-solaris*)
6279          LD="${LD-ld} -m elf64_sparc"
6280          ;;
6281        esac
6282        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6283        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6284          LD="${LD-ld}_sol2"
6285        fi
6286        ;;
6287      *)
6288	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6289	  LD="${LD-ld} -64"
6290	fi
6291	;;
6292      esac
6293      ;;
6294    esac
6295  fi
6296  rm -rf conftest*
6297  ;;
6298esac
6299
6300need_locks="$enable_libtool_lock"
6301
6302if test -n "$ac_tool_prefix"; then
6303  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6304set dummy ${ac_tool_prefix}mt; ac_word=$2
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306$as_echo_n "checking for $ac_word... " >&6; }
6307if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  if test -n "$MANIFEST_TOOL"; then
6311  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316  IFS=$as_save_IFS
6317  test -z "$as_dir" && as_dir=.
6318    for ac_exec_ext in '' $ac_executable_extensions; do
6319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322    break 2
6323  fi
6324done
6325  done
6326IFS=$as_save_IFS
6327
6328fi
6329fi
6330MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6331if test -n "$MANIFEST_TOOL"; then
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6333$as_echo "$MANIFEST_TOOL" >&6; }
6334else
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336$as_echo "no" >&6; }
6337fi
6338
6339
6340fi
6341if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6342  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6343  # Extract the first word of "mt", so it can be a program name with args.
6344set dummy mt; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  if test -n "$ac_ct_MANIFEST_TOOL"; then
6351  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  test -z "$as_dir" && as_dir=.
6358    for ac_exec_ext in '' $ac_executable_extensions; do
6359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365  done
6366IFS=$as_save_IFS
6367
6368fi
6369fi
6370ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6371if test -n "$ac_ct_MANIFEST_TOOL"; then
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6373$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6374else
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6380    MANIFEST_TOOL=":"
6381  else
6382    case $cross_compiling:$ac_tool_warned in
6383yes:)
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386ac_tool_warned=yes ;;
6387esac
6388    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6389  fi
6390else
6391  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6392fi
6393
6394test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6396$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6397if ${lt_cv_path_mainfest_tool+:} false; then :
6398  $as_echo_n "(cached) " >&6
6399else
6400  lt_cv_path_mainfest_tool=no
6401  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6402  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6403  cat conftest.err >&5
6404  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6405    lt_cv_path_mainfest_tool=yes
6406  fi
6407  rm -f conftest*
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6410$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6411if test "x$lt_cv_path_mainfest_tool" != xyes; then
6412  MANIFEST_TOOL=:
6413fi
6414
6415
6416
6417
6418
6419
6420  case $host_os in
6421    rhapsody* | darwin*)
6422    if test -n "$ac_tool_prefix"; then
6423  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6424set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if ${ac_cv_prog_DSYMUTIL+:} false; then :
6428  $as_echo_n "(cached) " >&6
6429else
6430  if test -n "$DSYMUTIL"; then
6431  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438    for ac_exec_ext in '' $ac_executable_extensions; do
6439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445  done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450DSYMUTIL=$ac_cv_prog_DSYMUTIL
6451if test -n "$DSYMUTIL"; then
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6453$as_echo "$DSYMUTIL" >&6; }
6454else
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459
6460fi
6461if test -z "$ac_cv_prog_DSYMUTIL"; then
6462  ac_ct_DSYMUTIL=$DSYMUTIL
6463  # Extract the first word of "dsymutil", so it can be a program name with args.
6464set dummy dsymutil; ac_word=$2
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  if test -n "$ac_ct_DSYMUTIL"; then
6471  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6491if test -n "$ac_ct_DSYMUTIL"; then
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6493$as_echo "$ac_ct_DSYMUTIL" >&6; }
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499  if test "x$ac_ct_DSYMUTIL" = x; then
6500    DSYMUTIL=":"
6501  else
6502    case $cross_compiling:$ac_tool_warned in
6503yes:)
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506ac_tool_warned=yes ;;
6507esac
6508    DSYMUTIL=$ac_ct_DSYMUTIL
6509  fi
6510else
6511  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6512fi
6513
6514    if test -n "$ac_tool_prefix"; then
6515  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6516set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if ${ac_cv_prog_NMEDIT+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522  if test -n "$NMEDIT"; then
6523  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6524else
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528  IFS=$as_save_IFS
6529  test -z "$as_dir" && as_dir=.
6530    for ac_exec_ext in '' $ac_executable_extensions; do
6531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534    break 2
6535  fi
6536done
6537  done
6538IFS=$as_save_IFS
6539
6540fi
6541fi
6542NMEDIT=$ac_cv_prog_NMEDIT
6543if test -n "$NMEDIT"; then
6544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6545$as_echo "$NMEDIT" >&6; }
6546else
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548$as_echo "no" >&6; }
6549fi
6550
6551
6552fi
6553if test -z "$ac_cv_prog_NMEDIT"; then
6554  ac_ct_NMEDIT=$NMEDIT
6555  # Extract the first word of "nmedit", so it can be a program name with args.
6556set dummy nmedit; ac_word=$2
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  if test -n "$ac_ct_NMEDIT"; then
6563  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570    for ac_exec_ext in '' $ac_executable_extensions; do
6571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574    break 2
6575  fi
6576done
6577  done
6578IFS=$as_save_IFS
6579
6580fi
6581fi
6582ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6583if test -n "$ac_ct_NMEDIT"; then
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6585$as_echo "$ac_ct_NMEDIT" >&6; }
6586else
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591  if test "x$ac_ct_NMEDIT" = x; then
6592    NMEDIT=":"
6593  else
6594    case $cross_compiling:$ac_tool_warned in
6595yes:)
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598ac_tool_warned=yes ;;
6599esac
6600    NMEDIT=$ac_ct_NMEDIT
6601  fi
6602else
6603  NMEDIT="$ac_cv_prog_NMEDIT"
6604fi
6605
6606    if test -n "$ac_tool_prefix"; then
6607  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6608set dummy ${ac_tool_prefix}lipo; ac_word=$2
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if ${ac_cv_prog_LIPO+:} false; then :
6612  $as_echo_n "(cached) " >&6
6613else
6614  if test -n "$LIPO"; then
6615  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620  IFS=$as_save_IFS
6621  test -z "$as_dir" && as_dir=.
6622    for ac_exec_ext in '' $ac_executable_extensions; do
6623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626    break 2
6627  fi
6628done
6629  done
6630IFS=$as_save_IFS
6631
6632fi
6633fi
6634LIPO=$ac_cv_prog_LIPO
6635if test -n "$LIPO"; then
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6637$as_echo "$LIPO" >&6; }
6638else
6639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
6642
6643
6644fi
6645if test -z "$ac_cv_prog_LIPO"; then
6646  ac_ct_LIPO=$LIPO
6647  # Extract the first word of "lipo", so it can be a program name with args.
6648set dummy lipo; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  if test -n "$ac_ct_LIPO"; then
6655  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662    for ac_exec_ext in '' $ac_executable_extensions; do
6663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_ac_ct_LIPO="lipo"
6665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669  done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6675if test -n "$ac_ct_LIPO"; then
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6677$as_echo "$ac_ct_LIPO" >&6; }
6678else
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683  if test "x$ac_ct_LIPO" = x; then
6684    LIPO=":"
6685  else
6686    case $cross_compiling:$ac_tool_warned in
6687yes:)
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690ac_tool_warned=yes ;;
6691esac
6692    LIPO=$ac_ct_LIPO
6693  fi
6694else
6695  LIPO="$ac_cv_prog_LIPO"
6696fi
6697
6698    if test -n "$ac_tool_prefix"; then
6699  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6700set dummy ${ac_tool_prefix}otool; ac_word=$2
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702$as_echo_n "checking for $ac_word... " >&6; }
6703if ${ac_cv_prog_OTOOL+:} false; then :
6704  $as_echo_n "(cached) " >&6
6705else
6706  if test -n "$OTOOL"; then
6707  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712  IFS=$as_save_IFS
6713  test -z "$as_dir" && as_dir=.
6714    for ac_exec_ext in '' $ac_executable_extensions; do
6715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718    break 2
6719  fi
6720done
6721  done
6722IFS=$as_save_IFS
6723
6724fi
6725fi
6726OTOOL=$ac_cv_prog_OTOOL
6727if test -n "$OTOOL"; then
6728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6729$as_echo "$OTOOL" >&6; }
6730else
6731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732$as_echo "no" >&6; }
6733fi
6734
6735
6736fi
6737if test -z "$ac_cv_prog_OTOOL"; then
6738  ac_ct_OTOOL=$OTOOL
6739  # Extract the first word of "otool", so it can be a program name with args.
6740set dummy otool; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742$as_echo_n "checking for $ac_word... " >&6; }
6743if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  if test -n "$ac_ct_OTOOL"; then
6747  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752  IFS=$as_save_IFS
6753  test -z "$as_dir" && as_dir=.
6754    for ac_exec_ext in '' $ac_executable_extensions; do
6755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756    ac_cv_prog_ac_ct_OTOOL="otool"
6757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758    break 2
6759  fi
6760done
6761  done
6762IFS=$as_save_IFS
6763
6764fi
6765fi
6766ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6767if test -n "$ac_ct_OTOOL"; then
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6769$as_echo "$ac_ct_OTOOL" >&6; }
6770else
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775  if test "x$ac_ct_OTOOL" = x; then
6776    OTOOL=":"
6777  else
6778    case $cross_compiling:$ac_tool_warned in
6779yes:)
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782ac_tool_warned=yes ;;
6783esac
6784    OTOOL=$ac_ct_OTOOL
6785  fi
6786else
6787  OTOOL="$ac_cv_prog_OTOOL"
6788fi
6789
6790    if test -n "$ac_tool_prefix"; then
6791  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6792set dummy ${ac_tool_prefix}otool64; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if ${ac_cv_prog_OTOOL64+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  if test -n "$OTOOL64"; then
6799  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806    for ac_exec_ext in '' $ac_executable_extensions; do
6807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813  done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818OTOOL64=$ac_cv_prog_OTOOL64
6819if test -n "$OTOOL64"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6821$as_echo "$OTOOL64" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828fi
6829if test -z "$ac_cv_prog_OTOOL64"; then
6830  ac_ct_OTOOL64=$OTOOL64
6831  # Extract the first word of "otool64", so it can be a program name with args.
6832set dummy otool64; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  if test -n "$ac_ct_OTOOL64"; then
6839  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846    for ac_exec_ext in '' $ac_executable_extensions; do
6847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848    ac_cv_prog_ac_ct_OTOOL64="otool64"
6849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850    break 2
6851  fi
6852done
6853  done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6859if test -n "$ac_ct_OTOOL64"; then
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6861$as_echo "$ac_ct_OTOOL64" >&6; }
6862else
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867  if test "x$ac_ct_OTOOL64" = x; then
6868    OTOOL64=":"
6869  else
6870    case $cross_compiling:$ac_tool_warned in
6871yes:)
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876    OTOOL64=$ac_ct_OTOOL64
6877  fi
6878else
6879  OTOOL64="$ac_cv_prog_OTOOL64"
6880fi
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6909$as_echo_n "checking for -single_module linker flag... " >&6; }
6910if ${lt_cv_apple_cc_single_mod+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  lt_cv_apple_cc_single_mod=no
6914      if test -z "${LT_MULTI_MODULE}"; then
6915	# By default we will add the -single_module flag. You can override
6916	# by either setting the environment variable LT_MULTI_MODULE
6917	# non-empty at configure time, or by adding -multi_module to the
6918	# link flags.
6919	rm -rf libconftest.dylib*
6920	echo "int foo(void){return 1;}" > conftest.c
6921	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6922-dynamiclib -Wl,-single_module conftest.c" >&5
6923	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6924	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6925        _lt_result=$?
6926	# If there is a non-empty error log, and "single_module"
6927	# appears in it, assume the flag caused a linker warning
6928        if test -s conftest.err && $GREP single_module conftest.err; then
6929	  cat conftest.err >&5
6930	# Otherwise, if the output was created with a 0 exit code from
6931	# the compiler, it worked.
6932	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6933	  lt_cv_apple_cc_single_mod=yes
6934	else
6935	  cat conftest.err >&5
6936	fi
6937	rm -rf libconftest.dylib*
6938	rm -f conftest.*
6939      fi
6940fi
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6942$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6943
6944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6945$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6946if ${lt_cv_ld_exported_symbols_list+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  lt_cv_ld_exported_symbols_list=no
6950      save_LDFLAGS=$LDFLAGS
6951      echo "_main" > conftest.sym
6952      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955
6956int
6957main ()
6958{
6959
6960  ;
6961  return 0;
6962}
6963_ACEOF
6964if ac_fn_c_try_link "$LINENO"; then :
6965  lt_cv_ld_exported_symbols_list=yes
6966else
6967  lt_cv_ld_exported_symbols_list=no
6968fi
6969rm -f core conftest.err conftest.$ac_objext \
6970    conftest$ac_exeext conftest.$ac_ext
6971	LDFLAGS="$save_LDFLAGS"
6972
6973fi
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6975$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6976
6977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6978$as_echo_n "checking for -force_load linker flag... " >&6; }
6979if ${lt_cv_ld_force_load+:} false; then :
6980  $as_echo_n "(cached) " >&6
6981else
6982  lt_cv_ld_force_load=no
6983      cat > conftest.c << _LT_EOF
6984int forced_loaded() { return 2;}
6985_LT_EOF
6986      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6987      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6988      echo "$AR cru libconftest.a conftest.o" >&5
6989      $AR cru libconftest.a conftest.o 2>&5
6990      echo "$RANLIB libconftest.a" >&5
6991      $RANLIB libconftest.a 2>&5
6992      cat > conftest.c << _LT_EOF
6993int main() { return 0;}
6994_LT_EOF
6995      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6996      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6997      _lt_result=$?
6998      if test -s conftest.err && $GREP force_load conftest.err; then
6999	cat conftest.err >&5
7000      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7001	lt_cv_ld_force_load=yes
7002      else
7003	cat conftest.err >&5
7004      fi
7005        rm -f conftest.err libconftest.a conftest conftest.c
7006        rm -rf conftest.dSYM
7007
7008fi
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7010$as_echo "$lt_cv_ld_force_load" >&6; }
7011    case $host_os in
7012    rhapsody* | darwin1.[012])
7013      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7014    darwin1.*)
7015      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7016    darwin*) # darwin 5.x on
7017      # if running on 10.5 or later, the deployment target defaults
7018      # to the OS version, if on x86, and 10.4, the deployment
7019      # target defaults to 10.4. Don't you love it?
7020      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7021	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7022	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7023	10.[012]*)
7024	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7025	10.*)
7026	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7027      esac
7028    ;;
7029  esac
7030    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7031      _lt_dar_single_mod='$single_module'
7032    fi
7033    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7034      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7035    else
7036      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7037    fi
7038    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7039      _lt_dsymutil='~$DSYMUTIL $lib || :'
7040    else
7041      _lt_dsymutil=
7042    fi
7043    ;;
7044  esac
7045
7046ac_ext=c
7047ac_cpp='$CPP $CPPFLAGS'
7048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050ac_compiler_gnu=$ac_cv_c_compiler_gnu
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7052$as_echo_n "checking how to run the C preprocessor... " >&6; }
7053# On Suns, sometimes $CPP names a directory.
7054if test -n "$CPP" && test -d "$CPP"; then
7055  CPP=
7056fi
7057if test -z "$CPP"; then
7058  if ${ac_cv_prog_CPP+:} false; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061      # Double quotes because CPP needs to be expanded
7062    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7063    do
7064      ac_preproc_ok=false
7065for ac_c_preproc_warn_flag in '' yes
7066do
7067  # Use a header file that comes with gcc, so configuring glibc
7068  # with a fresh cross-compiler works.
7069  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7070  # <limits.h> exists even on freestanding compilers.
7071  # On the NeXT, cc -E runs the code through the compiler's parser,
7072  # not just through cpp. "Syntax error" is here to catch this case.
7073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075#ifdef __STDC__
7076# include <limits.h>
7077#else
7078# include <assert.h>
7079#endif
7080		     Syntax error
7081_ACEOF
7082if ac_fn_c_try_cpp "$LINENO"; then :
7083
7084else
7085  # Broken: fails on valid input.
7086continue
7087fi
7088rm -f conftest.err conftest.i conftest.$ac_ext
7089
7090  # OK, works on sane cases.  Now check whether nonexistent headers
7091  # can be detected and how.
7092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094#include <ac_nonexistent.h>
7095_ACEOF
7096if ac_fn_c_try_cpp "$LINENO"; then :
7097  # Broken: success on invalid input.
7098continue
7099else
7100  # Passes both tests.
7101ac_preproc_ok=:
7102break
7103fi
7104rm -f conftest.err conftest.i conftest.$ac_ext
7105
7106done
7107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7108rm -f conftest.i conftest.err conftest.$ac_ext
7109if $ac_preproc_ok; then :
7110  break
7111fi
7112
7113    done
7114    ac_cv_prog_CPP=$CPP
7115
7116fi
7117  CPP=$ac_cv_prog_CPP
7118else
7119  ac_cv_prog_CPP=$CPP
7120fi
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7122$as_echo "$CPP" >&6; }
7123ac_preproc_ok=false
7124for ac_c_preproc_warn_flag in '' yes
7125do
7126  # Use a header file that comes with gcc, so configuring glibc
7127  # with a fresh cross-compiler works.
7128  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7129  # <limits.h> exists even on freestanding compilers.
7130  # On the NeXT, cc -E runs the code through the compiler's parser,
7131  # not just through cpp. "Syntax error" is here to catch this case.
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134#ifdef __STDC__
7135# include <limits.h>
7136#else
7137# include <assert.h>
7138#endif
7139		     Syntax error
7140_ACEOF
7141if ac_fn_c_try_cpp "$LINENO"; then :
7142
7143else
7144  # Broken: fails on valid input.
7145continue
7146fi
7147rm -f conftest.err conftest.i conftest.$ac_ext
7148
7149  # OK, works on sane cases.  Now check whether nonexistent headers
7150  # can be detected and how.
7151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153#include <ac_nonexistent.h>
7154_ACEOF
7155if ac_fn_c_try_cpp "$LINENO"; then :
7156  # Broken: success on invalid input.
7157continue
7158else
7159  # Passes both tests.
7160ac_preproc_ok=:
7161break
7162fi
7163rm -f conftest.err conftest.i conftest.$ac_ext
7164
7165done
7166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7167rm -f conftest.i conftest.err conftest.$ac_ext
7168if $ac_preproc_ok; then :
7169
7170else
7171  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7173as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7174See \`config.log' for more details" "$LINENO" 5; }
7175fi
7176
7177ac_ext=c
7178ac_cpp='$CPP $CPPFLAGS'
7179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7181ac_compiler_gnu=$ac_cv_c_compiler_gnu
7182
7183
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7185$as_echo_n "checking for ANSI C header files... " >&6; }
7186if ${ac_cv_header_stdc+:} false; then :
7187  $as_echo_n "(cached) " >&6
7188else
7189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h.  */
7191#include <stdlib.h>
7192#include <stdarg.h>
7193#include <string.h>
7194#include <float.h>
7195
7196int
7197main ()
7198{
7199
7200  ;
7201  return 0;
7202}
7203_ACEOF
7204if ac_fn_c_try_compile "$LINENO"; then :
7205  ac_cv_header_stdc=yes
7206else
7207  ac_cv_header_stdc=no
7208fi
7209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210
7211if test $ac_cv_header_stdc = yes; then
7212  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h.  */
7215#include <string.h>
7216
7217_ACEOF
7218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219  $EGREP "memchr" >/dev/null 2>&1; then :
7220
7221else
7222  ac_cv_header_stdc=no
7223fi
7224rm -f conftest*
7225
7226fi
7227
7228if test $ac_cv_header_stdc = yes; then
7229  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h.  */
7232#include <stdlib.h>
7233
7234_ACEOF
7235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7236  $EGREP "free" >/dev/null 2>&1; then :
7237
7238else
7239  ac_cv_header_stdc=no
7240fi
7241rm -f conftest*
7242
7243fi
7244
7245if test $ac_cv_header_stdc = yes; then
7246  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7247  if test "$cross_compiling" = yes; then :
7248  :
7249else
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252#include <ctype.h>
7253#include <stdlib.h>
7254#if ((' ' & 0x0FF) == 0x020)
7255# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7256# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7257#else
7258# define ISLOWER(c) \
7259		   (('a' <= (c) && (c) <= 'i') \
7260		     || ('j' <= (c) && (c) <= 'r') \
7261		     || ('s' <= (c) && (c) <= 'z'))
7262# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7263#endif
7264
7265#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7266int
7267main ()
7268{
7269  int i;
7270  for (i = 0; i < 256; i++)
7271    if (XOR (islower (i), ISLOWER (i))
7272	|| toupper (i) != TOUPPER (i))
7273      return 2;
7274  return 0;
7275}
7276_ACEOF
7277if ac_fn_c_try_run "$LINENO"; then :
7278
7279else
7280  ac_cv_header_stdc=no
7281fi
7282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7283  conftest.$ac_objext conftest.beam conftest.$ac_ext
7284fi
7285
7286fi
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7289$as_echo "$ac_cv_header_stdc" >&6; }
7290if test $ac_cv_header_stdc = yes; then
7291
7292$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7293
7294fi
7295
7296# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7297for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7298		  inttypes.h stdint.h unistd.h
7299do :
7300  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7301ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7302"
7303if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7304  cat >>confdefs.h <<_ACEOF
7305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7306_ACEOF
7307
7308fi
7309
7310done
7311
7312
7313for ac_header in dlfcn.h
7314do :
7315  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7316"
7317if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7318  cat >>confdefs.h <<_ACEOF
7319#define HAVE_DLFCN_H 1
7320_ACEOF
7321
7322fi
7323
7324done
7325
7326
7327
7328
7329
7330# Set options
7331enable_dlopen=yes
7332enable_win32_dll=yes
7333
7334case $host in
7335*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7336  if test -n "$ac_tool_prefix"; then
7337  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7338set dummy ${ac_tool_prefix}as; ac_word=$2
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if ${ac_cv_prog_AS+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  if test -n "$AS"; then
7345  ac_cv_prog_AS="$AS" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_prog_AS="${ac_tool_prefix}as"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364AS=$ac_cv_prog_AS
7365if test -n "$AS"; then
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7367$as_echo "$AS" >&6; }
7368else
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
7371fi
7372
7373
7374fi
7375if test -z "$ac_cv_prog_AS"; then
7376  ac_ct_AS=$AS
7377  # Extract the first word of "as", so it can be a program name with args.
7378set dummy as; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_prog_ac_ct_AS+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  if test -n "$ac_ct_AS"; then
7385  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392    for ac_exec_ext in '' $ac_executable_extensions; do
7393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394    ac_cv_prog_ac_ct_AS="as"
7395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396    break 2
7397  fi
7398done
7399  done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404ac_ct_AS=$ac_cv_prog_ac_ct_AS
7405if test -n "$ac_ct_AS"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7407$as_echo "$ac_ct_AS" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413  if test "x$ac_ct_AS" = x; then
7414    AS="false"
7415  else
7416    case $cross_compiling:$ac_tool_warned in
7417yes:)
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420ac_tool_warned=yes ;;
7421esac
7422    AS=$ac_ct_AS
7423  fi
7424else
7425  AS="$ac_cv_prog_AS"
7426fi
7427
7428  if test -n "$ac_tool_prefix"; then
7429  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7430set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if ${ac_cv_prog_DLLTOOL+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$DLLTOOL"; then
7437  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456DLLTOOL=$ac_cv_prog_DLLTOOL
7457if test -n "$DLLTOOL"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7459$as_echo "$DLLTOOL" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465
7466fi
7467if test -z "$ac_cv_prog_DLLTOOL"; then
7468  ac_ct_DLLTOOL=$DLLTOOL
7469  # Extract the first word of "dlltool", so it can be a program name with args.
7470set dummy dlltool; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  if test -n "$ac_ct_DLLTOOL"; then
7477  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484    for ac_exec_ext in '' $ac_executable_extensions; do
7485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491  done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7497if test -n "$ac_ct_DLLTOOL"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7499$as_echo "$ac_ct_DLLTOOL" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505  if test "x$ac_ct_DLLTOOL" = x; then
7506    DLLTOOL="false"
7507  else
7508    case $cross_compiling:$ac_tool_warned in
7509yes:)
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512ac_tool_warned=yes ;;
7513esac
7514    DLLTOOL=$ac_ct_DLLTOOL
7515  fi
7516else
7517  DLLTOOL="$ac_cv_prog_DLLTOOL"
7518fi
7519
7520  if test -n "$ac_tool_prefix"; then
7521  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7522set dummy ${ac_tool_prefix}objdump; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if ${ac_cv_prog_OBJDUMP+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  if test -n "$OBJDUMP"; then
7529  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  test -z "$as_dir" && as_dir=.
7536    for ac_exec_ext in '' $ac_executable_extensions; do
7537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543  done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548OBJDUMP=$ac_cv_prog_OBJDUMP
7549if test -n "$OBJDUMP"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7551$as_echo "$OBJDUMP" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557
7558fi
7559if test -z "$ac_cv_prog_OBJDUMP"; then
7560  ac_ct_OBJDUMP=$OBJDUMP
7561  # Extract the first word of "objdump", so it can be a program name with args.
7562set dummy objdump; ac_word=$2
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564$as_echo_n "checking for $ac_word... " >&6; }
7565if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  if test -n "$ac_ct_OBJDUMP"; then
7569  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574  IFS=$as_save_IFS
7575  test -z "$as_dir" && as_dir=.
7576    for ac_exec_ext in '' $ac_executable_extensions; do
7577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580    break 2
7581  fi
7582done
7583  done
7584IFS=$as_save_IFS
7585
7586fi
7587fi
7588ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7589if test -n "$ac_ct_OBJDUMP"; then
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7591$as_echo "$ac_ct_OBJDUMP" >&6; }
7592else
7593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
7595fi
7596
7597  if test "x$ac_ct_OBJDUMP" = x; then
7598    OBJDUMP="false"
7599  else
7600    case $cross_compiling:$ac_tool_warned in
7601yes:)
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604ac_tool_warned=yes ;;
7605esac
7606    OBJDUMP=$ac_ct_OBJDUMP
7607  fi
7608else
7609  OBJDUMP="$ac_cv_prog_OBJDUMP"
7610fi
7611
7612  ;;
7613esac
7614
7615test -z "$AS" && AS=as
7616
7617
7618
7619
7620
7621test -z "$DLLTOOL" && DLLTOOL=dlltool
7622
7623
7624
7625
7626
7627test -z "$OBJDUMP" && OBJDUMP=objdump
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637            # Check whether --enable-shared was given.
7638if test "${enable_shared+set}" = set; then :
7639  enableval=$enable_shared; p=${PACKAGE-default}
7640    case $enableval in
7641    yes) enable_shared=yes ;;
7642    no) enable_shared=no ;;
7643    *)
7644      enable_shared=no
7645      # Look at the argument we got.  We use all the common list separators.
7646      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647      for pkg in $enableval; do
7648	IFS="$lt_save_ifs"
7649	if test "X$pkg" = "X$p"; then
7650	  enable_shared=yes
7651	fi
7652      done
7653      IFS="$lt_save_ifs"
7654      ;;
7655    esac
7656else
7657  enable_shared=yes
7658fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668  # Check whether --enable-static was given.
7669if test "${enable_static+set}" = set; then :
7670  enableval=$enable_static; p=${PACKAGE-default}
7671    case $enableval in
7672    yes) enable_static=yes ;;
7673    no) enable_static=no ;;
7674    *)
7675     enable_static=no
7676      # Look at the argument we got.  We use all the common list separators.
7677      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7678      for pkg in $enableval; do
7679	IFS="$lt_save_ifs"
7680	if test "X$pkg" = "X$p"; then
7681	  enable_static=yes
7682	fi
7683      done
7684      IFS="$lt_save_ifs"
7685      ;;
7686    esac
7687else
7688  enable_static=yes
7689fi
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700# Check whether --with-pic was given.
7701if test "${with_pic+set}" = set; then :
7702  withval=$with_pic; lt_p=${PACKAGE-default}
7703    case $withval in
7704    yes|no) pic_mode=$withval ;;
7705    *)
7706      pic_mode=default
7707      # Look at the argument we got.  We use all the common list separators.
7708      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7709      for lt_pkg in $withval; do
7710	IFS="$lt_save_ifs"
7711	if test "X$lt_pkg" = "X$lt_p"; then
7712	  pic_mode=yes
7713	fi
7714      done
7715      IFS="$lt_save_ifs"
7716      ;;
7717    esac
7718else
7719  pic_mode=default
7720fi
7721
7722
7723test -z "$pic_mode" && pic_mode=default
7724
7725
7726
7727
7728
7729
7730
7731  # Check whether --enable-fast-install was given.
7732if test "${enable_fast_install+set}" = set; then :
7733  enableval=$enable_fast_install; p=${PACKAGE-default}
7734    case $enableval in
7735    yes) enable_fast_install=yes ;;
7736    no) enable_fast_install=no ;;
7737    *)
7738      enable_fast_install=no
7739      # Look at the argument we got.  We use all the common list separators.
7740      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7741      for pkg in $enableval; do
7742	IFS="$lt_save_ifs"
7743	if test "X$pkg" = "X$p"; then
7744	  enable_fast_install=yes
7745	fi
7746      done
7747      IFS="$lt_save_ifs"
7748      ;;
7749    esac
7750else
7751  enable_fast_install=yes
7752fi
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764# This can be used to rebuild libtool when needed
7765LIBTOOL_DEPS="$ltmain"
7766
7767# Always use our own libtool.
7768LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799test -z "$LN_S" && LN_S="ln -s"
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814if test -n "${ZSH_VERSION+set}" ; then
7815   setopt NO_GLOB_SUBST
7816fi
7817
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7819$as_echo_n "checking for objdir... " >&6; }
7820if ${lt_cv_objdir+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  rm -f .libs 2>/dev/null
7824mkdir .libs 2>/dev/null
7825if test -d .libs; then
7826  lt_cv_objdir=.libs
7827else
7828  # MS-DOS does not allow filenames that begin with a dot.
7829  lt_cv_objdir=_libs
7830fi
7831rmdir .libs 2>/dev/null
7832fi
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7834$as_echo "$lt_cv_objdir" >&6; }
7835objdir=$lt_cv_objdir
7836
7837
7838
7839
7840
7841cat >>confdefs.h <<_ACEOF
7842#define LT_OBJDIR "$lt_cv_objdir/"
7843_ACEOF
7844
7845
7846
7847
7848case $host_os in
7849aix3*)
7850  # AIX sometimes has problems with the GCC collect2 program.  For some
7851  # reason, if we set the COLLECT_NAMES environment variable, the problems
7852  # vanish in a puff of smoke.
7853  if test "X${COLLECT_NAMES+set}" != Xset; then
7854    COLLECT_NAMES=
7855    export COLLECT_NAMES
7856  fi
7857  ;;
7858esac
7859
7860# Global variables:
7861ofile=libtool
7862can_build_shared=yes
7863
7864# All known linkers require a `.a' archive for static linking (except MSVC,
7865# which needs '.lib').
7866libext=a
7867
7868with_gnu_ld="$lt_cv_prog_gnu_ld"
7869
7870old_CC="$CC"
7871old_CFLAGS="$CFLAGS"
7872
7873# Set sane defaults for various variables
7874test -z "$CC" && CC=cc
7875test -z "$LTCC" && LTCC=$CC
7876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7877test -z "$LD" && LD=ld
7878test -z "$ac_objext" && ac_objext=o
7879
7880for cc_temp in $compiler""; do
7881  case $cc_temp in
7882    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7883    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7884    \-*) ;;
7885    *) break;;
7886  esac
7887done
7888cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7889
7890
7891# Only perform the check for file, if the check method requires it
7892test -z "$MAGIC_CMD" && MAGIC_CMD=file
7893case $deplibs_check_method in
7894file_magic*)
7895  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7897$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7898if ${lt_cv_path_MAGIC_CMD+:} false; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  case $MAGIC_CMD in
7902[\\/*] |  ?:[\\/]*)
7903  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7904  ;;
7905*)
7906  lt_save_MAGIC_CMD="$MAGIC_CMD"
7907  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7908  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7909  for ac_dir in $ac_dummy; do
7910    IFS="$lt_save_ifs"
7911    test -z "$ac_dir" && ac_dir=.
7912    if test -f $ac_dir/${ac_tool_prefix}file; then
7913      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7914      if test -n "$file_magic_test_file"; then
7915	case $deplibs_check_method in
7916	"file_magic "*)
7917	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7918	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7919	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7920	    $EGREP "$file_magic_regex" > /dev/null; then
7921	    :
7922	  else
7923	    cat <<_LT_EOF 1>&2
7924
7925*** Warning: the command libtool uses to detect shared libraries,
7926*** $file_magic_cmd, produces output that libtool cannot recognize.
7927*** The result is that libtool may fail to recognize shared libraries
7928*** as such.  This will affect the creation of libtool libraries that
7929*** depend on shared libraries, but programs linked with such libtool
7930*** libraries will work regardless of this problem.  Nevertheless, you
7931*** may want to report the problem to your system manager and/or to
7932*** bug-libtool@gnu.org
7933
7934_LT_EOF
7935	  fi ;;
7936	esac
7937      fi
7938      break
7939    fi
7940  done
7941  IFS="$lt_save_ifs"
7942  MAGIC_CMD="$lt_save_MAGIC_CMD"
7943  ;;
7944esac
7945fi
7946
7947MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7948if test -n "$MAGIC_CMD"; then
7949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7950$as_echo "$MAGIC_CMD" >&6; }
7951else
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954fi
7955
7956
7957
7958
7959
7960if test -z "$lt_cv_path_MAGIC_CMD"; then
7961  if test -n "$ac_tool_prefix"; then
7962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7963$as_echo_n "checking for file... " >&6; }
7964if ${lt_cv_path_MAGIC_CMD+:} false; then :
7965  $as_echo_n "(cached) " >&6
7966else
7967  case $MAGIC_CMD in
7968[\\/*] |  ?:[\\/]*)
7969  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7970  ;;
7971*)
7972  lt_save_MAGIC_CMD="$MAGIC_CMD"
7973  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7974  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7975  for ac_dir in $ac_dummy; do
7976    IFS="$lt_save_ifs"
7977    test -z "$ac_dir" && ac_dir=.
7978    if test -f $ac_dir/file; then
7979      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7980      if test -n "$file_magic_test_file"; then
7981	case $deplibs_check_method in
7982	"file_magic "*)
7983	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7984	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7985	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7986	    $EGREP "$file_magic_regex" > /dev/null; then
7987	    :
7988	  else
7989	    cat <<_LT_EOF 1>&2
7990
7991*** Warning: the command libtool uses to detect shared libraries,
7992*** $file_magic_cmd, produces output that libtool cannot recognize.
7993*** The result is that libtool may fail to recognize shared libraries
7994*** as such.  This will affect the creation of libtool libraries that
7995*** depend on shared libraries, but programs linked with such libtool
7996*** libraries will work regardless of this problem.  Nevertheless, you
7997*** may want to report the problem to your system manager and/or to
7998*** bug-libtool@gnu.org
7999
8000_LT_EOF
8001	  fi ;;
8002	esac
8003      fi
8004      break
8005    fi
8006  done
8007  IFS="$lt_save_ifs"
8008  MAGIC_CMD="$lt_save_MAGIC_CMD"
8009  ;;
8010esac
8011fi
8012
8013MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8014if test -n "$MAGIC_CMD"; then
8015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8016$as_echo "$MAGIC_CMD" >&6; }
8017else
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019$as_echo "no" >&6; }
8020fi
8021
8022
8023  else
8024    MAGIC_CMD=:
8025  fi
8026fi
8027
8028  fi
8029  ;;
8030esac
8031
8032# Use C for the default configuration in the libtool script
8033
8034lt_save_CC="$CC"
8035ac_ext=c
8036ac_cpp='$CPP $CPPFLAGS'
8037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041
8042# Source file extension for C test sources.
8043ac_ext=c
8044
8045# Object file extension for compiled C test sources.
8046objext=o
8047objext=$objext
8048
8049# Code to be used in simple compile tests
8050lt_simple_compile_test_code="int some_variable = 0;"
8051
8052# Code to be used in simple link tests
8053lt_simple_link_test_code='int main(){return(0);}'
8054
8055
8056
8057
8058
8059
8060
8061# If no C compiler was specified, use CC.
8062LTCC=${LTCC-"$CC"}
8063
8064# If no C compiler flags were specified, use CFLAGS.
8065LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8066
8067# Allow CC to be a program name with arguments.
8068compiler=$CC
8069
8070# Save the default compiler, since it gets overwritten when the other
8071# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8072compiler_DEFAULT=$CC
8073
8074# save warnings/boilerplate of simple test code
8075ac_outfile=conftest.$ac_objext
8076echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8077eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8078_lt_compiler_boilerplate=`cat conftest.err`
8079$RM conftest*
8080
8081ac_outfile=conftest.$ac_objext
8082echo "$lt_simple_link_test_code" >conftest.$ac_ext
8083eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8084_lt_linker_boilerplate=`cat conftest.err`
8085$RM -r conftest*
8086
8087
8088## CAVEAT EMPTOR:
8089## There is no encapsulation within the following macros, do not change
8090## the running order or otherwise move them around unless you know exactly
8091## what you are doing...
8092if test -n "$compiler"; then
8093
8094lt_prog_compiler_no_builtin_flag=
8095
8096if test "$GCC" = yes; then
8097  case $cc_basename in
8098  nvcc*)
8099    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8100  *)
8101    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8102  esac
8103
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8105$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8106if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  lt_cv_prog_compiler_rtti_exceptions=no
8110   ac_outfile=conftest.$ac_objext
8111   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8112   lt_compiler_flag="-fno-rtti -fno-exceptions"
8113   # Insert the option either (1) after the last *FLAGS variable, or
8114   # (2) before a word containing "conftest.", or (3) at the end.
8115   # Note that $ac_compile itself does not contain backslashes and begins
8116   # with a dollar sign (not a hyphen), so the echo should work correctly.
8117   # The option is referenced via a variable to avoid confusing sed.
8118   lt_compile=`echo "$ac_compile" | $SED \
8119   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8121   -e 's:$: $lt_compiler_flag:'`
8122   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8123   (eval "$lt_compile" 2>conftest.err)
8124   ac_status=$?
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   if (exit $ac_status) && test -s "$ac_outfile"; then
8128     # The compiler can only warn and ignore the option if not recognized
8129     # So say no if there are warnings other than the usual output.
8130     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8131     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8132     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8133       lt_cv_prog_compiler_rtti_exceptions=yes
8134     fi
8135   fi
8136   $RM conftest*
8137
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8140$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8141
8142if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8143    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8144else
8145    :
8146fi
8147
8148fi
8149
8150
8151
8152
8153
8154
8155  lt_prog_compiler_wl=
8156lt_prog_compiler_pic=
8157lt_prog_compiler_static=
8158
8159
8160  if test "$GCC" = yes; then
8161    lt_prog_compiler_wl='-Wl,'
8162    lt_prog_compiler_static='-static'
8163
8164    case $host_os in
8165      aix*)
8166      # All AIX code is PIC.
8167      if test "$host_cpu" = ia64; then
8168	# AIX 5 now supports IA64 processor
8169	lt_prog_compiler_static='-Bstatic'
8170      fi
8171      ;;
8172
8173    amigaos*)
8174      case $host_cpu in
8175      powerpc)
8176            # see comment about AmigaOS4 .so support
8177            lt_prog_compiler_pic='-fPIC'
8178        ;;
8179      m68k)
8180            # FIXME: we need at least 68020 code to build shared libraries, but
8181            # adding the `-m68020' flag to GCC prevents building anything better,
8182            # like `-m68040'.
8183            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8184        ;;
8185      esac
8186      ;;
8187
8188    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8189      # PIC is the default for these OSes.
8190      ;;
8191
8192    mingw* | cygwin* | pw32* | os2* | cegcc*)
8193      # This hack is so that the source file can tell whether it is being
8194      # built for inclusion in a dll (and should export symbols for example).
8195      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8196      # (--disable-auto-import) libraries
8197      lt_prog_compiler_pic='-DDLL_EXPORT'
8198      ;;
8199
8200    darwin* | rhapsody*)
8201      # PIC is the default on this platform
8202      # Common symbols not allowed in MH_DYLIB files
8203      lt_prog_compiler_pic='-fno-common'
8204      ;;
8205
8206    haiku*)
8207      # PIC is the default for Haiku.
8208      # The "-static" flag exists, but is broken.
8209      lt_prog_compiler_static=
8210      ;;
8211
8212    hpux*)
8213      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8214      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8215      # sets the default TLS model and affects inlining.
8216      case $host_cpu in
8217      hppa*64*)
8218	# +Z the default
8219	;;
8220      *)
8221	lt_prog_compiler_pic='-fPIC'
8222	;;
8223      esac
8224      ;;
8225
8226    interix[3-9]*)
8227      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8228      # Instead, we relocate shared libraries at runtime.
8229      ;;
8230
8231    msdosdjgpp*)
8232      # Just because we use GCC doesn't mean we suddenly get shared libraries
8233      # on systems that don't support them.
8234      lt_prog_compiler_can_build_shared=no
8235      enable_shared=no
8236      ;;
8237
8238    *nto* | *qnx*)
8239      # QNX uses GNU C++, but need to define -shared option too, otherwise
8240      # it will coredump.
8241      lt_prog_compiler_pic='-fPIC -shared'
8242      ;;
8243
8244    sysv4*MP*)
8245      if test -d /usr/nec; then
8246	lt_prog_compiler_pic=-Kconform_pic
8247      fi
8248      ;;
8249
8250    *)
8251      lt_prog_compiler_pic='-fPIC'
8252      ;;
8253    esac
8254
8255    case $cc_basename in
8256    nvcc*) # Cuda Compiler Driver 2.2
8257      lt_prog_compiler_wl='-Xlinker '
8258      if test -n "$lt_prog_compiler_pic"; then
8259        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8260      fi
8261      ;;
8262    esac
8263  else
8264    # PORTME Check for flag to pass linker flags through the system compiler.
8265    case $host_os in
8266    aix*)
8267      lt_prog_compiler_wl='-Wl,'
8268      if test "$host_cpu" = ia64; then
8269	# AIX 5 now supports IA64 processor
8270	lt_prog_compiler_static='-Bstatic'
8271      else
8272	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8273      fi
8274      ;;
8275
8276    mingw* | cygwin* | pw32* | os2* | cegcc*)
8277      # This hack is so that the source file can tell whether it is being
8278      # built for inclusion in a dll (and should export symbols for example).
8279      lt_prog_compiler_pic='-DDLL_EXPORT'
8280      ;;
8281
8282    hpux9* | hpux10* | hpux11*)
8283      lt_prog_compiler_wl='-Wl,'
8284      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8285      # not for PA HP-UX.
8286      case $host_cpu in
8287      hppa*64*|ia64*)
8288	# +Z the default
8289	;;
8290      *)
8291	lt_prog_compiler_pic='+Z'
8292	;;
8293      esac
8294      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8295      lt_prog_compiler_static='${wl}-a ${wl}archive'
8296      ;;
8297
8298    irix5* | irix6* | nonstopux*)
8299      lt_prog_compiler_wl='-Wl,'
8300      # PIC (with -KPIC) is the default.
8301      lt_prog_compiler_static='-non_shared'
8302      ;;
8303
8304    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8305      case $cc_basename in
8306      # old Intel for x86_64 which still supported -KPIC.
8307      ecc*)
8308	lt_prog_compiler_wl='-Wl,'
8309	lt_prog_compiler_pic='-KPIC'
8310	lt_prog_compiler_static='-static'
8311        ;;
8312      # icc used to be incompatible with GCC.
8313      # ICC 10 doesn't accept -KPIC any more.
8314      icc* | ifort*)
8315	lt_prog_compiler_wl='-Wl,'
8316	lt_prog_compiler_pic='-fPIC'
8317	lt_prog_compiler_static='-static'
8318        ;;
8319      # Lahey Fortran 8.1.
8320      lf95*)
8321	lt_prog_compiler_wl='-Wl,'
8322	lt_prog_compiler_pic='--shared'
8323	lt_prog_compiler_static='--static'
8324	;;
8325      nagfor*)
8326	# NAG Fortran compiler
8327	lt_prog_compiler_wl='-Wl,-Wl,,'
8328	lt_prog_compiler_pic='-PIC'
8329	lt_prog_compiler_static='-Bstatic'
8330	;;
8331      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8332        # Portland Group compilers (*not* the Pentium gcc compiler,
8333	# which looks to be a dead project)
8334	lt_prog_compiler_wl='-Wl,'
8335	lt_prog_compiler_pic='-fpic'
8336	lt_prog_compiler_static='-Bstatic'
8337        ;;
8338      ccc*)
8339        lt_prog_compiler_wl='-Wl,'
8340        # All Alpha code is PIC.
8341        lt_prog_compiler_static='-non_shared'
8342        ;;
8343      xl* | bgxl* | bgf* | mpixl*)
8344	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8345	lt_prog_compiler_wl='-Wl,'
8346	lt_prog_compiler_pic='-qpic'
8347	lt_prog_compiler_static='-qstaticlink'
8348	;;
8349      *)
8350	case `$CC -V 2>&1 | sed 5q` in
8351	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8352	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8353	  lt_prog_compiler_pic='-KPIC'
8354	  lt_prog_compiler_static='-Bstatic'
8355	  lt_prog_compiler_wl=''
8356	  ;;
8357	*Sun\ F* | *Sun*Fortran*)
8358	  lt_prog_compiler_pic='-KPIC'
8359	  lt_prog_compiler_static='-Bstatic'
8360	  lt_prog_compiler_wl='-Qoption ld '
8361	  ;;
8362	*Sun\ C*)
8363	  # Sun C 5.9
8364	  lt_prog_compiler_pic='-KPIC'
8365	  lt_prog_compiler_static='-Bstatic'
8366	  lt_prog_compiler_wl='-Wl,'
8367	  ;;
8368        *Intel*\ [CF]*Compiler*)
8369	  lt_prog_compiler_wl='-Wl,'
8370	  lt_prog_compiler_pic='-fPIC'
8371	  lt_prog_compiler_static='-static'
8372	  ;;
8373	*Portland\ Group*)
8374	  lt_prog_compiler_wl='-Wl,'
8375	  lt_prog_compiler_pic='-fpic'
8376	  lt_prog_compiler_static='-Bstatic'
8377	  ;;
8378	esac
8379	;;
8380      esac
8381      ;;
8382
8383    newsos6)
8384      lt_prog_compiler_pic='-KPIC'
8385      lt_prog_compiler_static='-Bstatic'
8386      ;;
8387
8388    *nto* | *qnx*)
8389      # QNX uses GNU C++, but need to define -shared option too, otherwise
8390      # it will coredump.
8391      lt_prog_compiler_pic='-fPIC -shared'
8392      ;;
8393
8394    osf3* | osf4* | osf5*)
8395      lt_prog_compiler_wl='-Wl,'
8396      # All OSF/1 code is PIC.
8397      lt_prog_compiler_static='-non_shared'
8398      ;;
8399
8400    rdos*)
8401      lt_prog_compiler_static='-non_shared'
8402      ;;
8403
8404    solaris*)
8405      lt_prog_compiler_pic='-KPIC'
8406      lt_prog_compiler_static='-Bstatic'
8407      case $cc_basename in
8408      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8409	lt_prog_compiler_wl='-Qoption ld ';;
8410      *)
8411	lt_prog_compiler_wl='-Wl,';;
8412      esac
8413      ;;
8414
8415    sunos4*)
8416      lt_prog_compiler_wl='-Qoption ld '
8417      lt_prog_compiler_pic='-PIC'
8418      lt_prog_compiler_static='-Bstatic'
8419      ;;
8420
8421    sysv4 | sysv4.2uw2* | sysv4.3*)
8422      lt_prog_compiler_wl='-Wl,'
8423      lt_prog_compiler_pic='-KPIC'
8424      lt_prog_compiler_static='-Bstatic'
8425      ;;
8426
8427    sysv4*MP*)
8428      if test -d /usr/nec ;then
8429	lt_prog_compiler_pic='-Kconform_pic'
8430	lt_prog_compiler_static='-Bstatic'
8431      fi
8432      ;;
8433
8434    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8435      lt_prog_compiler_wl='-Wl,'
8436      lt_prog_compiler_pic='-KPIC'
8437      lt_prog_compiler_static='-Bstatic'
8438      ;;
8439
8440    unicos*)
8441      lt_prog_compiler_wl='-Wl,'
8442      lt_prog_compiler_can_build_shared=no
8443      ;;
8444
8445    uts4*)
8446      lt_prog_compiler_pic='-pic'
8447      lt_prog_compiler_static='-Bstatic'
8448      ;;
8449
8450    *)
8451      lt_prog_compiler_can_build_shared=no
8452      ;;
8453    esac
8454  fi
8455
8456case $host_os in
8457  # For platforms which do not support PIC, -DPIC is meaningless:
8458  *djgpp*)
8459    lt_prog_compiler_pic=
8460    ;;
8461  *)
8462    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8463    ;;
8464esac
8465
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8467$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8468if ${lt_cv_prog_compiler_pic+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8472fi
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8474$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8475lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8476
8477#
8478# Check to make sure the PIC flag actually works.
8479#
8480if test -n "$lt_prog_compiler_pic"; then
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8482$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8483if ${lt_cv_prog_compiler_pic_works+:} false; then :
8484  $as_echo_n "(cached) " >&6
8485else
8486  lt_cv_prog_compiler_pic_works=no
8487   ac_outfile=conftest.$ac_objext
8488   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8490   # Insert the option either (1) after the last *FLAGS variable, or
8491   # (2) before a word containing "conftest.", or (3) at the end.
8492   # Note that $ac_compile itself does not contain backslashes and begins
8493   # with a dollar sign (not a hyphen), so the echo should work correctly.
8494   # The option is referenced via a variable to avoid confusing sed.
8495   lt_compile=`echo "$ac_compile" | $SED \
8496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498   -e 's:$: $lt_compiler_flag:'`
8499   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8500   (eval "$lt_compile" 2>conftest.err)
8501   ac_status=$?
8502   cat conftest.err >&5
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   if (exit $ac_status) && test -s "$ac_outfile"; then
8505     # The compiler can only warn and ignore the option if not recognized
8506     # So say no if there are warnings other than the usual output.
8507     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8508     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8509     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8510       lt_cv_prog_compiler_pic_works=yes
8511     fi
8512   fi
8513   $RM conftest*
8514
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8517$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8518
8519if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8520    case $lt_prog_compiler_pic in
8521     "" | " "*) ;;
8522     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8523     esac
8524else
8525    lt_prog_compiler_pic=
8526     lt_prog_compiler_can_build_shared=no
8527fi
8528
8529fi
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541#
8542# Check to make sure the static flag actually works.
8543#
8544wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8546$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8547if ${lt_cv_prog_compiler_static_works+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  lt_cv_prog_compiler_static_works=no
8551   save_LDFLAGS="$LDFLAGS"
8552   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8553   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8554   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8555     # The linker can only warn and ignore the option if not recognized
8556     # So say no if there are warnings
8557     if test -s conftest.err; then
8558       # Append any errors to the config.log.
8559       cat conftest.err 1>&5
8560       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8561       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8562       if diff conftest.exp conftest.er2 >/dev/null; then
8563         lt_cv_prog_compiler_static_works=yes
8564       fi
8565     else
8566       lt_cv_prog_compiler_static_works=yes
8567     fi
8568   fi
8569   $RM -r conftest*
8570   LDFLAGS="$save_LDFLAGS"
8571
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8574$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8575
8576if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8577    :
8578else
8579    lt_prog_compiler_static=
8580fi
8581
8582
8583
8584
8585
8586
8587
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8589$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8590if ${lt_cv_prog_compiler_c_o+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  lt_cv_prog_compiler_c_o=no
8594   $RM -r conftest 2>/dev/null
8595   mkdir conftest
8596   cd conftest
8597   mkdir out
8598   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600   lt_compiler_flag="-o out/conftest2.$ac_objext"
8601   # Insert the option either (1) after the last *FLAGS variable, or
8602   # (2) before a word containing "conftest.", or (3) at the end.
8603   # Note that $ac_compile itself does not contain backslashes and begins
8604   # with a dollar sign (not a hyphen), so the echo should work correctly.
8605   lt_compile=`echo "$ac_compile" | $SED \
8606   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608   -e 's:$: $lt_compiler_flag:'`
8609   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610   (eval "$lt_compile" 2>out/conftest.err)
8611   ac_status=$?
8612   cat out/conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8615   then
8616     # The compiler can only warn and ignore the option if not recognized
8617     # So say no if there are warnings
8618     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8619     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8620     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8621       lt_cv_prog_compiler_c_o=yes
8622     fi
8623   fi
8624   chmod u+w . 2>&5
8625   $RM conftest*
8626   # SGI C++ compiler will create directory out/ii_files/ for
8627   # template instantiation
8628   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8629   $RM out/* && rmdir out
8630   cd ..
8631   $RM -r conftest
8632   $RM conftest*
8633
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8636$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8637
8638
8639
8640
8641
8642
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8644$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8645if ${lt_cv_prog_compiler_c_o+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  lt_cv_prog_compiler_c_o=no
8649   $RM -r conftest 2>/dev/null
8650   mkdir conftest
8651   cd conftest
8652   mkdir out
8653   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655   lt_compiler_flag="-o out/conftest2.$ac_objext"
8656   # Insert the option either (1) after the last *FLAGS variable, or
8657   # (2) before a word containing "conftest.", or (3) at the end.
8658   # Note that $ac_compile itself does not contain backslashes and begins
8659   # with a dollar sign (not a hyphen), so the echo should work correctly.
8660   lt_compile=`echo "$ac_compile" | $SED \
8661   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663   -e 's:$: $lt_compiler_flag:'`
8664   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8665   (eval "$lt_compile" 2>out/conftest.err)
8666   ac_status=$?
8667   cat out/conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8670   then
8671     # The compiler can only warn and ignore the option if not recognized
8672     # So say no if there are warnings
8673     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8674     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8675     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8676       lt_cv_prog_compiler_c_o=yes
8677     fi
8678   fi
8679   chmod u+w . 2>&5
8680   $RM conftest*
8681   # SGI C++ compiler will create directory out/ii_files/ for
8682   # template instantiation
8683   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8684   $RM out/* && rmdir out
8685   cd ..
8686   $RM -r conftest
8687   $RM conftest*
8688
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8691$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8692
8693
8694
8695
8696hard_links="nottested"
8697if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8698  # do not overwrite the value of need_locks provided by the user
8699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8700$as_echo_n "checking if we can lock with hard links... " >&6; }
8701  hard_links=yes
8702  $RM conftest*
8703  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704  touch conftest.a
8705  ln conftest.a conftest.b 2>&5 || hard_links=no
8706  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8708$as_echo "$hard_links" >&6; }
8709  if test "$hard_links" = no; then
8710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8711$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8712    need_locks=warn
8713  fi
8714else
8715  need_locks=no
8716fi
8717
8718
8719
8720
8721
8722
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8724$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8725
8726  runpath_var=
8727  allow_undefined_flag=
8728  always_export_symbols=no
8729  archive_cmds=
8730  archive_expsym_cmds=
8731  compiler_needs_object=no
8732  enable_shared_with_static_runtimes=no
8733  export_dynamic_flag_spec=
8734  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8735  hardcode_automatic=no
8736  hardcode_direct=no
8737  hardcode_direct_absolute=no
8738  hardcode_libdir_flag_spec=
8739  hardcode_libdir_separator=
8740  hardcode_minus_L=no
8741  hardcode_shlibpath_var=unsupported
8742  inherit_rpath=no
8743  link_all_deplibs=unknown
8744  module_cmds=
8745  module_expsym_cmds=
8746  old_archive_from_new_cmds=
8747  old_archive_from_expsyms_cmds=
8748  thread_safe_flag_spec=
8749  whole_archive_flag_spec=
8750  # include_expsyms should be a list of space-separated symbols to be *always*
8751  # included in the symbol list
8752  include_expsyms=
8753  # exclude_expsyms can be an extended regexp of symbols to exclude
8754  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8755  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8756  # as well as any symbol that contains `d'.
8757  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8758  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8759  # platforms (ab)use it in PIC code, but their linkers get confused if
8760  # the symbol is explicitly referenced.  Since portable code cannot
8761  # rely on this symbol name, it's probably fine to never include it in
8762  # preloaded symbol tables.
8763  # Exclude shared library initialization/finalization symbols.
8764  extract_expsyms_cmds=
8765
8766  case $host_os in
8767  cygwin* | mingw* | pw32* | cegcc*)
8768    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769    # When not using gcc, we currently assume that we are using
8770    # Microsoft Visual C++.
8771    if test "$GCC" != yes; then
8772      with_gnu_ld=no
8773    fi
8774    ;;
8775  interix*)
8776    # we just hope/assume this is gcc and not c89 (= MSVC++)
8777    with_gnu_ld=yes
8778    ;;
8779  openbsd*)
8780    with_gnu_ld=no
8781    ;;
8782  linux* | k*bsd*-gnu | gnu*)
8783    link_all_deplibs=no
8784    ;;
8785  esac
8786
8787  ld_shlibs=yes
8788
8789  # On some targets, GNU ld is compatible enough with the native linker
8790  # that we're better off using the native interface for both.
8791  lt_use_gnu_ld_interface=no
8792  if test "$with_gnu_ld" = yes; then
8793    case $host_os in
8794      aix*)
8795	# The AIX port of GNU ld has always aspired to compatibility
8796	# with the native linker.  However, as the warning in the GNU ld
8797	# block says, versions before 2.19.5* couldn't really create working
8798	# shared libraries, regardless of the interface used.
8799	case `$LD -v 2>&1` in
8800	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8801	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8802	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8803	  *)
8804	    lt_use_gnu_ld_interface=yes
8805	    ;;
8806	esac
8807	;;
8808      *)
8809	lt_use_gnu_ld_interface=yes
8810	;;
8811    esac
8812  fi
8813
8814  if test "$lt_use_gnu_ld_interface" = yes; then
8815    # If archive_cmds runs LD, not CC, wlarc should be empty
8816    wlarc='${wl}'
8817
8818    # Set some defaults for GNU ld with shared library support. These
8819    # are reset later if shared libraries are not supported. Putting them
8820    # here allows them to be overridden if necessary.
8821    runpath_var=LD_RUN_PATH
8822    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8823    export_dynamic_flag_spec='${wl}--export-dynamic'
8824    # ancient GNU ld didn't support --whole-archive et. al.
8825    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8826      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8827    else
8828      whole_archive_flag_spec=
8829    fi
8830    supports_anon_versioning=no
8831    case `$LD -v 2>&1` in
8832      *GNU\ gold*) supports_anon_versioning=yes ;;
8833      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8834      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8835      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8836      *\ 2.11.*) ;; # other 2.11 versions
8837      *) supports_anon_versioning=yes ;;
8838    esac
8839
8840    # See if GNU ld supports shared libraries.
8841    case $host_os in
8842    aix[3-9]*)
8843      # On AIX/PPC, the GNU linker is very broken
8844      if test "$host_cpu" != ia64; then
8845	ld_shlibs=no
8846	cat <<_LT_EOF 1>&2
8847
8848*** Warning: the GNU linker, at least up to release 2.19, is reported
8849*** to be unable to reliably create shared libraries on AIX.
8850*** Therefore, libtool is disabling shared libraries support.  If you
8851*** really care for shared libraries, you may want to install binutils
8852*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8853*** You will then need to restart the configuration process.
8854
8855_LT_EOF
8856      fi
8857      ;;
8858
8859    amigaos*)
8860      case $host_cpu in
8861      powerpc)
8862            # see comment about AmigaOS4 .so support
8863            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864            archive_expsym_cmds=''
8865        ;;
8866      m68k)
8867            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)'
8868            hardcode_libdir_flag_spec='-L$libdir'
8869            hardcode_minus_L=yes
8870        ;;
8871      esac
8872      ;;
8873
8874    beos*)
8875      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876	allow_undefined_flag=unsupported
8877	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8878	# support --undefined.  This deserves some investigation.  FIXME
8879	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880      else
8881	ld_shlibs=no
8882      fi
8883      ;;
8884
8885    cygwin* | mingw* | pw32* | cegcc*)
8886      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8887      # as there is no search path for DLLs.
8888      hardcode_libdir_flag_spec='-L$libdir'
8889      export_dynamic_flag_spec='${wl}--export-all-symbols'
8890      allow_undefined_flag=unsupported
8891      always_export_symbols=no
8892      enable_shared_with_static_runtimes=yes
8893      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'
8894      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8895
8896      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8897        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8898	# If the export-symbols file already is a .def file (1st line
8899	# is EXPORTS), use it as is; otherwise, prepend...
8900	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901	  cp $export_symbols $output_objdir/$soname.def;
8902	else
8903	  echo EXPORTS > $output_objdir/$soname.def;
8904	  cat $export_symbols >> $output_objdir/$soname.def;
8905	fi~
8906	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8907      else
8908	ld_shlibs=no
8909      fi
8910      ;;
8911
8912    haiku*)
8913      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8914      link_all_deplibs=yes
8915      ;;
8916
8917    interix[3-9]*)
8918      hardcode_direct=no
8919      hardcode_shlibpath_var=no
8920      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8921      export_dynamic_flag_spec='${wl}-E'
8922      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8923      # Instead, shared libraries are loaded at an image base (0x10000000 by
8924      # default) and relocated if they conflict, which is a slow very memory
8925      # consuming and fragmenting process.  To avoid this, we pick a random,
8926      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8927      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8928      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8929      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'
8930      ;;
8931
8932    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8933      tmp_diet=no
8934      if test "$host_os" = linux-dietlibc; then
8935	case $cc_basename in
8936	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8937	esac
8938      fi
8939      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8940	 && test "$tmp_diet" = no
8941      then
8942	tmp_addflag=' $pic_flag'
8943	tmp_sharedflag='-shared'
8944	case $cc_basename,$host_cpu in
8945        pgcc*)				# Portland Group C compiler
8946	  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'
8947	  tmp_addflag=' $pic_flag'
8948	  ;;
8949	pgf77* | pgf90* | pgf95* | pgfortran*)
8950					# Portland Group f77 and f90 compilers
8951	  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'
8952	  tmp_addflag=' $pic_flag -Mnomain' ;;
8953	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8954	  tmp_addflag=' -i_dynamic' ;;
8955	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8956	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8957	ifc* | ifort*)			# Intel Fortran compiler
8958	  tmp_addflag=' -nofor_main' ;;
8959	lf95*)				# Lahey Fortran 8.1
8960	  whole_archive_flag_spec=
8961	  tmp_sharedflag='--shared' ;;
8962	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8963	  tmp_sharedflag='-qmkshrobj'
8964	  tmp_addflag= ;;
8965	nvcc*)	# Cuda Compiler Driver 2.2
8966	  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'
8967	  compiler_needs_object=yes
8968	  ;;
8969	esac
8970	case `$CC -V 2>&1 | sed 5q` in
8971	*Sun\ C*)			# Sun C 5.9
8972	  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'
8973	  compiler_needs_object=yes
8974	  tmp_sharedflag='-G' ;;
8975	*Sun\ F*)			# Sun Fortran 8.3
8976	  tmp_sharedflag='-G' ;;
8977	esac
8978	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979
8980        if test "x$supports_anon_versioning" = xyes; then
8981          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8982	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8983	    echo "local: *; };" >> $output_objdir/$libname.ver~
8984	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8985        fi
8986
8987	case $cc_basename in
8988	xlf* | bgf* | bgxlf* | mpixlf*)
8989	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8990	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8991	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8993	  if test "x$supports_anon_versioning" = xyes; then
8994	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8995	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8996	      echo "local: *; };" >> $output_objdir/$libname.ver~
8997	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8998	  fi
8999	  ;;
9000	esac
9001      else
9002        ld_shlibs=no
9003      fi
9004      ;;
9005
9006    netbsd* | netbsdelf*-gnu)
9007      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9008	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9009	wlarc=
9010      else
9011	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013      fi
9014      ;;
9015
9016    solaris*)
9017      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9018	ld_shlibs=no
9019	cat <<_LT_EOF 1>&2
9020
9021*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9022*** create shared libraries on Solaris systems.  Therefore, libtool
9023*** is disabling shared libraries support.  We urge you to upgrade GNU
9024*** binutils to release 2.9.1 or newer.  Another option is to modify
9025*** your PATH or compiler configuration so that the native linker is
9026*** used, and then restart.
9027
9028_LT_EOF
9029      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032      else
9033	ld_shlibs=no
9034      fi
9035      ;;
9036
9037    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9038      case `$LD -v 2>&1` in
9039        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9040	ld_shlibs=no
9041	cat <<_LT_EOF 1>&2
9042
9043*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9044*** reliably create shared libraries on SCO systems.  Therefore, libtool
9045*** is disabling shared libraries support.  We urge you to upgrade GNU
9046*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9047*** your PATH or compiler configuration so that the native linker is
9048*** used, and then restart.
9049
9050_LT_EOF
9051	;;
9052	*)
9053	  # For security reasons, it is highly recommended that you always
9054	  # use absolute paths for naming shared libraries, and exclude the
9055	  # DT_RUNPATH tag from executables and libraries.  But doing so
9056	  # requires that you compile everything twice, which is a pain.
9057	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9058	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061	  else
9062	    ld_shlibs=no
9063	  fi
9064	;;
9065      esac
9066      ;;
9067
9068    sunos4*)
9069      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9070      wlarc=
9071      hardcode_direct=yes
9072      hardcode_shlibpath_var=no
9073      ;;
9074
9075    *)
9076      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9077	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9079      else
9080	ld_shlibs=no
9081      fi
9082      ;;
9083    esac
9084
9085    if test "$ld_shlibs" = no; then
9086      runpath_var=
9087      hardcode_libdir_flag_spec=
9088      export_dynamic_flag_spec=
9089      whole_archive_flag_spec=
9090    fi
9091  else
9092    # PORTME fill in a description of your system's linker (not GNU ld)
9093    case $host_os in
9094    aix3*)
9095      allow_undefined_flag=unsupported
9096      always_export_symbols=yes
9097      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'
9098      # Note: this linker hardcodes the directories in LIBPATH if there
9099      # are no directories specified by -L.
9100      hardcode_minus_L=yes
9101      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9102	# Neither direct hardcoding nor static linking is supported with a
9103	# broken collect2.
9104	hardcode_direct=unsupported
9105      fi
9106      ;;
9107
9108    aix[4-9]*)
9109      if test "$host_cpu" = ia64; then
9110	# On IA64, the linker does run time linking by default, so we don't
9111	# have to do anything special.
9112	aix_use_runtimelinking=no
9113	exp_sym_flag='-Bexport'
9114	no_entry_flag=""
9115      else
9116	# If we're using GNU nm, then we don't want the "-C" option.
9117	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9118	# Also, AIX nm treats weak defined symbols like other global
9119	# defined symbols, whereas GNU nm marks them as "W".
9120	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9121	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9122	else
9123	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9124	fi
9125	aix_use_runtimelinking=no
9126
9127	# Test if we are trying to use run time linking or normal
9128	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129	# need to do runtime linking.
9130	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9131	  for ld_flag in $LDFLAGS; do
9132	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9133	    aix_use_runtimelinking=yes
9134	    break
9135	  fi
9136	  done
9137	  ;;
9138	esac
9139
9140	exp_sym_flag='-bexport'
9141	no_entry_flag='-bnoentry'
9142      fi
9143
9144      # When large executables or shared objects are built, AIX ld can
9145      # have problems creating the table of contents.  If linking a library
9146      # or program results in "error TOC overflow" add -mminimal-toc to
9147      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9148      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9149
9150      archive_cmds=''
9151      hardcode_direct=yes
9152      hardcode_direct_absolute=yes
9153      hardcode_libdir_separator=':'
9154      link_all_deplibs=yes
9155      file_list_spec='${wl}-f,'
9156
9157      if test "$GCC" = yes; then
9158	case $host_os in aix4.[012]|aix4.[012].*)
9159	# We only want to do this on AIX 4.2 and lower, the check
9160	# below for broken collect2 doesn't work under 4.3+
9161	  collect2name=`${CC} -print-prog-name=collect2`
9162	  if test -f "$collect2name" &&
9163	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9164	  then
9165	  # We have reworked collect2
9166	  :
9167	  else
9168	  # We have old collect2
9169	  hardcode_direct=unsupported
9170	  # It fails to find uninstalled libraries when the uninstalled
9171	  # path is not listed in the libpath.  Setting hardcode_minus_L
9172	  # to unsupported forces relinking
9173	  hardcode_minus_L=yes
9174	  hardcode_libdir_flag_spec='-L$libdir'
9175	  hardcode_libdir_separator=
9176	  fi
9177	  ;;
9178	esac
9179	shared_flag='-shared'
9180	if test "$aix_use_runtimelinking" = yes; then
9181	  shared_flag="$shared_flag "'${wl}-G'
9182	fi
9183	link_all_deplibs=no
9184      else
9185	# not using gcc
9186	if test "$host_cpu" = ia64; then
9187	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9188	# chokes on -Wl,-G. The following line is correct:
9189	  shared_flag='-G'
9190	else
9191	  if test "$aix_use_runtimelinking" = yes; then
9192	    shared_flag='${wl}-G'
9193	  else
9194	    shared_flag='${wl}-bM:SRE'
9195	  fi
9196	fi
9197      fi
9198
9199      export_dynamic_flag_spec='${wl}-bexpall'
9200      # It seems that -bexpall does not export symbols beginning with
9201      # underscore (_), so it is better to generate a list of symbols to export.
9202      always_export_symbols=yes
9203      if test "$aix_use_runtimelinking" = yes; then
9204	# Warning - without using the other runtime loading flags (-brtl),
9205	# -berok will link without error, but may produce a broken library.
9206	allow_undefined_flag='-berok'
9207        # Determine the default libpath from the value encoded in an
9208        # empty executable.
9209        if test "${lt_cv_aix_libpath+set}" = set; then
9210  aix_libpath=$lt_cv_aix_libpath
9211else
9212  if ${lt_cv_aix_libpath_+:} false; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h.  */
9217
9218int
9219main ()
9220{
9221
9222  ;
9223  return 0;
9224}
9225_ACEOF
9226if ac_fn_c_try_link "$LINENO"; then :
9227
9228  lt_aix_libpath_sed='
9229      /Import File Strings/,/^$/ {
9230	  /^0/ {
9231	      s/^0  *\([^ ]*\) *$/\1/
9232	      p
9233	  }
9234      }'
9235  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236  # Check for a 64-bit object if we didn't find anything.
9237  if test -z "$lt_cv_aix_libpath_"; then
9238    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239  fi
9240fi
9241rm -f core conftest.err conftest.$ac_objext \
9242    conftest$ac_exeext conftest.$ac_ext
9243  if test -z "$lt_cv_aix_libpath_"; then
9244    lt_cv_aix_libpath_="/usr/lib:/lib"
9245  fi
9246
9247fi
9248
9249  aix_libpath=$lt_cv_aix_libpath_
9250fi
9251
9252        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9253        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9254      else
9255	if test "$host_cpu" = ia64; then
9256	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9257	  allow_undefined_flag="-z nodefs"
9258	  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"
9259	else
9260	 # Determine the default libpath from the value encoded in an
9261	 # empty executable.
9262	 if test "${lt_cv_aix_libpath+set}" = set; then
9263  aix_libpath=$lt_cv_aix_libpath
9264else
9265  if ${lt_cv_aix_libpath_+:} false; then :
9266  $as_echo_n "(cached) " >&6
9267else
9268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269/* end confdefs.h.  */
9270
9271int
9272main ()
9273{
9274
9275  ;
9276  return 0;
9277}
9278_ACEOF
9279if ac_fn_c_try_link "$LINENO"; then :
9280
9281  lt_aix_libpath_sed='
9282      /Import File Strings/,/^$/ {
9283	  /^0/ {
9284	      s/^0  *\([^ ]*\) *$/\1/
9285	      p
9286	  }
9287      }'
9288  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9289  # Check for a 64-bit object if we didn't find anything.
9290  if test -z "$lt_cv_aix_libpath_"; then
9291    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9292  fi
9293fi
9294rm -f core conftest.err conftest.$ac_objext \
9295    conftest$ac_exeext conftest.$ac_ext
9296  if test -z "$lt_cv_aix_libpath_"; then
9297    lt_cv_aix_libpath_="/usr/lib:/lib"
9298  fi
9299
9300fi
9301
9302  aix_libpath=$lt_cv_aix_libpath_
9303fi
9304
9305	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9306	  # Warning - without using the other run time loading flags,
9307	  # -berok will link without error, but may produce a broken library.
9308	  no_undefined_flag=' ${wl}-bernotok'
9309	  allow_undefined_flag=' ${wl}-berok'
9310	  if test "$with_gnu_ld" = yes; then
9311	    # We only use this code for GNU lds that support --whole-archive.
9312	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9313	  else
9314	    # Exported symbols can be pulled into shared objects from archives
9315	    whole_archive_flag_spec='$convenience'
9316	  fi
9317	  archive_cmds_need_lc=yes
9318	  # This is similar to how AIX traditionally builds its shared libraries.
9319	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9320	fi
9321      fi
9322      ;;
9323
9324    amigaos*)
9325      case $host_cpu in
9326      powerpc)
9327            # see comment about AmigaOS4 .so support
9328            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329            archive_expsym_cmds=''
9330        ;;
9331      m68k)
9332            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)'
9333            hardcode_libdir_flag_spec='-L$libdir'
9334            hardcode_minus_L=yes
9335        ;;
9336      esac
9337      ;;
9338
9339    bsdi[45]*)
9340      export_dynamic_flag_spec=-rdynamic
9341      ;;
9342
9343    cygwin* | mingw* | pw32* | cegcc*)
9344      # When not using gcc, we currently assume that we are using
9345      # Microsoft Visual C++.
9346      # hardcode_libdir_flag_spec is actually meaningless, as there is
9347      # no search path for DLLs.
9348      case $cc_basename in
9349      cl*)
9350	# Native MSVC
9351	hardcode_libdir_flag_spec=' '
9352	allow_undefined_flag=unsupported
9353	always_export_symbols=yes
9354	file_list_spec='@'
9355	# Tell ltmain to make .lib files, not .a files.
9356	libext=lib
9357	# Tell ltmain to make .dll files, not .so files.
9358	shrext_cmds=".dll"
9359	# FIXME: Setting linknames here is a bad hack.
9360	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9361	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9362	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9363	  else
9364	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9365	  fi~
9366	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9367	  linknames='
9368	# The linker will not automatically build a static lib if we build a DLL.
9369	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9370	enable_shared_with_static_runtimes=yes
9371	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9372	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9373	# Don't use ranlib
9374	old_postinstall_cmds='chmod 644 $oldlib'
9375	postlink_cmds='lt_outputfile="@OUTPUT@"~
9376	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9377	  case $lt_outputfile in
9378	    *.exe|*.EXE) ;;
9379	    *)
9380	      lt_outputfile="$lt_outputfile.exe"
9381	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9382	      ;;
9383	  esac~
9384	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9385	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9386	    $RM "$lt_outputfile.manifest";
9387	  fi'
9388	;;
9389      *)
9390	# Assume MSVC wrapper
9391	hardcode_libdir_flag_spec=' '
9392	allow_undefined_flag=unsupported
9393	# Tell ltmain to make .lib files, not .a files.
9394	libext=lib
9395	# Tell ltmain to make .dll files, not .so files.
9396	shrext_cmds=".dll"
9397	# FIXME: Setting linknames here is a bad hack.
9398	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9399	# The linker will automatically build a .lib file if we build a DLL.
9400	old_archive_from_new_cmds='true'
9401	# FIXME: Should let the user specify the lib program.
9402	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9403	enable_shared_with_static_runtimes=yes
9404	;;
9405      esac
9406      ;;
9407
9408    darwin* | rhapsody*)
9409
9410
9411  archive_cmds_need_lc=no
9412  hardcode_direct=no
9413  hardcode_automatic=yes
9414  hardcode_shlibpath_var=unsupported
9415  if test "$lt_cv_ld_force_load" = "yes"; then
9416    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\"`'
9417
9418  else
9419    whole_archive_flag_spec=''
9420  fi
9421  link_all_deplibs=yes
9422  allow_undefined_flag="$_lt_dar_allow_undefined"
9423  case $cc_basename in
9424     ifort*) _lt_dar_can_shared=yes ;;
9425     *) _lt_dar_can_shared=$GCC ;;
9426  esac
9427  if test "$_lt_dar_can_shared" = "yes"; then
9428    output_verbose_link_cmd=func_echo_all
9429    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9430    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9431    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}"
9432    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}"
9433
9434  else
9435  ld_shlibs=no
9436  fi
9437
9438      ;;
9439
9440    dgux*)
9441      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442      hardcode_libdir_flag_spec='-L$libdir'
9443      hardcode_shlibpath_var=no
9444      ;;
9445
9446    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9447    # support.  Future versions do this automatically, but an explicit c++rt0.o
9448    # does not break anything, and helps significantly (at the cost of a little
9449    # extra space).
9450    freebsd2.2*)
9451      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9452      hardcode_libdir_flag_spec='-R$libdir'
9453      hardcode_direct=yes
9454      hardcode_shlibpath_var=no
9455      ;;
9456
9457    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9458    freebsd2.*)
9459      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9460      hardcode_direct=yes
9461      hardcode_minus_L=yes
9462      hardcode_shlibpath_var=no
9463      ;;
9464
9465    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9466    freebsd* | dragonfly*)
9467      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9468      hardcode_libdir_flag_spec='-R$libdir'
9469      hardcode_direct=yes
9470      hardcode_shlibpath_var=no
9471      ;;
9472
9473    hpux9*)
9474      if test "$GCC" = yes; then
9475	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9476      else
9477	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9478      fi
9479      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9480      hardcode_libdir_separator=:
9481      hardcode_direct=yes
9482
9483      # hardcode_minus_L: Not really in the search PATH,
9484      # but as the default location of the library.
9485      hardcode_minus_L=yes
9486      export_dynamic_flag_spec='${wl}-E'
9487      ;;
9488
9489    hpux10*)
9490      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9491	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492      else
9493	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9494      fi
9495      if test "$with_gnu_ld" = no; then
9496	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9497	hardcode_libdir_separator=:
9498	hardcode_direct=yes
9499	hardcode_direct_absolute=yes
9500	export_dynamic_flag_spec='${wl}-E'
9501	# hardcode_minus_L: Not really in the search PATH,
9502	# but as the default location of the library.
9503	hardcode_minus_L=yes
9504      fi
9505      ;;
9506
9507    hpux11*)
9508      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9509	case $host_cpu in
9510	hppa*64*)
9511	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9512	  ;;
9513	ia64*)
9514	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9515	  ;;
9516	*)
9517	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9518	  ;;
9519	esac
9520      else
9521	case $host_cpu in
9522	hppa*64*)
9523	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9524	  ;;
9525	ia64*)
9526	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9527	  ;;
9528	*)
9529
9530	  # Older versions of the 11.00 compiler do not understand -b yet
9531	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9532	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9533$as_echo_n "checking if $CC understands -b... " >&6; }
9534if ${lt_cv_prog_compiler__b+:} false; then :
9535  $as_echo_n "(cached) " >&6
9536else
9537  lt_cv_prog_compiler__b=no
9538   save_LDFLAGS="$LDFLAGS"
9539   LDFLAGS="$LDFLAGS -b"
9540   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9541   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9542     # The linker can only warn and ignore the option if not recognized
9543     # So say no if there are warnings
9544     if test -s conftest.err; then
9545       # Append any errors to the config.log.
9546       cat conftest.err 1>&5
9547       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9548       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9549       if diff conftest.exp conftest.er2 >/dev/null; then
9550         lt_cv_prog_compiler__b=yes
9551       fi
9552     else
9553       lt_cv_prog_compiler__b=yes
9554     fi
9555   fi
9556   $RM -r conftest*
9557   LDFLAGS="$save_LDFLAGS"
9558
9559fi
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9561$as_echo "$lt_cv_prog_compiler__b" >&6; }
9562
9563if test x"$lt_cv_prog_compiler__b" = xyes; then
9564    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9565else
9566    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9567fi
9568
9569	  ;;
9570	esac
9571      fi
9572      if test "$with_gnu_ld" = no; then
9573	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9574	hardcode_libdir_separator=:
9575
9576	case $host_cpu in
9577	hppa*64*|ia64*)
9578	  hardcode_direct=no
9579	  hardcode_shlibpath_var=no
9580	  ;;
9581	*)
9582	  hardcode_direct=yes
9583	  hardcode_direct_absolute=yes
9584	  export_dynamic_flag_spec='${wl}-E'
9585
9586	  # hardcode_minus_L: Not really in the search PATH,
9587	  # but as the default location of the library.
9588	  hardcode_minus_L=yes
9589	  ;;
9590	esac
9591      fi
9592      ;;
9593
9594    irix5* | irix6* | nonstopux*)
9595      if test "$GCC" = yes; then
9596	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'
9597	# Try to use the -exported_symbol ld option, if it does not
9598	# work, assume that -exports_file does not work either and
9599	# implicitly export all symbols.
9600	# This should be the same for all languages, so no per-tag cache variable.
9601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9602$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9603if ${lt_cv_irix_exported_symbol+:} false; then :
9604  $as_echo_n "(cached) " >&6
9605else
9606  save_LDFLAGS="$LDFLAGS"
9607	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9608	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609/* end confdefs.h.  */
9610int foo (void) { return 0; }
9611_ACEOF
9612if ac_fn_c_try_link "$LINENO"; then :
9613  lt_cv_irix_exported_symbol=yes
9614else
9615  lt_cv_irix_exported_symbol=no
9616fi
9617rm -f core conftest.err conftest.$ac_objext \
9618    conftest$ac_exeext conftest.$ac_ext
9619           LDFLAGS="$save_LDFLAGS"
9620fi
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9622$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9623	if test "$lt_cv_irix_exported_symbol" = yes; then
9624          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'
9625	fi
9626      else
9627	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'
9628	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'
9629      fi
9630      archive_cmds_need_lc='no'
9631      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632      hardcode_libdir_separator=:
9633      inherit_rpath=yes
9634      link_all_deplibs=yes
9635      ;;
9636
9637    netbsd* | netbsdelf*-gnu)
9638      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9639	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9640      else
9641	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9642      fi
9643      hardcode_libdir_flag_spec='-R$libdir'
9644      hardcode_direct=yes
9645      hardcode_shlibpath_var=no
9646      ;;
9647
9648    newsos6)
9649      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650      hardcode_direct=yes
9651      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9652      hardcode_libdir_separator=:
9653      hardcode_shlibpath_var=no
9654      ;;
9655
9656    *nto* | *qnx*)
9657      ;;
9658
9659    openbsd*)
9660      if test -f /usr/libexec/ld.so; then
9661	hardcode_direct=yes
9662	hardcode_shlibpath_var=no
9663	hardcode_direct_absolute=yes
9664	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9665	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9666	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9667	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9668	  export_dynamic_flag_spec='${wl}-E'
9669	else
9670	  case $host_os in
9671	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9672	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9673	     hardcode_libdir_flag_spec='-R$libdir'
9674	     ;;
9675	   *)
9676	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9677	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9678	     ;;
9679	  esac
9680	fi
9681      else
9682	ld_shlibs=no
9683      fi
9684      ;;
9685
9686    os2*)
9687      hardcode_libdir_flag_spec='-L$libdir'
9688      hardcode_minus_L=yes
9689      allow_undefined_flag=unsupported
9690      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9691      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9692      ;;
9693
9694    osf3*)
9695      if test "$GCC" = yes; then
9696	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9697	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'
9698      else
9699	allow_undefined_flag=' -expect_unresolved \*'
9700	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'
9701      fi
9702      archive_cmds_need_lc='no'
9703      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704      hardcode_libdir_separator=:
9705      ;;
9706
9707    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9708      if test "$GCC" = yes; then
9709	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9710	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'
9711	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9712      else
9713	allow_undefined_flag=' -expect_unresolved \*'
9714	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'
9715	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~
9716	$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'
9717
9718	# Both c and cxx compiler support -rpath directly
9719	hardcode_libdir_flag_spec='-rpath $libdir'
9720      fi
9721      archive_cmds_need_lc='no'
9722      hardcode_libdir_separator=:
9723      ;;
9724
9725    solaris*)
9726      no_undefined_flag=' -z defs'
9727      if test "$GCC" = yes; then
9728	wlarc='${wl}'
9729	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9730	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731	  $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'
9732      else
9733	case `$CC -V 2>&1` in
9734	*"Compilers 5.0"*)
9735	  wlarc=''
9736	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9739	  ;;
9740	*)
9741	  wlarc='${wl}'
9742	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9743	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9744	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9745	  ;;
9746	esac
9747      fi
9748      hardcode_libdir_flag_spec='-R$libdir'
9749      hardcode_shlibpath_var=no
9750      case $host_os in
9751      solaris2.[0-5] | solaris2.[0-5].*) ;;
9752      *)
9753	# The compiler driver will combine and reorder linker options,
9754	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9755	# but is careful enough not to reorder.
9756	# Supported since Solaris 2.6 (maybe 2.5.1?)
9757	if test "$GCC" = yes; then
9758	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9759	else
9760	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9761	fi
9762	;;
9763      esac
9764      link_all_deplibs=yes
9765      ;;
9766
9767    sunos4*)
9768      if test "x$host_vendor" = xsequent; then
9769	# Use $CC to link under sequent, because it throws in some extra .o
9770	# files that make .init and .fini sections work.
9771	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9772      else
9773	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9774      fi
9775      hardcode_libdir_flag_spec='-L$libdir'
9776      hardcode_direct=yes
9777      hardcode_minus_L=yes
9778      hardcode_shlibpath_var=no
9779      ;;
9780
9781    sysv4)
9782      case $host_vendor in
9783	sni)
9784	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785	  hardcode_direct=yes # is this really true???
9786	;;
9787	siemens)
9788	  ## LD is ld it makes a PLAMLIB
9789	  ## CC just makes a GrossModule.
9790	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9791	  reload_cmds='$CC -r -o $output$reload_objs'
9792	  hardcode_direct=no
9793        ;;
9794	motorola)
9795	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9797	;;
9798      esac
9799      runpath_var='LD_RUN_PATH'
9800      hardcode_shlibpath_var=no
9801      ;;
9802
9803    sysv4.3*)
9804      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805      hardcode_shlibpath_var=no
9806      export_dynamic_flag_spec='-Bexport'
9807      ;;
9808
9809    sysv4*MP*)
9810      if test -d /usr/nec; then
9811	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812	hardcode_shlibpath_var=no
9813	runpath_var=LD_RUN_PATH
9814	hardcode_runpath_var=yes
9815	ld_shlibs=yes
9816      fi
9817      ;;
9818
9819    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9820      no_undefined_flag='${wl}-z,text'
9821      archive_cmds_need_lc=no
9822      hardcode_shlibpath_var=no
9823      runpath_var='LD_RUN_PATH'
9824
9825      if test "$GCC" = yes; then
9826	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828      else
9829	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831      fi
9832      ;;
9833
9834    sysv5* | sco3.2v5* | sco5v6*)
9835      # Note: We can NOT use -z defs as we might desire, because we do not
9836      # link with -lc, and that would cause any symbols used from libc to
9837      # always be unresolved, which means just about no library would
9838      # ever link correctly.  If we're not using GNU ld we use -z text
9839      # though, which does catch some bad symbols but isn't as heavy-handed
9840      # as -z defs.
9841      no_undefined_flag='${wl}-z,text'
9842      allow_undefined_flag='${wl}-z,nodefs'
9843      archive_cmds_need_lc=no
9844      hardcode_shlibpath_var=no
9845      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9846      hardcode_libdir_separator=':'
9847      link_all_deplibs=yes
9848      export_dynamic_flag_spec='${wl}-Bexport'
9849      runpath_var='LD_RUN_PATH'
9850
9851      if test "$GCC" = yes; then
9852	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9853	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854      else
9855	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9856	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857      fi
9858      ;;
9859
9860    uts4*)
9861      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862      hardcode_libdir_flag_spec='-L$libdir'
9863      hardcode_shlibpath_var=no
9864      ;;
9865
9866    *)
9867      ld_shlibs=no
9868      ;;
9869    esac
9870
9871    if test x$host_vendor = xsni; then
9872      case $host in
9873      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9874	export_dynamic_flag_spec='${wl}-Blargedynsym'
9875	;;
9876      esac
9877    fi
9878  fi
9879
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9881$as_echo "$ld_shlibs" >&6; }
9882test "$ld_shlibs" = no && can_build_shared=no
9883
9884with_gnu_ld=$with_gnu_ld
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900#
9901# Do we need to explicitly link libc?
9902#
9903case "x$archive_cmds_need_lc" in
9904x|xyes)
9905  # Assume -lc should be added
9906  archive_cmds_need_lc=yes
9907
9908  if test "$enable_shared" = yes && test "$GCC" = yes; then
9909    case $archive_cmds in
9910    *'~'*)
9911      # FIXME: we may have to deal with multi-command sequences.
9912      ;;
9913    '$CC '*)
9914      # Test whether the compiler implicitly links with -lc since on some
9915      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9916      # to ld, don't add -lc before -lgcc.
9917      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9918$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9919if ${lt_cv_archive_cmds_need_lc+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  $RM conftest*
9923	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9924
9925	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9926  (eval $ac_compile) 2>&5
9927  ac_status=$?
9928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929  test $ac_status = 0; } 2>conftest.err; then
9930	  soname=conftest
9931	  lib=conftest
9932	  libobjs=conftest.$ac_objext
9933	  deplibs=
9934	  wl=$lt_prog_compiler_wl
9935	  pic_flag=$lt_prog_compiler_pic
9936	  compiler_flags=-v
9937	  linker_flags=-v
9938	  verstring=
9939	  output_objdir=.
9940	  libname=conftest
9941	  lt_save_allow_undefined_flag=$allow_undefined_flag
9942	  allow_undefined_flag=
9943	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9944  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9945  ac_status=$?
9946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9947  test $ac_status = 0; }
9948	  then
9949	    lt_cv_archive_cmds_need_lc=no
9950	  else
9951	    lt_cv_archive_cmds_need_lc=yes
9952	  fi
9953	  allow_undefined_flag=$lt_save_allow_undefined_flag
9954	else
9955	  cat conftest.err 1>&5
9956	fi
9957	$RM conftest*
9958
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9961$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9962      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9963      ;;
9964    esac
9965  fi
9966  ;;
9967esac
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10121$as_echo_n "checking dynamic linker characteristics... " >&6; }
10122
10123if test "$GCC" = yes; then
10124  case $host_os in
10125    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10126    *) lt_awk_arg="/^libraries:/" ;;
10127  esac
10128  case $host_os in
10129    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10130    *) lt_sed_strip_eq="s,=/,/,g" ;;
10131  esac
10132  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10133  case $lt_search_path_spec in
10134  *\;*)
10135    # if the path contains ";" then we assume it to be the separator
10136    # otherwise default to the standard path separator (i.e. ":") - it is
10137    # assumed that no part of a normal pathname contains ";" but that should
10138    # okay in the real world where ";" in dirpaths is itself problematic.
10139    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10140    ;;
10141  *)
10142    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10143    ;;
10144  esac
10145  # Ok, now we have the path, separated by spaces, we can step through it
10146  # and add multilib dir if necessary.
10147  lt_tmp_lt_search_path_spec=
10148  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10149  for lt_sys_path in $lt_search_path_spec; do
10150    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10151      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10152    else
10153      test -d "$lt_sys_path" && \
10154	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10155    fi
10156  done
10157  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10158BEGIN {RS=" "; FS="/|\n";} {
10159  lt_foo="";
10160  lt_count=0;
10161  for (lt_i = NF; lt_i > 0; lt_i--) {
10162    if ($lt_i != "" && $lt_i != ".") {
10163      if ($lt_i == "..") {
10164        lt_count++;
10165      } else {
10166        if (lt_count == 0) {
10167          lt_foo="/" $lt_i lt_foo;
10168        } else {
10169          lt_count--;
10170        }
10171      }
10172    }
10173  }
10174  if (lt_foo != "") { lt_freq[lt_foo]++; }
10175  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10176}'`
10177  # AWK program above erroneously prepends '/' to C:/dos/paths
10178  # for these hosts.
10179  case $host_os in
10180    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10181      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10182  esac
10183  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10184else
10185  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10186fi
10187library_names_spec=
10188libname_spec='lib$name'
10189soname_spec=
10190shrext_cmds=".so"
10191postinstall_cmds=
10192postuninstall_cmds=
10193finish_cmds=
10194finish_eval=
10195shlibpath_var=
10196shlibpath_overrides_runpath=unknown
10197version_type=none
10198dynamic_linker="$host_os ld.so"
10199sys_lib_dlsearch_path_spec="/lib /usr/lib"
10200need_lib_prefix=unknown
10201hardcode_into_libs=no
10202
10203# when you set need_version to no, make sure it does not cause -set_version
10204# flags to be left without arguments
10205need_version=unknown
10206
10207case $host_os in
10208aix3*)
10209  version_type=linux # correct to gnu/linux during the next big refactor
10210  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10211  shlibpath_var=LIBPATH
10212
10213  # AIX 3 has no versioning support, so we append a major version to the name.
10214  soname_spec='${libname}${release}${shared_ext}$major'
10215  ;;
10216
10217aix[4-9]*)
10218  version_type=linux # correct to gnu/linux during the next big refactor
10219  need_lib_prefix=no
10220  need_version=no
10221  hardcode_into_libs=yes
10222  if test "$host_cpu" = ia64; then
10223    # AIX 5 supports IA64
10224    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10225    shlibpath_var=LD_LIBRARY_PATH
10226  else
10227    # With GCC up to 2.95.x, collect2 would create an import file
10228    # for dependence libraries.  The import file would start with
10229    # the line `#! .'.  This would cause the generated library to
10230    # depend on `.', always an invalid library.  This was fixed in
10231    # development snapshots of GCC prior to 3.0.
10232    case $host_os in
10233      aix4 | aix4.[01] | aix4.[01].*)
10234      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10235	   echo ' yes '
10236	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10237	:
10238      else
10239	can_build_shared=no
10240      fi
10241      ;;
10242    esac
10243    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10244    # soname into executable. Probably we can add versioning support to
10245    # collect2, so additional links can be useful in future.
10246    if test "$aix_use_runtimelinking" = yes; then
10247      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10248      # instead of lib<name>.a to let people know that these are not
10249      # typical AIX shared libraries.
10250      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251    else
10252      # We preserve .a as extension for shared libraries through AIX4.2
10253      # and later when we are not doing run time linking.
10254      library_names_spec='${libname}${release}.a $libname.a'
10255      soname_spec='${libname}${release}${shared_ext}$major'
10256    fi
10257    shlibpath_var=LIBPATH
10258  fi
10259  ;;
10260
10261amigaos*)
10262  case $host_cpu in
10263  powerpc)
10264    # Since July 2007 AmigaOS4 officially supports .so libraries.
10265    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10266    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267    ;;
10268  m68k)
10269    library_names_spec='$libname.ixlibrary $libname.a'
10270    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10271    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10272    ;;
10273  esac
10274  ;;
10275
10276beos*)
10277  library_names_spec='${libname}${shared_ext}'
10278  dynamic_linker="$host_os ld.so"
10279  shlibpath_var=LIBRARY_PATH
10280  ;;
10281
10282bsdi[45]*)
10283  version_type=linux # correct to gnu/linux during the next big refactor
10284  need_version=no
10285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286  soname_spec='${libname}${release}${shared_ext}$major'
10287  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10288  shlibpath_var=LD_LIBRARY_PATH
10289  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10290  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10291  # the default ld.so.conf also contains /usr/contrib/lib and
10292  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10293  # libtool to hard-code these into programs
10294  ;;
10295
10296cygwin* | mingw* | pw32* | cegcc*)
10297  version_type=windows
10298  shrext_cmds=".dll"
10299  need_version=no
10300  need_lib_prefix=no
10301
10302  case $GCC,$cc_basename in
10303  yes,*)
10304    # gcc
10305    library_names_spec='$libname.dll.a'
10306    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10307    postinstall_cmds='base_file=`basename \${file}`~
10308      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10309      dldir=$destdir/`dirname \$dlpath`~
10310      test -d \$dldir || mkdir -p \$dldir~
10311      $install_prog $dir/$dlname \$dldir/$dlname~
10312      chmod a+x \$dldir/$dlname~
10313      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10314        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10315      fi'
10316    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10317      dlpath=$dir/\$dldll~
10318       $RM \$dlpath'
10319    shlibpath_overrides_runpath=yes
10320
10321    case $host_os in
10322    cygwin*)
10323      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10324      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325
10326      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10327      ;;
10328    mingw* | cegcc*)
10329      # MinGW DLLs use traditional 'lib' prefix
10330      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10331      ;;
10332    pw32*)
10333      # pw32 DLLs use 'pw' prefix rather than 'lib'
10334      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335      ;;
10336    esac
10337    dynamic_linker='Win32 ld.exe'
10338    ;;
10339
10340  *,cl*)
10341    # Native MSVC
10342    libname_spec='$name'
10343    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10344    library_names_spec='${libname}.dll.lib'
10345
10346    case $build_os in
10347    mingw*)
10348      sys_lib_search_path_spec=
10349      lt_save_ifs=$IFS
10350      IFS=';'
10351      for lt_path in $LIB
10352      do
10353        IFS=$lt_save_ifs
10354        # Let DOS variable expansion print the short 8.3 style file name.
10355        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10356        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10357      done
10358      IFS=$lt_save_ifs
10359      # Convert to MSYS style.
10360      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10361      ;;
10362    cygwin*)
10363      # Convert to unix form, then to dos form, then back to unix form
10364      # but this time dos style (no spaces!) so that the unix form looks
10365      # like /cygdrive/c/PROGRA~1:/cygdr...
10366      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10367      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10368      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10369      ;;
10370    *)
10371      sys_lib_search_path_spec="$LIB"
10372      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10373        # It is most probably a Windows format PATH.
10374        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10375      else
10376        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10377      fi
10378      # FIXME: find the short name or the path components, as spaces are
10379      # common. (e.g. "Program Files" -> "PROGRA~1")
10380      ;;
10381    esac
10382
10383    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10384    postinstall_cmds='base_file=`basename \${file}`~
10385      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10386      dldir=$destdir/`dirname \$dlpath`~
10387      test -d \$dldir || mkdir -p \$dldir~
10388      $install_prog $dir/$dlname \$dldir/$dlname'
10389    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10390      dlpath=$dir/\$dldll~
10391       $RM \$dlpath'
10392    shlibpath_overrides_runpath=yes
10393    dynamic_linker='Win32 link.exe'
10394    ;;
10395
10396  *)
10397    # Assume MSVC wrapper
10398    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10399    dynamic_linker='Win32 ld.exe'
10400    ;;
10401  esac
10402  # FIXME: first we should search . and the directory the executable is in
10403  shlibpath_var=PATH
10404  ;;
10405
10406darwin* | rhapsody*)
10407  dynamic_linker="$host_os dyld"
10408  version_type=darwin
10409  need_lib_prefix=no
10410  need_version=no
10411  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10412  soname_spec='${libname}${release}${major}$shared_ext'
10413  shlibpath_overrides_runpath=yes
10414  shlibpath_var=DYLD_LIBRARY_PATH
10415  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10416
10417  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10418  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10419  ;;
10420
10421dgux*)
10422  version_type=linux # correct to gnu/linux during the next big refactor
10423  need_lib_prefix=no
10424  need_version=no
10425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10426  soname_spec='${libname}${release}${shared_ext}$major'
10427  shlibpath_var=LD_LIBRARY_PATH
10428  ;;
10429
10430freebsd* | dragonfly*)
10431  # DragonFly does not have aout.  When/if they implement a new
10432  # versioning mechanism, adjust this.
10433  if test -x /usr/bin/objformat; then
10434    objformat=`/usr/bin/objformat`
10435  else
10436    case $host_os in
10437    freebsd[23].*) objformat=aout ;;
10438    *) objformat=elf ;;
10439    esac
10440  fi
10441  version_type=freebsd-$objformat
10442  case $version_type in
10443    freebsd-elf*)
10444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10445      need_version=no
10446      need_lib_prefix=no
10447      ;;
10448    freebsd-*)
10449      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10450      need_version=yes
10451      ;;
10452  esac
10453  shlibpath_var=LD_LIBRARY_PATH
10454  case $host_os in
10455  freebsd2.*)
10456    shlibpath_overrides_runpath=yes
10457    ;;
10458  freebsd3.[01]* | freebsdelf3.[01]*)
10459    shlibpath_overrides_runpath=yes
10460    hardcode_into_libs=yes
10461    ;;
10462  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10463  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10464    shlibpath_overrides_runpath=no
10465    hardcode_into_libs=yes
10466    ;;
10467  *) # from 4.6 on, and DragonFly
10468    shlibpath_overrides_runpath=yes
10469    hardcode_into_libs=yes
10470    ;;
10471  esac
10472  ;;
10473
10474haiku*)
10475  version_type=linux # correct to gnu/linux during the next big refactor
10476  need_lib_prefix=no
10477  need_version=no
10478  dynamic_linker="$host_os runtime_loader"
10479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10480  soname_spec='${libname}${release}${shared_ext}$major'
10481  shlibpath_var=LIBRARY_PATH
10482  shlibpath_overrides_runpath=yes
10483  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10484  hardcode_into_libs=yes
10485  ;;
10486
10487hpux9* | hpux10* | hpux11*)
10488  # Give a soname corresponding to the major version so that dld.sl refuses to
10489  # link against other versions.
10490  version_type=sunos
10491  need_lib_prefix=no
10492  need_version=no
10493  case $host_cpu in
10494  ia64*)
10495    shrext_cmds='.so'
10496    hardcode_into_libs=yes
10497    dynamic_linker="$host_os dld.so"
10498    shlibpath_var=LD_LIBRARY_PATH
10499    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501    soname_spec='${libname}${release}${shared_ext}$major'
10502    if test "X$HPUX_IA64_MODE" = X32; then
10503      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10504    else
10505      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10506    fi
10507    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10508    ;;
10509  hppa*64*)
10510    shrext_cmds='.sl'
10511    hardcode_into_libs=yes
10512    dynamic_linker="$host_os dld.sl"
10513    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10514    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10515    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516    soname_spec='${libname}${release}${shared_ext}$major'
10517    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10518    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10519    ;;
10520  *)
10521    shrext_cmds='.sl'
10522    dynamic_linker="$host_os dld.sl"
10523    shlibpath_var=SHLIB_PATH
10524    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10525    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526    soname_spec='${libname}${release}${shared_ext}$major'
10527    ;;
10528  esac
10529  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10530  postinstall_cmds='chmod 555 $lib'
10531  # or fails outright, so override atomically:
10532  install_override_mode=555
10533  ;;
10534
10535interix[3-9]*)
10536  version_type=linux # correct to gnu/linux during the next big refactor
10537  need_lib_prefix=no
10538  need_version=no
10539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10540  soname_spec='${libname}${release}${shared_ext}$major'
10541  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10542  shlibpath_var=LD_LIBRARY_PATH
10543  shlibpath_overrides_runpath=no
10544  hardcode_into_libs=yes
10545  ;;
10546
10547irix5* | irix6* | nonstopux*)
10548  case $host_os in
10549    nonstopux*) version_type=nonstopux ;;
10550    *)
10551	if test "$lt_cv_prog_gnu_ld" = yes; then
10552		version_type=linux # correct to gnu/linux during the next big refactor
10553	else
10554		version_type=irix
10555	fi ;;
10556  esac
10557  need_lib_prefix=no
10558  need_version=no
10559  soname_spec='${libname}${release}${shared_ext}$major'
10560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10561  case $host_os in
10562  irix5* | nonstopux*)
10563    libsuff= shlibsuff=
10564    ;;
10565  *)
10566    case $LD in # libtool.m4 will add one of these switches to LD
10567    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10568      libsuff= shlibsuff= libmagic=32-bit;;
10569    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10570      libsuff=32 shlibsuff=N32 libmagic=N32;;
10571    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10572      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10573    *) libsuff= shlibsuff= libmagic=never-match;;
10574    esac
10575    ;;
10576  esac
10577  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10578  shlibpath_overrides_runpath=no
10579  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10580  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10581  hardcode_into_libs=yes
10582  ;;
10583
10584# No shared lib support for Linux oldld, aout, or coff.
10585linux*oldld* | linux*aout* | linux*coff*)
10586  dynamic_linker=no
10587  ;;
10588
10589# This must be glibc/ELF.
10590linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10591  version_type=linux # correct to gnu/linux during the next big refactor
10592  need_lib_prefix=no
10593  need_version=no
10594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595  soname_spec='${libname}${release}${shared_ext}$major'
10596  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10597  shlibpath_var=LD_LIBRARY_PATH
10598  shlibpath_overrides_runpath=no
10599
10600  # Some binutils ld are patched to set DT_RUNPATH
10601  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10602  $as_echo_n "(cached) " >&6
10603else
10604  lt_cv_shlibpath_overrides_runpath=no
10605    save_LDFLAGS=$LDFLAGS
10606    save_libdir=$libdir
10607    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10608	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10609    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h.  */
10611
10612int
10613main ()
10614{
10615
10616  ;
10617  return 0;
10618}
10619_ACEOF
10620if ac_fn_c_try_link "$LINENO"; then :
10621  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10622  lt_cv_shlibpath_overrides_runpath=yes
10623fi
10624fi
10625rm -f core conftest.err conftest.$ac_objext \
10626    conftest$ac_exeext conftest.$ac_ext
10627    LDFLAGS=$save_LDFLAGS
10628    libdir=$save_libdir
10629
10630fi
10631
10632  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10633
10634  # This implies no fast_install, which is unacceptable.
10635  # Some rework will be needed to allow for fast_install
10636  # before this can be enabled.
10637  hardcode_into_libs=yes
10638
10639  # Append ld.so.conf contents to the search path
10640  if test -f /etc/ld.so.conf; then
10641    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' ' '`
10642    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10643  fi
10644
10645  # We used to test for /lib/ld.so.1 and disable shared libraries on
10646  # powerpc, because MkLinux only supported shared libraries with the
10647  # GNU dynamic linker.  Since this was broken with cross compilers,
10648  # most powerpc-linux boxes support dynamic linking these days and
10649  # people can always --disable-shared, the test was removed, and we
10650  # assume the GNU/Linux dynamic linker is in use.
10651  dynamic_linker='GNU/Linux ld.so'
10652  ;;
10653
10654netbsdelf*-gnu)
10655  version_type=linux
10656  need_lib_prefix=no
10657  need_version=no
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10659  soname_spec='${libname}${release}${shared_ext}$major'
10660  shlibpath_var=LD_LIBRARY_PATH
10661  shlibpath_overrides_runpath=no
10662  hardcode_into_libs=yes
10663  dynamic_linker='NetBSD ld.elf_so'
10664  ;;
10665
10666netbsd*)
10667  version_type=sunos
10668  need_lib_prefix=no
10669  need_version=no
10670  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10671    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10673    dynamic_linker='NetBSD (a.out) ld.so'
10674  else
10675    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10676    soname_spec='${libname}${release}${shared_ext}$major'
10677    dynamic_linker='NetBSD ld.elf_so'
10678  fi
10679  shlibpath_var=LD_LIBRARY_PATH
10680  shlibpath_overrides_runpath=yes
10681  hardcode_into_libs=yes
10682  ;;
10683
10684newsos6)
10685  version_type=linux # correct to gnu/linux during the next big refactor
10686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687  shlibpath_var=LD_LIBRARY_PATH
10688  shlibpath_overrides_runpath=yes
10689  ;;
10690
10691*nto* | *qnx*)
10692  version_type=qnx
10693  need_lib_prefix=no
10694  need_version=no
10695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696  soname_spec='${libname}${release}${shared_ext}$major'
10697  shlibpath_var=LD_LIBRARY_PATH
10698  shlibpath_overrides_runpath=no
10699  hardcode_into_libs=yes
10700  dynamic_linker='ldqnx.so'
10701  ;;
10702
10703openbsd*)
10704  version_type=sunos
10705  sys_lib_dlsearch_path_spec="/usr/lib"
10706  need_lib_prefix=no
10707  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10708  case $host_os in
10709    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10710    *)				need_version=no  ;;
10711  esac
10712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10713  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10714  shlibpath_var=LD_LIBRARY_PATH
10715  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10716    case $host_os in
10717      openbsd2.[89] | openbsd2.[89].*)
10718	shlibpath_overrides_runpath=no
10719	;;
10720      *)
10721	shlibpath_overrides_runpath=yes
10722	;;
10723      esac
10724  else
10725    shlibpath_overrides_runpath=yes
10726  fi
10727  ;;
10728
10729os2*)
10730  libname_spec='$name'
10731  shrext_cmds=".dll"
10732  need_lib_prefix=no
10733  library_names_spec='$libname${shared_ext} $libname.a'
10734  dynamic_linker='OS/2 ld.exe'
10735  shlibpath_var=LIBPATH
10736  ;;
10737
10738osf3* | osf4* | osf5*)
10739  version_type=osf
10740  need_lib_prefix=no
10741  need_version=no
10742  soname_spec='${libname}${release}${shared_ext}$major'
10743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744  shlibpath_var=LD_LIBRARY_PATH
10745  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10746  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10747  ;;
10748
10749rdos*)
10750  dynamic_linker=no
10751  ;;
10752
10753solaris*)
10754  version_type=linux # correct to gnu/linux during the next big refactor
10755  need_lib_prefix=no
10756  need_version=no
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  shlibpath_overrides_runpath=yes
10761  hardcode_into_libs=yes
10762  # ldd complains unless libraries are executable
10763  postinstall_cmds='chmod +x $lib'
10764  ;;
10765
10766sunos4*)
10767  version_type=sunos
10768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10769  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10770  shlibpath_var=LD_LIBRARY_PATH
10771  shlibpath_overrides_runpath=yes
10772  if test "$with_gnu_ld" = yes; then
10773    need_lib_prefix=no
10774  fi
10775  need_version=yes
10776  ;;
10777
10778sysv4 | sysv4.3*)
10779  version_type=linux # correct to gnu/linux during the next big refactor
10780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781  soname_spec='${libname}${release}${shared_ext}$major'
10782  shlibpath_var=LD_LIBRARY_PATH
10783  case $host_vendor in
10784    sni)
10785      shlibpath_overrides_runpath=no
10786      need_lib_prefix=no
10787      runpath_var=LD_RUN_PATH
10788      ;;
10789    siemens)
10790      need_lib_prefix=no
10791      ;;
10792    motorola)
10793      need_lib_prefix=no
10794      need_version=no
10795      shlibpath_overrides_runpath=no
10796      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10797      ;;
10798  esac
10799  ;;
10800
10801sysv4*MP*)
10802  if test -d /usr/nec ;then
10803    version_type=linux # correct to gnu/linux during the next big refactor
10804    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10805    soname_spec='$libname${shared_ext}.$major'
10806    shlibpath_var=LD_LIBRARY_PATH
10807  fi
10808  ;;
10809
10810sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10811  version_type=freebsd-elf
10812  need_lib_prefix=no
10813  need_version=no
10814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10815  soname_spec='${libname}${release}${shared_ext}$major'
10816  shlibpath_var=LD_LIBRARY_PATH
10817  shlibpath_overrides_runpath=yes
10818  hardcode_into_libs=yes
10819  if test "$with_gnu_ld" = yes; then
10820    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10821  else
10822    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10823    case $host_os in
10824      sco3.2v5*)
10825        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10826	;;
10827    esac
10828  fi
10829  sys_lib_dlsearch_path_spec='/usr/lib'
10830  ;;
10831
10832tpf*)
10833  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10834  version_type=linux # correct to gnu/linux during the next big refactor
10835  need_lib_prefix=no
10836  need_version=no
10837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838  shlibpath_var=LD_LIBRARY_PATH
10839  shlibpath_overrides_runpath=no
10840  hardcode_into_libs=yes
10841  ;;
10842
10843uts4*)
10844  version_type=linux # correct to gnu/linux during the next big refactor
10845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846  soname_spec='${libname}${release}${shared_ext}$major'
10847  shlibpath_var=LD_LIBRARY_PATH
10848  ;;
10849
10850*)
10851  dynamic_linker=no
10852  ;;
10853esac
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10855$as_echo "$dynamic_linker" >&6; }
10856test "$dynamic_linker" = no && can_build_shared=no
10857
10858variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10859if test "$GCC" = yes; then
10860  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10861fi
10862
10863if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10864  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10865fi
10866if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10867  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10868fi
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10962$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10963hardcode_action=
10964if test -n "$hardcode_libdir_flag_spec" ||
10965   test -n "$runpath_var" ||
10966   test "X$hardcode_automatic" = "Xyes" ; then
10967
10968  # We can hardcode non-existent directories.
10969  if test "$hardcode_direct" != no &&
10970     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10971     # have to relink, otherwise we might link with an installed library
10972     # when we should be linking with a yet-to-be-installed one
10973     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10974     test "$hardcode_minus_L" != no; then
10975    # Linking always hardcodes the temporary library directory.
10976    hardcode_action=relink
10977  else
10978    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10979    hardcode_action=immediate
10980  fi
10981else
10982  # We cannot hardcode anything, or else we can only hardcode existing
10983  # directories.
10984  hardcode_action=unsupported
10985fi
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10987$as_echo "$hardcode_action" >&6; }
10988
10989if test "$hardcode_action" = relink ||
10990   test "$inherit_rpath" = yes; then
10991  # Fast installation is not supported
10992  enable_fast_install=no
10993elif test "$shlibpath_overrides_runpath" = yes ||
10994     test "$enable_shared" = no; then
10995  # Fast installation is not necessary
10996  enable_fast_install=needless
10997fi
10998
10999
11000
11001
11002
11003
11004  if test "x$enable_dlopen" != xyes; then
11005  enable_dlopen=unknown
11006  enable_dlopen_self=unknown
11007  enable_dlopen_self_static=unknown
11008else
11009  lt_cv_dlopen=no
11010  lt_cv_dlopen_libs=
11011
11012  case $host_os in
11013  beos*)
11014    lt_cv_dlopen="load_add_on"
11015    lt_cv_dlopen_libs=
11016    lt_cv_dlopen_self=yes
11017    ;;
11018
11019  mingw* | pw32* | cegcc*)
11020    lt_cv_dlopen="LoadLibrary"
11021    lt_cv_dlopen_libs=
11022    ;;
11023
11024  cygwin*)
11025    lt_cv_dlopen="dlopen"
11026    lt_cv_dlopen_libs=
11027    ;;
11028
11029  darwin*)
11030  # if libdl is installed we need to link against it
11031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11032$as_echo_n "checking for dlopen in -ldl... " >&6; }
11033if ${ac_cv_lib_dl_dlopen+:} false; then :
11034  $as_echo_n "(cached) " >&6
11035else
11036  ac_check_lib_save_LIBS=$LIBS
11037LIBS="-ldl  $LIBS"
11038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h.  */
11040
11041/* Override any GCC internal prototype to avoid an error.
11042   Use char because int might match the return type of a GCC
11043   builtin and then its argument prototype would still apply.  */
11044#ifdef __cplusplus
11045extern "C"
11046#endif
11047char dlopen ();
11048int
11049main ()
11050{
11051return dlopen ();
11052  ;
11053  return 0;
11054}
11055_ACEOF
11056if ac_fn_c_try_link "$LINENO"; then :
11057  ac_cv_lib_dl_dlopen=yes
11058else
11059  ac_cv_lib_dl_dlopen=no
11060fi
11061rm -f core conftest.err conftest.$ac_objext \
11062    conftest$ac_exeext conftest.$ac_ext
11063LIBS=$ac_check_lib_save_LIBS
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11066$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11067if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11068  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11069else
11070
11071    lt_cv_dlopen="dyld"
11072    lt_cv_dlopen_libs=
11073    lt_cv_dlopen_self=yes
11074
11075fi
11076
11077    ;;
11078
11079  *)
11080    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11081if test "x$ac_cv_func_shl_load" = xyes; then :
11082  lt_cv_dlopen="shl_load"
11083else
11084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11085$as_echo_n "checking for shl_load in -ldld... " >&6; }
11086if ${ac_cv_lib_dld_shl_load+:} false; then :
11087  $as_echo_n "(cached) " >&6
11088else
11089  ac_check_lib_save_LIBS=$LIBS
11090LIBS="-ldld  $LIBS"
11091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092/* end confdefs.h.  */
11093
11094/* Override any GCC internal prototype to avoid an error.
11095   Use char because int might match the return type of a GCC
11096   builtin and then its argument prototype would still apply.  */
11097#ifdef __cplusplus
11098extern "C"
11099#endif
11100char shl_load ();
11101int
11102main ()
11103{
11104return shl_load ();
11105  ;
11106  return 0;
11107}
11108_ACEOF
11109if ac_fn_c_try_link "$LINENO"; then :
11110  ac_cv_lib_dld_shl_load=yes
11111else
11112  ac_cv_lib_dld_shl_load=no
11113fi
11114rm -f core conftest.err conftest.$ac_objext \
11115    conftest$ac_exeext conftest.$ac_ext
11116LIBS=$ac_check_lib_save_LIBS
11117fi
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11119$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11120if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11121  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11122else
11123  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11124if test "x$ac_cv_func_dlopen" = xyes; then :
11125  lt_cv_dlopen="dlopen"
11126else
11127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11128$as_echo_n "checking for dlopen in -ldl... " >&6; }
11129if ${ac_cv_lib_dl_dlopen+:} false; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  ac_check_lib_save_LIBS=$LIBS
11133LIBS="-ldl  $LIBS"
11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135/* end confdefs.h.  */
11136
11137/* Override any GCC internal prototype to avoid an error.
11138   Use char because int might match the return type of a GCC
11139   builtin and then its argument prototype would still apply.  */
11140#ifdef __cplusplus
11141extern "C"
11142#endif
11143char dlopen ();
11144int
11145main ()
11146{
11147return dlopen ();
11148  ;
11149  return 0;
11150}
11151_ACEOF
11152if ac_fn_c_try_link "$LINENO"; then :
11153  ac_cv_lib_dl_dlopen=yes
11154else
11155  ac_cv_lib_dl_dlopen=no
11156fi
11157rm -f core conftest.err conftest.$ac_objext \
11158    conftest$ac_exeext conftest.$ac_ext
11159LIBS=$ac_check_lib_save_LIBS
11160fi
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11162$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11163if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11164  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11165else
11166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11167$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11168if ${ac_cv_lib_svld_dlopen+:} false; then :
11169  $as_echo_n "(cached) " >&6
11170else
11171  ac_check_lib_save_LIBS=$LIBS
11172LIBS="-lsvld  $LIBS"
11173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174/* end confdefs.h.  */
11175
11176/* Override any GCC internal prototype to avoid an error.
11177   Use char because int might match the return type of a GCC
11178   builtin and then its argument prototype would still apply.  */
11179#ifdef __cplusplus
11180extern "C"
11181#endif
11182char dlopen ();
11183int
11184main ()
11185{
11186return dlopen ();
11187  ;
11188  return 0;
11189}
11190_ACEOF
11191if ac_fn_c_try_link "$LINENO"; then :
11192  ac_cv_lib_svld_dlopen=yes
11193else
11194  ac_cv_lib_svld_dlopen=no
11195fi
11196rm -f core conftest.err conftest.$ac_objext \
11197    conftest$ac_exeext conftest.$ac_ext
11198LIBS=$ac_check_lib_save_LIBS
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11201$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11202if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11203  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11204else
11205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11206$as_echo_n "checking for dld_link in -ldld... " >&6; }
11207if ${ac_cv_lib_dld_dld_link+:} false; then :
11208  $as_echo_n "(cached) " >&6
11209else
11210  ac_check_lib_save_LIBS=$LIBS
11211LIBS="-ldld  $LIBS"
11212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213/* end confdefs.h.  */
11214
11215/* Override any GCC internal prototype to avoid an error.
11216   Use char because int might match the return type of a GCC
11217   builtin and then its argument prototype would still apply.  */
11218#ifdef __cplusplus
11219extern "C"
11220#endif
11221char dld_link ();
11222int
11223main ()
11224{
11225return dld_link ();
11226  ;
11227  return 0;
11228}
11229_ACEOF
11230if ac_fn_c_try_link "$LINENO"; then :
11231  ac_cv_lib_dld_dld_link=yes
11232else
11233  ac_cv_lib_dld_dld_link=no
11234fi
11235rm -f core conftest.err conftest.$ac_objext \
11236    conftest$ac_exeext conftest.$ac_ext
11237LIBS=$ac_check_lib_save_LIBS
11238fi
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11240$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11241if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11242  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11243fi
11244
11245
11246fi
11247
11248
11249fi
11250
11251
11252fi
11253
11254
11255fi
11256
11257
11258fi
11259
11260    ;;
11261  esac
11262
11263  if test "x$lt_cv_dlopen" != xno; then
11264    enable_dlopen=yes
11265  else
11266    enable_dlopen=no
11267  fi
11268
11269  case $lt_cv_dlopen in
11270  dlopen)
11271    save_CPPFLAGS="$CPPFLAGS"
11272    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11273
11274    save_LDFLAGS="$LDFLAGS"
11275    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11276
11277    save_LIBS="$LIBS"
11278    LIBS="$lt_cv_dlopen_libs $LIBS"
11279
11280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11281$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11282if ${lt_cv_dlopen_self+:} false; then :
11283  $as_echo_n "(cached) " >&6
11284else
11285  	  if test "$cross_compiling" = yes; then :
11286  lt_cv_dlopen_self=cross
11287else
11288  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11289  lt_status=$lt_dlunknown
11290  cat > conftest.$ac_ext <<_LT_EOF
11291#line $LINENO "configure"
11292#include "confdefs.h"
11293
11294#if HAVE_DLFCN_H
11295#include <dlfcn.h>
11296#endif
11297
11298#include <stdio.h>
11299
11300#ifdef RTLD_GLOBAL
11301#  define LT_DLGLOBAL		RTLD_GLOBAL
11302#else
11303#  ifdef DL_GLOBAL
11304#    define LT_DLGLOBAL		DL_GLOBAL
11305#  else
11306#    define LT_DLGLOBAL		0
11307#  endif
11308#endif
11309
11310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11311   find out it does not work in some platform. */
11312#ifndef LT_DLLAZY_OR_NOW
11313#  ifdef RTLD_LAZY
11314#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11315#  else
11316#    ifdef DL_LAZY
11317#      define LT_DLLAZY_OR_NOW		DL_LAZY
11318#    else
11319#      ifdef RTLD_NOW
11320#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11321#      else
11322#        ifdef DL_NOW
11323#          define LT_DLLAZY_OR_NOW	DL_NOW
11324#        else
11325#          define LT_DLLAZY_OR_NOW	0
11326#        endif
11327#      endif
11328#    endif
11329#  endif
11330#endif
11331
11332/* When -fvisbility=hidden is used, assume the code has been annotated
11333   correspondingly for the symbols needed.  */
11334#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11335int fnord () __attribute__((visibility("default")));
11336#endif
11337
11338int fnord () { return 42; }
11339int main ()
11340{
11341  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11342  int status = $lt_dlunknown;
11343
11344  if (self)
11345    {
11346      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11347      else
11348        {
11349	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11350          else puts (dlerror ());
11351	}
11352      /* dlclose (self); */
11353    }
11354  else
11355    puts (dlerror ());
11356
11357  return status;
11358}
11359_LT_EOF
11360  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11361  (eval $ac_link) 2>&5
11362  ac_status=$?
11363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11364  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11365    (./conftest; exit; ) >&5 2>/dev/null
11366    lt_status=$?
11367    case x$lt_status in
11368      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11369      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11370      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11371    esac
11372  else :
11373    # compilation failed
11374    lt_cv_dlopen_self=no
11375  fi
11376fi
11377rm -fr conftest*
11378
11379
11380fi
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11382$as_echo "$lt_cv_dlopen_self" >&6; }
11383
11384    if test "x$lt_cv_dlopen_self" = xyes; then
11385      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11386      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11387$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11388if ${lt_cv_dlopen_self_static+:} false; then :
11389  $as_echo_n "(cached) " >&6
11390else
11391  	  if test "$cross_compiling" = yes; then :
11392  lt_cv_dlopen_self_static=cross
11393else
11394  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395  lt_status=$lt_dlunknown
11396  cat > conftest.$ac_ext <<_LT_EOF
11397#line $LINENO "configure"
11398#include "confdefs.h"
11399
11400#if HAVE_DLFCN_H
11401#include <dlfcn.h>
11402#endif
11403
11404#include <stdio.h>
11405
11406#ifdef RTLD_GLOBAL
11407#  define LT_DLGLOBAL		RTLD_GLOBAL
11408#else
11409#  ifdef DL_GLOBAL
11410#    define LT_DLGLOBAL		DL_GLOBAL
11411#  else
11412#    define LT_DLGLOBAL		0
11413#  endif
11414#endif
11415
11416/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417   find out it does not work in some platform. */
11418#ifndef LT_DLLAZY_OR_NOW
11419#  ifdef RTLD_LAZY
11420#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11421#  else
11422#    ifdef DL_LAZY
11423#      define LT_DLLAZY_OR_NOW		DL_LAZY
11424#    else
11425#      ifdef RTLD_NOW
11426#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11427#      else
11428#        ifdef DL_NOW
11429#          define LT_DLLAZY_OR_NOW	DL_NOW
11430#        else
11431#          define LT_DLLAZY_OR_NOW	0
11432#        endif
11433#      endif
11434#    endif
11435#  endif
11436#endif
11437
11438/* When -fvisbility=hidden is used, assume the code has been annotated
11439   correspondingly for the symbols needed.  */
11440#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11441int fnord () __attribute__((visibility("default")));
11442#endif
11443
11444int fnord () { return 42; }
11445int main ()
11446{
11447  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11448  int status = $lt_dlunknown;
11449
11450  if (self)
11451    {
11452      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11453      else
11454        {
11455	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11456          else puts (dlerror ());
11457	}
11458      /* dlclose (self); */
11459    }
11460  else
11461    puts (dlerror ());
11462
11463  return status;
11464}
11465_LT_EOF
11466  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11467  (eval $ac_link) 2>&5
11468  ac_status=$?
11469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11470  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11471    (./conftest; exit; ) >&5 2>/dev/null
11472    lt_status=$?
11473    case x$lt_status in
11474      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11475      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11476      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11477    esac
11478  else :
11479    # compilation failed
11480    lt_cv_dlopen_self_static=no
11481  fi
11482fi
11483rm -fr conftest*
11484
11485
11486fi
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11488$as_echo "$lt_cv_dlopen_self_static" >&6; }
11489    fi
11490
11491    CPPFLAGS="$save_CPPFLAGS"
11492    LDFLAGS="$save_LDFLAGS"
11493    LIBS="$save_LIBS"
11494    ;;
11495  esac
11496
11497  case $lt_cv_dlopen_self in
11498  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11499  *) enable_dlopen_self=unknown ;;
11500  esac
11501
11502  case $lt_cv_dlopen_self_static in
11503  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11504  *) enable_dlopen_self_static=unknown ;;
11505  esac
11506fi
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524striplib=
11525old_striplib=
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11527$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11528if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11529  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11530  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11532$as_echo "yes" >&6; }
11533else
11534# FIXME - insert some real tests, host_os isn't really good enough
11535  case $host_os in
11536  darwin*)
11537    if test -n "$STRIP" ; then
11538      striplib="$STRIP -x"
11539      old_striplib="$STRIP -S"
11540      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541$as_echo "yes" >&6; }
11542    else
11543      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
11545    fi
11546    ;;
11547  *)
11548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549$as_echo "no" >&6; }
11550    ;;
11551  esac
11552fi
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565  # Report which library types will actually be built
11566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11567$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11569$as_echo "$can_build_shared" >&6; }
11570
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11572$as_echo_n "checking whether to build shared libraries... " >&6; }
11573  test "$can_build_shared" = "no" && enable_shared=no
11574
11575  # On AIX, shared libraries and static libraries use the same namespace, and
11576  # are all built from PIC.
11577  case $host_os in
11578  aix3*)
11579    test "$enable_shared" = yes && enable_static=no
11580    if test -n "$RANLIB"; then
11581      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11582      postinstall_cmds='$RANLIB $lib'
11583    fi
11584    ;;
11585
11586  aix[4-9]*)
11587    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11588      test "$enable_shared" = yes && enable_static=no
11589    fi
11590    ;;
11591  esac
11592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11593$as_echo "$enable_shared" >&6; }
11594
11595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11596$as_echo_n "checking whether to build static libraries... " >&6; }
11597  # Make sure either enable_shared or enable_static is yes.
11598  test "$enable_shared" = yes || enable_static=yes
11599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11600$as_echo "$enable_static" >&6; }
11601
11602
11603
11604
11605fi
11606ac_ext=c
11607ac_cpp='$CPP $CPPFLAGS'
11608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11610ac_compiler_gnu=$ac_cv_c_compiler_gnu
11611
11612CC="$lt_save_CC"
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628        ac_config_commands="$ac_config_commands libtool"
11629
11630
11631
11632
11633# Only expand once:
11634
11635
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11637$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11638if ${libltdl_cv_shlibext+:} false; then :
11639  $as_echo_n "(cached) " >&6
11640else
11641
11642module=yes
11643eval libltdl_cv_shlibext=$shrext_cmds
11644module=no
11645eval libltdl_cv_shrext=$shrext_cmds
11646
11647fi
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11649$as_echo "$libltdl_cv_shlibext" >&6; }
11650if test -n "$libltdl_cv_shlibext"; then
11651
11652cat >>confdefs.h <<_ACEOF
11653#define LT_MODULE_EXT "$libltdl_cv_shlibext"
11654_ACEOF
11655
11656fi
11657if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11658
11659cat >>confdefs.h <<_ACEOF
11660#define LT_SHARED_EXT "$libltdl_cv_shrext"
11661_ACEOF
11662
11663fi
11664
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11666$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11667if ${lt_cv_module_path_var+:} false; then :
11668  $as_echo_n "(cached) " >&6
11669else
11670  lt_cv_module_path_var="$shlibpath_var"
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11673$as_echo "$lt_cv_module_path_var" >&6; }
11674if test -n "$lt_cv_module_path_var"; then
11675
11676cat >>confdefs.h <<_ACEOF
11677#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11678_ACEOF
11679
11680fi
11681
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11683$as_echo_n "checking for the default library search path... " >&6; }
11684if ${lt_cv_sys_dlsearch_path+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11688fi
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11690$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11691if test -n "$lt_cv_sys_dlsearch_path"; then
11692  sys_dlsearch_path=
11693  for dir in $lt_cv_sys_dlsearch_path; do
11694    if test -z "$sys_dlsearch_path"; then
11695      sys_dlsearch_path="$dir"
11696    else
11697      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11698    fi
11699  done
11700
11701cat >>confdefs.h <<_ACEOF
11702#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11703_ACEOF
11704
11705fi
11706
11707
11708LT_DLLOADERS=
11709
11710
11711ac_ext=c
11712ac_cpp='$CPP $CPPFLAGS'
11713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11715ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716
11717
11718LIBADD_DLOPEN=
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11720$as_echo_n "checking for library containing dlopen... " >&6; }
11721if ${ac_cv_search_dlopen+:} false; then :
11722  $as_echo_n "(cached) " >&6
11723else
11724  ac_func_search_save_LIBS=$LIBS
11725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h.  */
11727
11728/* Override any GCC internal prototype to avoid an error.
11729   Use char because int might match the return type of a GCC
11730   builtin and then its argument prototype would still apply.  */
11731#ifdef __cplusplus
11732extern "C"
11733#endif
11734char dlopen ();
11735int
11736main ()
11737{
11738return dlopen ();
11739  ;
11740  return 0;
11741}
11742_ACEOF
11743for ac_lib in '' dl; do
11744  if test -z "$ac_lib"; then
11745    ac_res="none required"
11746  else
11747    ac_res=-l$ac_lib
11748    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11749  fi
11750  if ac_fn_c_try_link "$LINENO"; then :
11751  ac_cv_search_dlopen=$ac_res
11752fi
11753rm -f core conftest.err conftest.$ac_objext \
11754    conftest$ac_exeext
11755  if ${ac_cv_search_dlopen+:} false; then :
11756  break
11757fi
11758done
11759if ${ac_cv_search_dlopen+:} false; then :
11760
11761else
11762  ac_cv_search_dlopen=no
11763fi
11764rm conftest.$ac_ext
11765LIBS=$ac_func_search_save_LIBS
11766fi
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11768$as_echo "$ac_cv_search_dlopen" >&6; }
11769ac_res=$ac_cv_search_dlopen
11770if test "$ac_res" != no; then :
11771  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11772
11773$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11774
11775	if test "$ac_cv_search_dlopen" != "none required" ; then
11776	  LIBADD_DLOPEN="-ldl"
11777	fi
11778	libltdl_cv_lib_dl_dlopen="yes"
11779	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11780else
11781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782/* end confdefs.h.  */
11783#if HAVE_DLFCN_H
11784#  include <dlfcn.h>
11785#endif
11786
11787int
11788main ()
11789{
11790dlopen(0, 0);
11791  ;
11792  return 0;
11793}
11794_ACEOF
11795if ac_fn_c_try_link "$LINENO"; then :
11796
11797$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11798
11799	    libltdl_cv_func_dlopen="yes"
11800	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11801else
11802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11803$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11804if ${ac_cv_lib_svld_dlopen+:} false; then :
11805  $as_echo_n "(cached) " >&6
11806else
11807  ac_check_lib_save_LIBS=$LIBS
11808LIBS="-lsvld  $LIBS"
11809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h.  */
11811
11812/* Override any GCC internal prototype to avoid an error.
11813   Use char because int might match the return type of a GCC
11814   builtin and then its argument prototype would still apply.  */
11815#ifdef __cplusplus
11816extern "C"
11817#endif
11818char dlopen ();
11819int
11820main ()
11821{
11822return dlopen ();
11823  ;
11824  return 0;
11825}
11826_ACEOF
11827if ac_fn_c_try_link "$LINENO"; then :
11828  ac_cv_lib_svld_dlopen=yes
11829else
11830  ac_cv_lib_svld_dlopen=no
11831fi
11832rm -f core conftest.err conftest.$ac_objext \
11833    conftest$ac_exeext conftest.$ac_ext
11834LIBS=$ac_check_lib_save_LIBS
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11837$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11838if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11839
11840$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11841
11842	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11843		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11844fi
11845
11846fi
11847rm -f core conftest.err conftest.$ac_objext \
11848    conftest$ac_exeext conftest.$ac_ext
11849fi
11850
11851if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11852then
11853  lt_save_LIBS="$LIBS"
11854  LIBS="$LIBS $LIBADD_DLOPEN"
11855  for ac_func in dlerror
11856do :
11857  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11858if test "x$ac_cv_func_dlerror" = xyes; then :
11859  cat >>confdefs.h <<_ACEOF
11860#define HAVE_DLERROR 1
11861_ACEOF
11862
11863fi
11864done
11865
11866  LIBS="$lt_save_LIBS"
11867fi
11868
11869
11870LIBADD_SHL_LOAD=
11871ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11872if test "x$ac_cv_func_shl_load" = xyes; then :
11873
11874$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11875
11876	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11877else
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11879$as_echo_n "checking for shl_load in -ldld... " >&6; }
11880if ${ac_cv_lib_dld_shl_load+:} false; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  ac_check_lib_save_LIBS=$LIBS
11884LIBS="-ldld  $LIBS"
11885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h.  */
11887
11888/* Override any GCC internal prototype to avoid an error.
11889   Use char because int might match the return type of a GCC
11890   builtin and then its argument prototype would still apply.  */
11891#ifdef __cplusplus
11892extern "C"
11893#endif
11894char shl_load ();
11895int
11896main ()
11897{
11898return shl_load ();
11899  ;
11900  return 0;
11901}
11902_ACEOF
11903if ac_fn_c_try_link "$LINENO"; then :
11904  ac_cv_lib_dld_shl_load=yes
11905else
11906  ac_cv_lib_dld_shl_load=no
11907fi
11908rm -f core conftest.err conftest.$ac_objext \
11909    conftest$ac_exeext conftest.$ac_ext
11910LIBS=$ac_check_lib_save_LIBS
11911fi
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11913$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11914if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11915
11916$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11917
11918	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11919	    LIBADD_SHL_LOAD="-ldld"
11920fi
11921
11922fi
11923
11924
11925
11926case $host_os in
11927darwin[1567].*)
11928# We only want this for pre-Mac OS X 10.4.
11929  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11930if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11931
11932$as_echo "#define HAVE_DYLD 1" >>confdefs.h
11933
11934	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11935fi
11936
11937  ;;
11938beos*)
11939  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11940  ;;
11941cygwin* | mingw* | os2* | pw32*)
11942  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11943"
11944if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11945  ac_have_decl=1
11946else
11947  ac_have_decl=0
11948fi
11949
11950cat >>confdefs.h <<_ACEOF
11951#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11952_ACEOF
11953
11954  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11955  ;;
11956esac
11957
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11959$as_echo_n "checking for dld_link in -ldld... " >&6; }
11960if ${ac_cv_lib_dld_dld_link+:} false; then :
11961  $as_echo_n "(cached) " >&6
11962else
11963  ac_check_lib_save_LIBS=$LIBS
11964LIBS="-ldld  $LIBS"
11965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h.  */
11967
11968/* Override any GCC internal prototype to avoid an error.
11969   Use char because int might match the return type of a GCC
11970   builtin and then its argument prototype would still apply.  */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974char dld_link ();
11975int
11976main ()
11977{
11978return dld_link ();
11979  ;
11980  return 0;
11981}
11982_ACEOF
11983if ac_fn_c_try_link "$LINENO"; then :
11984  ac_cv_lib_dld_dld_link=yes
11985else
11986  ac_cv_lib_dld_dld_link=no
11987fi
11988rm -f core conftest.err conftest.$ac_objext \
11989    conftest$ac_exeext conftest.$ac_ext
11990LIBS=$ac_check_lib_save_LIBS
11991fi
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11993$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11994if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11995
11996$as_echo "#define HAVE_DLD 1" >>confdefs.h
11997
11998		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11999fi
12000
12001
12002
12003
12004LT_DLPREOPEN=
12005if test -n "$LT_DLLOADERS"
12006then
12007  for lt_loader in $LT_DLLOADERS; do
12008    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12009  done
12010
12011$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12012
12013fi
12014
12015
12016LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12017
12018
12019ac_ext=c
12020ac_cpp='$CPP $CPPFLAGS'
12021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12023ac_compiler_gnu=$ac_cv_c_compiler_gnu
12024
12025
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12027$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12028if ${lt_cv_sys_symbol_underscore+:} false; then :
12029  $as_echo_n "(cached) " >&6
12030else
12031  lt_cv_sys_symbol_underscore=no
12032  cat > conftest.$ac_ext <<_LT_EOF
12033void nm_test_func(){}
12034int main(){nm_test_func;return 0;}
12035_LT_EOF
12036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12037  (eval $ac_compile) 2>&5
12038  ac_status=$?
12039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12040  test $ac_status = 0; }; then
12041    # Now try to grab the symbols.
12042    ac_nlist=conftest.nm
12043    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12044  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12045  ac_status=$?
12046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12047  test $ac_status = 0; } && test -s "$ac_nlist"; then
12048      # See whether the symbols have a leading underscore.
12049      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12050        lt_cv_sys_symbol_underscore=yes
12051      else
12052        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12053	  :
12054        else
12055	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12056        fi
12057      fi
12058    else
12059      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12060    fi
12061  else
12062    echo "configure: failed program was:" >&5
12063    cat conftest.c >&5
12064  fi
12065  rm -rf conftest*
12066
12067fi
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12069$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12070  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12071
12072
12073if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12074  if test x"$libltdl_cv_func_dlopen" = xyes ||
12075     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12077$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12078if ${libltdl_cv_need_uscore+:} false; then :
12079  $as_echo_n "(cached) " >&6
12080else
12081  libltdl_cv_need_uscore=unknown
12082          save_LIBS="$LIBS"
12083          LIBS="$LIBS $LIBADD_DLOPEN"
12084	  if test "$cross_compiling" = yes; then :
12085  libltdl_cv_need_uscore=cross
12086else
12087  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12088  lt_status=$lt_dlunknown
12089  cat > conftest.$ac_ext <<_LT_EOF
12090#line $LINENO "configure"
12091#include "confdefs.h"
12092
12093#if HAVE_DLFCN_H
12094#include <dlfcn.h>
12095#endif
12096
12097#include <stdio.h>
12098
12099#ifdef RTLD_GLOBAL
12100#  define LT_DLGLOBAL		RTLD_GLOBAL
12101#else
12102#  ifdef DL_GLOBAL
12103#    define LT_DLGLOBAL		DL_GLOBAL
12104#  else
12105#    define LT_DLGLOBAL		0
12106#  endif
12107#endif
12108
12109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12110   find out it does not work in some platform. */
12111#ifndef LT_DLLAZY_OR_NOW
12112#  ifdef RTLD_LAZY
12113#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12114#  else
12115#    ifdef DL_LAZY
12116#      define LT_DLLAZY_OR_NOW		DL_LAZY
12117#    else
12118#      ifdef RTLD_NOW
12119#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12120#      else
12121#        ifdef DL_NOW
12122#          define LT_DLLAZY_OR_NOW	DL_NOW
12123#        else
12124#          define LT_DLLAZY_OR_NOW	0
12125#        endif
12126#      endif
12127#    endif
12128#  endif
12129#endif
12130
12131/* When -fvisbility=hidden is used, assume the code has been annotated
12132   correspondingly for the symbols needed.  */
12133#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12134int fnord () __attribute__((visibility("default")));
12135#endif
12136
12137int fnord () { return 42; }
12138int main ()
12139{
12140  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12141  int status = $lt_dlunknown;
12142
12143  if (self)
12144    {
12145      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12146      else
12147        {
12148	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12149          else puts (dlerror ());
12150	}
12151      /* dlclose (self); */
12152    }
12153  else
12154    puts (dlerror ());
12155
12156  return status;
12157}
12158_LT_EOF
12159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12160  (eval $ac_link) 2>&5
12161  ac_status=$?
12162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12163  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12164    (./conftest; exit; ) >&5 2>/dev/null
12165    lt_status=$?
12166    case x$lt_status in
12167      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12168      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12169      x$lt_dlunknown|x*)  ;;
12170    esac
12171  else :
12172    # compilation failed
12173
12174  fi
12175fi
12176rm -fr conftest*
12177
12178	  LIBS="$save_LIBS"
12179
12180fi
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12182$as_echo "$libltdl_cv_need_uscore" >&6; }
12183  fi
12184fi
12185
12186if test x"$libltdl_cv_need_uscore" = xyes; then
12187
12188$as_echo "#define NEED_USCORE 1" >>confdefs.h
12189
12190fi
12191
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12193$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12194if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12195  $as_echo_n "(cached) " >&6
12196else
12197  # PORTME does your system automatically load deplibs for dlopen?
12198  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12199  # For now, we just catch OSes we know something about -- in the
12200  # future, we'll try test this programmatically.
12201  lt_cv_sys_dlopen_deplibs=unknown
12202  case $host_os in
12203  aix3*|aix4.1.*|aix4.2.*)
12204    # Unknown whether this is true for these versions of AIX, but
12205    # we want this `case' here to explicitly catch those versions.
12206    lt_cv_sys_dlopen_deplibs=unknown
12207    ;;
12208  aix[4-9]*)
12209    lt_cv_sys_dlopen_deplibs=yes
12210    ;;
12211  amigaos*)
12212    case $host_cpu in
12213    powerpc)
12214      lt_cv_sys_dlopen_deplibs=no
12215      ;;
12216    esac
12217    ;;
12218  darwin*)
12219    # Assuming the user has installed a libdl from somewhere, this is true
12220    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12221    lt_cv_sys_dlopen_deplibs=yes
12222    ;;
12223  freebsd* | dragonfly*)
12224    lt_cv_sys_dlopen_deplibs=yes
12225    ;;
12226  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12227    # GNU and its variants, using gnu ld.so (Glibc)
12228    lt_cv_sys_dlopen_deplibs=yes
12229    ;;
12230  hpux10*|hpux11*)
12231    lt_cv_sys_dlopen_deplibs=yes
12232    ;;
12233  interix*)
12234    lt_cv_sys_dlopen_deplibs=yes
12235    ;;
12236  irix[12345]*|irix6.[01]*)
12237    # Catch all versions of IRIX before 6.2, and indicate that we don't
12238    # know how it worked for any of those versions.
12239    lt_cv_sys_dlopen_deplibs=unknown
12240    ;;
12241  irix*)
12242    # The case above catches anything before 6.2, and it's known that
12243    # at 6.2 and later dlopen does load deplibs.
12244    lt_cv_sys_dlopen_deplibs=yes
12245    ;;
12246  netbsd* | netbsdelf*-gnu)
12247    lt_cv_sys_dlopen_deplibs=yes
12248    ;;
12249  openbsd*)
12250    lt_cv_sys_dlopen_deplibs=yes
12251    ;;
12252  osf[1234]*)
12253    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12254    # it did *not* use an RPATH in a shared library to find objects the
12255    # library depends on, so we explicitly say `no'.
12256    lt_cv_sys_dlopen_deplibs=no
12257    ;;
12258  osf5.0|osf5.0a|osf5.1)
12259    # dlopen *does* load deplibs and with the right loader patch applied
12260    # it even uses RPATH in a shared library to search for shared objects
12261    # that the library depends on, but there's no easy way to know if that
12262    # patch is installed.  Since this is the case, all we can really
12263    # say is unknown -- it depends on the patch being installed.  If
12264    # it is, this changes to `yes'.  Without it, it would be `no'.
12265    lt_cv_sys_dlopen_deplibs=unknown
12266    ;;
12267  osf*)
12268    # the two cases above should catch all versions of osf <= 5.1.  Read
12269    # the comments above for what we know about them.
12270    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12271    # is used to find them so we can finally say `yes'.
12272    lt_cv_sys_dlopen_deplibs=yes
12273    ;;
12274  qnx*)
12275    lt_cv_sys_dlopen_deplibs=yes
12276    ;;
12277  solaris*)
12278    lt_cv_sys_dlopen_deplibs=yes
12279    ;;
12280  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12281    libltdl_cv_sys_dlopen_deplibs=yes
12282    ;;
12283  esac
12284
12285fi
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12287$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12288if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12289
12290$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12291
12292fi
12293
12294:
12295
12296for ac_header in argz.h
12297do :
12298  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12299"
12300if test "x$ac_cv_header_argz_h" = xyes; then :
12301  cat >>confdefs.h <<_ACEOF
12302#define HAVE_ARGZ_H 1
12303_ACEOF
12304
12305fi
12306
12307done
12308
12309
12310ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12311#  include <argz.h>
12312#endif
12313"
12314if test "x$ac_cv_type_error_t" = xyes; then :
12315
12316cat >>confdefs.h <<_ACEOF
12317#define HAVE_ERROR_T 1
12318_ACEOF
12319
12320
12321else
12322
12323$as_echo "#define error_t int" >>confdefs.h
12324
12325
12326$as_echo "#define __error_t_defined 1" >>confdefs.h
12327
12328fi
12329
12330
12331ARGZ_H=
12332for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12333	argz_next argz_stringify
12334do :
12335  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12336ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12337if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12338  cat >>confdefs.h <<_ACEOF
12339#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12340_ACEOF
12341
12342else
12343  ARGZ_H=argz.h; case " $LIBOBJS " in
12344  *" argz.$ac_objext "* ) ;;
12345  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12346 ;;
12347esac
12348
12349fi
12350done
12351
12352
12353if test -z "$ARGZ_H"; then :
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12355$as_echo_n "checking if argz actually works... " >&6; }
12356if ${lt_cv_sys_argz_works+:} false; then :
12357  $as_echo_n "(cached) " >&6
12358else
12359  case $host_os in #(
12360	 *cygwin*)
12361	   lt_cv_sys_argz_works=no
12362	   if test "$cross_compiling" != no; then
12363	     lt_cv_sys_argz_works="guessing no"
12364	   else
12365	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12366	     save_IFS=$IFS
12367	     IFS=-.
12368	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12369	     IFS=$save_IFS
12370	     lt_os_major=${2-0}
12371	     lt_os_minor=${3-0}
12372	     lt_os_micro=${4-0}
12373	     if test "$lt_os_major" -gt 1 \
12374		|| { test "$lt_os_major" -eq 1 \
12375		  && { test "$lt_os_minor" -gt 5 \
12376		    || { test "$lt_os_minor" -eq 5 \
12377		      && test "$lt_os_micro" -gt 24; }; }; }; then
12378	       lt_cv_sys_argz_works=yes
12379	     fi
12380	   fi
12381	   ;; #(
12382	 *) lt_cv_sys_argz_works=yes ;;
12383	 esac
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12386$as_echo "$lt_cv_sys_argz_works" >&6; }
12387     if test "$lt_cv_sys_argz_works" = yes; then :
12388
12389$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12390
12391else
12392  ARGZ_H=argz.h
12393        case " $LIBOBJS " in
12394  *" argz.$ac_objext "* ) ;;
12395  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12396 ;;
12397esac
12398
12399fi
12400fi
12401
12402
12403
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12405$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12406if ${libltdl_cv_preloaded_symbols+:} false; then :
12407  $as_echo_n "(cached) " >&6
12408else
12409  if test -n "$lt_cv_sys_global_symbol_pipe"; then
12410    libltdl_cv_preloaded_symbols=yes
12411  else
12412    libltdl_cv_preloaded_symbols=no
12413  fi
12414
12415fi
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12417$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12418if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12419
12420$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12421
12422fi
12423
12424
12425
12426# Check whether --enable-ltdl-install was given.
12427if test "${enable_ltdl_install+set}" = set; then :
12428  enableval=$enable_ltdl_install;
12429fi
12430
12431
12432case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12433  *yes*) ;;
12434  *) enable_ltdl_convenience=yes ;;
12435esac
12436
12437 if test x"${enable_ltdl_install-no}" != xno; then
12438  INSTALL_LTDL_TRUE=
12439  INSTALL_LTDL_FALSE='#'
12440else
12441  INSTALL_LTDL_TRUE='#'
12442  INSTALL_LTDL_FALSE=
12443fi
12444
12445  if test x"${enable_ltdl_convenience-no}" != xno; then
12446  CONVENIENCE_LTDL_TRUE=
12447  CONVENIENCE_LTDL_FALSE='#'
12448else
12449  CONVENIENCE_LTDL_TRUE='#'
12450  CONVENIENCE_LTDL_FALSE=
12451fi
12452
12453
12454
12455
12456
12457
12458# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12459# the user used.  This is so that ltdl.h can pick up the parent projects
12460# config.h file, The first file in AC_CONFIG_HEADERS must contain the
12461# definitions required by ltdl.c.
12462# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12463
12464
12465
12466for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12467do :
12468  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12469ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12470"
12471if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12472  cat >>confdefs.h <<_ACEOF
12473#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12474_ACEOF
12475
12476fi
12477
12478done
12479
12480
12481for ac_func in closedir opendir readdir
12482do :
12483  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12484ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12485if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12486  cat >>confdefs.h <<_ACEOF
12487#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12488_ACEOF
12489
12490else
12491  case " $LIBOBJS " in
12492  *" lt__dirent.$ac_objext "* ) ;;
12493  *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12494 ;;
12495esac
12496
12497fi
12498done
12499
12500for ac_func in strlcat strlcpy
12501do :
12502  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12503ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12504if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12505  cat >>confdefs.h <<_ACEOF
12506#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12507_ACEOF
12508
12509else
12510  case " $LIBOBJS " in
12511  *" lt__strl.$ac_objext "* ) ;;
12512  *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12513 ;;
12514esac
12515
12516fi
12517done
12518
12519
12520
12521cat >>confdefs.h <<_ACEOF
12522#define LT_LIBEXT "$libext"
12523_ACEOF
12524
12525
12526name=
12527eval "lt_libprefix=\"$libname_spec\""
12528
12529cat >>confdefs.h <<_ACEOF
12530#define LT_LIBPREFIX "$lt_libprefix"
12531_ACEOF
12532
12533
12534name=ltdl
12535eval "LTDLOPEN=\"$libname_spec\""
12536
12537
12538
12539
12540## -------- ##
12541## Outputs. ##
12542## -------- ##
12543ac_config_files="$ac_config_files Makefile"
12544
12545cat >confcache <<\_ACEOF
12546# This file is a shell script that caches the results of configure
12547# tests run on this system so they can be shared between configure
12548# scripts and configure runs, see configure's option --config-cache.
12549# It is not useful on other systems.  If it contains results you don't
12550# want to keep, you may remove or edit it.
12551#
12552# config.status only pays attention to the cache file if you give it
12553# the --recheck option to rerun configure.
12554#
12555# `ac_cv_env_foo' variables (set or unset) will be overridden when
12556# loading this file, other *unset* `ac_cv_foo' will be assigned the
12557# following values.
12558
12559_ACEOF
12560
12561# The following way of writing the cache mishandles newlines in values,
12562# but we know of no workaround that is simple, portable, and efficient.
12563# So, we kill variables containing newlines.
12564# Ultrix sh set writes to stderr and can't be redirected directly,
12565# and sets the high bit in the cache file unless we assign to the vars.
12566(
12567  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12568    eval ac_val=\$$ac_var
12569    case $ac_val in #(
12570    *${as_nl}*)
12571      case $ac_var in #(
12572      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12573$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12574      esac
12575      case $ac_var in #(
12576      _ | IFS | as_nl) ;; #(
12577      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12578      *) { eval $ac_var=; unset $ac_var;} ;;
12579      esac ;;
12580    esac
12581  done
12582
12583  (set) 2>&1 |
12584    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12585    *${as_nl}ac_space=\ *)
12586      # `set' does not quote correctly, so add quotes: double-quote
12587      # substitution turns \\\\ into \\, and sed turns \\ into \.
12588      sed -n \
12589	"s/'/'\\\\''/g;
12590	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12591      ;; #(
12592    *)
12593      # `set' quotes correctly as required by POSIX, so do not add quotes.
12594      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12595      ;;
12596    esac |
12597    sort
12598) |
12599  sed '
12600     /^ac_cv_env_/b end
12601     t clear
12602     :clear
12603     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12604     t end
12605     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12606     :end' >>confcache
12607if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12608  if test -w "$cache_file"; then
12609    if test "x$cache_file" != "x/dev/null"; then
12610      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12611$as_echo "$as_me: updating cache $cache_file" >&6;}
12612      if test ! -f "$cache_file" || test -h "$cache_file"; then
12613	cat confcache >"$cache_file"
12614      else
12615        case $cache_file in #(
12616        */* | ?:*)
12617	  mv -f confcache "$cache_file"$$ &&
12618	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12619        *)
12620	  mv -f confcache "$cache_file" ;;
12621	esac
12622      fi
12623    fi
12624  else
12625    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12627  fi
12628fi
12629rm -f confcache
12630
12631test "x$prefix" = xNONE && prefix=$ac_default_prefix
12632# Let make expand exec_prefix.
12633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12634
12635DEFS=-DHAVE_CONFIG_H
12636
12637ac_libobjs=
12638ac_ltlibobjs=
12639U=
12640for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12641  # 1. Remove the extension, and $U if already installed.
12642  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12643  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12644  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12645  #    will be set to the directory where LIBOBJS objects are built.
12646  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12647  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12648done
12649LIBOBJS=$ac_libobjs
12650
12651LTLIBOBJS=$ac_ltlibobjs
12652
12653
12654 if test -n "$EXEEXT"; then
12655  am__EXEEXT_TRUE=
12656  am__EXEEXT_FALSE='#'
12657else
12658  am__EXEEXT_TRUE='#'
12659  am__EXEEXT_FALSE=
12660fi
12661
12662if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12663  as_fn_error $? "conditional \"AMDEP\" was never defined.
12664Usually this means the macro was only invoked conditionally." "$LINENO" 5
12665fi
12666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12667  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12668Usually this means the macro was only invoked conditionally." "$LINENO" 5
12669fi
12670if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12671  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
12672Usually this means the macro was only invoked conditionally." "$LINENO" 5
12673fi
12674if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12675  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
12676Usually this means the macro was only invoked conditionally." "$LINENO" 5
12677fi
12678LT_CONFIG_H=config.h
12679
12680: "${CONFIG_STATUS=./config.status}"
12681ac_write_fail=0
12682ac_clean_files_save=$ac_clean_files
12683ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12685$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12686as_write_fail=0
12687cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12688#! $SHELL
12689# Generated by $as_me.
12690# Run this file to recreate the current configuration.
12691# Compiler output produced by configure, useful for debugging
12692# configure, is in config.log if it exists.
12693
12694debug=false
12695ac_cs_recheck=false
12696ac_cs_silent=false
12697
12698SHELL=\${CONFIG_SHELL-$SHELL}
12699export SHELL
12700_ASEOF
12701cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12702## -------------------- ##
12703## M4sh Initialization. ##
12704## -------------------- ##
12705
12706# Be more Bourne compatible
12707DUALCASE=1; export DUALCASE # for MKS sh
12708if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12709  emulate sh
12710  NULLCMD=:
12711  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12712  # is contrary to our usage.  Disable this feature.
12713  alias -g '${1+"$@"}'='"$@"'
12714  setopt NO_GLOB_SUBST
12715else
12716  case `(set -o) 2>/dev/null` in #(
12717  *posix*) :
12718    set -o posix ;; #(
12719  *) :
12720     ;;
12721esac
12722fi
12723
12724
12725as_nl='
12726'
12727export as_nl
12728# Printing a long string crashes Solaris 7 /usr/bin/printf.
12729as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12730as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12731as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12732# Prefer a ksh shell builtin over an external printf program on Solaris,
12733# but without wasting forks for bash or zsh.
12734if test -z "$BASH_VERSION$ZSH_VERSION" \
12735    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12736  as_echo='print -r --'
12737  as_echo_n='print -rn --'
12738elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12739  as_echo='printf %s\n'
12740  as_echo_n='printf %s'
12741else
12742  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12743    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12744    as_echo_n='/usr/ucb/echo -n'
12745  else
12746    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12747    as_echo_n_body='eval
12748      arg=$1;
12749      case $arg in #(
12750      *"$as_nl"*)
12751	expr "X$arg" : "X\\(.*\\)$as_nl";
12752	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12753      esac;
12754      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12755    '
12756    export as_echo_n_body
12757    as_echo_n='sh -c $as_echo_n_body as_echo'
12758  fi
12759  export as_echo_body
12760  as_echo='sh -c $as_echo_body as_echo'
12761fi
12762
12763# The user is always right.
12764if test "${PATH_SEPARATOR+set}" != set; then
12765  PATH_SEPARATOR=:
12766  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12767    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12768      PATH_SEPARATOR=';'
12769  }
12770fi
12771
12772
12773# IFS
12774# We need space, tab and new line, in precisely that order.  Quoting is
12775# there to prevent editors from complaining about space-tab.
12776# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12777# splitting by setting IFS to empty value.)
12778IFS=" ""	$as_nl"
12779
12780# Find who we are.  Look in the path if we contain no directory separator.
12781as_myself=
12782case $0 in #((
12783  *[\\/]* ) as_myself=$0 ;;
12784  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787  IFS=$as_save_IFS
12788  test -z "$as_dir" && as_dir=.
12789    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12790  done
12791IFS=$as_save_IFS
12792
12793     ;;
12794esac
12795# We did not find ourselves, most probably we were run as `sh COMMAND'
12796# in which case we are not to be found in the path.
12797if test "x$as_myself" = x; then
12798  as_myself=$0
12799fi
12800if test ! -f "$as_myself"; then
12801  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12802  exit 1
12803fi
12804
12805# Unset variables that we do not need and which cause bugs (e.g. in
12806# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12807# suppresses any "Segmentation fault" message there.  '((' could
12808# trigger a bug in pdksh 5.2.14.
12809for as_var in BASH_ENV ENV MAIL MAILPATH
12810do eval test x\${$as_var+set} = xset \
12811  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12812done
12813PS1='$ '
12814PS2='> '
12815PS4='+ '
12816
12817# NLS nuisances.
12818LC_ALL=C
12819export LC_ALL
12820LANGUAGE=C
12821export LANGUAGE
12822
12823# CDPATH.
12824(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12825
12826
12827# as_fn_error STATUS ERROR [LINENO LOG_FD]
12828# ----------------------------------------
12829# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12830# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12831# script with STATUS, using 1 if that was 0.
12832as_fn_error ()
12833{
12834  as_status=$1; test $as_status -eq 0 && as_status=1
12835  if test "$4"; then
12836    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12837    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12838  fi
12839  $as_echo "$as_me: error: $2" >&2
12840  as_fn_exit $as_status
12841} # as_fn_error
12842
12843
12844# as_fn_set_status STATUS
12845# -----------------------
12846# Set $? to STATUS, without forking.
12847as_fn_set_status ()
12848{
12849  return $1
12850} # as_fn_set_status
12851
12852# as_fn_exit STATUS
12853# -----------------
12854# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12855as_fn_exit ()
12856{
12857  set +e
12858  as_fn_set_status $1
12859  exit $1
12860} # as_fn_exit
12861
12862# as_fn_unset VAR
12863# ---------------
12864# Portably unset VAR.
12865as_fn_unset ()
12866{
12867  { eval $1=; unset $1;}
12868}
12869as_unset=as_fn_unset
12870# as_fn_append VAR VALUE
12871# ----------------------
12872# Append the text in VALUE to the end of the definition contained in VAR. Take
12873# advantage of any shell optimizations that allow amortized linear growth over
12874# repeated appends, instead of the typical quadratic growth present in naive
12875# implementations.
12876if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12877  eval 'as_fn_append ()
12878  {
12879    eval $1+=\$2
12880  }'
12881else
12882  as_fn_append ()
12883  {
12884    eval $1=\$$1\$2
12885  }
12886fi # as_fn_append
12887
12888# as_fn_arith ARG...
12889# ------------------
12890# Perform arithmetic evaluation on the ARGs, and store the result in the
12891# global $as_val. Take advantage of shells that can avoid forks. The arguments
12892# must be portable across $(()) and expr.
12893if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12894  eval 'as_fn_arith ()
12895  {
12896    as_val=$(( $* ))
12897  }'
12898else
12899  as_fn_arith ()
12900  {
12901    as_val=`expr "$@" || test $? -eq 1`
12902  }
12903fi # as_fn_arith
12904
12905
12906if expr a : '\(a\)' >/dev/null 2>&1 &&
12907   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12908  as_expr=expr
12909else
12910  as_expr=false
12911fi
12912
12913if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12914  as_basename=basename
12915else
12916  as_basename=false
12917fi
12918
12919if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12920  as_dirname=dirname
12921else
12922  as_dirname=false
12923fi
12924
12925as_me=`$as_basename -- "$0" ||
12926$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12927	 X"$0" : 'X\(//\)$' \| \
12928	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12929$as_echo X/"$0" |
12930    sed '/^.*\/\([^/][^/]*\)\/*$/{
12931	    s//\1/
12932	    q
12933	  }
12934	  /^X\/\(\/\/\)$/{
12935	    s//\1/
12936	    q
12937	  }
12938	  /^X\/\(\/\).*/{
12939	    s//\1/
12940	    q
12941	  }
12942	  s/.*/./; q'`
12943
12944# Avoid depending upon Character Ranges.
12945as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12946as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12947as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12948as_cr_digits='0123456789'
12949as_cr_alnum=$as_cr_Letters$as_cr_digits
12950
12951ECHO_C= ECHO_N= ECHO_T=
12952case `echo -n x` in #(((((
12953-n*)
12954  case `echo 'xy\c'` in
12955  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12956  xy)  ECHO_C='\c';;
12957  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12958       ECHO_T='	';;
12959  esac;;
12960*)
12961  ECHO_N='-n';;
12962esac
12963
12964rm -f conf$$ conf$$.exe conf$$.file
12965if test -d conf$$.dir; then
12966  rm -f conf$$.dir/conf$$.file
12967else
12968  rm -f conf$$.dir
12969  mkdir conf$$.dir 2>/dev/null
12970fi
12971if (echo >conf$$.file) 2>/dev/null; then
12972  if ln -s conf$$.file conf$$ 2>/dev/null; then
12973    as_ln_s='ln -s'
12974    # ... but there are two gotchas:
12975    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12976    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12977    # In both cases, we have to default to `cp -pR'.
12978    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12979      as_ln_s='cp -pR'
12980  elif ln conf$$.file conf$$ 2>/dev/null; then
12981    as_ln_s=ln
12982  else
12983    as_ln_s='cp -pR'
12984  fi
12985else
12986  as_ln_s='cp -pR'
12987fi
12988rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12989rmdir conf$$.dir 2>/dev/null
12990
12991
12992# as_fn_mkdir_p
12993# -------------
12994# Create "$as_dir" as a directory, including parents if necessary.
12995as_fn_mkdir_p ()
12996{
12997
12998  case $as_dir in #(
12999  -*) as_dir=./$as_dir;;
13000  esac
13001  test -d "$as_dir" || eval $as_mkdir_p || {
13002    as_dirs=
13003    while :; do
13004      case $as_dir in #(
13005      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13006      *) as_qdir=$as_dir;;
13007      esac
13008      as_dirs="'$as_qdir' $as_dirs"
13009      as_dir=`$as_dirname -- "$as_dir" ||
13010$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13011	 X"$as_dir" : 'X\(//\)[^/]' \| \
13012	 X"$as_dir" : 'X\(//\)$' \| \
13013	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13014$as_echo X"$as_dir" |
13015    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13016	    s//\1/
13017	    q
13018	  }
13019	  /^X\(\/\/\)[^/].*/{
13020	    s//\1/
13021	    q
13022	  }
13023	  /^X\(\/\/\)$/{
13024	    s//\1/
13025	    q
13026	  }
13027	  /^X\(\/\).*/{
13028	    s//\1/
13029	    q
13030	  }
13031	  s/.*/./; q'`
13032      test -d "$as_dir" && break
13033    done
13034    test -z "$as_dirs" || eval "mkdir $as_dirs"
13035  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13036
13037
13038} # as_fn_mkdir_p
13039if mkdir -p . 2>/dev/null; then
13040  as_mkdir_p='mkdir -p "$as_dir"'
13041else
13042  test -d ./-p && rmdir ./-p
13043  as_mkdir_p=false
13044fi
13045
13046
13047# as_fn_executable_p FILE
13048# -----------------------
13049# Test if FILE is an executable regular file.
13050as_fn_executable_p ()
13051{
13052  test -f "$1" && test -x "$1"
13053} # as_fn_executable_p
13054as_test_x='test -x'
13055as_executable_p=as_fn_executable_p
13056
13057# Sed expression to map a string onto a valid CPP name.
13058as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13059
13060# Sed expression to map a string onto a valid variable name.
13061as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13062
13063
13064exec 6>&1
13065## ----------------------------------- ##
13066## Main body of $CONFIG_STATUS script. ##
13067## ----------------------------------- ##
13068_ASEOF
13069test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13070
13071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13072# Save the log message, to keep $0 and so on meaningful, and to
13073# report actual input values of CONFIG_FILES etc. instead of their
13074# values after options handling.
13075ac_log="
13076This file was extended by libltdl $as_me 2.4.2, which was
13077generated by GNU Autoconf 2.69.  Invocation command line was
13078
13079  CONFIG_FILES    = $CONFIG_FILES
13080  CONFIG_HEADERS  = $CONFIG_HEADERS
13081  CONFIG_LINKS    = $CONFIG_LINKS
13082  CONFIG_COMMANDS = $CONFIG_COMMANDS
13083  $ $0 $@
13084
13085on `(hostname || uname -n) 2>/dev/null | sed 1q`
13086"
13087
13088_ACEOF
13089
13090case $ac_config_files in *"
13091"*) set x $ac_config_files; shift; ac_config_files=$*;;
13092esac
13093
13094case $ac_config_headers in *"
13095"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13096esac
13097
13098
13099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13100# Files that config.status was made for.
13101config_files="$ac_config_files"
13102config_headers="$ac_config_headers"
13103config_commands="$ac_config_commands"
13104
13105_ACEOF
13106
13107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108ac_cs_usage="\
13109\`$as_me' instantiates files and other configuration actions
13110from templates according to the current configuration.  Unless the files
13111and actions are specified as TAGs, all are instantiated by default.
13112
13113Usage: $0 [OPTION]... [TAG]...
13114
13115  -h, --help       print this help, then exit
13116  -V, --version    print version number and configuration settings, then exit
13117      --config     print configuration, then exit
13118  -q, --quiet, --silent
13119                   do not print progress messages
13120  -d, --debug      don't remove temporary files
13121      --recheck    update $as_me by reconfiguring in the same conditions
13122      --file=FILE[:TEMPLATE]
13123                   instantiate the configuration file FILE
13124      --header=FILE[:TEMPLATE]
13125                   instantiate the configuration header FILE
13126
13127Configuration files:
13128$config_files
13129
13130Configuration headers:
13131$config_headers
13132
13133Configuration commands:
13134$config_commands
13135
13136Report bugs to <bug-libtool@gnu.org>."
13137
13138_ACEOF
13139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13140ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13141ac_cs_version="\\
13142libltdl config.status 2.4.2
13143configured by $0, generated by GNU Autoconf 2.69,
13144  with options \\"\$ac_cs_config\\"
13145
13146Copyright (C) 2012 Free Software Foundation, Inc.
13147This config.status script is free software; the Free Software Foundation
13148gives unlimited permission to copy, distribute and modify it."
13149
13150ac_pwd='$ac_pwd'
13151srcdir='$srcdir'
13152INSTALL='$INSTALL'
13153MKDIR_P='$MKDIR_P'
13154AWK='$AWK'
13155test -n "\$AWK" || AWK=awk
13156_ACEOF
13157
13158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13159# The default lists apply if the user does not specify any file.
13160ac_need_defaults=:
13161while test $# != 0
13162do
13163  case $1 in
13164  --*=?*)
13165    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13166    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13167    ac_shift=:
13168    ;;
13169  --*=)
13170    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13171    ac_optarg=
13172    ac_shift=:
13173    ;;
13174  *)
13175    ac_option=$1
13176    ac_optarg=$2
13177    ac_shift=shift
13178    ;;
13179  esac
13180
13181  case $ac_option in
13182  # Handling of the options.
13183  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13184    ac_cs_recheck=: ;;
13185  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13186    $as_echo "$ac_cs_version"; exit ;;
13187  --config | --confi | --conf | --con | --co | --c )
13188    $as_echo "$ac_cs_config"; exit ;;
13189  --debug | --debu | --deb | --de | --d | -d )
13190    debug=: ;;
13191  --file | --fil | --fi | --f )
13192    $ac_shift
13193    case $ac_optarg in
13194    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13195    '') as_fn_error $? "missing file argument" ;;
13196    esac
13197    as_fn_append CONFIG_FILES " '$ac_optarg'"
13198    ac_need_defaults=false;;
13199  --header | --heade | --head | --hea )
13200    $ac_shift
13201    case $ac_optarg in
13202    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13203    esac
13204    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13205    ac_need_defaults=false;;
13206  --he | --h)
13207    # Conflict between --help and --header
13208    as_fn_error $? "ambiguous option: \`$1'
13209Try \`$0 --help' for more information.";;
13210  --help | --hel | -h )
13211    $as_echo "$ac_cs_usage"; exit ;;
13212  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13213  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13214    ac_cs_silent=: ;;
13215
13216  # This is an error.
13217  -*) as_fn_error $? "unrecognized option: \`$1'
13218Try \`$0 --help' for more information." ;;
13219
13220  *) as_fn_append ac_config_targets " $1"
13221     ac_need_defaults=false ;;
13222
13223  esac
13224  shift
13225done
13226
13227ac_configure_extra_args=
13228
13229if $ac_cs_silent; then
13230  exec 6>/dev/null
13231  ac_configure_extra_args="$ac_configure_extra_args --silent"
13232fi
13233
13234_ACEOF
13235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13236if \$ac_cs_recheck; then
13237  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13238  shift
13239  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13240  CONFIG_SHELL='$SHELL'
13241  export CONFIG_SHELL
13242  exec "\$@"
13243fi
13244
13245_ACEOF
13246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13247exec 5>>config.log
13248{
13249  echo
13250  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13251## Running $as_me. ##
13252_ASBOX
13253  $as_echo "$ac_log"
13254} >&5
13255
13256_ACEOF
13257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13258#
13259# INIT-COMMANDS
13260#
13261AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13262
13263
13264# The HP-UX ksh and POSIX shell print the target directory to stdout
13265# if CDPATH is set.
13266(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13267
13268sed_quote_subst='$sed_quote_subst'
13269double_quote_subst='$double_quote_subst'
13270delay_variable_subst='$delay_variable_subst'
13271macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13272macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13273AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13274DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13275OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13276enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13277enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13278pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13279enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13280SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13281ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13282PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13283host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13284host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13285host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13286build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13287build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13288build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13289SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13290Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13291GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13292EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13293FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13294LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13295NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13296LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13297max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13298ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13299exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13300lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13301lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13302lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13303lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13304lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13305reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13306reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13307deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13308file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13309file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13310want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13311sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13312AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13313AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13314archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13315STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13316RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13317old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13318old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13319old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13320lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13321CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13322CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13323compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13324GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13325lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13326lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13327lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13328lt_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"`'
13329nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13330lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13331objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13332MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13333lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13334lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13335lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13336lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13337lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13338need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13339MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13340DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13341NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13342LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13343OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13344OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13345libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13346shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13347extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13348archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13349enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13350export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13351whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13352compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13353old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13354old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13355archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13356archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13357module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13358module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13359with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13360allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13361no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13362hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13363hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13364hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13365hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13366hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13367hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13368hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13369inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13370link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13371always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13372export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13373exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13374include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13375prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13376postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13377file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13378variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13379need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13380need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13381version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13382runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13383shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13384shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13385libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13386library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13387soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13388install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13389postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13390postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13391finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13392finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13393hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13394sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13395sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13396hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13397enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13398enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13399enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13400old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13401striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13402
13403LTCC='$LTCC'
13404LTCFLAGS='$LTCFLAGS'
13405compiler='$compiler_DEFAULT'
13406
13407# A function that is used when there is no print builtin or printf.
13408func_fallback_echo ()
13409{
13410  eval 'cat <<_LTECHO_EOF
13411\$1
13412_LTECHO_EOF'
13413}
13414
13415# Quote evaled strings.
13416for var in AS \
13417DLLTOOL \
13418OBJDUMP \
13419SHELL \
13420ECHO \
13421PATH_SEPARATOR \
13422SED \
13423GREP \
13424EGREP \
13425FGREP \
13426LD \
13427NM \
13428LN_S \
13429lt_SP2NL \
13430lt_NL2SP \
13431reload_flag \
13432deplibs_check_method \
13433file_magic_cmd \
13434file_magic_glob \
13435want_nocaseglob \
13436sharedlib_from_linklib_cmd \
13437AR \
13438AR_FLAGS \
13439archiver_list_spec \
13440STRIP \
13441RANLIB \
13442CC \
13443CFLAGS \
13444compiler \
13445lt_cv_sys_global_symbol_pipe \
13446lt_cv_sys_global_symbol_to_cdecl \
13447lt_cv_sys_global_symbol_to_c_name_address \
13448lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13449nm_file_list_spec \
13450lt_prog_compiler_no_builtin_flag \
13451lt_prog_compiler_pic \
13452lt_prog_compiler_wl \
13453lt_prog_compiler_static \
13454lt_cv_prog_compiler_c_o \
13455need_locks \
13456MANIFEST_TOOL \
13457DSYMUTIL \
13458NMEDIT \
13459LIPO \
13460OTOOL \
13461OTOOL64 \
13462shrext_cmds \
13463export_dynamic_flag_spec \
13464whole_archive_flag_spec \
13465compiler_needs_object \
13466with_gnu_ld \
13467allow_undefined_flag \
13468no_undefined_flag \
13469hardcode_libdir_flag_spec \
13470hardcode_libdir_separator \
13471exclude_expsyms \
13472include_expsyms \
13473file_list_spec \
13474variables_saved_for_relink \
13475libname_spec \
13476library_names_spec \
13477soname_spec \
13478install_override_mode \
13479finish_eval \
13480old_striplib \
13481striplib; do
13482    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13483    *[\\\\\\\`\\"\\\$]*)
13484      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13485      ;;
13486    *)
13487      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13488      ;;
13489    esac
13490done
13491
13492# Double-quote double-evaled strings.
13493for var in reload_cmds \
13494old_postinstall_cmds \
13495old_postuninstall_cmds \
13496old_archive_cmds \
13497extract_expsyms_cmds \
13498old_archive_from_new_cmds \
13499old_archive_from_expsyms_cmds \
13500archive_cmds \
13501archive_expsym_cmds \
13502module_cmds \
13503module_expsym_cmds \
13504export_symbols_cmds \
13505prelink_cmds \
13506postlink_cmds \
13507postinstall_cmds \
13508postuninstall_cmds \
13509finish_cmds \
13510sys_lib_search_path_spec \
13511sys_lib_dlsearch_path_spec; do
13512    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13513    *[\\\\\\\`\\"\\\$]*)
13514      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13515      ;;
13516    *)
13517      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13518      ;;
13519    esac
13520done
13521
13522ac_aux_dir='$ac_aux_dir'
13523xsi_shell='$xsi_shell'
13524lt_shell_append='$lt_shell_append'
13525
13526# See if we are running on zsh, and set the options which allow our
13527# commands through without removal of \ escapes INIT.
13528if test -n "\${ZSH_VERSION+set}" ; then
13529   setopt NO_GLOB_SUBST
13530fi
13531
13532
13533    PACKAGE='$PACKAGE'
13534    VERSION='$VERSION'
13535    TIMESTAMP='$TIMESTAMP'
13536    RM='$RM'
13537    ofile='$ofile'
13538
13539
13540
13541
13542_ACEOF
13543
13544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13545
13546# Handling of arguments.
13547for ac_config_target in $ac_config_targets
13548do
13549  case $ac_config_target in
13550    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13551    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13552    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13553    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13554
13555  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13556  esac
13557done
13558
13559
13560# If the user did not use the arguments to specify the items to instantiate,
13561# then the envvar interface is used.  Set only those that are not.
13562# We use the long form for the default assignment because of an extremely
13563# bizarre bug on SunOS 4.1.3.
13564if $ac_need_defaults; then
13565  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13566  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13567  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13568fi
13569
13570# Have a temporary directory for convenience.  Make it in the build tree
13571# simply because there is no reason against having it here, and in addition,
13572# creating and moving files from /tmp can sometimes cause problems.
13573# Hook for its removal unless debugging.
13574# Note that there is a small window in which the directory will not be cleaned:
13575# after its creation but before its name has been assigned to `$tmp'.
13576$debug ||
13577{
13578  tmp= ac_tmp=
13579  trap 'exit_status=$?
13580  : "${ac_tmp:=$tmp}"
13581  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13582' 0
13583  trap 'as_fn_exit 1' 1 2 13 15
13584}
13585# Create a (secure) tmp directory for tmp files.
13586
13587{
13588  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13589  test -d "$tmp"
13590}  ||
13591{
13592  tmp=./conf$$-$RANDOM
13593  (umask 077 && mkdir "$tmp")
13594} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13595ac_tmp=$tmp
13596
13597# Set up the scripts for CONFIG_FILES section.
13598# No need to generate them if there are no CONFIG_FILES.
13599# This happens for instance with `./config.status config.h'.
13600if test -n "$CONFIG_FILES"; then
13601
13602
13603ac_cr=`echo X | tr X '\015'`
13604# On cygwin, bash can eat \r inside `` if the user requested igncr.
13605# But we know of no other shell where ac_cr would be empty at this
13606# point, so we can use a bashism as a fallback.
13607if test "x$ac_cr" = x; then
13608  eval ac_cr=\$\'\\r\'
13609fi
13610ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13611if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13612  ac_cs_awk_cr='\\r'
13613else
13614  ac_cs_awk_cr=$ac_cr
13615fi
13616
13617echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13618_ACEOF
13619
13620
13621{
13622  echo "cat >conf$$subs.awk <<_ACEOF" &&
13623  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13624  echo "_ACEOF"
13625} >conf$$subs.sh ||
13626  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13627ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13628ac_delim='%!_!# '
13629for ac_last_try in false false false false false :; do
13630  . ./conf$$subs.sh ||
13631    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13632
13633  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13634  if test $ac_delim_n = $ac_delim_num; then
13635    break
13636  elif $ac_last_try; then
13637    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13638  else
13639    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13640  fi
13641done
13642rm -f conf$$subs.sh
13643
13644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13645cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13646_ACEOF
13647sed -n '
13648h
13649s/^/S["/; s/!.*/"]=/
13650p
13651g
13652s/^[^!]*!//
13653:repl
13654t repl
13655s/'"$ac_delim"'$//
13656t delim
13657:nl
13658h
13659s/\(.\{148\}\)..*/\1/
13660t more1
13661s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13662p
13663n
13664b repl
13665:more1
13666s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13667p
13668g
13669s/.\{148\}//
13670t nl
13671:delim
13672h
13673s/\(.\{148\}\)..*/\1/
13674t more2
13675s/["\\]/\\&/g; s/^/"/; s/$/"/
13676p
13677b
13678:more2
13679s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13680p
13681g
13682s/.\{148\}//
13683t delim
13684' <conf$$subs.awk | sed '
13685/^[^""]/{
13686  N
13687  s/\n//
13688}
13689' >>$CONFIG_STATUS || ac_write_fail=1
13690rm -f conf$$subs.awk
13691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13692_ACAWK
13693cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13694  for (key in S) S_is_set[key] = 1
13695  FS = ""
13696
13697}
13698{
13699  line = $ 0
13700  nfields = split(line, field, "@")
13701  substed = 0
13702  len = length(field[1])
13703  for (i = 2; i < nfields; i++) {
13704    key = field[i]
13705    keylen = length(key)
13706    if (S_is_set[key]) {
13707      value = S[key]
13708      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13709      len += length(value) + length(field[++i])
13710      substed = 1
13711    } else
13712      len += 1 + keylen
13713  }
13714
13715  print line
13716}
13717
13718_ACAWK
13719_ACEOF
13720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13722  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13723else
13724  cat
13725fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13726  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13727_ACEOF
13728
13729# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13730# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13731# trailing colons and then remove the whole line if VPATH becomes empty
13732# (actually we leave an empty line to preserve line numbers).
13733if test "x$srcdir" = x.; then
13734  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13735h
13736s///
13737s/^/:/
13738s/[	 ]*$/:/
13739s/:\$(srcdir):/:/g
13740s/:\${srcdir}:/:/g
13741s/:@srcdir@:/:/g
13742s/^:*//
13743s/:*$//
13744x
13745s/\(=[	 ]*\).*/\1/
13746G
13747s/\n//
13748s/^[^=]*=[	 ]*$//
13749}'
13750fi
13751
13752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13753fi # test -n "$CONFIG_FILES"
13754
13755# Set up the scripts for CONFIG_HEADERS section.
13756# No need to generate them if there are no CONFIG_HEADERS.
13757# This happens for instance with `./config.status Makefile'.
13758if test -n "$CONFIG_HEADERS"; then
13759cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13760BEGIN {
13761_ACEOF
13762
13763# Transform confdefs.h into an awk script `defines.awk', embedded as
13764# here-document in config.status, that substitutes the proper values into
13765# config.h.in to produce config.h.
13766
13767# Create a delimiter string that does not exist in confdefs.h, to ease
13768# handling of long lines.
13769ac_delim='%!_!# '
13770for ac_last_try in false false :; do
13771  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13772  if test -z "$ac_tt"; then
13773    break
13774  elif $ac_last_try; then
13775    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13776  else
13777    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13778  fi
13779done
13780
13781# For the awk script, D is an array of macro values keyed by name,
13782# likewise P contains macro parameters if any.  Preserve backslash
13783# newline sequences.
13784
13785ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13786sed -n '
13787s/.\{148\}/&'"$ac_delim"'/g
13788t rset
13789:rset
13790s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13791t def
13792d
13793:def
13794s/\\$//
13795t bsnl
13796s/["\\]/\\&/g
13797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13798D["\1"]=" \3"/p
13799s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13800d
13801:bsnl
13802s/["\\]/\\&/g
13803s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13804D["\1"]=" \3\\\\\\n"\\/p
13805t cont
13806s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13807t cont
13808d
13809:cont
13810n
13811s/.\{148\}/&'"$ac_delim"'/g
13812t clear
13813:clear
13814s/\\$//
13815t bsnlc
13816s/["\\]/\\&/g; s/^/"/; s/$/"/p
13817d
13818:bsnlc
13819s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13820b cont
13821' <confdefs.h | sed '
13822s/'"$ac_delim"'/"\\\
13823"/g' >>$CONFIG_STATUS || ac_write_fail=1
13824
13825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13826  for (key in D) D_is_set[key] = 1
13827  FS = ""
13828}
13829/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13830  line = \$ 0
13831  split(line, arg, " ")
13832  if (arg[1] == "#") {
13833    defundef = arg[2]
13834    mac1 = arg[3]
13835  } else {
13836    defundef = substr(arg[1], 2)
13837    mac1 = arg[2]
13838  }
13839  split(mac1, mac2, "(") #)
13840  macro = mac2[1]
13841  prefix = substr(line, 1, index(line, defundef) - 1)
13842  if (D_is_set[macro]) {
13843    # Preserve the white space surrounding the "#".
13844    print prefix "define", macro P[macro] D[macro]
13845    next
13846  } else {
13847    # Replace #undef with comments.  This is necessary, for example,
13848    # in the case of _POSIX_SOURCE, which is predefined and required
13849    # on some systems where configure will not decide to define it.
13850    if (defundef == "undef") {
13851      print "/*", prefix defundef, macro, "*/"
13852      next
13853    }
13854  }
13855}
13856{ print }
13857_ACAWK
13858_ACEOF
13859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13860  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13861fi # test -n "$CONFIG_HEADERS"
13862
13863
13864eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13865shift
13866for ac_tag
13867do
13868  case $ac_tag in
13869  :[FHLC]) ac_mode=$ac_tag; continue;;
13870  esac
13871  case $ac_mode$ac_tag in
13872  :[FHL]*:*);;
13873  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13874  :[FH]-) ac_tag=-:-;;
13875  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13876  esac
13877  ac_save_IFS=$IFS
13878  IFS=:
13879  set x $ac_tag
13880  IFS=$ac_save_IFS
13881  shift
13882  ac_file=$1
13883  shift
13884
13885  case $ac_mode in
13886  :L) ac_source=$1;;
13887  :[FH])
13888    ac_file_inputs=
13889    for ac_f
13890    do
13891      case $ac_f in
13892      -) ac_f="$ac_tmp/stdin";;
13893      *) # Look for the file first in the build tree, then in the source tree
13894	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13895	 # because $ac_f cannot contain `:'.
13896	 test -f "$ac_f" ||
13897	   case $ac_f in
13898	   [\\/$]*) false;;
13899	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13900	   esac ||
13901	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13902      esac
13903      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13904      as_fn_append ac_file_inputs " '$ac_f'"
13905    done
13906
13907    # Let's still pretend it is `configure' which instantiates (i.e., don't
13908    # use $as_me), people would be surprised to read:
13909    #    /* config.h.  Generated by config.status.  */
13910    configure_input='Generated from '`
13911	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13912	`' by configure.'
13913    if test x"$ac_file" != x-; then
13914      configure_input="$ac_file.  $configure_input"
13915      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13916$as_echo "$as_me: creating $ac_file" >&6;}
13917    fi
13918    # Neutralize special characters interpreted by sed in replacement strings.
13919    case $configure_input in #(
13920    *\&* | *\|* | *\\* )
13921       ac_sed_conf_input=`$as_echo "$configure_input" |
13922       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13923    *) ac_sed_conf_input=$configure_input;;
13924    esac
13925
13926    case $ac_tag in
13927    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13928      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13929    esac
13930    ;;
13931  esac
13932
13933  ac_dir=`$as_dirname -- "$ac_file" ||
13934$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13935	 X"$ac_file" : 'X\(//\)[^/]' \| \
13936	 X"$ac_file" : 'X\(//\)$' \| \
13937	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13938$as_echo X"$ac_file" |
13939    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13940	    s//\1/
13941	    q
13942	  }
13943	  /^X\(\/\/\)[^/].*/{
13944	    s//\1/
13945	    q
13946	  }
13947	  /^X\(\/\/\)$/{
13948	    s//\1/
13949	    q
13950	  }
13951	  /^X\(\/\).*/{
13952	    s//\1/
13953	    q
13954	  }
13955	  s/.*/./; q'`
13956  as_dir="$ac_dir"; as_fn_mkdir_p
13957  ac_builddir=.
13958
13959case "$ac_dir" in
13960.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13961*)
13962  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13963  # A ".." for each directory in $ac_dir_suffix.
13964  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13965  case $ac_top_builddir_sub in
13966  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13967  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13968  esac ;;
13969esac
13970ac_abs_top_builddir=$ac_pwd
13971ac_abs_builddir=$ac_pwd$ac_dir_suffix
13972# for backward compatibility:
13973ac_top_builddir=$ac_top_build_prefix
13974
13975case $srcdir in
13976  .)  # We are building in place.
13977    ac_srcdir=.
13978    ac_top_srcdir=$ac_top_builddir_sub
13979    ac_abs_top_srcdir=$ac_pwd ;;
13980  [\\/]* | ?:[\\/]* )  # Absolute name.
13981    ac_srcdir=$srcdir$ac_dir_suffix;
13982    ac_top_srcdir=$srcdir
13983    ac_abs_top_srcdir=$srcdir ;;
13984  *) # Relative name.
13985    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13986    ac_top_srcdir=$ac_top_build_prefix$srcdir
13987    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13988esac
13989ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13990
13991
13992  case $ac_mode in
13993  :F)
13994  #
13995  # CONFIG_FILE
13996  #
13997
13998  case $INSTALL in
13999  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14000  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14001  esac
14002  ac_MKDIR_P=$MKDIR_P
14003  case $MKDIR_P in
14004  [\\/$]* | ?:[\\/]* ) ;;
14005  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14006  esac
14007_ACEOF
14008
14009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010# If the template does not know about datarootdir, expand it.
14011# FIXME: This hack should be removed a few years after 2.60.
14012ac_datarootdir_hack=; ac_datarootdir_seen=
14013ac_sed_dataroot='
14014/datarootdir/ {
14015  p
14016  q
14017}
14018/@datadir@/p
14019/@docdir@/p
14020/@infodir@/p
14021/@localedir@/p
14022/@mandir@/p'
14023case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14024*datarootdir*) ac_datarootdir_seen=yes;;
14025*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14026  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14027$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14028_ACEOF
14029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030  ac_datarootdir_hack='
14031  s&@datadir@&$datadir&g
14032  s&@docdir@&$docdir&g
14033  s&@infodir@&$infodir&g
14034  s&@localedir@&$localedir&g
14035  s&@mandir@&$mandir&g
14036  s&\\\${datarootdir}&$datarootdir&g' ;;
14037esac
14038_ACEOF
14039
14040# Neutralize VPATH when `$srcdir' = `.'.
14041# Shell code in configure.ac might set extrasub.
14042# FIXME: do we really want to maintain this feature?
14043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14044ac_sed_extra="$ac_vpsub
14045$extrasub
14046_ACEOF
14047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14048:t
14049/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14050s|@configure_input@|$ac_sed_conf_input|;t t
14051s&@top_builddir@&$ac_top_builddir_sub&;t t
14052s&@top_build_prefix@&$ac_top_build_prefix&;t t
14053s&@srcdir@&$ac_srcdir&;t t
14054s&@abs_srcdir@&$ac_abs_srcdir&;t t
14055s&@top_srcdir@&$ac_top_srcdir&;t t
14056s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14057s&@builddir@&$ac_builddir&;t t
14058s&@abs_builddir@&$ac_abs_builddir&;t t
14059s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14060s&@INSTALL@&$ac_INSTALL&;t t
14061s&@MKDIR_P@&$ac_MKDIR_P&;t t
14062$ac_datarootdir_hack
14063"
14064eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14065  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14066
14067test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14068  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14069  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14070      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14071  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14072which seems to be undefined.  Please make sure it is defined" >&5
14073$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14074which seems to be undefined.  Please make sure it is defined" >&2;}
14075
14076  rm -f "$ac_tmp/stdin"
14077  case $ac_file in
14078  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14079  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14080  esac \
14081  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14082 ;;
14083  :H)
14084  #
14085  # CONFIG_HEADER
14086  #
14087  if test x"$ac_file" != x-; then
14088    {
14089      $as_echo "/* $configure_input  */" \
14090      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14091    } >"$ac_tmp/config.h" \
14092      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14093    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14094      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14095$as_echo "$as_me: $ac_file is unchanged" >&6;}
14096    else
14097      rm -f "$ac_file"
14098      mv "$ac_tmp/config.h" "$ac_file" \
14099	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14100    fi
14101  else
14102    $as_echo "/* $configure_input  */" \
14103      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14104      || as_fn_error $? "could not create -" "$LINENO" 5
14105  fi
14106# Compute "$ac_file"'s index in $config_headers.
14107_am_arg="$ac_file"
14108_am_stamp_count=1
14109for _am_header in $config_headers :; do
14110  case $_am_header in
14111    $_am_arg | $_am_arg:* )
14112      break ;;
14113    * )
14114      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14115  esac
14116done
14117echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14118$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14119	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14120	 X"$_am_arg" : 'X\(//\)$' \| \
14121	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14122$as_echo X"$_am_arg" |
14123    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14124	    s//\1/
14125	    q
14126	  }
14127	  /^X\(\/\/\)[^/].*/{
14128	    s//\1/
14129	    q
14130	  }
14131	  /^X\(\/\/\)$/{
14132	    s//\1/
14133	    q
14134	  }
14135	  /^X\(\/\).*/{
14136	    s//\1/
14137	    q
14138	  }
14139	  s/.*/./; q'`/stamp-h$_am_stamp_count
14140 ;;
14141
14142  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14143$as_echo "$as_me: executing $ac_file commands" >&6;}
14144 ;;
14145  esac
14146
14147
14148  case $ac_file$ac_mode in
14149    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14150  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14151  # are listed without --file.  Let's play safe and only enable the eval
14152  # if we detect the quoting.
14153  case $CONFIG_FILES in
14154  *\'*) eval set x "$CONFIG_FILES" ;;
14155  *)   set x $CONFIG_FILES ;;
14156  esac
14157  shift
14158  for mf
14159  do
14160    # Strip MF so we end up with the name of the file.
14161    mf=`echo "$mf" | sed -e 's/:.*$//'`
14162    # Check whether this is an Automake generated Makefile or not.
14163    # We used to match only the files named `Makefile.in', but
14164    # some people rename them; so instead we look at the file content.
14165    # Grep'ing the first line is not enough: some people post-process
14166    # each Makefile.in and add a new line on top of each file to say so.
14167    # Grep'ing the whole file is not good either: AIX grep has a line
14168    # limit of 2048, but all sed's we know have understand at least 4000.
14169    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14170      dirpart=`$as_dirname -- "$mf" ||
14171$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14172	 X"$mf" : 'X\(//\)[^/]' \| \
14173	 X"$mf" : 'X\(//\)$' \| \
14174	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14175$as_echo X"$mf" |
14176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14177	    s//\1/
14178	    q
14179	  }
14180	  /^X\(\/\/\)[^/].*/{
14181	    s//\1/
14182	    q
14183	  }
14184	  /^X\(\/\/\)$/{
14185	    s//\1/
14186	    q
14187	  }
14188	  /^X\(\/\).*/{
14189	    s//\1/
14190	    q
14191	  }
14192	  s/.*/./; q'`
14193    else
14194      continue
14195    fi
14196    # Extract the definition of DEPDIR, am__include, and am__quote
14197    # from the Makefile without running `make'.
14198    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14199    test -z "$DEPDIR" && continue
14200    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14201    test -z "am__include" && continue
14202    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14203    # When using ansi2knr, U may be empty or an underscore; expand it
14204    U=`sed -n 's/^U = //p' < "$mf"`
14205    # Find all dependency output files, they are included files with
14206    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14207    # simplest approach to changing $(DEPDIR) to its actual value in the
14208    # expansion.
14209    for file in `sed -n "
14210      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14211	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14212      # Make sure the directory exists.
14213      test -f "$dirpart/$file" && continue
14214      fdir=`$as_dirname -- "$file" ||
14215$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14216	 X"$file" : 'X\(//\)[^/]' \| \
14217	 X"$file" : 'X\(//\)$' \| \
14218	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14219$as_echo X"$file" |
14220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14221	    s//\1/
14222	    q
14223	  }
14224	  /^X\(\/\/\)[^/].*/{
14225	    s//\1/
14226	    q
14227	  }
14228	  /^X\(\/\/\)$/{
14229	    s//\1/
14230	    q
14231	  }
14232	  /^X\(\/\).*/{
14233	    s//\1/
14234	    q
14235	  }
14236	  s/.*/./; q'`
14237      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14238      # echo "creating $dirpart/$file"
14239      echo '# dummy' > "$dirpart/$file"
14240    done
14241  done
14242}
14243 ;;
14244    "libtool":C)
14245
14246    # See if we are running on zsh, and set the options which allow our
14247    # commands through without removal of \ escapes.
14248    if test -n "${ZSH_VERSION+set}" ; then
14249      setopt NO_GLOB_SUBST
14250    fi
14251
14252    cfgfile="${ofile}T"
14253    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14254    $RM "$cfgfile"
14255
14256    cat <<_LT_EOF >> "$cfgfile"
14257#! $SHELL
14258
14259# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14260# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14261# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14262# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14263#
14264#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14265#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14266#                 Foundation, Inc.
14267#   Written by Gordon Matzigkeit, 1996
14268#
14269#   This file is part of GNU Libtool.
14270#
14271# GNU Libtool is free software; you can redistribute it and/or
14272# modify it under the terms of the GNU General Public License as
14273# published by the Free Software Foundation; either version 2 of
14274# the License, or (at your option) any later version.
14275#
14276# As a special exception to the GNU General Public License,
14277# if you distribute this file as part of a program or library that
14278# is built using GNU Libtool, you may include this file under the
14279# same distribution terms that you use for the rest of that program.
14280#
14281# GNU Libtool is distributed in the hope that it will be useful,
14282# but WITHOUT ANY WARRANTY; without even the implied warranty of
14283# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14284# GNU General Public License for more details.
14285#
14286# You should have received a copy of the GNU General Public License
14287# along with GNU Libtool; see the file COPYING.  If not, a copy
14288# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14289# obtained by writing to the Free Software Foundation, Inc.,
14290# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14291
14292
14293# The names of the tagged configurations supported by this script.
14294available_tags=""
14295
14296# ### BEGIN LIBTOOL CONFIG
14297
14298# Which release of libtool.m4 was used?
14299macro_version=$macro_version
14300macro_revision=$macro_revision
14301
14302# Assembler program.
14303AS=$lt_AS
14304
14305# DLL creation program.
14306DLLTOOL=$lt_DLLTOOL
14307
14308# Object dumper program.
14309OBJDUMP=$lt_OBJDUMP
14310
14311# Whether or not to build shared libraries.
14312build_libtool_libs=$enable_shared
14313
14314# Whether or not to build static libraries.
14315build_old_libs=$enable_static
14316
14317# What type of objects to build.
14318pic_mode=$pic_mode
14319
14320# Whether or not to optimize for fast installation.
14321fast_install=$enable_fast_install
14322
14323# Shell to use when invoking shell scripts.
14324SHELL=$lt_SHELL
14325
14326# An echo program that protects backslashes.
14327ECHO=$lt_ECHO
14328
14329# The PATH separator for the build system.
14330PATH_SEPARATOR=$lt_PATH_SEPARATOR
14331
14332# The host system.
14333host_alias=$host_alias
14334host=$host
14335host_os=$host_os
14336
14337# The build system.
14338build_alias=$build_alias
14339build=$build
14340build_os=$build_os
14341
14342# A sed program that does not truncate output.
14343SED=$lt_SED
14344
14345# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14346Xsed="\$SED -e 1s/^X//"
14347
14348# A grep program that handles long lines.
14349GREP=$lt_GREP
14350
14351# An ERE matcher.
14352EGREP=$lt_EGREP
14353
14354# A literal string matcher.
14355FGREP=$lt_FGREP
14356
14357# A BSD- or MS-compatible name lister.
14358NM=$lt_NM
14359
14360# Whether we need soft or hard links.
14361LN_S=$lt_LN_S
14362
14363# What is the maximum length of a command?
14364max_cmd_len=$max_cmd_len
14365
14366# Object file suffix (normally "o").
14367objext=$ac_objext
14368
14369# Executable file suffix (normally "").
14370exeext=$exeext
14371
14372# whether the shell understands "unset".
14373lt_unset=$lt_unset
14374
14375# turn spaces into newlines.
14376SP2NL=$lt_lt_SP2NL
14377
14378# turn newlines into spaces.
14379NL2SP=$lt_lt_NL2SP
14380
14381# convert \$build file names to \$host format.
14382to_host_file_cmd=$lt_cv_to_host_file_cmd
14383
14384# convert \$build files to toolchain format.
14385to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14386
14387# Method to check whether dependent libraries are shared objects.
14388deplibs_check_method=$lt_deplibs_check_method
14389
14390# Command to use when deplibs_check_method = "file_magic".
14391file_magic_cmd=$lt_file_magic_cmd
14392
14393# How to find potential files when deplibs_check_method = "file_magic".
14394file_magic_glob=$lt_file_magic_glob
14395
14396# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14397want_nocaseglob=$lt_want_nocaseglob
14398
14399# Command to associate shared and link libraries.
14400sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14401
14402# The archiver.
14403AR=$lt_AR
14404
14405# Flags to create an archive.
14406AR_FLAGS=$lt_AR_FLAGS
14407
14408# How to feed a file listing to the archiver.
14409archiver_list_spec=$lt_archiver_list_spec
14410
14411# A symbol stripping program.
14412STRIP=$lt_STRIP
14413
14414# Commands used to install an old-style archive.
14415RANLIB=$lt_RANLIB
14416old_postinstall_cmds=$lt_old_postinstall_cmds
14417old_postuninstall_cmds=$lt_old_postuninstall_cmds
14418
14419# Whether to use a lock for old archive extraction.
14420lock_old_archive_extraction=$lock_old_archive_extraction
14421
14422# A C compiler.
14423LTCC=$lt_CC
14424
14425# LTCC compiler flags.
14426LTCFLAGS=$lt_CFLAGS
14427
14428# Take the output of nm and produce a listing of raw symbols and C names.
14429global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14430
14431# Transform the output of nm in a proper C declaration.
14432global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14433
14434# Transform the output of nm in a C name address pair.
14435global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14436
14437# Transform the output of nm in a C name address pair when lib prefix is needed.
14438global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14439
14440# Specify filename containing input files for \$NM.
14441nm_file_list_spec=$lt_nm_file_list_spec
14442
14443# The root where to search for dependent libraries,and in which our libraries should be installed.
14444lt_sysroot=$lt_sysroot
14445
14446# The name of the directory that contains temporary libtool files.
14447objdir=$objdir
14448
14449# Used to examine libraries when file_magic_cmd begins with "file".
14450MAGIC_CMD=$MAGIC_CMD
14451
14452# Must we lock files when doing compilation?
14453need_locks=$lt_need_locks
14454
14455# Manifest tool.
14456MANIFEST_TOOL=$lt_MANIFEST_TOOL
14457
14458# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14459DSYMUTIL=$lt_DSYMUTIL
14460
14461# Tool to change global to local symbols on Mac OS X.
14462NMEDIT=$lt_NMEDIT
14463
14464# Tool to manipulate fat objects and archives on Mac OS X.
14465LIPO=$lt_LIPO
14466
14467# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14468OTOOL=$lt_OTOOL
14469
14470# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14471OTOOL64=$lt_OTOOL64
14472
14473# Old archive suffix (normally "a").
14474libext=$libext
14475
14476# Shared library suffix (normally ".so").
14477shrext_cmds=$lt_shrext_cmds
14478
14479# The commands to extract the exported symbol list from a shared archive.
14480extract_expsyms_cmds=$lt_extract_expsyms_cmds
14481
14482# Variables whose values should be saved in libtool wrapper scripts and
14483# restored at link time.
14484variables_saved_for_relink=$lt_variables_saved_for_relink
14485
14486# Do we need the "lib" prefix for modules?
14487need_lib_prefix=$need_lib_prefix
14488
14489# Do we need a version for libraries?
14490need_version=$need_version
14491
14492# Library versioning type.
14493version_type=$version_type
14494
14495# Shared library runtime path variable.
14496runpath_var=$runpath_var
14497
14498# Shared library path variable.
14499shlibpath_var=$shlibpath_var
14500
14501# Is shlibpath searched before the hard-coded library search path?
14502shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14503
14504# Format of library name prefix.
14505libname_spec=$lt_libname_spec
14506
14507# List of archive names.  First name is the real one, the rest are links.
14508# The last name is the one that the linker finds with -lNAME
14509library_names_spec=$lt_library_names_spec
14510
14511# The coded name of the library, if different from the real name.
14512soname_spec=$lt_soname_spec
14513
14514# Permission mode override for installation of shared libraries.
14515install_override_mode=$lt_install_override_mode
14516
14517# Command to use after installation of a shared archive.
14518postinstall_cmds=$lt_postinstall_cmds
14519
14520# Command to use after uninstallation of a shared archive.
14521postuninstall_cmds=$lt_postuninstall_cmds
14522
14523# Commands used to finish a libtool library installation in a directory.
14524finish_cmds=$lt_finish_cmds
14525
14526# As "finish_cmds", except a single script fragment to be evaled but
14527# not shown.
14528finish_eval=$lt_finish_eval
14529
14530# Whether we should hardcode library paths into libraries.
14531hardcode_into_libs=$hardcode_into_libs
14532
14533# Compile-time system search path for libraries.
14534sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14535
14536# Run-time system search path for libraries.
14537sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14538
14539# Whether dlopen is supported.
14540dlopen_support=$enable_dlopen
14541
14542# Whether dlopen of programs is supported.
14543dlopen_self=$enable_dlopen_self
14544
14545# Whether dlopen of statically linked programs is supported.
14546dlopen_self_static=$enable_dlopen_self_static
14547
14548# Commands to strip libraries.
14549old_striplib=$lt_old_striplib
14550striplib=$lt_striplib
14551
14552
14553# The linker used to build libraries.
14554LD=$lt_LD
14555
14556# How to create reloadable object files.
14557reload_flag=$lt_reload_flag
14558reload_cmds=$lt_reload_cmds
14559
14560# Commands used to build an old-style archive.
14561old_archive_cmds=$lt_old_archive_cmds
14562
14563# A language specific compiler.
14564CC=$lt_compiler
14565
14566# Is the compiler the GNU compiler?
14567with_gcc=$GCC
14568
14569# Compiler flag to turn off builtin functions.
14570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14571
14572# Additional compiler flags for building library objects.
14573pic_flag=$lt_lt_prog_compiler_pic
14574
14575# How to pass a linker flag through the compiler.
14576wl=$lt_lt_prog_compiler_wl
14577
14578# Compiler flag to prevent dynamic linking.
14579link_static_flag=$lt_lt_prog_compiler_static
14580
14581# Does compiler simultaneously support -c and -o options?
14582compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14583
14584# Whether or not to add -lc for building shared libraries.
14585build_libtool_need_lc=$archive_cmds_need_lc
14586
14587# Whether or not to disallow shared libs when runtime libs are static.
14588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14589
14590# Compiler flag to allow reflexive dlopens.
14591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14592
14593# Compiler flag to generate shared objects directly from archives.
14594whole_archive_flag_spec=$lt_whole_archive_flag_spec
14595
14596# Whether the compiler copes with passing no objects directly.
14597compiler_needs_object=$lt_compiler_needs_object
14598
14599# Create an old-style archive from a shared archive.
14600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14601
14602# Create a temporary old-style archive to link instead of a shared archive.
14603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14604
14605# Commands used to build a shared archive.
14606archive_cmds=$lt_archive_cmds
14607archive_expsym_cmds=$lt_archive_expsym_cmds
14608
14609# Commands used to build a loadable module if different from building
14610# a shared archive.
14611module_cmds=$lt_module_cmds
14612module_expsym_cmds=$lt_module_expsym_cmds
14613
14614# Whether we are building with GNU ld or not.
14615with_gnu_ld=$lt_with_gnu_ld
14616
14617# Flag that allows shared libraries with undefined symbols to be built.
14618allow_undefined_flag=$lt_allow_undefined_flag
14619
14620# Flag that enforces no undefined symbols.
14621no_undefined_flag=$lt_no_undefined_flag
14622
14623# Flag to hardcode \$libdir into a binary during linking.
14624# This must work even if \$libdir does not exist
14625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14626
14627# Whether we need a single "-rpath" flag with a separated argument.
14628hardcode_libdir_separator=$lt_hardcode_libdir_separator
14629
14630# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14631# DIR into the resulting binary.
14632hardcode_direct=$hardcode_direct
14633
14634# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14635# DIR into the resulting binary and the resulting library dependency is
14636# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14637# library is relocated.
14638hardcode_direct_absolute=$hardcode_direct_absolute
14639
14640# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14641# into the resulting binary.
14642hardcode_minus_L=$hardcode_minus_L
14643
14644# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14645# into the resulting binary.
14646hardcode_shlibpath_var=$hardcode_shlibpath_var
14647
14648# Set to "yes" if building a shared library automatically hardcodes DIR
14649# into the library and all subsequent libraries and executables linked
14650# against it.
14651hardcode_automatic=$hardcode_automatic
14652
14653# Set to yes if linker adds runtime paths of dependent libraries
14654# to runtime path list.
14655inherit_rpath=$inherit_rpath
14656
14657# Whether libtool must link a program against all its dependency libraries.
14658link_all_deplibs=$link_all_deplibs
14659
14660# Set to "yes" if exported symbols are required.
14661always_export_symbols=$always_export_symbols
14662
14663# The commands to list exported symbols.
14664export_symbols_cmds=$lt_export_symbols_cmds
14665
14666# Symbols that should not be listed in the preloaded symbols.
14667exclude_expsyms=$lt_exclude_expsyms
14668
14669# Symbols that must always be exported.
14670include_expsyms=$lt_include_expsyms
14671
14672# Commands necessary for linking programs (against libraries) with templates.
14673prelink_cmds=$lt_prelink_cmds
14674
14675# Commands necessary for finishing linking programs.
14676postlink_cmds=$lt_postlink_cmds
14677
14678# Specify filename containing input files.
14679file_list_spec=$lt_file_list_spec
14680
14681# How to hardcode a shared library path into an executable.
14682hardcode_action=$hardcode_action
14683
14684# ### END LIBTOOL CONFIG
14685
14686_LT_EOF
14687
14688  case $host_os in
14689  aix3*)
14690    cat <<\_LT_EOF >> "$cfgfile"
14691# AIX sometimes has problems with the GCC collect2 program.  For some
14692# reason, if we set the COLLECT_NAMES environment variable, the problems
14693# vanish in a puff of smoke.
14694if test "X${COLLECT_NAMES+set}" != Xset; then
14695  COLLECT_NAMES=
14696  export COLLECT_NAMES
14697fi
14698_LT_EOF
14699    ;;
14700  esac
14701
14702
14703ltmain="$ac_aux_dir/ltmain.sh"
14704
14705
14706  # We use sed instead of cat because bash on DJGPP gets confused if
14707  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14708  # text mode, it properly converts lines to CR/LF.  This bash problem
14709  # is reportedly fixed, but why not run on old versions too?
14710  sed '$q' "$ltmain" >> "$cfgfile" \
14711     || (rm -f "$cfgfile"; exit 1)
14712
14713  if test x"$xsi_shell" = xyes; then
14714  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14715func_dirname ()\
14716{\
14717\    case ${1} in\
14718\      */*) func_dirname_result="${1%/*}${2}" ;;\
14719\      *  ) func_dirname_result="${3}" ;;\
14720\    esac\
14721} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14722  && mv -f "$cfgfile.tmp" "$cfgfile" \
14723    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14724test 0 -eq $? || _lt_function_replace_fail=:
14725
14726
14727  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14728func_basename ()\
14729{\
14730\    func_basename_result="${1##*/}"\
14731} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14732  && mv -f "$cfgfile.tmp" "$cfgfile" \
14733    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14734test 0 -eq $? || _lt_function_replace_fail=:
14735
14736
14737  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14738func_dirname_and_basename ()\
14739{\
14740\    case ${1} in\
14741\      */*) func_dirname_result="${1%/*}${2}" ;;\
14742\      *  ) func_dirname_result="${3}" ;;\
14743\    esac\
14744\    func_basename_result="${1##*/}"\
14745} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14746  && mv -f "$cfgfile.tmp" "$cfgfile" \
14747    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14748test 0 -eq $? || _lt_function_replace_fail=:
14749
14750
14751  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14752func_stripname ()\
14753{\
14754\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14755\    # positional parameters, so assign one to ordinary parameter first.\
14756\    func_stripname_result=${3}\
14757\    func_stripname_result=${func_stripname_result#"${1}"}\
14758\    func_stripname_result=${func_stripname_result%"${2}"}\
14759} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14760  && mv -f "$cfgfile.tmp" "$cfgfile" \
14761    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14762test 0 -eq $? || _lt_function_replace_fail=:
14763
14764
14765  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14766func_split_long_opt ()\
14767{\
14768\    func_split_long_opt_name=${1%%=*}\
14769\    func_split_long_opt_arg=${1#*=}\
14770} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14771  && mv -f "$cfgfile.tmp" "$cfgfile" \
14772    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14773test 0 -eq $? || _lt_function_replace_fail=:
14774
14775
14776  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14777func_split_short_opt ()\
14778{\
14779\    func_split_short_opt_arg=${1#??}\
14780\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14781} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14782  && mv -f "$cfgfile.tmp" "$cfgfile" \
14783    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14784test 0 -eq $? || _lt_function_replace_fail=:
14785
14786
14787  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14788func_lo2o ()\
14789{\
14790\    case ${1} in\
14791\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14792\      *)    func_lo2o_result=${1} ;;\
14793\    esac\
14794} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14795  && mv -f "$cfgfile.tmp" "$cfgfile" \
14796    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14797test 0 -eq $? || _lt_function_replace_fail=:
14798
14799
14800  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14801func_xform ()\
14802{\
14803    func_xform_result=${1%.*}.lo\
14804} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14805  && mv -f "$cfgfile.tmp" "$cfgfile" \
14806    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14807test 0 -eq $? || _lt_function_replace_fail=:
14808
14809
14810  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14811func_arith ()\
14812{\
14813    func_arith_result=$(( $* ))\
14814} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14815  && mv -f "$cfgfile.tmp" "$cfgfile" \
14816    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14817test 0 -eq $? || _lt_function_replace_fail=:
14818
14819
14820  sed -e '/^func_len ()$/,/^} # func_len /c\
14821func_len ()\
14822{\
14823    func_len_result=${#1}\
14824} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14825  && mv -f "$cfgfile.tmp" "$cfgfile" \
14826    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14827test 0 -eq $? || _lt_function_replace_fail=:
14828
14829fi
14830
14831if test x"$lt_shell_append" = xyes; then
14832  sed -e '/^func_append ()$/,/^} # func_append /c\
14833func_append ()\
14834{\
14835    eval "${1}+=\\${2}"\
14836} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14837  && mv -f "$cfgfile.tmp" "$cfgfile" \
14838    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14839test 0 -eq $? || _lt_function_replace_fail=:
14840
14841
14842  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14843func_append_quoted ()\
14844{\
14845\    func_quote_for_eval "${2}"\
14846\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14847} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14848  && mv -f "$cfgfile.tmp" "$cfgfile" \
14849    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14850test 0 -eq $? || _lt_function_replace_fail=:
14851
14852
14853  # Save a `func_append' function call where possible by direct use of '+='
14854  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14855    && mv -f "$cfgfile.tmp" "$cfgfile" \
14856      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14857  test 0 -eq $? || _lt_function_replace_fail=:
14858else
14859  # Save a `func_append' function call even when '+=' is not available
14860  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14861    && mv -f "$cfgfile.tmp" "$cfgfile" \
14862      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14863  test 0 -eq $? || _lt_function_replace_fail=:
14864fi
14865
14866if test x"$_lt_function_replace_fail" = x":"; then
14867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14868$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14869fi
14870
14871
14872   mv -f "$cfgfile" "$ofile" ||
14873    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14874  chmod +x "$ofile"
14875
14876 ;;
14877
14878  esac
14879done # for ac_tag
14880
14881
14882as_fn_exit 0
14883_ACEOF
14884ac_clean_files=$ac_clean_files_save
14885
14886test $ac_write_fail = 0 ||
14887  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14888
14889
14890# configure is writing to config.log, and then calls config.status.
14891# config.status does its own redirection, appending to config.log.
14892# Unfortunately, on DOS this fails, as config.log is still kept open
14893# by configure, so config.status won't be able to write to it; its
14894# output is simply discarded.  So we exec the FD to /dev/null,
14895# effectively closing config.log, so it can be properly (re)opened and
14896# appended to by config.status.  When coming back to configure, we
14897# need to make the FD available again.
14898if test "$no_create" != yes; then
14899  ac_cs_success=:
14900  ac_config_status_args=
14901  test "$silent" = yes &&
14902    ac_config_status_args="$ac_config_status_args --quiet"
14903  exec 5>/dev/null
14904  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14905  exec 5>>config.log
14906  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14907  # would make configure fail if this is the last instruction.
14908  $ac_cs_success || as_fn_exit 1
14909fi
14910if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14911  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14912$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14913fi
14914
14915