1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libffi 3.99999.
4#
5# Report bugs to <http://github.com/atgreen/libffi/issues>.
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: http://github.com/atgreen/libffi/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libffi'
592PACKAGE_TARNAME='libffi'
593PACKAGE_VERSION='3.99999'
594PACKAGE_STRING='libffi 3.99999'
595PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638get_gcc_base_ver
639LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
640LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
641LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
642LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
643LIBAT_BUILD_VERSIONED_SHLIB_FALSE
644LIBAT_BUILD_VERSIONED_SHLIB_TRUE
645OPT_LDFLAGS
646SECTION_LDFLAGS
647toolexeclibdir
648toolexecdir
649FFI_DEBUG_FALSE
650FFI_DEBUG_TRUE
651TARGET_OBJ
652TARGETDIR
653TARGET
654FFI_EXEC_TRAMPOLINE_TABLE
655FFI_EXEC_TRAMPOLINE_TABLE_FALSE
656FFI_EXEC_TRAMPOLINE_TABLE_TRUE
657HAVE_LONG_DOUBLE_VARIANT
658HAVE_LONG_DOUBLE
659ALLOCA
660AM_LTLDFLAGS
661AM_RUNTESTFLAGS
662TESTSUBDIR_FALSE
663TESTSUBDIR_TRUE
664MAINT
665MAINTAINER_MODE_FALSE
666MAINTAINER_MODE_TRUE
667CXXCPP
668CPP
669OTOOL64
670OTOOL
671LIPO
672NMEDIT
673DSYMUTIL
674RANLIB
675AR
676OBJDUMP
677LN_S
678NM
679ac_ct_DUMPBIN
680DUMPBIN
681LD
682FGREP
683EGREP
684GREP
685SED
686LIBTOOL
687am__fastdepCCAS_FALSE
688am__fastdepCCAS_TRUE
689CCASDEPMODE
690CCASFLAGS
691CCAS
692am__fastdepCXX_FALSE
693am__fastdepCXX_TRUE
694CXXDEPMODE
695ac_ct_CXX
696CXXFLAGS
697CXX
698am__fastdepCC_FALSE
699am__fastdepCC_TRUE
700CCDEPMODE
701am__nodep
702AMDEPBACKSLASH
703AMDEP_FALSE
704AMDEP_TRUE
705am__quote
706am__include
707DEPDIR
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715GENINSRC_FALSE
716GENINSRC_TRUE
717BUILD_INFO_FALSE
718BUILD_INFO_TRUE
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
723am__untar
724am__tar
725AMTAR
726am__leading_dot
727SET_MAKE
728AWK
729mkdir_p
730MKDIR_P
731INSTALL_STRIP_PROGRAM
732STRIP
733install_sh
734MAKEINFO
735AUTOHEADER
736AUTOMAKE
737AUTOCONF
738ACLOCAL
739VERSION
740PACKAGE
741CYGPATH_W
742am__isrc
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746target_os
747target_vendor
748target_cpu
749target
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758multi_basedir
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_multilib
801enable_silent_rules
802enable_generated_files_in_srcdir
803enable_dependency_tracking
804enable_shared
805enable_static
806with_pic
807enable_fast_install
808with_gnu_ld
809enable_libtool_lock
810enable_maintainer_mode
811enable_pax_emutramp
812enable_debug
813enable_structs
814enable_raw_api
815enable_purify_safety
816enable_symvers
817with_gcc_major_version_only
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CCAS
823CCASFLAGS
824CPP
825CPPFLAGS
826CXXCPP'
827
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832ac_unrecognized_opts=
833ac_unrecognized_sep=
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
856# (The list follows the same order as the GNU Coding Standards.)
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
876
877ac_prev=
878ac_dashdash=
879for ac_option
880do
881  # If the previous option needs an argument, assign it.
882  if test -n "$ac_prev"; then
883    eval $ac_prev=\$ac_option
884    ac_prev=
885    continue
886  fi
887
888  case $ac_option in
889  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890  *=)   ac_optarg= ;;
891  *)    ac_optarg=yes ;;
892  esac
893
894  # Accept the important Cygnus configure options, so we can diagnose typos.
895
896  case $ac_dashdash$ac_option in
897  --)
898    ac_dashdash=yes ;;
899
900  -bindir | --bindir | --bindi | --bind | --bin | --bi)
901    ac_prev=bindir ;;
902  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903    bindir=$ac_optarg ;;
904
905  -build | --build | --buil | --bui | --bu)
906    ac_prev=build_alias ;;
907  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908    build_alias=$ac_optarg ;;
909
910  -cache-file | --cache-file | --cache-fil | --cache-fi \
911  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912    ac_prev=cache_file ;;
913  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915    cache_file=$ac_optarg ;;
916
917  --config-cache | -C)
918    cache_file=config.cache ;;
919
920  -datadir | --datadir | --datadi | --datad)
921    ac_prev=datadir ;;
922  -datadir=* | --datadir=* | --datadi=* | --datad=*)
923    datadir=$ac_optarg ;;
924
925  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926  | --dataroo | --dataro | --datar)
927    ac_prev=datarootdir ;;
928  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930    datarootdir=$ac_optarg ;;
931
932  -disable-* | --disable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error $? "invalid feature name: $ac_useropt"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=no ;;
947
948  -docdir | --docdir | --docdi | --doc | --do)
949    ac_prev=docdir ;;
950  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951    docdir=$ac_optarg ;;
952
953  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954    ac_prev=dvidir ;;
955  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956    dvidir=$ac_optarg ;;
957
958  -enable-* | --enable-*)
959    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960    # Reject names that are not valid shell variable names.
961    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962      as_fn_error $? "invalid feature name: $ac_useropt"
963    ac_useropt_orig=$ac_useropt
964    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965    case $ac_user_opts in
966      *"
967"enable_$ac_useropt"
968"*) ;;
969      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970	 ac_unrecognized_sep=', ';;
971    esac
972    eval enable_$ac_useropt=\$ac_optarg ;;
973
974  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976  | --exec | --exe | --ex)
977    ac_prev=exec_prefix ;;
978  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980  | --exec=* | --exe=* | --ex=*)
981    exec_prefix=$ac_optarg ;;
982
983  -gas | --gas | --ga | --g)
984    # Obsolete; use --with-gas.
985    with_gas=yes ;;
986
987  -help | --help | --hel | --he | -h)
988    ac_init_help=long ;;
989  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990    ac_init_help=recursive ;;
991  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992    ac_init_help=short ;;
993
994  -host | --host | --hos | --ho)
995    ac_prev=host_alias ;;
996  -host=* | --host=* | --hos=* | --ho=*)
997    host_alias=$ac_optarg ;;
998
999  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000    ac_prev=htmldir ;;
1001  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002  | --ht=*)
1003    htmldir=$ac_optarg ;;
1004
1005  -includedir | --includedir | --includedi | --included | --include \
1006  | --includ | --inclu | --incl | --inc)
1007    ac_prev=includedir ;;
1008  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009  | --includ=* | --inclu=* | --incl=* | --inc=*)
1010    includedir=$ac_optarg ;;
1011
1012  -infodir | --infodir | --infodi | --infod | --info | --inf)
1013    ac_prev=infodir ;;
1014  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015    infodir=$ac_optarg ;;
1016
1017  -libdir | --libdir | --libdi | --libd)
1018    ac_prev=libdir ;;
1019  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020    libdir=$ac_optarg ;;
1021
1022  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023  | --libexe | --libex | --libe)
1024    ac_prev=libexecdir ;;
1025  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026  | --libexe=* | --libex=* | --libe=*)
1027    libexecdir=$ac_optarg ;;
1028
1029  -localedir | --localedir | --localedi | --localed | --locale)
1030    ac_prev=localedir ;;
1031  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032    localedir=$ac_optarg ;;
1033
1034  -localstatedir | --localstatedir | --localstatedi | --localstated \
1035  | --localstate | --localstat | --localsta | --localst | --locals)
1036    ac_prev=localstatedir ;;
1037  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039    localstatedir=$ac_optarg ;;
1040
1041  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042    ac_prev=mandir ;;
1043  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044    mandir=$ac_optarg ;;
1045
1046  -nfp | --nfp | --nf)
1047    # Obsolete; use --without-fp.
1048    with_fp=no ;;
1049
1050  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051  | --no-cr | --no-c | -n)
1052    no_create=yes ;;
1053
1054  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056    no_recursion=yes ;;
1057
1058  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060  | --oldin | --oldi | --old | --ol | --o)
1061    ac_prev=oldincludedir ;;
1062  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065    oldincludedir=$ac_optarg ;;
1066
1067  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068    ac_prev=prefix ;;
1069  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070    prefix=$ac_optarg ;;
1071
1072  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073  | --program-pre | --program-pr | --program-p)
1074    ac_prev=program_prefix ;;
1075  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077    program_prefix=$ac_optarg ;;
1078
1079  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080  | --program-suf | --program-su | --program-s)
1081    ac_prev=program_suffix ;;
1082  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084    program_suffix=$ac_optarg ;;
1085
1086  -program-transform-name | --program-transform-name \
1087  | --program-transform-nam | --program-transform-na \
1088  | --program-transform-n | --program-transform- \
1089  | --program-transform | --program-transfor \
1090  | --program-transfo | --program-transf \
1091  | --program-trans | --program-tran \
1092  | --progr-tra | --program-tr | --program-t)
1093    ac_prev=program_transform_name ;;
1094  -program-transform-name=* | --program-transform-name=* \
1095  | --program-transform-nam=* | --program-transform-na=* \
1096  | --program-transform-n=* | --program-transform-=* \
1097  | --program-transform=* | --program-transfor=* \
1098  | --program-transfo=* | --program-transf=* \
1099  | --program-trans=* | --program-tran=* \
1100  | --progr-tra=* | --program-tr=* | --program-t=*)
1101    program_transform_name=$ac_optarg ;;
1102
1103  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104    ac_prev=pdfdir ;;
1105  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106    pdfdir=$ac_optarg ;;
1107
1108  -psdir | --psdir | --psdi | --psd | --ps)
1109    ac_prev=psdir ;;
1110  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111    psdir=$ac_optarg ;;
1112
1113  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114  | -silent | --silent | --silen | --sile | --sil)
1115    silent=yes ;;
1116
1117  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118    ac_prev=sbindir ;;
1119  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120  | --sbi=* | --sb=*)
1121    sbindir=$ac_optarg ;;
1122
1123  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125  | --sharedst | --shareds | --shared | --share | --shar \
1126  | --sha | --sh)
1127    ac_prev=sharedstatedir ;;
1128  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131  | --sha=* | --sh=*)
1132    sharedstatedir=$ac_optarg ;;
1133
1134  -site | --site | --sit)
1135    ac_prev=site ;;
1136  -site=* | --site=* | --sit=*)
1137    site=$ac_optarg ;;
1138
1139  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140    ac_prev=srcdir ;;
1141  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142    srcdir=$ac_optarg ;;
1143
1144  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145  | --syscon | --sysco | --sysc | --sys | --sy)
1146    ac_prev=sysconfdir ;;
1147  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149    sysconfdir=$ac_optarg ;;
1150
1151  -target | --target | --targe | --targ | --tar | --ta | --t)
1152    ac_prev=target_alias ;;
1153  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154    target_alias=$ac_optarg ;;
1155
1156  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157    verbose=yes ;;
1158
1159  -version | --version | --versio | --versi | --vers | -V)
1160    ac_init_version=: ;;
1161
1162  -with-* | --with-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: $ac_useropt"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=\$ac_optarg ;;
1177
1178  -without-* | --without-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error $? "invalid package name: $ac_useropt"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=no ;;
1193
1194  --x)
1195    # Obsolete; use --with-x.
1196    with_x=yes ;;
1197
1198  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199  | --x-incl | --x-inc | --x-in | --x-i)
1200    ac_prev=x_includes ;;
1201  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203    x_includes=$ac_optarg ;;
1204
1205  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207    ac_prev=x_libraries ;;
1208  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210    x_libraries=$ac_optarg ;;
1211
1212  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information"
1214    ;;
1215
1216  *=*)
1217    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218    # Reject names that are not valid shell variable names.
1219    case $ac_envvar in #(
1220      '' | [0-9]* | *[!_$as_cr_alnum]* )
1221      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222    esac
1223    eval $ac_envvar=\$ac_optarg
1224    export $ac_envvar ;;
1225
1226  *)
1227    # FIXME: should be removed in autoconf 3.0.
1228    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232    ;;
1233
1234  esac
1235done
1236
1237if test -n "$ac_prev"; then
1238  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239  as_fn_error $? "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243  case $enable_option_checking in
1244    no) ;;
1245    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247  esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252		datadir sysconfdir sharedstatedir localstatedir includedir \
1253		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254		libdir localedir mandir
1255do
1256  eval ac_val=\$$ac_var
1257  # Remove trailing slashes.
1258  case $ac_val in
1259    */ )
1260      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261      eval $ac_var=\$ac_val;;
1262  esac
1263  # Be sure to have absolute directory names.
1264  case $ac_val in
1265    [\\/$]* | ?:[\\/]* )  continue;;
1266    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267  esac
1268  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280  if test "x$build_alias" = x; then
1281    cross_compiling=maybe
1282  elif test "x$build_alias" != "x$host_alias"; then
1283    cross_compiling=yes
1284  fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
1291
1292
1293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296  as_fn_error $? "working directory cannot be determined"
1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298  as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303  ac_srcdir_defaulted=yes
1304  # Try the directory containing this script, then the parent directory.
1305  ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307	 X"$as_myself" : 'X\(//\)[^/]' \| \
1308	 X"$as_myself" : 'X\(//\)$' \| \
1309	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
1311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)[^/].*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\/\)$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\).*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  s/.*/./; q'`
1328  srcdir=$ac_confdir
1329  if test ! -r "$srcdir/$ac_unique_file"; then
1330    srcdir=..
1331  fi
1332else
1333  ac_srcdir_defaulted=no
1334fi
1335if test ! -r "$srcdir/$ac_unique_file"; then
1336  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
1341	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342	pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345  srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_env_${ac_var}_value=\$${ac_var}
1356  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
1359
1360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364  # Omit some internal or obsolete options to make the list less imposing.
1365  # This message is too long to be a string in the A/UX 3.1 sh.
1366  cat <<_ACEOF
1367\`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE.  See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377  -h, --help              display this help and exit
1378      --help=short        display options specific to this package
1379      --help=recursive    display the short help of all the included packages
1380  -V, --version           display version information and exit
1381  -q, --quiet, --silent   do not print \`checking ...' messages
1382      --cache-file=FILE   cache test results in FILE [disabled]
1383  -C, --config-cache      alias for \`--cache-file=config.cache'
1384  -n, --no-create         do not create output files
1385      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386
1387Installation directories:
1388  --prefix=PREFIX         install architecture-independent files in PREFIX
1389                          [$ac_default_prefix]
1390  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391                          [PREFIX]
1392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
1401  --bindir=DIR            user executables [EPREFIX/bin]
1402  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403  --libexecdir=DIR        program executables [EPREFIX/libexec]
1404  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407  --libdir=DIR            object code libraries [EPREFIX/lib]
1408  --includedir=DIR        C header files [PREFIX/include]
1409  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1410  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1411  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1412  --infodir=DIR           info documentation [DATAROOTDIR/info]
1413  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1414  --mandir=DIR            man documentation [DATAROOTDIR/man]
1415  --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1416  --htmldir=DIR           html documentation [DOCDIR]
1417  --dvidir=DIR            dvi documentation [DOCDIR]
1418  --pdfdir=DIR            pdf documentation [DOCDIR]
1419  --psdir=DIR             ps documentation [DOCDIR]
1420_ACEOF
1421
1422  cat <<\_ACEOF
1423
1424Program names:
1425  --program-prefix=PREFIX            prepend PREFIX to installed program names
1426  --program-suffix=SUFFIX            append SUFFIX to installed program names
1427  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1428
1429System types:
1430  --build=BUILD     configure for building on BUILD [guessed]
1431  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432  --target=TARGET   configure for building compilers for TARGET [HOST]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437  case $ac_init_help in
1438     short | recursive ) echo "Configuration of libffi 3.99999:";;
1439   esac
1440  cat <<\_ACEOF
1441
1442Optional Features:
1443  --disable-option-checking  ignore unrecognized --enable/--with options
1444  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1445  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1446  --enable-multilib       build many library versions (default)
1447  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448  --disable-silent-rules  verbose build output (undo: "make V=0")
1449  --enable-generated-files-in-srcdir
1450                          put copies of generated files in source dir intended
1451                          for creating source tarballs for users without
1452                          texinfo bison or flex
1453  --enable-dependency-tracking
1454                          do not reject slow dependency extractors
1455  --disable-dependency-tracking
1456                          speeds up one-time build
1457  --enable-shared[=PKGS]  build shared libraries [default=yes]
1458  --enable-static[=PKGS]  build static libraries [default=yes]
1459  --enable-fast-install[=PKGS]
1460                          optimize for fast installation [default=yes]
1461  --disable-libtool-lock  avoid locking (might break parallel builds)
1462  --enable-maintainer-mode
1463                          enable make rules and dependencies not useful (and
1464                          sometimes confusing) to the casual installer
1465  --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1466  --enable-debug          debugging mode
1467  --disable-structs       omit code for struct support
1468  --disable-raw-api       make the raw api unavailable
1469  --enable-purify-safety  purify-safe mode
1470  --enable-symvers=STYLE  enables symbol versioning of the shared library
1471                          [default=yes]
1472
1473Optional Packages:
1474  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476  --with-pic              try to use only PIC/non-PIC objects [default=use
1477                          both]
1478  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479  --with-gcc-major-version-only
1480                          use only GCC major number in filesystem paths
1481
1482Some influential environment variables:
1483  CC          C compiler command
1484  CFLAGS      C compiler flags
1485  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1486              nonstandard directory <lib dir>
1487  LIBS        libraries to pass to the linker, e.g. -l<library>
1488  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489              you have headers in a nonstandard directory <include dir>
1490  CXX         C++ compiler command
1491  CXXFLAGS    C++ compiler flags
1492  CCAS        assembler compiler command (defaults to CC)
1493  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1494  CPP         C preprocessor
1495  CXXCPP      C++ preprocessor
1496
1497Use these variables to override the choices made by `configure' or to help
1498it to find libraries and programs with nonstandard names/locations.
1499
1500Report bugs to <http://github.com/atgreen/libffi/issues>.
1501_ACEOF
1502ac_status=$?
1503fi
1504
1505if test "$ac_init_help" = "recursive"; then
1506  # If there are subdirs, report their specific --help.
1507  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508    test -d "$ac_dir" ||
1509      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510      continue
1511    ac_builddir=.
1512
1513case "$ac_dir" in
1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515*)
1516  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517  # A ".." for each directory in $ac_dir_suffix.
1518  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519  case $ac_top_builddir_sub in
1520  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522  esac ;;
1523esac
1524ac_abs_top_builddir=$ac_pwd
1525ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526# for backward compatibility:
1527ac_top_builddir=$ac_top_build_prefix
1528
1529case $srcdir in
1530  .)  # We are building in place.
1531    ac_srcdir=.
1532    ac_top_srcdir=$ac_top_builddir_sub
1533    ac_abs_top_srcdir=$ac_pwd ;;
1534  [\\/]* | ?:[\\/]* )  # Absolute name.
1535    ac_srcdir=$srcdir$ac_dir_suffix;
1536    ac_top_srcdir=$srcdir
1537    ac_abs_top_srcdir=$srcdir ;;
1538  *) # Relative name.
1539    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540    ac_top_srcdir=$ac_top_build_prefix$srcdir
1541    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542esac
1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545    cd "$ac_dir" || { ac_status=$?; continue; }
1546    # Check for guested configure.
1547    if test -f "$ac_srcdir/configure.gnu"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550    elif test -f "$ac_srcdir/configure"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure" --help=recursive
1553    else
1554      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555    fi || ac_status=$?
1556    cd "$ac_pwd" || { ac_status=$?; break; }
1557  done
1558fi
1559
1560test -n "$ac_init_help" && exit $ac_status
1561if $ac_init_version; then
1562  cat <<\_ACEOF
1563libffi configure 3.99999
1564generated by GNU Autoconf 2.69
1565
1566Copyright (C) 2012 Free Software Foundation, Inc.
1567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
1569_ACEOF
1570  exit
1571fi
1572
1573## ------------------------ ##
1574## Autoconf initialization. ##
1575## ------------------------ ##
1576
1577# ac_fn_c_try_compile LINENO
1578# --------------------------
1579# Try to compile conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_compile ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  rm -f conftest.$ac_objext
1584  if { { ac_try="$ac_compile"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_compile") 2>conftest.err
1592  ac_status=$?
1593  if test -s conftest.err; then
1594    grep -v '^ *+' conftest.err >conftest.er1
1595    cat conftest.er1 >&5
1596    mv -f conftest.er1 conftest.err
1597  fi
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } && {
1600	 test -z "$ac_c_werror_flag" ||
1601	 test ! -s conftest.err
1602       } && test -s conftest.$ac_objext; then :
1603  ac_retval=0
1604else
1605  $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608	ac_retval=1
1609fi
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_compile
1614
1615# ac_fn_cxx_try_compile LINENO
1616# ----------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_cxx_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_cxx_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest.$ac_objext; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646	ac_retval=1
1647fi
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_cxx_try_compile
1652
1653# ac_fn_c_try_link LINENO
1654# -----------------------
1655# Try to link conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_link ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  rm -f conftest.$ac_objext conftest$ac_exeext
1660  if { { ac_try="$ac_link"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_link") 2>conftest.err
1668  ac_status=$?
1669  if test -s conftest.err; then
1670    grep -v '^ *+' conftest.err >conftest.er1
1671    cat conftest.er1 >&5
1672    mv -f conftest.er1 conftest.err
1673  fi
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } && {
1676	 test -z "$ac_c_werror_flag" ||
1677	 test ! -s conftest.err
1678       } && test -s conftest$ac_exeext && {
1679	 test "$cross_compiling" = yes ||
1680	 test -x conftest$ac_exeext
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687	ac_retval=1
1688fi
1689  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691  # interfere with the next link command; also delete a directory that is
1692  # left behind by Apple's compiler.  We do this before executing the actions.
1693  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_link
1698
1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700# -------------------------------------------------------
1701# Tests whether HEADER exists and can be compiled using the include files in
1702# INCLUDES, setting the cache variable VAR accordingly.
1703ac_fn_c_check_header_compile ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if eval \${$3+:} false; then :
1709  $as_echo_n "(cached) " >&6
1710else
1711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714#include <$2>
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717  eval "$3=yes"
1718else
1719  eval "$3=no"
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722fi
1723eval ac_res=\$$3
1724	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725$as_echo "$ac_res" >&6; }
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728} # ac_fn_c_check_header_compile
1729
1730# ac_fn_c_try_cpp LINENO
1731# ----------------------
1732# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_cpp ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  if { { ac_try="$ac_cpp conftest.$ac_ext"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } > conftest.i && {
1752	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753	 test ! -s conftest.err
1754       }; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760    ac_retval=1
1761fi
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_cpp
1766
1767# ac_fn_c_try_run LINENO
1768# ----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770# that executables *can* be run.
1771ac_fn_c_try_run ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>&5
1782  ac_status=$?
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785  { { case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_try") 2>&5
1792  ac_status=$?
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; }; }; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: program exited with status $ac_status" >&5
1798       $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801       ac_retval=$ac_status
1802fi
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_run
1808
1809# ac_fn_c_check_func LINENO FUNC VAR
1810# ----------------------------------
1811# Tests whether FUNC exists, setting the cache variable VAR accordingly
1812ac_fn_c_check_func ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824#define $2 innocuous_$2
1825
1826/* System header to define __stub macros and hopefully few prototypes,
1827    which can conflict with char $2 (); below.
1828    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829    <limits.h> exists even on freestanding compilers.  */
1830
1831#ifdef __STDC__
1832# include <limits.h>
1833#else
1834# include <assert.h>
1835#endif
1836
1837#undef $2
1838
1839/* Override any GCC internal prototype to avoid an error.
1840   Use char because int might match the return type of a GCC
1841   builtin and then its argument prototype would still apply.  */
1842#ifdef __cplusplus
1843extern "C"
1844#endif
1845char $2 ();
1846/* The GNU C library defines this for functions which it implements
1847    to always fail with ENOSYS.  Some functions are actually named
1848    something starting with __ and the normal name is an alias.  */
1849#if defined __stub_$2 || defined __stub___$2
1850choke me
1851#endif
1852
1853int
1854main ()
1855{
1856return $2 ();
1857  ;
1858  return 0;
1859}
1860_ACEOF
1861if ac_fn_c_try_link "$LINENO"; then :
1862  eval "$3=yes"
1863else
1864  eval "$3=no"
1865fi
1866rm -f core conftest.err conftest.$ac_objext \
1867    conftest$ac_exeext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_func
1875
1876# ac_fn_cxx_try_cpp LINENO
1877# ------------------------
1878# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_cxx_try_cpp ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  if { { ac_try="$ac_cpp conftest.$ac_ext"
1883case "(($ac_try" in
1884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885  *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890  ac_status=$?
1891  if test -s conftest.err; then
1892    grep -v '^ *+' conftest.err >conftest.er1
1893    cat conftest.er1 >&5
1894    mv -f conftest.er1 conftest.err
1895  fi
1896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897  test $ac_status = 0; } > conftest.i && {
1898	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1899	 test ! -s conftest.err
1900       }; then :
1901  ac_retval=0
1902else
1903  $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906    ac_retval=1
1907fi
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_cxx_try_cpp
1912
1913# ac_fn_cxx_try_link LINENO
1914# -------------------------
1915# Try to link conftest.$ac_ext, and return whether this succeeded.
1916ac_fn_cxx_try_link ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  rm -f conftest.$ac_objext conftest$ac_exeext
1920  if { { ac_try="$ac_link"
1921case "(($ac_try" in
1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923  *) ac_try_echo=$ac_try;;
1924esac
1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926$as_echo "$ac_try_echo"; } >&5
1927  (eval "$ac_link") 2>conftest.err
1928  ac_status=$?
1929  if test -s conftest.err; then
1930    grep -v '^ *+' conftest.err >conftest.er1
1931    cat conftest.er1 >&5
1932    mv -f conftest.er1 conftest.err
1933  fi
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; } && {
1936	 test -z "$ac_cxx_werror_flag" ||
1937	 test ! -s conftest.err
1938       } && test -s conftest$ac_exeext && {
1939	 test "$cross_compiling" = yes ||
1940	 test -x conftest$ac_exeext
1941       }; then :
1942  ac_retval=0
1943else
1944  $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947	ac_retval=1
1948fi
1949  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951  # interfere with the next link command; also delete a directory that is
1952  # left behind by Apple's compiler.  We do this before executing the actions.
1953  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955  as_fn_set_status $ac_retval
1956
1957} # ac_fn_cxx_try_link
1958
1959# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960# --------------------------------------------
1961# Tries to find the compile-time value of EXPR in a program that includes
1962# INCLUDES, setting VAR accordingly. Returns whether the value could be
1963# computed
1964ac_fn_c_compute_int ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  if test "$cross_compiling" = yes; then
1968    # Depending upon the size, compute the lo and hi bounds.
1969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972int
1973main ()
1974{
1975static int test_array [1 - 2 * !(($2) >= 0)];
1976test_array [0] = 0;
1977return test_array [0];
1978
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984  ac_lo=0 ac_mid=0
1985  while :; do
1986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989int
1990main ()
1991{
1992static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1993test_array [0] = 0;
1994return test_array [0];
1995
1996  ;
1997  return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001  ac_hi=$ac_mid; break
2002else
2003  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2004			if test $ac_lo -le $ac_mid; then
2005			  ac_lo= ac_hi=
2006			  break
2007			fi
2008			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011  done
2012else
2013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015$4
2016int
2017main ()
2018{
2019static int test_array [1 - 2 * !(($2) < 0)];
2020test_array [0] = 0;
2021return test_array [0];
2022
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  ac_hi=-1 ac_mid=-1
2029  while :; do
2030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037test_array [0] = 0;
2038return test_array [0];
2039
2040  ;
2041  return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045  ac_lo=$ac_mid; break
2046else
2047  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2048			if test $ac_mid -le $ac_hi; then
2049			  ac_lo= ac_hi=
2050			  break
2051			fi
2052			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055  done
2056else
2057  ac_lo= ac_hi=
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062# Binary search between lo and hi bounds.
2063while test "x$ac_lo" != "x$ac_hi"; do
2064  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068int
2069main ()
2070{
2071static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072test_array [0] = 0;
2073return test_array [0];
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  ac_hi=$ac_mid
2081else
2082  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085done
2086case $ac_lo in #((
2087?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088'') ac_retval=1 ;;
2089esac
2090  else
2091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094static long int longval () { return $2; }
2095static unsigned long int ulongval () { return $2; }
2096#include <stdio.h>
2097#include <stdlib.h>
2098int
2099main ()
2100{
2101
2102  FILE *f = fopen ("conftest.val", "w");
2103  if (! f)
2104    return 1;
2105  if (($2) < 0)
2106    {
2107      long int i = longval ();
2108      if (i != ($2))
2109	return 1;
2110      fprintf (f, "%ld", i);
2111    }
2112  else
2113    {
2114      unsigned long int i = ulongval ();
2115      if (i != ($2))
2116	return 1;
2117      fprintf (f, "%lu", i);
2118    }
2119  /* Do not output a trailing newline, as this causes \r\n confusion
2120     on some platforms.  */
2121  return ferror (f) || fclose (f) != 0;
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_run "$LINENO"; then :
2128  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129else
2130  ac_retval=1
2131fi
2132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2133  conftest.$ac_objext conftest.beam conftest.$ac_ext
2134rm -f conftest.val
2135
2136  fi
2137  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138  as_fn_set_status $ac_retval
2139
2140} # ac_fn_c_compute_int
2141
2142# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2143# -------------------------------------------------------
2144# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2145# the include files in INCLUDES and setting the cache variable VAR
2146# accordingly.
2147ac_fn_c_check_header_mongrel ()
2148{
2149  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150  if eval \${$3+:} false; then :
2151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152$as_echo_n "checking for $2... " >&6; }
2153if eval \${$3+:} false; then :
2154  $as_echo_n "(cached) " >&6
2155fi
2156eval ac_res=\$$3
2157	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158$as_echo "$ac_res" >&6; }
2159else
2160  # Is the header compilable?
2161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2162$as_echo_n "checking $2 usability... " >&6; }
2163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h.  */
2165$4
2166#include <$2>
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169  ac_header_compiler=yes
2170else
2171  ac_header_compiler=no
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2175$as_echo "$ac_header_compiler" >&6; }
2176
2177# Is the header present?
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2179$as_echo_n "checking $2 presence... " >&6; }
2180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_cpp "$LINENO"; then :
2185  ac_header_preproc=yes
2186else
2187  ac_header_preproc=no
2188fi
2189rm -f conftest.err conftest.i conftest.$ac_ext
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2191$as_echo "$ac_header_preproc" >&6; }
2192
2193# So?  What about this header?
2194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2195  yes:no: )
2196    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2197$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2198    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2199$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200    ;;
2201  no:yes:* )
2202    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2203$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2205$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2206    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2207$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2208    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2209$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2210    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212( $as_echo "## ------------------------------------------------------ ##
2213## Report this to http://github.com/atgreen/libffi/issues ##
2214## ------------------------------------------------------ ##"
2215     ) | sed "s/^/$as_me: WARNING:     /" >&2
2216    ;;
2217esac
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219$as_echo_n "checking for $2... " >&6; }
2220if eval \${$3+:} false; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  eval "$3=\$ac_header_compiler"
2224fi
2225eval ac_res=\$$3
2226	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227$as_echo "$ac_res" >&6; }
2228fi
2229  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230
2231} # ac_fn_c_check_header_mongrel
2232
2233# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234# -------------------------------------------
2235# Tests whether TYPE exists after having included INCLUDES, setting cache
2236# variable VAR accordingly.
2237ac_fn_c_check_type ()
2238{
2239  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241$as_echo_n "checking for $2... " >&6; }
2242if eval \${$3+:} false; then :
2243  $as_echo_n "(cached) " >&6
2244else
2245  eval "$3=no"
2246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247/* end confdefs.h.  */
2248$4
2249int
2250main ()
2251{
2252if (sizeof ($2))
2253	 return 0;
2254  ;
2255  return 0;
2256}
2257_ACEOF
2258if ac_fn_c_try_compile "$LINENO"; then :
2259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h.  */
2261$4
2262int
2263main ()
2264{
2265if (sizeof (($2)))
2266	    return 0;
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271if ac_fn_c_try_compile "$LINENO"; then :
2272
2273else
2274  eval "$3=yes"
2275fi
2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277fi
2278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279fi
2280eval ac_res=\$$3
2281	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282$as_echo "$ac_res" >&6; }
2283  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284
2285} # ac_fn_c_check_type
2286cat >config.log <<_ACEOF
2287This file contains any messages produced by compilers while
2288running configure, to aid debugging if configure makes a mistake.
2289
2290It was created by libffi $as_me 3.99999, which was
2291generated by GNU Autoconf 2.69.  Invocation command line was
2292
2293  $ $0 $@
2294
2295_ACEOF
2296exec 5>>config.log
2297{
2298cat <<_ASUNAME
2299## --------- ##
2300## Platform. ##
2301## --------- ##
2302
2303hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2304uname -m = `(uname -m) 2>/dev/null || echo unknown`
2305uname -r = `(uname -r) 2>/dev/null || echo unknown`
2306uname -s = `(uname -s) 2>/dev/null || echo unknown`
2307uname -v = `(uname -v) 2>/dev/null || echo unknown`
2308
2309/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2310/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2311
2312/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2313/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2314/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2315/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2316/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2317/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2318/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2319
2320_ASUNAME
2321
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325  IFS=$as_save_IFS
2326  test -z "$as_dir" && as_dir=.
2327    $as_echo "PATH: $as_dir"
2328  done
2329IFS=$as_save_IFS
2330
2331} >&5
2332
2333cat >&5 <<_ACEOF
2334
2335
2336## ----------- ##
2337## Core tests. ##
2338## ----------- ##
2339
2340_ACEOF
2341
2342
2343# Keep a trace of the command line.
2344# Strip out --no-create and --no-recursion so they do not pile up.
2345# Strip out --silent because we don't want to record it for future runs.
2346# Also quote any args containing shell meta-characters.
2347# Make two passes to allow for proper duplicate-argument suppression.
2348ac_configure_args=
2349ac_configure_args0=
2350ac_configure_args1=
2351ac_must_keep_next=false
2352for ac_pass in 1 2
2353do
2354  for ac_arg
2355  do
2356    case $ac_arg in
2357    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2358    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2359    | -silent | --silent | --silen | --sile | --sil)
2360      continue ;;
2361    *\'*)
2362      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2363    esac
2364    case $ac_pass in
2365    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2366    2)
2367      as_fn_append ac_configure_args1 " '$ac_arg'"
2368      if test $ac_must_keep_next = true; then
2369	ac_must_keep_next=false # Got value, back to normal.
2370      else
2371	case $ac_arg in
2372	  *=* | --config-cache | -C | -disable-* | --disable-* \
2373	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2374	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2375	  | -with-* | --with-* | -without-* | --without-* | --x)
2376	    case "$ac_configure_args0 " in
2377	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2378	    esac
2379	    ;;
2380	  -* ) ac_must_keep_next=true ;;
2381	esac
2382      fi
2383      as_fn_append ac_configure_args " '$ac_arg'"
2384      ;;
2385    esac
2386  done
2387done
2388{ ac_configure_args0=; unset ac_configure_args0;}
2389{ ac_configure_args1=; unset ac_configure_args1;}
2390
2391# When interrupted or exit'd, cleanup temporary files, and complete
2392# config.log.  We remove comments because anyway the quotes in there
2393# would cause problems or look ugly.
2394# WARNING: Use '\'' to represent an apostrophe within the trap.
2395# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2396trap 'exit_status=$?
2397  # Save into config.log some information that might help in debugging.
2398  {
2399    echo
2400
2401    $as_echo "## ---------------- ##
2402## Cache variables. ##
2403## ---------------- ##"
2404    echo
2405    # The following way of writing the cache mishandles newlines in values,
2406(
2407  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2408    eval ac_val=\$$ac_var
2409    case $ac_val in #(
2410    *${as_nl}*)
2411      case $ac_var in #(
2412      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2413$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2414      esac
2415      case $ac_var in #(
2416      _ | IFS | as_nl) ;; #(
2417      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2418      *) { eval $ac_var=; unset $ac_var;} ;;
2419      esac ;;
2420    esac
2421  done
2422  (set) 2>&1 |
2423    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2424    *${as_nl}ac_space=\ *)
2425      sed -n \
2426	"s/'\''/'\''\\\\'\'''\''/g;
2427	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2428      ;; #(
2429    *)
2430      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2431      ;;
2432    esac |
2433    sort
2434)
2435    echo
2436
2437    $as_echo "## ----------------- ##
2438## Output variables. ##
2439## ----------------- ##"
2440    echo
2441    for ac_var in $ac_subst_vars
2442    do
2443      eval ac_val=\$$ac_var
2444      case $ac_val in
2445      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2446      esac
2447      $as_echo "$ac_var='\''$ac_val'\''"
2448    done | sort
2449    echo
2450
2451    if test -n "$ac_subst_files"; then
2452      $as_echo "## ------------------- ##
2453## File substitutions. ##
2454## ------------------- ##"
2455      echo
2456      for ac_var in $ac_subst_files
2457      do
2458	eval ac_val=\$$ac_var
2459	case $ac_val in
2460	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461	esac
2462	$as_echo "$ac_var='\''$ac_val'\''"
2463      done | sort
2464      echo
2465    fi
2466
2467    if test -s confdefs.h; then
2468      $as_echo "## ----------- ##
2469## confdefs.h. ##
2470## ----------- ##"
2471      echo
2472      cat confdefs.h
2473      echo
2474    fi
2475    test "$ac_signal" != 0 &&
2476      $as_echo "$as_me: caught signal $ac_signal"
2477    $as_echo "$as_me: exit $exit_status"
2478  } >&5
2479  rm -f core *.core core.conftest.* &&
2480    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2481    exit $exit_status
2482' 0
2483for ac_signal in 1 2 13 15; do
2484  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2485done
2486ac_signal=0
2487
2488# confdefs.h avoids OS command line length limits that DEFS can exceed.
2489rm -f -r conftest* confdefs.h
2490
2491$as_echo "/* confdefs.h */" > confdefs.h
2492
2493# Predefined preprocessor variables.
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_NAME "$PACKAGE_NAME"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_VERSION "$PACKAGE_VERSION"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_STRING "$PACKAGE_STRING"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2513_ACEOF
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_URL "$PACKAGE_URL"
2517_ACEOF
2518
2519
2520# Let the site file select an alternate cache file if it wants to.
2521# Prefer an explicitly selected file to automatically selected ones.
2522ac_site_file1=NONE
2523ac_site_file2=NONE
2524if test -n "$CONFIG_SITE"; then
2525  # We do not want a PATH search for config.site.
2526  case $CONFIG_SITE in #((
2527    -*)  ac_site_file1=./$CONFIG_SITE;;
2528    */*) ac_site_file1=$CONFIG_SITE;;
2529    *)   ac_site_file1=./$CONFIG_SITE;;
2530  esac
2531elif test "x$prefix" != xNONE; then
2532  ac_site_file1=$prefix/share/config.site
2533  ac_site_file2=$prefix/etc/config.site
2534else
2535  ac_site_file1=$ac_default_prefix/share/config.site
2536  ac_site_file2=$ac_default_prefix/etc/config.site
2537fi
2538for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2539do
2540  test "x$ac_site_file" = xNONE && continue
2541  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2542    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544    sed 's/^/| /' "$ac_site_file" >&5
2545    . "$ac_site_file" \
2546      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548as_fn_error $? "failed to load site script $ac_site_file
2549See \`config.log' for more details" "$LINENO" 5; }
2550  fi
2551done
2552
2553if test -r "$cache_file"; then
2554  # Some versions of bash will fail to source /dev/null (special files
2555  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2556  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2557    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2558$as_echo "$as_me: loading cache $cache_file" >&6;}
2559    case $cache_file in
2560      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2561      *)                      . "./$cache_file";;
2562    esac
2563  fi
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2566$as_echo "$as_me: creating cache $cache_file" >&6;}
2567  >$cache_file
2568fi
2569
2570# Check that the precious variables saved in the cache have kept the same
2571# value.
2572ac_cache_corrupted=false
2573for ac_var in $ac_precious_vars; do
2574  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2575  eval ac_new_set=\$ac_env_${ac_var}_set
2576  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2577  eval ac_new_val=\$ac_env_${ac_var}_value
2578  case $ac_old_set,$ac_new_set in
2579    set,)
2580      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2581$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2582      ac_cache_corrupted=: ;;
2583    ,set)
2584      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2585$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2586      ac_cache_corrupted=: ;;
2587    ,);;
2588    *)
2589      if test "x$ac_old_val" != "x$ac_new_val"; then
2590	# differences in whitespace do not lead to failure.
2591	ac_old_val_w=`echo x $ac_old_val`
2592	ac_new_val_w=`echo x $ac_new_val`
2593	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2594	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2595$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2596	  ac_cache_corrupted=:
2597	else
2598	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2599$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2600	  eval $ac_var=\$ac_old_val
2601	fi
2602	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2603$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2604	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2605$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2606      fi;;
2607  esac
2608  # Pass precious variables to config.status.
2609  if test "$ac_new_set" = set; then
2610    case $ac_new_val in
2611    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2612    *) ac_arg=$ac_var=$ac_new_val ;;
2613    esac
2614    case " $ac_configure_args " in
2615      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2616      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2617    esac
2618  fi
2619done
2620if $ac_cache_corrupted; then
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2624$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2625  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2626fi
2627## -------------------- ##
2628## Main body of script. ##
2629## -------------------- ##
2630
2631ac_ext=c
2632ac_cpp='$CPP $CPPFLAGS'
2633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636
2637
2638
2639
2640
2641ac_config_headers="$ac_config_headers fficonfig.h"
2642
2643
2644# Default to --enable-multilib
2645# Check whether --enable-multilib was given.
2646if test "${enable_multilib+set}" = set; then :
2647  enableval=$enable_multilib; case "$enableval" in
2648  yes) multilib=yes ;;
2649  no)  multilib=no ;;
2650  *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2651 esac
2652else
2653  multilib=yes
2654fi
2655
2656
2657# We may get other options which we leave undocumented:
2658# --with-target-subdir, --with-multisrctop, --with-multisubdir
2659# See config-ml.in if you want the gory details.
2660
2661if test "$srcdir" = "."; then
2662  if test "$with_target_subdir" != "."; then
2663    multi_basedir="$srcdir/$with_multisrctop../.."
2664  else
2665    multi_basedir="$srcdir/$with_multisrctop.."
2666  fi
2667else
2668  multi_basedir="$srcdir/.."
2669fi
2670
2671
2672# Even if the default multilib is not a cross compilation,
2673# it may be that some of the other multilibs are.
2674if test $cross_compiling = no && test $multilib = yes \
2675   && test "x${with_multisubdir}" != x ; then
2676   cross_compiling=maybe
2677fi
2678
2679ac_config_commands="$ac_config_commands default-1"
2680
2681
2682ac_aux_dir=
2683for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2684  if test -f "$ac_dir/install-sh"; then
2685    ac_aux_dir=$ac_dir
2686    ac_install_sh="$ac_aux_dir/install-sh -c"
2687    break
2688  elif test -f "$ac_dir/install.sh"; then
2689    ac_aux_dir=$ac_dir
2690    ac_install_sh="$ac_aux_dir/install.sh -c"
2691    break
2692  elif test -f "$ac_dir/shtool"; then
2693    ac_aux_dir=$ac_dir
2694    ac_install_sh="$ac_aux_dir/shtool install -c"
2695    break
2696  fi
2697done
2698if test -z "$ac_aux_dir"; then
2699  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2700fi
2701
2702# These three variables are undocumented and unsupported,
2703# and are intended to be withdrawn in a future Autoconf release.
2704# They can cause serious problems if a builder's source tree is in a directory
2705# whose full name contains unusual characters.
2706ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2707ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2708ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2709
2710
2711# Make sure we can run config.sub.
2712$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2713  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2714
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2716$as_echo_n "checking build system type... " >&6; }
2717if ${ac_cv_build+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  ac_build_alias=$build_alias
2721test "x$ac_build_alias" = x &&
2722  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2723test "x$ac_build_alias" = x &&
2724  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2725ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2726  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2727
2728fi
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2730$as_echo "$ac_cv_build" >&6; }
2731case $ac_cv_build in
2732*-*-*) ;;
2733*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2734esac
2735build=$ac_cv_build
2736ac_save_IFS=$IFS; IFS='-'
2737set x $ac_cv_build
2738shift
2739build_cpu=$1
2740build_vendor=$2
2741shift; shift
2742# Remember, the first character of IFS is used to create $*,
2743# except with old shells:
2744build_os=$*
2745IFS=$ac_save_IFS
2746case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2747
2748
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2750$as_echo_n "checking host system type... " >&6; }
2751if ${ac_cv_host+:} false; then :
2752  $as_echo_n "(cached) " >&6
2753else
2754  if test "x$host_alias" = x; then
2755  ac_cv_host=$ac_cv_build
2756else
2757  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2758    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2759fi
2760
2761fi
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2763$as_echo "$ac_cv_host" >&6; }
2764case $ac_cv_host in
2765*-*-*) ;;
2766*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2767esac
2768host=$ac_cv_host
2769ac_save_IFS=$IFS; IFS='-'
2770set x $ac_cv_host
2771shift
2772host_cpu=$1
2773host_vendor=$2
2774shift; shift
2775# Remember, the first character of IFS is used to create $*,
2776# except with old shells:
2777host_os=$*
2778IFS=$ac_save_IFS
2779case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2780
2781
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2783$as_echo_n "checking target system type... " >&6; }
2784if ${ac_cv_target+:} false; then :
2785  $as_echo_n "(cached) " >&6
2786else
2787  if test "x$target_alias" = x; then
2788  ac_cv_target=$ac_cv_host
2789else
2790  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2791    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2792fi
2793
2794fi
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2796$as_echo "$ac_cv_target" >&6; }
2797case $ac_cv_target in
2798*-*-*) ;;
2799*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2800esac
2801target=$ac_cv_target
2802ac_save_IFS=$IFS; IFS='-'
2803set x $ac_cv_target
2804shift
2805target_cpu=$1
2806target_vendor=$2
2807shift; shift
2808# Remember, the first character of IFS is used to create $*,
2809# except with old shells:
2810target_os=$*
2811IFS=$ac_save_IFS
2812case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2813
2814
2815# The aliases save the names the user supplied, while $host etc.
2816# will get canonicalized.
2817test -n "$target_alias" &&
2818  test "$program_prefix$program_suffix$program_transform_name" = \
2819    NONENONEs,x,x, &&
2820  program_prefix=${target_alias}-
2821
2822target_alias=${target_alias-$host_alias}
2823
2824am__api_version='1.15'
2825
2826# Find a good install program.  We prefer a C program (faster),
2827# so one script is as good as another.  But avoid the broken or
2828# incompatible versions:
2829# SysV /etc/install, /usr/sbin/install
2830# SunOS /usr/etc/install
2831# IRIX /sbin/install
2832# AIX /bin/install
2833# AmigaOS /C/install, which installs bootblocks on floppy discs
2834# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2835# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2836# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2837# OS/2's system install, which has a completely different semantic
2838# ./install, which can be erroneously created by make from ./install.sh.
2839# Reject install programs that cannot install multiple files.
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2841$as_echo_n "checking for a BSD-compatible install... " >&6; }
2842if test -z "$INSTALL"; then
2843if ${ac_cv_path_install+:} false; then :
2844  $as_echo_n "(cached) " >&6
2845else
2846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  test -z "$as_dir" && as_dir=.
2851    # Account for people who put trailing slashes in PATH elements.
2852case $as_dir/ in #((
2853  ./ | .// | /[cC]/* | \
2854  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2855  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2856  /usr/ucb/* ) ;;
2857  *)
2858    # OSF1 and SCO ODT 3.0 have their own names for install.
2859    # Don't use installbsd from OSF since it installs stuff as root
2860    # by default.
2861    for ac_prog in ginstall scoinst install; do
2862      for ac_exec_ext in '' $ac_executable_extensions; do
2863	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2864	  if test $ac_prog = install &&
2865	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866	    # AIX install.  It has an incompatible calling convention.
2867	    :
2868	  elif test $ac_prog = install &&
2869	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870	    # program-specific install script used by HP pwplus--don't use.
2871	    :
2872	  else
2873	    rm -rf conftest.one conftest.two conftest.dir
2874	    echo one > conftest.one
2875	    echo two > conftest.two
2876	    mkdir conftest.dir
2877	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2878	      test -s conftest.one && test -s conftest.two &&
2879	      test -s conftest.dir/conftest.one &&
2880	      test -s conftest.dir/conftest.two
2881	    then
2882	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2883	      break 3
2884	    fi
2885	  fi
2886	fi
2887      done
2888    done
2889    ;;
2890esac
2891
2892  done
2893IFS=$as_save_IFS
2894
2895rm -rf conftest.one conftest.two conftest.dir
2896
2897fi
2898  if test "${ac_cv_path_install+set}" = set; then
2899    INSTALL=$ac_cv_path_install
2900  else
2901    # As a last resort, use the slow shell script.  Don't cache a
2902    # value for INSTALL within a source directory, because that will
2903    # break other packages using the cache if that directory is
2904    # removed, or if the value is a relative name.
2905    INSTALL=$ac_install_sh
2906  fi
2907fi
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2909$as_echo "$INSTALL" >&6; }
2910
2911# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2912# It thinks the first close brace ends the variable substitution.
2913test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2914
2915test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2916
2917test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2918
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2920$as_echo_n "checking whether build environment is sane... " >&6; }
2921# Reject unsafe characters in $srcdir or the absolute working directory
2922# name.  Accept space and tab only in the latter.
2923am_lf='
2924'
2925case `pwd` in
2926  *[\\\"\#\$\&\'\`$am_lf]*)
2927    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2928esac
2929case $srcdir in
2930  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2931    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2932esac
2933
2934# Do 'set' in a subshell so we don't clobber the current shell's
2935# arguments.  Must try -L first in case configure is actually a
2936# symlink; some systems play weird games with the mod time of symlinks
2937# (eg FreeBSD returns the mod time of the symlink's containing
2938# directory).
2939if (
2940   am_has_slept=no
2941   for am_try in 1 2; do
2942     echo "timestamp, slept: $am_has_slept" > conftest.file
2943     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2944     if test "$*" = "X"; then
2945	# -L didn't work.
2946	set X `ls -t "$srcdir/configure" conftest.file`
2947     fi
2948     if test "$*" != "X $srcdir/configure conftest.file" \
2949	&& test "$*" != "X conftest.file $srcdir/configure"; then
2950
2951	# If neither matched, then we have a broken ls.  This can happen
2952	# if, for instance, CONFIG_SHELL is bash and it inherits a
2953	# broken ls alias from the environment.  This has actually
2954	# happened.  Such a system could not be considered "sane".
2955	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2956  alias in your environment" "$LINENO" 5
2957     fi
2958     if test "$2" = conftest.file || test $am_try -eq 2; then
2959       break
2960     fi
2961     # Just in case.
2962     sleep 1
2963     am_has_slept=yes
2964   done
2965   test "$2" = conftest.file
2966   )
2967then
2968   # Ok.
2969   :
2970else
2971   as_fn_error $? "newly created file is older than distributed files!
2972Check your system clock" "$LINENO" 5
2973fi
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975$as_echo "yes" >&6; }
2976# If we didn't sleep, we still need to ensure time stamps of config.status and
2977# generated files are strictly newer.
2978am_sleep_pid=
2979if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2980  ( sleep 1 ) &
2981  am_sleep_pid=$!
2982fi
2983
2984rm -f conftest.file
2985
2986test "$program_prefix" != NONE &&
2987  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2988# Use a double $ so make ignores it.
2989test "$program_suffix" != NONE &&
2990  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2991# Double any \ or $.
2992# By default was `s,x,x', remove it if useless.
2993ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2994program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2995
2996# Expand $ac_aux_dir to an absolute path.
2997am_aux_dir=`cd "$ac_aux_dir" && pwd`
2998
2999if test x"${MISSING+set}" != xset; then
3000  case $am_aux_dir in
3001  *\ * | *\	*)
3002    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3003  *)
3004    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3005  esac
3006fi
3007# Use eval to expand $SHELL
3008if eval "$MISSING --is-lightweight"; then
3009  am_missing_run="$MISSING "
3010else
3011  am_missing_run=
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3013$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3014fi
3015
3016if test x"${install_sh+set}" != xset; then
3017  case $am_aux_dir in
3018  *\ * | *\	*)
3019    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3020  *)
3021    install_sh="\${SHELL} $am_aux_dir/install-sh"
3022  esac
3023fi
3024
3025# Installed binaries are usually stripped using 'strip' when the user
3026# run "make install-strip".  However 'strip' might not be the right
3027# tool to use in cross-compilation environments, therefore Automake
3028# will honor the 'STRIP' environment variable to overrule this program.
3029if test "$cross_compiling" != no; then
3030  if test -n "$ac_tool_prefix"; then
3031  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3032set dummy ${ac_tool_prefix}strip; ac_word=$2
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034$as_echo_n "checking for $ac_word... " >&6; }
3035if ${ac_cv_prog_STRIP+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  if test -n "$STRIP"; then
3039  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  test -z "$as_dir" && as_dir=.
3046    for ac_exec_ext in '' $ac_executable_extensions; do
3047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050    break 2
3051  fi
3052done
3053  done
3054IFS=$as_save_IFS
3055
3056fi
3057fi
3058STRIP=$ac_cv_prog_STRIP
3059if test -n "$STRIP"; then
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3061$as_echo "$STRIP" >&6; }
3062else
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064$as_echo "no" >&6; }
3065fi
3066
3067
3068fi
3069if test -z "$ac_cv_prog_STRIP"; then
3070  ac_ct_STRIP=$STRIP
3071  # Extract the first word of "strip", so it can be a program name with args.
3072set dummy strip; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3076  $as_echo_n "(cached) " >&6
3077else
3078  if test -n "$ac_ct_STRIP"; then
3079  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088    ac_cv_prog_ac_ct_STRIP="strip"
3089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093  done
3094IFS=$as_save_IFS
3095
3096fi
3097fi
3098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3099if test -n "$ac_ct_STRIP"; then
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3101$as_echo "$ac_ct_STRIP" >&6; }
3102else
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105fi
3106
3107  if test "x$ac_ct_STRIP" = x; then
3108    STRIP=":"
3109  else
3110    case $cross_compiling:$ac_tool_warned in
3111yes:)
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114ac_tool_warned=yes ;;
3115esac
3116    STRIP=$ac_ct_STRIP
3117  fi
3118else
3119  STRIP="$ac_cv_prog_STRIP"
3120fi
3121
3122fi
3123INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3124
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3126$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3127if test -z "$MKDIR_P"; then
3128  if ${ac_cv_path_mkdir+:} false; then :
3129  $as_echo_n "(cached) " >&6
3130else
3131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_prog in mkdir gmkdir; do
3137	 for ac_exec_ext in '' $ac_executable_extensions; do
3138	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3139	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3140	     'mkdir (GNU coreutils) '* | \
3141	     'mkdir (coreutils) '* | \
3142	     'mkdir (fileutils) '4.1*)
3143	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3144	       break 3;;
3145	   esac
3146	 done
3147       done
3148  done
3149IFS=$as_save_IFS
3150
3151fi
3152
3153  test -d ./--version && rmdir ./--version
3154  if test "${ac_cv_path_mkdir+set}" = set; then
3155    MKDIR_P="$ac_cv_path_mkdir -p"
3156  else
3157    # As a last resort, use the slow shell script.  Don't cache a
3158    # value for MKDIR_P within a source directory, because that will
3159    # break other packages using the cache if that directory is
3160    # removed, or if the value is a relative name.
3161    MKDIR_P="$ac_install_sh -d"
3162  fi
3163fi
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3165$as_echo "$MKDIR_P" >&6; }
3166
3167for ac_prog in gawk mawk nawk awk
3168do
3169  # Extract the first word of "$ac_prog", so it can be a program name with args.
3170set dummy $ac_prog; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if ${ac_cv_prog_AWK+:} false; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  if test -n "$AWK"; then
3177  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182  IFS=$as_save_IFS
3183  test -z "$as_dir" && as_dir=.
3184    for ac_exec_ext in '' $ac_executable_extensions; do
3185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186    ac_cv_prog_AWK="$ac_prog"
3187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188    break 2
3189  fi
3190done
3191  done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
3196AWK=$ac_cv_prog_AWK
3197if test -n "$AWK"; then
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3199$as_echo "$AWK" >&6; }
3200else
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
3206  test -n "$AWK" && break
3207done
3208
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3210$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3211set x ${MAKE-make}
3212ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3213if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3214  $as_echo_n "(cached) " >&6
3215else
3216  cat >conftest.make <<\_ACEOF
3217SHELL = /bin/sh
3218all:
3219	@echo '@@@%%%=$(MAKE)=@@@%%%'
3220_ACEOF
3221# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3222case `${MAKE-make} -f conftest.make 2>/dev/null` in
3223  *@@@%%%=?*=@@@%%%*)
3224    eval ac_cv_prog_make_${ac_make}_set=yes;;
3225  *)
3226    eval ac_cv_prog_make_${ac_make}_set=no;;
3227esac
3228rm -f conftest.make
3229fi
3230if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232$as_echo "yes" >&6; }
3233  SET_MAKE=
3234else
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237  SET_MAKE="MAKE=${MAKE-make}"
3238fi
3239
3240rm -rf .tst 2>/dev/null
3241mkdir .tst 2>/dev/null
3242if test -d .tst; then
3243  am__leading_dot=.
3244else
3245  am__leading_dot=_
3246fi
3247rmdir .tst 2>/dev/null
3248
3249# Check whether --enable-silent-rules was given.
3250if test "${enable_silent_rules+set}" = set; then :
3251  enableval=$enable_silent_rules;
3252fi
3253
3254case $enable_silent_rules in # (((
3255  yes) AM_DEFAULT_VERBOSITY=0;;
3256   no) AM_DEFAULT_VERBOSITY=1;;
3257    *) AM_DEFAULT_VERBOSITY=1;;
3258esac
3259am_make=${MAKE-make}
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3261$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3262if ${am_cv_make_support_nested_variables+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  if $as_echo 'TRUE=$(BAR$(V))
3266BAR0=false
3267BAR1=true
3268V=1
3269am__doit:
3270	@$(TRUE)
3271.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3272  am_cv_make_support_nested_variables=yes
3273else
3274  am_cv_make_support_nested_variables=no
3275fi
3276fi
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3278$as_echo "$am_cv_make_support_nested_variables" >&6; }
3279if test $am_cv_make_support_nested_variables = yes; then
3280    AM_V='$(V)'
3281  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3282else
3283  AM_V=$AM_DEFAULT_VERBOSITY
3284  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3285fi
3286AM_BACKSLASH='\'
3287
3288if test "`cd $srcdir && pwd`" != "`pwd`"; then
3289  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3290  # is not polluted with repeated "-I."
3291  am__isrc=' -I$(srcdir)'
3292  # test to see if srcdir already configured
3293  if test -f $srcdir/config.status; then
3294    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3295  fi
3296fi
3297
3298# test whether we have cygpath
3299if test -z "$CYGPATH_W"; then
3300  if (cygpath --version) >/dev/null 2>/dev/null; then
3301    CYGPATH_W='cygpath -w'
3302  else
3303    CYGPATH_W=echo
3304  fi
3305fi
3306
3307
3308# Define the identity of the package.
3309 PACKAGE='libffi'
3310 VERSION='3.99999'
3311
3312
3313cat >>confdefs.h <<_ACEOF
3314#define PACKAGE "$PACKAGE"
3315_ACEOF
3316
3317
3318cat >>confdefs.h <<_ACEOF
3319#define VERSION "$VERSION"
3320_ACEOF
3321
3322# Some tools Automake needs.
3323
3324ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3325
3326
3327AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3328
3329
3330AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3331
3332
3333AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3334
3335
3336MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3337
3338# For better backward compatibility.  To be removed once Automake 1.9.x
3339# dies out for good.  For more background, see:
3340# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3341# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3342mkdir_p='$(MKDIR_P)'
3343
3344# We need awk for the "check" target (and possibly the TAP driver).  The
3345# system "awk" is bad on some platforms.
3346# Always define AMTAR for backward compatibility.  Yes, it's still used
3347# in the wild :-(  We should find a proper way to deprecate it ...
3348AMTAR='$${TAR-tar}'
3349
3350
3351# We'll loop over all known methods to create a tar archive until one works.
3352_am_tools='gnutar  pax cpio none'
3353
3354am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3355
3356
3357
3358
3359
3360
3361# POSIX will say in a future version that running "rm -f" with no argument
3362# is OK; and we want to be able to make that assumption in our Makefile
3363# recipes.  So use an aggressive probe to check that the usage we want is
3364# actually supported "in the wild" to an acceptable degree.
3365# See automake bug#10828.
3366# To make any issue more visible, cause the running configure to be aborted
3367# by default if the 'rm' program in use doesn't match our expectations; the
3368# user can still override this though.
3369if rm -f && rm -fr && rm -rf; then : OK; else
3370  cat >&2 <<'END'
3371Oops!
3372
3373Your 'rm' program seems unable to run without file operands specified
3374on the command line, even when the '-f' option is present.  This is contrary
3375to the behaviour of most rm programs out there, and not conforming with
3376the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3377
3378Please tell bug-automake@gnu.org about your system, including the value
3379of your $PATH and any error possibly output before this message.  This
3380can help us improve future automake versions.
3381
3382END
3383  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3384    echo 'Configuration will proceed anyway, since you have set the' >&2
3385    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3386    echo >&2
3387  else
3388    cat >&2 <<'END'
3389Aborting the configuration process, to ensure you take notice of the issue.
3390
3391You can download and install GNU coreutils to get an 'rm' implementation
3392that behaves properly: <http://www.gnu.org/software/coreutils/>.
3393
3394If you want to complete the configuration process using your problematic
3395'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3396to "yes", and re-run configure.
3397
3398END
3399    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3400  fi
3401fi
3402
3403
3404# See if makeinfo has been installed and is modern enough
3405# that we can use it.
3406
3407  # Extract the first word of "makeinfo", so it can be a program name with args.
3408set dummy makeinfo; ac_word=$2
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410$as_echo_n "checking for $ac_word... " >&6; }
3411if ${ac_cv_prog_MAKEINFO+:} false; then :
3412  $as_echo_n "(cached) " >&6
3413else
3414  if test -n "$MAKEINFO"; then
3415  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3416else
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420  IFS=$as_save_IFS
3421  test -z "$as_dir" && as_dir=.
3422    for ac_exec_ext in '' $ac_executable_extensions; do
3423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424    ac_cv_prog_MAKEINFO="makeinfo"
3425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426    break 2
3427  fi
3428done
3429  done
3430IFS=$as_save_IFS
3431
3432fi
3433fi
3434MAKEINFO=$ac_cv_prog_MAKEINFO
3435if test -n "$MAKEINFO"; then
3436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3437$as_echo "$MAKEINFO" >&6; }
3438else
3439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
3441fi
3442
3443
3444  if test -n "$MAKEINFO"; then
3445    # Found it, now check the version.
3446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3447$as_echo_n "checking for modern makeinfo... " >&6; }
3448if ${gcc_cv_prog_makeinfo_modern+:} false; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3452                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3453
3454                    case $ac_prog_version in
3455                      '')  gcc_cv_prog_makeinfo_modern=no;;
3456                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3457                      *)   gcc_cv_prog_makeinfo_modern=no;;
3458                    esac
3459
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3462$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3463  else
3464    gcc_cv_prog_makeinfo_modern=no
3465  fi
3466  if test $gcc_cv_prog_makeinfo_modern = no; then
3467    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3468  fi
3469
3470 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3471  BUILD_INFO_TRUE=
3472  BUILD_INFO_FALSE='#'
3473else
3474  BUILD_INFO_TRUE='#'
3475  BUILD_INFO_FALSE=
3476fi
3477
3478
3479# We would like our source tree to be readonly. However when releases or
3480# pre-releases are generated, the flex/bison generated files as well as the
3481# various formats of manuals need to be included along with the rest of the
3482# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3483# just that.
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3485$as_echo_n "checking generated-files-in-srcdir... " >&6; }
3486# Check whether --enable-generated-files-in-srcdir was given.
3487if test "${enable_generated_files_in_srcdir+set}" = set; then :
3488  enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3489 yes) enable_generated_files_in_srcdir=yes ;;
3490 no)  enable_generated_files_in_srcdir=no ;;
3491 *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3492 esac
3493else
3494  enable_generated_files_in_srcdir=no
3495fi
3496
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3498$as_echo "$enable_generated_files_in_srcdir" >&6; }
3499 if test "$enable_generated_files_in_srcdir" = yes; then
3500  GENINSRC_TRUE=
3501  GENINSRC_FALSE='#'
3502else
3503  GENINSRC_TRUE='#'
3504  GENINSRC_FALSE=
3505fi
3506
3507
3508# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3509# We must force CC to /not/ be precious variables; otherwise
3510# the wrong, non-multilib-adjusted value will be used in multilibs.
3511# As a side effect, we have to subst CFLAGS ourselves.
3512# Also save and restore CFLAGS, since AC_PROG_CC will come up with
3513# defaults of its own if none are provided.
3514
3515
3516
3517save_CFLAGS=$CFLAGS
3518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523if test -n "$ac_tool_prefix"; then
3524  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3525set dummy ${ac_tool_prefix}gcc; ac_word=$2
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527$as_echo_n "checking for $ac_word... " >&6; }
3528if ${ac_cv_prog_CC+:} false; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531  if test -n "$CC"; then
3532  ac_cv_prog_CC="$CC" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537  IFS=$as_save_IFS
3538  test -z "$as_dir" && as_dir=.
3539    for ac_exec_ext in '' $ac_executable_extensions; do
3540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543    break 2
3544  fi
3545done
3546  done
3547IFS=$as_save_IFS
3548
3549fi
3550fi
3551CC=$ac_cv_prog_CC
3552if test -n "$CC"; then
3553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554$as_echo "$CC" >&6; }
3555else
3556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558fi
3559
3560
3561fi
3562if test -z "$ac_cv_prog_CC"; then
3563  ac_ct_CC=$CC
3564  # Extract the first word of "gcc", so it can be a program name with args.
3565set dummy gcc; ac_word=$2
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567$as_echo_n "checking for $ac_word... " >&6; }
3568if ${ac_cv_prog_ac_ct_CC+:} false; then :
3569  $as_echo_n "(cached) " >&6
3570else
3571  if test -n "$ac_ct_CC"; then
3572  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577  IFS=$as_save_IFS
3578  test -z "$as_dir" && as_dir=.
3579    for ac_exec_ext in '' $ac_executable_extensions; do
3580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581    ac_cv_prog_ac_ct_CC="gcc"
3582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583    break 2
3584  fi
3585done
3586  done
3587IFS=$as_save_IFS
3588
3589fi
3590fi
3591ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592if test -n "$ac_ct_CC"; then
3593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594$as_echo "$ac_ct_CC" >&6; }
3595else
3596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598fi
3599
3600  if test "x$ac_ct_CC" = x; then
3601    CC=""
3602  else
3603    case $cross_compiling:$ac_tool_warned in
3604yes:)
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607ac_tool_warned=yes ;;
3608esac
3609    CC=$ac_ct_CC
3610  fi
3611else
3612  CC="$ac_cv_prog_CC"
3613fi
3614
3615if test -z "$CC"; then
3616          if test -n "$ac_tool_prefix"; then
3617    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3618set dummy ${ac_tool_prefix}cc; ac_word=$2
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
3621if ${ac_cv_prog_CC+:} false; then :
3622  $as_echo_n "(cached) " >&6
3623else
3624  if test -n "$CC"; then
3625  ac_cv_prog_CC="$CC" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630  IFS=$as_save_IFS
3631  test -z "$as_dir" && as_dir=.
3632    for ac_exec_ext in '' $ac_executable_extensions; do
3633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634    ac_cv_prog_CC="${ac_tool_prefix}cc"
3635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636    break 2
3637  fi
3638done
3639  done
3640IFS=$as_save_IFS
3641
3642fi
3643fi
3644CC=$ac_cv_prog_CC
3645if test -n "$CC"; then
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647$as_echo "$CC" >&6; }
3648else
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650$as_echo "no" >&6; }
3651fi
3652
3653
3654  fi
3655fi
3656if test -z "$CC"; then
3657  # Extract the first word of "cc", so it can be a program name with args.
3658set dummy cc; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if ${ac_cv_prog_CC+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  if test -n "$CC"; then
3665  ac_cv_prog_CC="$CC" # Let the user override the test.
3666else
3667  ac_prog_rejected=no
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  test -z "$as_dir" && as_dir=.
3673    for ac_exec_ext in '' $ac_executable_extensions; do
3674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3676       ac_prog_rejected=yes
3677       continue
3678     fi
3679    ac_cv_prog_CC="cc"
3680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687if test $ac_prog_rejected = yes; then
3688  # We found a bogon in the path, so make sure we never use it.
3689  set dummy $ac_cv_prog_CC
3690  shift
3691  if test $# != 0; then
3692    # We chose a different compiler from the bogus one.
3693    # However, it has the same basename, so the bogon will be chosen
3694    # first if we set CC to just the basename; use the full file name.
3695    shift
3696    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3697  fi
3698fi
3699fi
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704$as_echo "$CC" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711fi
3712if test -z "$CC"; then
3713  if test -n "$ac_tool_prefix"; then
3714  for ac_prog in cl.exe
3715  do
3716    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if ${ac_cv_prog_CC+:} false; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  if test -n "$CC"; then
3724  ac_cv_prog_CC="$CC" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729  IFS=$as_save_IFS
3730  test -z "$as_dir" && as_dir=.
3731    for ac_exec_ext in '' $ac_executable_extensions; do
3732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738  done
3739IFS=$as_save_IFS
3740
3741fi
3742fi
3743CC=$ac_cv_prog_CC
3744if test -n "$CC"; then
3745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746$as_echo "$CC" >&6; }
3747else
3748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749$as_echo "no" >&6; }
3750fi
3751
3752
3753    test -n "$CC" && break
3754  done
3755fi
3756if test -z "$CC"; then
3757  ac_ct_CC=$CC
3758  for ac_prog in cl.exe
3759do
3760  # Extract the first word of "$ac_prog", so it can be a program name with args.
3761set dummy $ac_prog; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if ${ac_cv_prog_ac_ct_CC+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  if test -n "$ac_ct_CC"; then
3768  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775    for ac_exec_ext in '' $ac_executable_extensions; do
3776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777    ac_cv_prog_ac_ct_CC="$ac_prog"
3778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785fi
3786fi
3787ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788if test -n "$ac_ct_CC"; then
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790$as_echo "$ac_ct_CC" >&6; }
3791else
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793$as_echo "no" >&6; }
3794fi
3795
3796
3797  test -n "$ac_ct_CC" && break
3798done
3799
3800  if test "x$ac_ct_CC" = x; then
3801    CC=""
3802  else
3803    case $cross_compiling:$ac_tool_warned in
3804yes:)
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807ac_tool_warned=yes ;;
3808esac
3809    CC=$ac_ct_CC
3810  fi
3811fi
3812
3813fi
3814
3815
3816test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818as_fn_error $? "no acceptable C compiler found in \$PATH
3819See \`config.log' for more details" "$LINENO" 5; }
3820
3821# Provide some information about the compiler.
3822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3823set X $ac_compile
3824ac_compiler=$2
3825for ac_option in --version -v -V -qversion; do
3826  { { ac_try="$ac_compiler $ac_option >&5"
3827case "(($ac_try" in
3828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829  *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832$as_echo "$ac_try_echo"; } >&5
3833  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3834  ac_status=$?
3835  if test -s conftest.err; then
3836    sed '10a\
3837... rest of stderr output deleted ...
3838         10q' conftest.err >conftest.er1
3839    cat conftest.er1 >&5
3840  fi
3841  rm -f conftest.er1 conftest.err
3842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843  test $ac_status = 0; }
3844done
3845
3846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h.  */
3848
3849int
3850main ()
3851{
3852
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857ac_clean_files_save=$ac_clean_files
3858ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3859# Try to create an executable without -o first, disregard a.out.
3860# It will help us diagnose broken compilers, and finding out an intuition
3861# of exeext.
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3863$as_echo_n "checking whether the C compiler works... " >&6; }
3864ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3865
3866# The possible output files:
3867ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3868
3869ac_rmfiles=
3870for ac_file in $ac_files
3871do
3872  case $ac_file in
3873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3874    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3875  esac
3876done
3877rm -f $ac_rmfiles
3878
3879if { { ac_try="$ac_link_default"
3880case "(($ac_try" in
3881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882  *) ac_try_echo=$ac_try;;
3883esac
3884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885$as_echo "$ac_try_echo"; } >&5
3886  (eval "$ac_link_default") 2>&5
3887  ac_status=$?
3888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889  test $ac_status = 0; }; then :
3890  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3891# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3892# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3893# so that the user can short-circuit this test for compilers unknown to
3894# Autoconf.
3895for ac_file in $ac_files ''
3896do
3897  test -f "$ac_file" || continue
3898  case $ac_file in
3899    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3900	;;
3901    [ab].out )
3902	# We found the default executable, but exeext='' is most
3903	# certainly right.
3904	break;;
3905    *.* )
3906	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3907	then :; else
3908	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909	fi
3910	# We set ac_cv_exeext here because the later test for it is not
3911	# safe: cross compilers may not add the suffix if given an `-o'
3912	# argument, so we may need to know it at that point already.
3913	# Even if this section looks crufty: it has the advantage of
3914	# actually working.
3915	break;;
3916    * )
3917	break;;
3918  esac
3919done
3920test "$ac_cv_exeext" = no && ac_cv_exeext=
3921
3922else
3923  ac_file=''
3924fi
3925if test -z "$ac_file"; then :
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927$as_echo "no" >&6; }
3928$as_echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933as_fn_error 77 "C compiler cannot create executables
3934See \`config.log' for more details" "$LINENO" 5; }
3935else
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937$as_echo "yes" >&6; }
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3940$as_echo_n "checking for C compiler default output file name... " >&6; }
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942$as_echo "$ac_file" >&6; }
3943ac_exeext=$ac_cv_exeext
3944
3945rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3946ac_clean_files=$ac_clean_files_save
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948$as_echo_n "checking for suffix of executables... " >&6; }
3949if { { ac_try="$ac_link"
3950case "(($ac_try" in
3951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952  *) ac_try_echo=$ac_try;;
3953esac
3954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955$as_echo "$ac_try_echo"; } >&5
3956  (eval "$ac_link") 2>&5
3957  ac_status=$?
3958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959  test $ac_status = 0; }; then :
3960  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3961# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3962# work properly (i.e., refer to `conftest.exe'), while it won't with
3963# `rm'.
3964for ac_file in conftest.exe conftest conftest.*; do
3965  test -f "$ac_file" || continue
3966  case $ac_file in
3967    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969	  break;;
3970    * ) break;;
3971  esac
3972done
3973else
3974  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3977See \`config.log' for more details" "$LINENO" 5; }
3978fi
3979rm -f conftest conftest$ac_cv_exeext
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3981$as_echo "$ac_cv_exeext" >&6; }
3982
3983rm -f conftest.$ac_ext
3984EXEEXT=$ac_cv_exeext
3985ac_exeext=$EXEEXT
3986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987/* end confdefs.h.  */
3988#include <stdio.h>
3989int
3990main ()
3991{
3992FILE *f = fopen ("conftest.out", "w");
3993 return ferror (f) || fclose (f) != 0;
3994
3995  ;
3996  return 0;
3997}
3998_ACEOF
3999ac_clean_files="$ac_clean_files conftest.out"
4000# Check that the compiler produces executables we can run.  If not, either
4001# the compiler is broken, or we cross compile.
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4003$as_echo_n "checking whether we are cross compiling... " >&6; }
4004if test "$cross_compiling" != yes; then
4005  { { ac_try="$ac_link"
4006case "(($ac_try" in
4007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008  *) ac_try_echo=$ac_try;;
4009esac
4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011$as_echo "$ac_try_echo"; } >&5
4012  (eval "$ac_link") 2>&5
4013  ac_status=$?
4014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015  test $ac_status = 0; }
4016  if { ac_try='./conftest$ac_cv_exeext'
4017  { { case "(($ac_try" in
4018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019  *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022$as_echo "$ac_try_echo"; } >&5
4023  (eval "$ac_try") 2>&5
4024  ac_status=$?
4025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026  test $ac_status = 0; }; }; then
4027    cross_compiling=no
4028  else
4029    if test "$cross_compiling" = maybe; then
4030	cross_compiling=yes
4031    else
4032	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034as_fn_error $? "cannot run C compiled programs.
4035If you meant to cross compile, use \`--host'.
4036See \`config.log' for more details" "$LINENO" 5; }
4037    fi
4038  fi
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4041$as_echo "$cross_compiling" >&6; }
4042
4043rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4044ac_clean_files=$ac_clean_files_save
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4046$as_echo_n "checking for suffix of object files... " >&6; }
4047if ${ac_cv_objext+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052
4053int
4054main ()
4055{
4056
4057  ;
4058  return 0;
4059}
4060_ACEOF
4061rm -f conftest.o conftest.obj
4062if { { ac_try="$ac_compile"
4063case "(($ac_try" in
4064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065  *) ac_try_echo=$ac_try;;
4066esac
4067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068$as_echo "$ac_try_echo"; } >&5
4069  (eval "$ac_compile") 2>&5
4070  ac_status=$?
4071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072  test $ac_status = 0; }; then :
4073  for ac_file in conftest.o conftest.obj conftest.*; do
4074  test -f "$ac_file" || continue;
4075  case $ac_file in
4076    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4077    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4078       break;;
4079  esac
4080done
4081else
4082  $as_echo "$as_me: failed program was:" >&5
4083sed 's/^/| /' conftest.$ac_ext >&5
4084
4085{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087as_fn_error $? "cannot compute suffix of object files: cannot compile
4088See \`config.log' for more details" "$LINENO" 5; }
4089fi
4090rm -f conftest.$ac_cv_objext conftest.$ac_ext
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4093$as_echo "$ac_cv_objext" >&6; }
4094OBJEXT=$ac_cv_objext
4095ac_objext=$OBJEXT
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4097$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4098if ${ac_cv_c_compiler_gnu+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main ()
4106{
4107#ifndef __GNUC__
4108       choke me
4109#endif
4110
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115if ac_fn_c_try_compile "$LINENO"; then :
4116  ac_compiler_gnu=yes
4117else
4118  ac_compiler_gnu=no
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121ac_cv_c_compiler_gnu=$ac_compiler_gnu
4122
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4125$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4126if test $ac_compiler_gnu = yes; then
4127  GCC=yes
4128else
4129  GCC=
4130fi
4131ac_test_CFLAGS=${CFLAGS+set}
4132ac_save_CFLAGS=$CFLAGS
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4134$as_echo_n "checking whether $CC accepts -g... " >&6; }
4135if ${ac_cv_prog_cc_g+:} false; then :
4136  $as_echo_n "(cached) " >&6
4137else
4138  ac_save_c_werror_flag=$ac_c_werror_flag
4139   ac_c_werror_flag=yes
4140   ac_cv_prog_cc_g=no
4141   CFLAGS="-g"
4142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h.  */
4144
4145int
4146main ()
4147{
4148
4149  ;
4150  return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_compile "$LINENO"; then :
4154  ac_cv_prog_cc_g=yes
4155else
4156  CFLAGS=""
4157      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159
4160int
4161main ()
4162{
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168if ac_fn_c_try_compile "$LINENO"; then :
4169
4170else
4171  ac_c_werror_flag=$ac_save_c_werror_flag
4172	 CFLAGS="-g"
4173	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175
4176int
4177main ()
4178{
4179
4180  ;
4181  return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"; then :
4185  ac_cv_prog_cc_g=yes
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190fi
4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192   ac_c_werror_flag=$ac_save_c_werror_flag
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4195$as_echo "$ac_cv_prog_cc_g" >&6; }
4196if test "$ac_test_CFLAGS" = set; then
4197  CFLAGS=$ac_save_CFLAGS
4198elif test $ac_cv_prog_cc_g = yes; then
4199  if test "$GCC" = yes; then
4200    CFLAGS="-g -O2"
4201  else
4202    CFLAGS="-g"
4203  fi
4204else
4205  if test "$GCC" = yes; then
4206    CFLAGS="-O2"
4207  else
4208    CFLAGS=
4209  fi
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4212$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4213if ${ac_cv_prog_cc_c89+:} false; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216  ac_cv_prog_cc_c89=no
4217ac_save_CC=$CC
4218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h.  */
4220#include <stdarg.h>
4221#include <stdio.h>
4222struct stat;
4223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4224struct buf { int x; };
4225FILE * (*rcsopen) (struct buf *, struct stat *, int);
4226static char *e (p, i)
4227     char **p;
4228     int i;
4229{
4230  return p[i];
4231}
4232static char *f (char * (*g) (char **, int), char **p, ...)
4233{
4234  char *s;
4235  va_list v;
4236  va_start (v,p);
4237  s = g (p, va_arg (v,int));
4238  va_end (v);
4239  return s;
4240}
4241
4242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4243   function prototypes and stuff, but not '\xHH' hex character constants.
4244   These don't provoke an error unfortunately, instead are silently treated
4245   as 'x'.  The following induces an error, until -std is added to get
4246   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4247   array size at least.  It's necessary to write '\x00'==0 to get something
4248   that's true only with -std.  */
4249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4250
4251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4252   inside strings and character constants.  */
4253#define FOO(x) 'x'
4254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4255
4256int test (int i, double x);
4257struct s1 {int (*f) (int a);};
4258struct s2 {int (*f) (double a);};
4259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4260int argc;
4261char **argv;
4262int
4263main ()
4264{
4265return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4266  ;
4267  return 0;
4268}
4269_ACEOF
4270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4271	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4272do
4273  CC="$ac_save_CC $ac_arg"
4274  if ac_fn_c_try_compile "$LINENO"; then :
4275  ac_cv_prog_cc_c89=$ac_arg
4276fi
4277rm -f core conftest.err conftest.$ac_objext
4278  test "x$ac_cv_prog_cc_c89" != "xno" && break
4279done
4280rm -f conftest.$ac_ext
4281CC=$ac_save_CC
4282
4283fi
4284# AC_CACHE_VAL
4285case "x$ac_cv_prog_cc_c89" in
4286  x)
4287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4288$as_echo "none needed" >&6; } ;;
4289  xno)
4290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4291$as_echo "unsupported" >&6; } ;;
4292  *)
4293    CC="$CC $ac_cv_prog_cc_c89"
4294    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4295$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4296esac
4297if test "x$ac_cv_prog_cc_c89" != xno; then :
4298
4299fi
4300
4301ac_ext=c
4302ac_cpp='$CPP $CPPFLAGS'
4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306
4307ac_ext=c
4308ac_cpp='$CPP $CPPFLAGS'
4309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4313$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4314if ${am_cv_prog_cc_c_o+:} false; then :
4315  $as_echo_n "(cached) " >&6
4316else
4317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319
4320int
4321main ()
4322{
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328  # Make sure it works both with $CC and with simple cc.
4329  # Following AC_PROG_CC_C_O, we do the test twice because some
4330  # compilers refuse to overwrite an existing .o file with -o,
4331  # though they will create one.
4332  am_cv_prog_cc_c_o=yes
4333  for am_i in 1 2; do
4334    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4335   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } \
4339         && test -f conftest2.$ac_objext; then
4340      : OK
4341    else
4342      am_cv_prog_cc_c_o=no
4343      break
4344    fi
4345  done
4346  rm -f core conftest*
4347  unset am_i
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4350$as_echo "$am_cv_prog_cc_c_o" >&6; }
4351if test "$am_cv_prog_cc_c_o" != yes; then
4352   # Losing compiler, so override with the script.
4353   # FIXME: It is wrong to rewrite CC.
4354   # But if we don't then we get into trouble of one sort or another.
4355   # A longer-term fix would be to have automake use am__CC in this case,
4356   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4357   CC="$am_aux_dir/compile $CC"
4358fi
4359ac_ext=c
4360ac_cpp='$CPP $CPPFLAGS'
4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365DEPDIR="${am__leading_dot}deps"
4366
4367ac_config_commands="$ac_config_commands depfiles"
4368
4369
4370am_make=${MAKE-make}
4371cat > confinc << 'END'
4372am__doit:
4373	@echo this is the am__doit target
4374.PHONY: am__doit
4375END
4376# If we don't find an include directive, just comment out the code.
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4378$as_echo_n "checking for style of include used by $am_make... " >&6; }
4379am__include="#"
4380am__quote=
4381_am_result=none
4382# First try GNU make style include.
4383echo "include confinc" > confmf
4384# Ignore all kinds of additional output from 'make'.
4385case `$am_make -s -f confmf 2> /dev/null` in #(
4386*the\ am__doit\ target*)
4387  am__include=include
4388  am__quote=
4389  _am_result=GNU
4390  ;;
4391esac
4392# Now try BSD make style include.
4393if test "$am__include" = "#"; then
4394   echo '.include "confinc"' > confmf
4395   case `$am_make -s -f confmf 2> /dev/null` in #(
4396   *the\ am__doit\ target*)
4397     am__include=.include
4398     am__quote="\""
4399     _am_result=BSD
4400     ;;
4401   esac
4402fi
4403
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4406$as_echo "$_am_result" >&6; }
4407rm -f confinc confmf
4408
4409# Check whether --enable-dependency-tracking was given.
4410if test "${enable_dependency_tracking+set}" = set; then :
4411  enableval=$enable_dependency_tracking;
4412fi
4413
4414if test "x$enable_dependency_tracking" != xno; then
4415  am_depcomp="$ac_aux_dir/depcomp"
4416  AMDEPBACKSLASH='\'
4417  am__nodep='_no'
4418fi
4419 if test "x$enable_dependency_tracking" != xno; then
4420  AMDEP_TRUE=
4421  AMDEP_FALSE='#'
4422else
4423  AMDEP_TRUE='#'
4424  AMDEP_FALSE=
4425fi
4426
4427
4428
4429depcc="$CC"   am_compiler_list=
4430
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4432$as_echo_n "checking dependency style of $depcc... " >&6; }
4433if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4434  $as_echo_n "(cached) " >&6
4435else
4436  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4437  # We make a subdir and do the tests there.  Otherwise we can end up
4438  # making bogus files that we don't know about and never remove.  For
4439  # instance it was reported that on HP-UX the gcc test will end up
4440  # making a dummy file named 'D' -- because '-MD' means "put the output
4441  # in D".
4442  rm -rf conftest.dir
4443  mkdir conftest.dir
4444  # Copy depcomp to subdir because otherwise we won't find it if we're
4445  # using a relative directory.
4446  cp "$am_depcomp" conftest.dir
4447  cd conftest.dir
4448  # We will build objects and dependencies in a subdirectory because
4449  # it helps to detect inapplicable dependency modes.  For instance
4450  # both Tru64's cc and ICC support -MD to output dependencies as a
4451  # side effect of compilation, but ICC will put the dependencies in
4452  # the current directory while Tru64 will put them in the object
4453  # directory.
4454  mkdir sub
4455
4456  am_cv_CC_dependencies_compiler_type=none
4457  if test "$am_compiler_list" = ""; then
4458     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4459  fi
4460  am__universal=false
4461  case " $depcc " in #(
4462     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4463     esac
4464
4465  for depmode in $am_compiler_list; do
4466    # Setup a source with many dependencies, because some compilers
4467    # like to wrap large dependency lists on column 80 (with \), and
4468    # we should not choose a depcomp mode which is confused by this.
4469    #
4470    # We need to recreate these files for each test, as the compiler may
4471    # overwrite some of them when testing with obscure command lines.
4472    # This happens at least with the AIX C compiler.
4473    : > sub/conftest.c
4474    for i in 1 2 3 4 5 6; do
4475      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4476      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4477      # Solaris 10 /bin/sh.
4478      echo '/* dummy */' > sub/conftst$i.h
4479    done
4480    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4481
4482    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4483    # mode.  It turns out that the SunPro C++ compiler does not properly
4484    # handle '-M -o', and we need to detect this.  Also, some Intel
4485    # versions had trouble with output in subdirs.
4486    am__obj=sub/conftest.${OBJEXT-o}
4487    am__minus_obj="-o $am__obj"
4488    case $depmode in
4489    gcc)
4490      # This depmode causes a compiler race in universal mode.
4491      test "$am__universal" = false || continue
4492      ;;
4493    nosideeffect)
4494      # After this tag, mechanisms are not by side-effect, so they'll
4495      # only be used when explicitly requested.
4496      if test "x$enable_dependency_tracking" = xyes; then
4497	continue
4498      else
4499	break
4500      fi
4501      ;;
4502    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4503      # This compiler won't grok '-c -o', but also, the minuso test has
4504      # not run yet.  These depmodes are late enough in the game, and
4505      # so weak that their functioning should not be impacted.
4506      am__obj=conftest.${OBJEXT-o}
4507      am__minus_obj=
4508      ;;
4509    none) break ;;
4510    esac
4511    if depmode=$depmode \
4512       source=sub/conftest.c object=$am__obj \
4513       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4514       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4515         >/dev/null 2>conftest.err &&
4516       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4517       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4518       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4519       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4520      # icc doesn't choke on unknown options, it will just issue warnings
4521      # or remarks (even with -Werror).  So we grep stderr for any message
4522      # that says an option was ignored or not supported.
4523      # When given -MP, icc 7.0 and 7.1 complain thusly:
4524      #   icc: Command line warning: ignoring option '-M'; no argument required
4525      # The diagnosis changed in icc 8.0:
4526      #   icc: Command line remark: option '-MP' not supported
4527      if (grep 'ignoring option' conftest.err ||
4528          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4529        am_cv_CC_dependencies_compiler_type=$depmode
4530        break
4531      fi
4532    fi
4533  done
4534
4535  cd ..
4536  rm -rf conftest.dir
4537else
4538  am_cv_CC_dependencies_compiler_type=none
4539fi
4540
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4543$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4544CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4545
4546 if
4547  test "x$enable_dependency_tracking" != xno \
4548  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4549  am__fastdepCC_TRUE=
4550  am__fastdepCC_FALSE='#'
4551else
4552  am__fastdepCC_TRUE='#'
4553  am__fastdepCC_FALSE=
4554fi
4555
4556
4557ac_ext=cpp
4558ac_cpp='$CXXCPP $CPPFLAGS'
4559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4562if test -z "$CXX"; then
4563  if test -n "$CCC"; then
4564    CXX=$CCC
4565  else
4566    if test -n "$ac_tool_prefix"; then
4567  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4568  do
4569    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4570set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572$as_echo_n "checking for $ac_word... " >&6; }
4573if ${ac_cv_prog_CXX+:} false; then :
4574  $as_echo_n "(cached) " >&6
4575else
4576  if test -n "$CXX"; then
4577  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582  IFS=$as_save_IFS
4583  test -z "$as_dir" && as_dir=.
4584    for ac_exec_ext in '' $ac_executable_extensions; do
4585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588    break 2
4589  fi
4590done
4591  done
4592IFS=$as_save_IFS
4593
4594fi
4595fi
4596CXX=$ac_cv_prog_CXX
4597if test -n "$CXX"; then
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4599$as_echo "$CXX" >&6; }
4600else
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602$as_echo "no" >&6; }
4603fi
4604
4605
4606    test -n "$CXX" && break
4607  done
4608fi
4609if test -z "$CXX"; then
4610  ac_ct_CXX=$CXX
4611  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4612do
4613  # Extract the first word of "$ac_prog", so it can be a program name with args.
4614set dummy $ac_prog; ac_word=$2
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  if test -n "$ac_ct_CXX"; then
4621  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626  IFS=$as_save_IFS
4627  test -z "$as_dir" && as_dir=.
4628    for ac_exec_ext in '' $ac_executable_extensions; do
4629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630    ac_cv_prog_ac_ct_CXX="$ac_prog"
4631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635  done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4641if test -n "$ac_ct_CXX"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4643$as_echo "$ac_ct_CXX" >&6; }
4644else
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650  test -n "$ac_ct_CXX" && break
4651done
4652
4653  if test "x$ac_ct_CXX" = x; then
4654    CXX="g++"
4655  else
4656    case $cross_compiling:$ac_tool_warned in
4657yes:)
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4660ac_tool_warned=yes ;;
4661esac
4662    CXX=$ac_ct_CXX
4663  fi
4664fi
4665
4666  fi
4667fi
4668# Provide some information about the compiler.
4669$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4670set X $ac_compile
4671ac_compiler=$2
4672for ac_option in --version -v -V -qversion; do
4673  { { ac_try="$ac_compiler $ac_option >&5"
4674case "(($ac_try" in
4675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676  *) ac_try_echo=$ac_try;;
4677esac
4678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4679$as_echo "$ac_try_echo"; } >&5
4680  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4681  ac_status=$?
4682  if test -s conftest.err; then
4683    sed '10a\
4684... rest of stderr output deleted ...
4685         10q' conftest.err >conftest.er1
4686    cat conftest.er1 >&5
4687  fi
4688  rm -f conftest.er1 conftest.err
4689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690  test $ac_status = 0; }
4691done
4692
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4694$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4695if ${ac_cv_cxx_compiler_gnu+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699/* end confdefs.h.  */
4700
4701int
4702main ()
4703{
4704#ifndef __GNUC__
4705       choke me
4706#endif
4707
4708  ;
4709  return 0;
4710}
4711_ACEOF
4712if ac_fn_cxx_try_compile "$LINENO"; then :
4713  ac_compiler_gnu=yes
4714else
4715  ac_compiler_gnu=no
4716fi
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4719
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4722$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4723if test $ac_compiler_gnu = yes; then
4724  GXX=yes
4725else
4726  GXX=
4727fi
4728ac_test_CXXFLAGS=${CXXFLAGS+set}
4729ac_save_CXXFLAGS=$CXXFLAGS
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4731$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4732if ${ac_cv_prog_cxx_g+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4736   ac_cxx_werror_flag=yes
4737   ac_cv_prog_cxx_g=no
4738   CXXFLAGS="-g"
4739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741
4742int
4743main ()
4744{
4745
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750if ac_fn_cxx_try_compile "$LINENO"; then :
4751  ac_cv_prog_cxx_g=yes
4752else
4753  CXXFLAGS=""
4754      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756
4757int
4758main ()
4759{
4760
4761  ;
4762  return 0;
4763}
4764_ACEOF
4765if ac_fn_cxx_try_compile "$LINENO"; then :
4766
4767else
4768  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4769	 CXXFLAGS="-g"
4770	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h.  */
4772
4773int
4774main ()
4775{
4776
4777  ;
4778  return 0;
4779}
4780_ACEOF
4781if ac_fn_cxx_try_compile "$LINENO"; then :
4782  ac_cv_prog_cxx_g=yes
4783fi
4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787fi
4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4792$as_echo "$ac_cv_prog_cxx_g" >&6; }
4793if test "$ac_test_CXXFLAGS" = set; then
4794  CXXFLAGS=$ac_save_CXXFLAGS
4795elif test $ac_cv_prog_cxx_g = yes; then
4796  if test "$GXX" = yes; then
4797    CXXFLAGS="-g -O2"
4798  else
4799    CXXFLAGS="-g"
4800  fi
4801else
4802  if test "$GXX" = yes; then
4803    CXXFLAGS="-O2"
4804  else
4805    CXXFLAGS=
4806  fi
4807fi
4808ac_ext=c
4809ac_cpp='$CPP $CPPFLAGS'
4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
4814depcc="$CXX"  am_compiler_list=
4815
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4817$as_echo_n "checking dependency style of $depcc... " >&6; }
4818if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4822  # We make a subdir and do the tests there.  Otherwise we can end up
4823  # making bogus files that we don't know about and never remove.  For
4824  # instance it was reported that on HP-UX the gcc test will end up
4825  # making a dummy file named 'D' -- because '-MD' means "put the output
4826  # in D".
4827  rm -rf conftest.dir
4828  mkdir conftest.dir
4829  # Copy depcomp to subdir because otherwise we won't find it if we're
4830  # using a relative directory.
4831  cp "$am_depcomp" conftest.dir
4832  cd conftest.dir
4833  # We will build objects and dependencies in a subdirectory because
4834  # it helps to detect inapplicable dependency modes.  For instance
4835  # both Tru64's cc and ICC support -MD to output dependencies as a
4836  # side effect of compilation, but ICC will put the dependencies in
4837  # the current directory while Tru64 will put them in the object
4838  # directory.
4839  mkdir sub
4840
4841  am_cv_CXX_dependencies_compiler_type=none
4842  if test "$am_compiler_list" = ""; then
4843     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4844  fi
4845  am__universal=false
4846  case " $depcc " in #(
4847     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4848     esac
4849
4850  for depmode in $am_compiler_list; do
4851    # Setup a source with many dependencies, because some compilers
4852    # like to wrap large dependency lists on column 80 (with \), and
4853    # we should not choose a depcomp mode which is confused by this.
4854    #
4855    # We need to recreate these files for each test, as the compiler may
4856    # overwrite some of them when testing with obscure command lines.
4857    # This happens at least with the AIX C compiler.
4858    : > sub/conftest.c
4859    for i in 1 2 3 4 5 6; do
4860      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4861      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4862      # Solaris 10 /bin/sh.
4863      echo '/* dummy */' > sub/conftst$i.h
4864    done
4865    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4866
4867    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4868    # mode.  It turns out that the SunPro C++ compiler does not properly
4869    # handle '-M -o', and we need to detect this.  Also, some Intel
4870    # versions had trouble with output in subdirs.
4871    am__obj=sub/conftest.${OBJEXT-o}
4872    am__minus_obj="-o $am__obj"
4873    case $depmode in
4874    gcc)
4875      # This depmode causes a compiler race in universal mode.
4876      test "$am__universal" = false || continue
4877      ;;
4878    nosideeffect)
4879      # After this tag, mechanisms are not by side-effect, so they'll
4880      # only be used when explicitly requested.
4881      if test "x$enable_dependency_tracking" = xyes; then
4882	continue
4883      else
4884	break
4885      fi
4886      ;;
4887    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4888      # This compiler won't grok '-c -o', but also, the minuso test has
4889      # not run yet.  These depmodes are late enough in the game, and
4890      # so weak that their functioning should not be impacted.
4891      am__obj=conftest.${OBJEXT-o}
4892      am__minus_obj=
4893      ;;
4894    none) break ;;
4895    esac
4896    if depmode=$depmode \
4897       source=sub/conftest.c object=$am__obj \
4898       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4899       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4900         >/dev/null 2>conftest.err &&
4901       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4902       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4903       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4904       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4905      # icc doesn't choke on unknown options, it will just issue warnings
4906      # or remarks (even with -Werror).  So we grep stderr for any message
4907      # that says an option was ignored or not supported.
4908      # When given -MP, icc 7.0 and 7.1 complain thusly:
4909      #   icc: Command line warning: ignoring option '-M'; no argument required
4910      # The diagnosis changed in icc 8.0:
4911      #   icc: Command line remark: option '-MP' not supported
4912      if (grep 'ignoring option' conftest.err ||
4913          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4914        am_cv_CXX_dependencies_compiler_type=$depmode
4915        break
4916      fi
4917    fi
4918  done
4919
4920  cd ..
4921  rm -rf conftest.dir
4922else
4923  am_cv_CXX_dependencies_compiler_type=none
4924fi
4925
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4928$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4929CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4930
4931 if
4932  test "x$enable_dependency_tracking" != xno \
4933  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4934  am__fastdepCXX_TRUE=
4935  am__fastdepCXX_FALSE='#'
4936else
4937  am__fastdepCXX_TRUE='#'
4938  am__fastdepCXX_FALSE=
4939fi
4940
4941
4942CFLAGS=$save_CFLAGS
4943
4944
4945
4946
4947
4948# By default we simply use the C compiler to build assembly code.
4949
4950test "${CCAS+set}" = set || CCAS=$CC
4951test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4952
4953
4954
4955depcc="$CCAS"   am_compiler_list=
4956
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4958$as_echo_n "checking dependency style of $depcc... " >&6; }
4959if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4963  # We make a subdir and do the tests there.  Otherwise we can end up
4964  # making bogus files that we don't know about and never remove.  For
4965  # instance it was reported that on HP-UX the gcc test will end up
4966  # making a dummy file named 'D' -- because '-MD' means "put the output
4967  # in D".
4968  rm -rf conftest.dir
4969  mkdir conftest.dir
4970  # Copy depcomp to subdir because otherwise we won't find it if we're
4971  # using a relative directory.
4972  cp "$am_depcomp" conftest.dir
4973  cd conftest.dir
4974  # We will build objects and dependencies in a subdirectory because
4975  # it helps to detect inapplicable dependency modes.  For instance
4976  # both Tru64's cc and ICC support -MD to output dependencies as a
4977  # side effect of compilation, but ICC will put the dependencies in
4978  # the current directory while Tru64 will put them in the object
4979  # directory.
4980  mkdir sub
4981
4982  am_cv_CCAS_dependencies_compiler_type=none
4983  if test "$am_compiler_list" = ""; then
4984     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4985  fi
4986  am__universal=false
4987
4988
4989  for depmode in $am_compiler_list; do
4990    # Setup a source with many dependencies, because some compilers
4991    # like to wrap large dependency lists on column 80 (with \), and
4992    # we should not choose a depcomp mode which is confused by this.
4993    #
4994    # We need to recreate these files for each test, as the compiler may
4995    # overwrite some of them when testing with obscure command lines.
4996    # This happens at least with the AIX C compiler.
4997    : > sub/conftest.c
4998    for i in 1 2 3 4 5 6; do
4999      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5000      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5001      # Solaris 10 /bin/sh.
5002      echo '/* dummy */' > sub/conftst$i.h
5003    done
5004    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5005
5006    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5007    # mode.  It turns out that the SunPro C++ compiler does not properly
5008    # handle '-M -o', and we need to detect this.  Also, some Intel
5009    # versions had trouble with output in subdirs.
5010    am__obj=sub/conftest.${OBJEXT-o}
5011    am__minus_obj="-o $am__obj"
5012    case $depmode in
5013    gcc)
5014      # This depmode causes a compiler race in universal mode.
5015      test "$am__universal" = false || continue
5016      ;;
5017    nosideeffect)
5018      # After this tag, mechanisms are not by side-effect, so they'll
5019      # only be used when explicitly requested.
5020      if test "x$enable_dependency_tracking" = xyes; then
5021	continue
5022      else
5023	break
5024      fi
5025      ;;
5026    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5027      # This compiler won't grok '-c -o', but also, the minuso test has
5028      # not run yet.  These depmodes are late enough in the game, and
5029      # so weak that their functioning should not be impacted.
5030      am__obj=conftest.${OBJEXT-o}
5031      am__minus_obj=
5032      ;;
5033    none) break ;;
5034    esac
5035    if depmode=$depmode \
5036       source=sub/conftest.c object=$am__obj \
5037       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5038       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5039         >/dev/null 2>conftest.err &&
5040       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5041       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5042       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5043       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5044      # icc doesn't choke on unknown options, it will just issue warnings
5045      # or remarks (even with -Werror).  So we grep stderr for any message
5046      # that says an option was ignored or not supported.
5047      # When given -MP, icc 7.0 and 7.1 complain thusly:
5048      #   icc: Command line warning: ignoring option '-M'; no argument required
5049      # The diagnosis changed in icc 8.0:
5050      #   icc: Command line remark: option '-MP' not supported
5051      if (grep 'ignoring option' conftest.err ||
5052          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5053        am_cv_CCAS_dependencies_compiler_type=$depmode
5054        break
5055      fi
5056    fi
5057  done
5058
5059  cd ..
5060  rm -rf conftest.dir
5061else
5062  am_cv_CCAS_dependencies_compiler_type=none
5063fi
5064
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5067$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5068CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5069
5070 if
5071  test "x$enable_dependency_tracking" != xno \
5072  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5073  am__fastdepCCAS_TRUE=
5074  am__fastdepCCAS_FALSE='#'
5075else
5076  am__fastdepCCAS_TRUE='#'
5077  am__fastdepCCAS_FALSE=
5078fi
5079
5080
5081
5082case `pwd` in
5083  *\ * | *\	*)
5084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5085$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5086esac
5087
5088
5089
5090macro_version='2.2.7a'
5091macro_revision='1.3134'
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105ltmain="$ac_aux_dir/ltmain.sh"
5106
5107# Backslashify metacharacters that are still active within
5108# double-quoted strings.
5109sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5110
5111# Same as above, but do not quote variable references.
5112double_quote_subst='s/\(["`\\]\)/\\\1/g'
5113
5114# Sed substitution to delay expansion of an escaped shell variable in a
5115# double_quote_subst'ed string.
5116delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5117
5118# Sed substitution to delay expansion of an escaped single quote.
5119delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5120
5121# Sed substitution to avoid accidental globbing in evaled expressions
5122no_glob_subst='s/\*/\\\*/g'
5123
5124ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5125ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5126ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5127
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5129$as_echo_n "checking how to print strings... " >&6; }
5130# Test print first, because it will be a builtin if present.
5131if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5132   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5133  ECHO='print -r --'
5134elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5135  ECHO='printf %s\n'
5136else
5137  # Use this function as a fallback that always works.
5138  func_fallback_echo ()
5139  {
5140    eval 'cat <<_LTECHO_EOF
5141$1
5142_LTECHO_EOF'
5143  }
5144  ECHO='func_fallback_echo'
5145fi
5146
5147# func_echo_all arg...
5148# Invoke $ECHO with all args, space-separated.
5149func_echo_all ()
5150{
5151    $ECHO ""
5152}
5153
5154case "$ECHO" in
5155  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5156$as_echo "printf" >&6; } ;;
5157  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5158$as_echo "print -r" >&6; } ;;
5159  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5160$as_echo "cat" >&6; } ;;
5161esac
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5177$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5178if ${ac_cv_path_SED+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5182     for ac_i in 1 2 3 4 5 6 7; do
5183       ac_script="$ac_script$as_nl$ac_script"
5184     done
5185     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5186     { ac_script=; unset ac_script;}
5187     if test -z "$SED"; then
5188  ac_path_SED_found=false
5189  # Loop through the user's path and test for each of PROGNAME-LIST
5190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193  IFS=$as_save_IFS
5194  test -z "$as_dir" && as_dir=.
5195    for ac_prog in sed gsed; do
5196    for ac_exec_ext in '' $ac_executable_extensions; do
5197      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5198      as_fn_executable_p "$ac_path_SED" || continue
5199# Check for GNU ac_path_SED and select it if it is found.
5200  # Check for GNU $ac_path_SED
5201case `"$ac_path_SED" --version 2>&1` in
5202*GNU*)
5203  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5204*)
5205  ac_count=0
5206  $as_echo_n 0123456789 >"conftest.in"
5207  while :
5208  do
5209    cat "conftest.in" "conftest.in" >"conftest.tmp"
5210    mv "conftest.tmp" "conftest.in"
5211    cp "conftest.in" "conftest.nl"
5212    $as_echo '' >> "conftest.nl"
5213    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215    as_fn_arith $ac_count + 1 && ac_count=$as_val
5216    if test $ac_count -gt ${ac_path_SED_max-0}; then
5217      # Best one so far, save it but keep looking for a better one
5218      ac_cv_path_SED="$ac_path_SED"
5219      ac_path_SED_max=$ac_count
5220    fi
5221    # 10*(2^10) chars as input seems more than enough
5222    test $ac_count -gt 10 && break
5223  done
5224  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225esac
5226
5227      $ac_path_SED_found && break 3
5228    done
5229  done
5230  done
5231IFS=$as_save_IFS
5232  if test -z "$ac_cv_path_SED"; then
5233    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5234  fi
5235else
5236  ac_cv_path_SED=$SED
5237fi
5238
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5241$as_echo "$ac_cv_path_SED" >&6; }
5242 SED="$ac_cv_path_SED"
5243  rm -f conftest.sed
5244
5245test -z "$SED" && SED=sed
5246Xsed="$SED -e 1s/^X//"
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5259$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5260if ${ac_cv_path_GREP+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  if test -z "$GREP"; then
5264  ac_path_GREP_found=false
5265  # Loop through the user's path and test for each of PROGNAME-LIST
5266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5268do
5269  IFS=$as_save_IFS
5270  test -z "$as_dir" && as_dir=.
5271    for ac_prog in grep ggrep; do
5272    for ac_exec_ext in '' $ac_executable_extensions; do
5273      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5274      as_fn_executable_p "$ac_path_GREP" || continue
5275# Check for GNU ac_path_GREP and select it if it is found.
5276  # Check for GNU $ac_path_GREP
5277case `"$ac_path_GREP" --version 2>&1` in
5278*GNU*)
5279  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5280*)
5281  ac_count=0
5282  $as_echo_n 0123456789 >"conftest.in"
5283  while :
5284  do
5285    cat "conftest.in" "conftest.in" >"conftest.tmp"
5286    mv "conftest.tmp" "conftest.in"
5287    cp "conftest.in" "conftest.nl"
5288    $as_echo 'GREP' >> "conftest.nl"
5289    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291    as_fn_arith $ac_count + 1 && ac_count=$as_val
5292    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5293      # Best one so far, save it but keep looking for a better one
5294      ac_cv_path_GREP="$ac_path_GREP"
5295      ac_path_GREP_max=$ac_count
5296    fi
5297    # 10*(2^10) chars as input seems more than enough
5298    test $ac_count -gt 10 && break
5299  done
5300  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5301esac
5302
5303      $ac_path_GREP_found && break 3
5304    done
5305  done
5306  done
5307IFS=$as_save_IFS
5308  if test -z "$ac_cv_path_GREP"; then
5309    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5310  fi
5311else
5312  ac_cv_path_GREP=$GREP
5313fi
5314
5315fi
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5317$as_echo "$ac_cv_path_GREP" >&6; }
5318 GREP="$ac_cv_path_GREP"
5319
5320
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5322$as_echo_n "checking for egrep... " >&6; }
5323if ${ac_cv_path_EGREP+:} false; then :
5324  $as_echo_n "(cached) " >&6
5325else
5326  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5327   then ac_cv_path_EGREP="$GREP -E"
5328   else
5329     if test -z "$EGREP"; then
5330  ac_path_EGREP_found=false
5331  # Loop through the user's path and test for each of PROGNAME-LIST
5332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5334do
5335  IFS=$as_save_IFS
5336  test -z "$as_dir" && as_dir=.
5337    for ac_prog in egrep; do
5338    for ac_exec_ext in '' $ac_executable_extensions; do
5339      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5340      as_fn_executable_p "$ac_path_EGREP" || continue
5341# Check for GNU ac_path_EGREP and select it if it is found.
5342  # Check for GNU $ac_path_EGREP
5343case `"$ac_path_EGREP" --version 2>&1` in
5344*GNU*)
5345  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5346*)
5347  ac_count=0
5348  $as_echo_n 0123456789 >"conftest.in"
5349  while :
5350  do
5351    cat "conftest.in" "conftest.in" >"conftest.tmp"
5352    mv "conftest.tmp" "conftest.in"
5353    cp "conftest.in" "conftest.nl"
5354    $as_echo 'EGREP' >> "conftest.nl"
5355    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5356    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5357    as_fn_arith $ac_count + 1 && ac_count=$as_val
5358    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5359      # Best one so far, save it but keep looking for a better one
5360      ac_cv_path_EGREP="$ac_path_EGREP"
5361      ac_path_EGREP_max=$ac_count
5362    fi
5363    # 10*(2^10) chars as input seems more than enough
5364    test $ac_count -gt 10 && break
5365  done
5366  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5367esac
5368
5369      $ac_path_EGREP_found && break 3
5370    done
5371  done
5372  done
5373IFS=$as_save_IFS
5374  if test -z "$ac_cv_path_EGREP"; then
5375    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5376  fi
5377else
5378  ac_cv_path_EGREP=$EGREP
5379fi
5380
5381   fi
5382fi
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5384$as_echo "$ac_cv_path_EGREP" >&6; }
5385 EGREP="$ac_cv_path_EGREP"
5386
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5389$as_echo_n "checking for fgrep... " >&6; }
5390if ${ac_cv_path_FGREP+:} false; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5394   then ac_cv_path_FGREP="$GREP -F"
5395   else
5396     if test -z "$FGREP"; then
5397  ac_path_FGREP_found=false
5398  # Loop through the user's path and test for each of PROGNAME-LIST
5399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5401do
5402  IFS=$as_save_IFS
5403  test -z "$as_dir" && as_dir=.
5404    for ac_prog in fgrep; do
5405    for ac_exec_ext in '' $ac_executable_extensions; do
5406      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5407      as_fn_executable_p "$ac_path_FGREP" || continue
5408# Check for GNU ac_path_FGREP and select it if it is found.
5409  # Check for GNU $ac_path_FGREP
5410case `"$ac_path_FGREP" --version 2>&1` in
5411*GNU*)
5412  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5413*)
5414  ac_count=0
5415  $as_echo_n 0123456789 >"conftest.in"
5416  while :
5417  do
5418    cat "conftest.in" "conftest.in" >"conftest.tmp"
5419    mv "conftest.tmp" "conftest.in"
5420    cp "conftest.in" "conftest.nl"
5421    $as_echo 'FGREP' >> "conftest.nl"
5422    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5423    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5424    as_fn_arith $ac_count + 1 && ac_count=$as_val
5425    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5426      # Best one so far, save it but keep looking for a better one
5427      ac_cv_path_FGREP="$ac_path_FGREP"
5428      ac_path_FGREP_max=$ac_count
5429    fi
5430    # 10*(2^10) chars as input seems more than enough
5431    test $ac_count -gt 10 && break
5432  done
5433  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5434esac
5435
5436      $ac_path_FGREP_found && break 3
5437    done
5438  done
5439  done
5440IFS=$as_save_IFS
5441  if test -z "$ac_cv_path_FGREP"; then
5442    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5443  fi
5444else
5445  ac_cv_path_FGREP=$FGREP
5446fi
5447
5448   fi
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5451$as_echo "$ac_cv_path_FGREP" >&6; }
5452 FGREP="$ac_cv_path_FGREP"
5453
5454
5455test -z "$GREP" && GREP=grep
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475# Check whether --with-gnu-ld was given.
5476if test "${with_gnu_ld+set}" = set; then :
5477  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5478else
5479  with_gnu_ld=no
5480fi
5481
5482ac_prog=ld
5483if test "$GCC" = yes; then
5484  # Check if gcc -print-prog-name=ld gives a path.
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5486$as_echo_n "checking for ld used by $CC... " >&6; }
5487  case $host in
5488  *-*-mingw*)
5489    # gcc leaves a trailing carriage return which upsets mingw
5490    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5491  *)
5492    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5493  esac
5494  case $ac_prog in
5495    # Accept absolute paths.
5496    [\\/]* | ?:[\\/]*)
5497      re_direlt='/[^/][^/]*/\.\./'
5498      # Canonicalize the pathname of ld
5499      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5500      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5501	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5502      done
5503      test -z "$LD" && LD="$ac_prog"
5504      ;;
5505  "")
5506    # If it fails, then pretend we aren't using GCC.
5507    ac_prog=ld
5508    ;;
5509  *)
5510    # If it is relative, then search for the first ld in PATH.
5511    with_gnu_ld=unknown
5512    ;;
5513  esac
5514elif test "$with_gnu_ld" = yes; then
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5516$as_echo_n "checking for GNU ld... " >&6; }
5517else
5518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5519$as_echo_n "checking for non-GNU ld... " >&6; }
5520fi
5521if ${lt_cv_path_LD+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  if test -z "$LD"; then
5525  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5526  for ac_dir in $PATH; do
5527    IFS="$lt_save_ifs"
5528    test -z "$ac_dir" && ac_dir=.
5529    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5530      lt_cv_path_LD="$ac_dir/$ac_prog"
5531      # Check to see if the program is GNU ld.  I'd rather use --version,
5532      # but apparently some variants of GNU ld only accept -v.
5533      # Break only if it was the GNU/non-GNU ld that we prefer.
5534      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5535      *GNU* | *'with BFD'*)
5536	test "$with_gnu_ld" != no && break
5537	;;
5538      *)
5539	test "$with_gnu_ld" != yes && break
5540	;;
5541      esac
5542    fi
5543  done
5544  IFS="$lt_save_ifs"
5545else
5546  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5547fi
5548fi
5549
5550LD="$lt_cv_path_LD"
5551if test -n "$LD"; then
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5553$as_echo "$LD" >&6; }
5554else
5555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5560$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5561if ${lt_cv_prog_gnu_ld+:} false; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5565case `$LD -v 2>&1 </dev/null` in
5566*GNU* | *'with BFD'*)
5567  lt_cv_prog_gnu_ld=yes
5568  ;;
5569*)
5570  lt_cv_prog_gnu_ld=no
5571  ;;
5572esac
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5575$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5576with_gnu_ld=$lt_cv_prog_gnu_ld
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5587$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5588if ${lt_cv_path_NM+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  if test -n "$NM"; then
5592  # Let the user override the test.
5593  lt_cv_path_NM="$NM"
5594else
5595  lt_nm_to_check="${ac_tool_prefix}nm"
5596  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5597    lt_nm_to_check="$lt_nm_to_check nm"
5598  fi
5599  for lt_tmp_nm in $lt_nm_to_check; do
5600    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5601    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5602      IFS="$lt_save_ifs"
5603      test -z "$ac_dir" && ac_dir=.
5604      tmp_nm="$ac_dir/$lt_tmp_nm"
5605      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5606	# Check to see if the nm accepts a BSD-compat flag.
5607	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5608	#   nm: unknown option "B" ignored
5609	# Tru64's nm complains that /dev/null is an invalid object file
5610	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5611	*/dev/null* | *'Invalid file or object type'*)
5612	  lt_cv_path_NM="$tmp_nm -B"
5613	  break
5614	  ;;
5615	*)
5616	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5617	  */dev/null*)
5618	    lt_cv_path_NM="$tmp_nm -p"
5619	    break
5620	    ;;
5621	  *)
5622	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5623	    continue # so that we can try to find one that supports BSD flags
5624	    ;;
5625	  esac
5626	  ;;
5627	esac
5628      fi
5629    done
5630    IFS="$lt_save_ifs"
5631  done
5632  : ${lt_cv_path_NM=no}
5633fi
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5636$as_echo "$lt_cv_path_NM" >&6; }
5637if test "$lt_cv_path_NM" != "no"; then
5638  NM="$lt_cv_path_NM"
5639else
5640  # Didn't find any BSD compatible name lister, look for dumpbin.
5641  if test -n "$DUMPBIN"; then :
5642    # Let the user override the test.
5643  else
5644    if test -n "$ac_tool_prefix"; then
5645  for ac_prog in dumpbin "link -dump"
5646  do
5647    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
5651if ${ac_cv_prog_DUMPBIN+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  if test -n "$DUMPBIN"; then
5655  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662    for ac_exec_ext in '' $ac_executable_extensions; do
5663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669  done
5670IFS=$as_save_IFS
5671
5672fi
5673fi
5674DUMPBIN=$ac_cv_prog_DUMPBIN
5675if test -n "$DUMPBIN"; then
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5677$as_echo "$DUMPBIN" >&6; }
5678else
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682
5683
5684    test -n "$DUMPBIN" && break
5685  done
5686fi
5687if test -z "$DUMPBIN"; then
5688  ac_ct_DUMPBIN=$DUMPBIN
5689  for ac_prog in dumpbin "link -dump"
5690do
5691  # Extract the first word of "$ac_prog", so it can be a program name with args.
5692set dummy $ac_prog; ac_word=$2
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694$as_echo_n "checking for $ac_word... " >&6; }
5695if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5696  $as_echo_n "(cached) " >&6
5697else
5698  if test -n "$ac_ct_DUMPBIN"; then
5699  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5700else
5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704  IFS=$as_save_IFS
5705  test -z "$as_dir" && as_dir=.
5706    for ac_exec_ext in '' $ac_executable_extensions; do
5707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710    break 2
5711  fi
5712done
5713  done
5714IFS=$as_save_IFS
5715
5716fi
5717fi
5718ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5719if test -n "$ac_ct_DUMPBIN"; then
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5721$as_echo "$ac_ct_DUMPBIN" >&6; }
5722else
5723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724$as_echo "no" >&6; }
5725fi
5726
5727
5728  test -n "$ac_ct_DUMPBIN" && break
5729done
5730
5731  if test "x$ac_ct_DUMPBIN" = x; then
5732    DUMPBIN=":"
5733  else
5734    case $cross_compiling:$ac_tool_warned in
5735yes:)
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5738ac_tool_warned=yes ;;
5739esac
5740    DUMPBIN=$ac_ct_DUMPBIN
5741  fi
5742fi
5743
5744    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5745    *COFF*)
5746      DUMPBIN="$DUMPBIN -symbols"
5747      ;;
5748    *)
5749      DUMPBIN=:
5750      ;;
5751    esac
5752  fi
5753
5754  if test "$DUMPBIN" != ":"; then
5755    NM="$DUMPBIN"
5756  fi
5757fi
5758test -z "$NM" && NM=nm
5759
5760
5761
5762
5763
5764
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5766$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5767if ${lt_cv_nm_interface+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  lt_cv_nm_interface="BSD nm"
5771  echo "int some_variable = 0;" > conftest.$ac_ext
5772  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5773  (eval "$ac_compile" 2>conftest.err)
5774  cat conftest.err >&5
5775  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5776  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5777  cat conftest.err >&5
5778  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5779  cat conftest.out >&5
5780  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5781    lt_cv_nm_interface="MS dumpbin"
5782  fi
5783  rm -f conftest*
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5786$as_echo "$lt_cv_nm_interface" >&6; }
5787
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5789$as_echo_n "checking whether ln -s works... " >&6; }
5790LN_S=$as_ln_s
5791if test "$LN_S" = "ln -s"; then
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793$as_echo "yes" >&6; }
5794else
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5796$as_echo "no, using $LN_S" >&6; }
5797fi
5798
5799# find the maximum length of command line arguments
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5801$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5802if ${lt_cv_sys_max_cmd_len+:} false; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805    i=0
5806  teststring="ABCD"
5807
5808  case $build_os in
5809  msdosdjgpp*)
5810    # On DJGPP, this test can blow up pretty badly due to problems in libc
5811    # (any single argument exceeding 2000 bytes causes a buffer overrun
5812    # during glob expansion).  Even if it were fixed, the result of this
5813    # check would be larger than it should be.
5814    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5815    ;;
5816
5817  gnu*)
5818    # Under GNU Hurd, this test is not required because there is
5819    # no limit to the length of command line arguments.
5820    # Libtool will interpret -1 as no limit whatsoever
5821    lt_cv_sys_max_cmd_len=-1;
5822    ;;
5823
5824  cygwin* | mingw* | cegcc*)
5825    # On Win9x/ME, this test blows up -- it succeeds, but takes
5826    # about 5 minutes as the teststring grows exponentially.
5827    # Worse, since 9x/ME are not pre-emptively multitasking,
5828    # you end up with a "frozen" computer, even though with patience
5829    # the test eventually succeeds (with a max line length of 256k).
5830    # Instead, let's just punt: use the minimum linelength reported by
5831    # all of the supported platforms: 8192 (on NT/2K/XP).
5832    lt_cv_sys_max_cmd_len=8192;
5833    ;;
5834
5835  mint*)
5836    # On MiNT this can take a long time and run out of memory.
5837    lt_cv_sys_max_cmd_len=8192;
5838    ;;
5839
5840  amigaos*)
5841    # On AmigaOS with pdksh, this test takes hours, literally.
5842    # So we just punt and use a minimum line length of 8192.
5843    lt_cv_sys_max_cmd_len=8192;
5844    ;;
5845
5846  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5847    # This has been around since 386BSD, at least.  Likely further.
5848    if test -x /sbin/sysctl; then
5849      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5850    elif test -x /usr/sbin/sysctl; then
5851      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5852    else
5853      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5854    fi
5855    # And add a safety zone
5856    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5857    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5858    ;;
5859
5860  interix*)
5861    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5862    lt_cv_sys_max_cmd_len=196608
5863    ;;
5864
5865  osf*)
5866    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5867    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5868    # nice to cause kernel panics so lets avoid the loop below.
5869    # First set a reasonable default.
5870    lt_cv_sys_max_cmd_len=16384
5871    #
5872    if test -x /sbin/sysconfig; then
5873      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5874        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5875      esac
5876    fi
5877    ;;
5878  sco3.2v5*)
5879    lt_cv_sys_max_cmd_len=102400
5880    ;;
5881  sysv5* | sco5v6* | sysv4.2uw2*)
5882    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5883    if test -n "$kargmax"; then
5884      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5885    else
5886      lt_cv_sys_max_cmd_len=32768
5887    fi
5888    ;;
5889  *)
5890    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5891    if test -n "$lt_cv_sys_max_cmd_len"; then
5892      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5894    else
5895      # Make teststring a little bigger before we do anything with it.
5896      # a 1K string should be a reasonable start.
5897      for i in 1 2 3 4 5 6 7 8 ; do
5898        teststring=$teststring$teststring
5899      done
5900      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5901      # If test is not a shell built-in, we'll probably end up computing a
5902      # maximum length that is only half of the actual maximum length, but
5903      # we can't tell.
5904      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5905	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5906	      test $i != 17 # 1/2 MB should be enough
5907      do
5908        i=`expr $i + 1`
5909        teststring=$teststring$teststring
5910      done
5911      # Only check the string length outside the loop.
5912      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5913      teststring=
5914      # Add a significant safety factor because C++ compilers can tack on
5915      # massive amounts of additional arguments before passing them to the
5916      # linker.  It appears as though 1/2 is a usable value.
5917      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5918    fi
5919    ;;
5920  esac
5921
5922fi
5923
5924if test -n $lt_cv_sys_max_cmd_len ; then
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5926$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5927else
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5929$as_echo "none" >&6; }
5930fi
5931max_cmd_len=$lt_cv_sys_max_cmd_len
5932
5933
5934
5935
5936
5937
5938: ${CP="cp -f"}
5939: ${MV="mv -f"}
5940: ${RM="rm -f"}
5941
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5943$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5944# Try some XSI features
5945xsi_shell=no
5946( _lt_dummy="a/b/c"
5947  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5948      = c,a/b,, \
5949    && eval 'test $(( 1 + 1 )) -eq 2 \
5950    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5951  && xsi_shell=yes
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5953$as_echo "$xsi_shell" >&6; }
5954
5955
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5957$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5958lt_shell_append=no
5959( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5960    >/dev/null 2>&1 \
5961  && lt_shell_append=yes
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5963$as_echo "$lt_shell_append" >&6; }
5964
5965
5966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5967  lt_unset=unset
5968else
5969  lt_unset=false
5970fi
5971
5972
5973
5974
5975
5976# test EBCDIC or ASCII
5977case `echo X|tr X '\101'` in
5978 A) # ASCII based system
5979    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5980  lt_SP2NL='tr \040 \012'
5981  lt_NL2SP='tr \015\012 \040\040'
5982  ;;
5983 *) # EBCDIC based system
5984  lt_SP2NL='tr \100 \n'
5985  lt_NL2SP='tr \r\n \100\100'
5986  ;;
5987esac
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5998$as_echo_n "checking for $LD option to reload object files... " >&6; }
5999if ${lt_cv_ld_reload_flag+:} false; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  lt_cv_ld_reload_flag='-r'
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6005$as_echo "$lt_cv_ld_reload_flag" >&6; }
6006reload_flag=$lt_cv_ld_reload_flag
6007case $reload_flag in
6008"" | " "*) ;;
6009*) reload_flag=" $reload_flag" ;;
6010esac
6011reload_cmds='$LD$reload_flag -o $output$reload_objs'
6012case $host_os in
6013  darwin*)
6014    if test "$GCC" = yes; then
6015      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6016    else
6017      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6018    fi
6019    ;;
6020esac
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030if test -n "$ac_tool_prefix"; then
6031  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}objdump; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_prog_OBJDUMP+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  if test -n "$OBJDUMP"; then
6039  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046    for ac_exec_ext in '' $ac_executable_extensions; do
6047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053  done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058OBJDUMP=$ac_cv_prog_OBJDUMP
6059if test -n "$OBJDUMP"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6061$as_echo "$OBJDUMP" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068fi
6069if test -z "$ac_cv_prog_OBJDUMP"; then
6070  ac_ct_OBJDUMP=$OBJDUMP
6071  # Extract the first word of "objdump", so it can be a program name with args.
6072set dummy objdump; ac_word=$2
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074$as_echo_n "checking for $ac_word... " >&6; }
6075if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  if test -n "$ac_ct_OBJDUMP"; then
6079  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084  IFS=$as_save_IFS
6085  test -z "$as_dir" && as_dir=.
6086    for ac_exec_ext in '' $ac_executable_extensions; do
6087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090    break 2
6091  fi
6092done
6093  done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6099if test -n "$ac_ct_OBJDUMP"; then
6100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6101$as_echo "$ac_ct_OBJDUMP" >&6; }
6102else
6103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106
6107  if test "x$ac_ct_OBJDUMP" = x; then
6108    OBJDUMP="false"
6109  else
6110    case $cross_compiling:$ac_tool_warned in
6111yes:)
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114ac_tool_warned=yes ;;
6115esac
6116    OBJDUMP=$ac_ct_OBJDUMP
6117  fi
6118else
6119  OBJDUMP="$ac_cv_prog_OBJDUMP"
6120fi
6121
6122test -z "$OBJDUMP" && OBJDUMP=objdump
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6133$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6134if ${lt_cv_deplibs_check_method+:} false; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  lt_cv_file_magic_cmd='$MAGIC_CMD'
6138lt_cv_file_magic_test_file=
6139lt_cv_deplibs_check_method='unknown'
6140# Need to set the preceding variable on all platforms that support
6141# interlibrary dependencies.
6142# 'none' -- dependencies not supported.
6143# `unknown' -- same as none, but documents that we really don't know.
6144# 'pass_all' -- all dependencies passed with no checks.
6145# 'test_compile' -- check by making test program.
6146# 'file_magic [[regex]]' -- check by looking for files in library path
6147# which responds to the $file_magic_cmd with a given extended regex.
6148# If you have `file' or equivalent on your system and you're not sure
6149# whether `pass_all' will *always* work, you probably want this one.
6150
6151case $host_os in
6152aix[4-9]*)
6153  lt_cv_deplibs_check_method=pass_all
6154  ;;
6155
6156beos*)
6157  lt_cv_deplibs_check_method=pass_all
6158  ;;
6159
6160bsdi[45]*)
6161  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6162  lt_cv_file_magic_cmd='/usr/bin/file -L'
6163  lt_cv_file_magic_test_file=/shlib/libc.so
6164  ;;
6165
6166cygwin*)
6167  # func_win32_libid is a shell function defined in ltmain.sh
6168  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6169  lt_cv_file_magic_cmd='func_win32_libid'
6170  ;;
6171
6172mingw* | pw32*)
6173  # Base MSYS/MinGW do not provide the 'file' command needed by
6174  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6175  # unless we find 'file', for example because we are cross-compiling.
6176  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6177  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6178    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6179    lt_cv_file_magic_cmd='func_win32_libid'
6180  else
6181    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6182    lt_cv_file_magic_cmd='$OBJDUMP -f'
6183  fi
6184  ;;
6185
6186cegcc*)
6187  # use the weaker test based on 'objdump'. See mingw*.
6188  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6189  lt_cv_file_magic_cmd='$OBJDUMP -f'
6190  ;;
6191
6192darwin* | rhapsody*)
6193  lt_cv_deplibs_check_method=pass_all
6194  ;;
6195
6196freebsd* | dragonfly*)
6197  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6198    case $host_cpu in
6199    i*86 )
6200      # Not sure whether the presence of OpenBSD here was a mistake.
6201      # Let's accept both of them until this is cleared up.
6202      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6203      lt_cv_file_magic_cmd=/usr/bin/file
6204      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6205      ;;
6206    esac
6207  else
6208    lt_cv_deplibs_check_method=pass_all
6209  fi
6210  ;;
6211
6212gnu*)
6213  lt_cv_deplibs_check_method=pass_all
6214  ;;
6215
6216haiku*)
6217  lt_cv_deplibs_check_method=pass_all
6218  ;;
6219
6220hpux10.20* | hpux11*)
6221  lt_cv_file_magic_cmd=/usr/bin/file
6222  case $host_cpu in
6223  ia64*)
6224    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6225    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6226    ;;
6227  hppa*64*)
6228    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]'
6229    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6230    ;;
6231  *)
6232    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6233    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6234    ;;
6235  esac
6236  ;;
6237
6238interix[3-9]*)
6239  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6240  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6241  ;;
6242
6243irix5* | irix6* | nonstopux*)
6244  case $LD in
6245  *-32|*"-32 ") libmagic=32-bit;;
6246  *-n32|*"-n32 ") libmagic=N32;;
6247  *-64|*"-64 ") libmagic=64-bit;;
6248  *) libmagic=never-match;;
6249  esac
6250  lt_cv_deplibs_check_method=pass_all
6251  ;;
6252
6253# This must be Linux ELF.
6254linux* | k*bsd*-gnu | kopensolaris*-gnu)
6255  lt_cv_deplibs_check_method=pass_all
6256  ;;
6257
6258netbsd*)
6259  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6260    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6261  else
6262    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6263  fi
6264  ;;
6265
6266newos6*)
6267  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6268  lt_cv_file_magic_cmd=/usr/bin/file
6269  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6270  ;;
6271
6272*nto* | *qnx*)
6273  lt_cv_deplibs_check_method=pass_all
6274  ;;
6275
6276openbsd*)
6277  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6278    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6279  else
6280    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6281  fi
6282  ;;
6283
6284osf3* | osf4* | osf5*)
6285  lt_cv_deplibs_check_method=pass_all
6286  ;;
6287
6288rdos*)
6289  lt_cv_deplibs_check_method=pass_all
6290  ;;
6291
6292solaris*)
6293  lt_cv_deplibs_check_method=pass_all
6294  ;;
6295
6296sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6297  lt_cv_deplibs_check_method=pass_all
6298  ;;
6299
6300sysv4 | sysv4.3*)
6301  case $host_vendor in
6302  motorola)
6303    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]'
6304    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6305    ;;
6306  ncr)
6307    lt_cv_deplibs_check_method=pass_all
6308    ;;
6309  sequent)
6310    lt_cv_file_magic_cmd='/bin/file'
6311    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6312    ;;
6313  sni)
6314    lt_cv_file_magic_cmd='/bin/file'
6315    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6316    lt_cv_file_magic_test_file=/lib/libc.so
6317    ;;
6318  siemens)
6319    lt_cv_deplibs_check_method=pass_all
6320    ;;
6321  pc)
6322    lt_cv_deplibs_check_method=pass_all
6323    ;;
6324  esac
6325  ;;
6326
6327tpf*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330esac
6331
6332fi
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6334$as_echo "$lt_cv_deplibs_check_method" >&6; }
6335file_magic_cmd=$lt_cv_file_magic_cmd
6336deplibs_check_method=$lt_cv_deplibs_check_method
6337test -z "$deplibs_check_method" && deplibs_check_method=unknown
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350if test -n "$ac_tool_prefix"; then
6351  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}ar; ac_word=$2
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354$as_echo_n "checking for $ac_word... " >&6; }
6355if ${ac_cv_prog_AR+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  if test -n "$AR"; then
6359  ac_cv_prog_AR="$AR" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364  IFS=$as_save_IFS
6365  test -z "$as_dir" && as_dir=.
6366    for ac_exec_ext in '' $ac_executable_extensions; do
6367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368    ac_cv_prog_AR="${ac_tool_prefix}ar"
6369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370    break 2
6371  fi
6372done
6373  done
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378AR=$ac_cv_prog_AR
6379if test -n "$AR"; then
6380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6381$as_echo "$AR" >&6; }
6382else
6383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384$as_echo "no" >&6; }
6385fi
6386
6387
6388fi
6389if test -z "$ac_cv_prog_AR"; then
6390  ac_ct_AR=$AR
6391  # Extract the first word of "ar", so it can be a program name with args.
6392set dummy ar; ac_word=$2
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
6395if ${ac_cv_prog_ac_ct_AR+:} false; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  if test -n "$ac_ct_AR"; then
6399  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404  IFS=$as_save_IFS
6405  test -z "$as_dir" && as_dir=.
6406    for ac_exec_ext in '' $ac_executable_extensions; do
6407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408    ac_cv_prog_ac_ct_AR="ar"
6409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410    break 2
6411  fi
6412done
6413  done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418ac_ct_AR=$ac_cv_prog_ac_ct_AR
6419if test -n "$ac_ct_AR"; then
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6421$as_echo "$ac_ct_AR" >&6; }
6422else
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
6426
6427  if test "x$ac_ct_AR" = x; then
6428    AR="false"
6429  else
6430    case $cross_compiling:$ac_tool_warned in
6431yes:)
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434ac_tool_warned=yes ;;
6435esac
6436    AR=$ac_ct_AR
6437  fi
6438else
6439  AR="$ac_cv_prog_AR"
6440fi
6441
6442test -z "$AR" && AR=ar
6443test -z "$AR_FLAGS" && AR_FLAGS=cru
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455if test -n "$ac_tool_prefix"; then
6456  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6457set dummy ${ac_tool_prefix}strip; ac_word=$2
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459$as_echo_n "checking for $ac_word... " >&6; }
6460if ${ac_cv_prog_STRIP+:} false; then :
6461  $as_echo_n "(cached) " >&6
6462else
6463  if test -n "$STRIP"; then
6464  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6465else
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469  IFS=$as_save_IFS
6470  test -z "$as_dir" && as_dir=.
6471    for ac_exec_ext in '' $ac_executable_extensions; do
6472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475    break 2
6476  fi
6477done
6478  done
6479IFS=$as_save_IFS
6480
6481fi
6482fi
6483STRIP=$ac_cv_prog_STRIP
6484if test -n "$STRIP"; then
6485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6486$as_echo "$STRIP" >&6; }
6487else
6488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489$as_echo "no" >&6; }
6490fi
6491
6492
6493fi
6494if test -z "$ac_cv_prog_STRIP"; then
6495  ac_ct_STRIP=$STRIP
6496  # Extract the first word of "strip", so it can be a program name with args.
6497set dummy strip; ac_word=$2
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499$as_echo_n "checking for $ac_word... " >&6; }
6500if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6501  $as_echo_n "(cached) " >&6
6502else
6503  if test -n "$ac_ct_STRIP"; then
6504  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509  IFS=$as_save_IFS
6510  test -z "$as_dir" && as_dir=.
6511    for ac_exec_ext in '' $ac_executable_extensions; do
6512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513    ac_cv_prog_ac_ct_STRIP="strip"
6514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515    break 2
6516  fi
6517done
6518  done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6524if test -n "$ac_ct_STRIP"; then
6525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6526$as_echo "$ac_ct_STRIP" >&6; }
6527else
6528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529$as_echo "no" >&6; }
6530fi
6531
6532  if test "x$ac_ct_STRIP" = x; then
6533    STRIP=":"
6534  else
6535    case $cross_compiling:$ac_tool_warned in
6536yes:)
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539ac_tool_warned=yes ;;
6540esac
6541    STRIP=$ac_ct_STRIP
6542  fi
6543else
6544  STRIP="$ac_cv_prog_STRIP"
6545fi
6546
6547test -z "$STRIP" && STRIP=:
6548
6549
6550
6551
6552
6553
6554if test -n "$ac_tool_prefix"; then
6555  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  if test -n "$RANLIB"; then
6563  ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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
6582RANLIB=$ac_cv_prog_RANLIB
6583if test -n "$RANLIB"; then
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6585$as_echo "$RANLIB" >&6; }
6586else
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591
6592fi
6593if test -z "$ac_cv_prog_RANLIB"; then
6594  ac_ct_RANLIB=$RANLIB
6595  # Extract the first word of "ranlib", so it can be a program name with args.
6596set dummy ranlib; ac_word=$2
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598$as_echo_n "checking for $ac_word... " >&6; }
6599if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  if test -n "$ac_ct_RANLIB"; then
6603  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608  IFS=$as_save_IFS
6609  test -z "$as_dir" && as_dir=.
6610    for ac_exec_ext in '' $ac_executable_extensions; do
6611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612    ac_cv_prog_ac_ct_RANLIB="ranlib"
6613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614    break 2
6615  fi
6616done
6617  done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6623if test -n "$ac_ct_RANLIB"; then
6624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6625$as_echo "$ac_ct_RANLIB" >&6; }
6626else
6627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631  if test "x$ac_ct_RANLIB" = x; then
6632    RANLIB=":"
6633  else
6634    case $cross_compiling:$ac_tool_warned in
6635yes:)
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638ac_tool_warned=yes ;;
6639esac
6640    RANLIB=$ac_ct_RANLIB
6641  fi
6642else
6643  RANLIB="$ac_cv_prog_RANLIB"
6644fi
6645
6646test -z "$RANLIB" && RANLIB=:
6647
6648
6649
6650
6651
6652
6653# Determine commands to create old-style static archives.
6654old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6655old_postinstall_cmds='chmod 644 $oldlib'
6656old_postuninstall_cmds=
6657
6658if test -n "$RANLIB"; then
6659  case $host_os in
6660  openbsd*)
6661    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6662    ;;
6663  *)
6664    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6665    ;;
6666  esac
6667  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6668fi
6669
6670case $host_os in
6671  darwin*)
6672    lock_old_archive_extraction=yes ;;
6673  *)
6674    lock_old_archive_extraction=no ;;
6675esac
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715# If no C compiler was specified, use CC.
6716LTCC=${LTCC-"$CC"}
6717
6718# If no C compiler flags were specified, use CFLAGS.
6719LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6720
6721# Allow CC to be a program name with arguments.
6722compiler=$CC
6723
6724
6725# Check for command to grab the raw symbol name followed by C symbol from nm.
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6727$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6728if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731
6732# These are sane defaults that work on at least a few old systems.
6733# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6734
6735# Character class describing NM global symbol codes.
6736symcode='[BCDEGRST]'
6737
6738# Regexp to match symbols that can be accessed directly from C.
6739sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6740
6741# Define system-specific variables.
6742case $host_os in
6743aix*)
6744  symcode='[BCDT]'
6745  ;;
6746cygwin* | mingw* | pw32* | cegcc*)
6747  symcode='[ABCDGISTW]'
6748  ;;
6749hpux*)
6750  if test "$host_cpu" = ia64; then
6751    symcode='[ABCDEGRST]'
6752  fi
6753  ;;
6754irix* | nonstopux*)
6755  symcode='[BCDEGRST]'
6756  ;;
6757osf*)
6758  symcode='[BCDEGQRST]'
6759  ;;
6760solaris*)
6761  symcode='[BDRT]'
6762  ;;
6763sco3.2v5*)
6764  symcode='[DT]'
6765  ;;
6766sysv4.2uw2*)
6767  symcode='[DT]'
6768  ;;
6769sysv5* | sco5v6* | unixware* | OpenUNIX*)
6770  symcode='[ABDT]'
6771  ;;
6772sysv4)
6773  symcode='[DFNSTU]'
6774  ;;
6775esac
6776
6777# If we're using GNU nm, then use its standard symbol codes.
6778case `$NM -V 2>&1` in
6779*GNU* | *'with BFD'*)
6780  symcode='[ABCDGIRSTW]' ;;
6781esac
6782
6783# Transform an extracted symbol line into a proper C declaration.
6784# Some systems (esp. on ia64) link data and code symbols differently,
6785# so use this general approach.
6786lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6787
6788# Transform an extracted symbol line into symbol name and symbol address
6789lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6790lt_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'"
6791
6792# Handle CRLF in mingw tool chain
6793opt_cr=
6794case $build_os in
6795mingw*)
6796  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6797  ;;
6798esac
6799
6800# Try without a prefix underscore, then with it.
6801for ac_symprfx in "" "_"; do
6802
6803  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6804  symxfrm="\\1 $ac_symprfx\\2 \\2"
6805
6806  # Write the raw and C identifiers.
6807  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6808    # Fake it for dumpbin and say T for any non-static function
6809    # and D for any global variable.
6810    # Also find C++ and __fastcall symbols from MSVC++,
6811    # which start with @ or ?.
6812    lt_cv_sys_global_symbol_pipe="$AWK '"\
6813"     {last_section=section; section=\$ 3};"\
6814"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6815"     \$ 0!~/External *\|/{next};"\
6816"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6817"     {if(hide[section]) next};"\
6818"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6819"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6820"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6821"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6822"     ' prfx=^$ac_symprfx"
6823  else
6824    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6825  fi
6826
6827  # Check to see that the pipe works correctly.
6828  pipe_works=no
6829
6830  rm -f conftest*
6831  cat > conftest.$ac_ext <<_LT_EOF
6832#ifdef __cplusplus
6833extern "C" {
6834#endif
6835char nm_test_var;
6836void nm_test_func(void);
6837void nm_test_func(void){}
6838#ifdef __cplusplus
6839}
6840#endif
6841int main(){nm_test_var='a';nm_test_func();return(0);}
6842_LT_EOF
6843
6844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845  (eval $ac_compile) 2>&5
6846  ac_status=$?
6847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848  test $ac_status = 0; }; then
6849    # Now try to grab the symbols.
6850    nlist=conftest.nm
6851    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6852  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6853  ac_status=$?
6854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855  test $ac_status = 0; } && test -s "$nlist"; then
6856      # Try sorting and uniquifying the output.
6857      if sort "$nlist" | uniq > "$nlist"T; then
6858	mv -f "$nlist"T "$nlist"
6859      else
6860	rm -f "$nlist"T
6861      fi
6862
6863      # Make sure that we snagged all the symbols we need.
6864      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6865	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6866	  cat <<_LT_EOF > conftest.$ac_ext
6867#ifdef __cplusplus
6868extern "C" {
6869#endif
6870
6871_LT_EOF
6872	  # Now generate the symbol file.
6873	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6874
6875	  cat <<_LT_EOF >> conftest.$ac_ext
6876
6877/* The mapping between symbol names and symbols.  */
6878const struct {
6879  const char *name;
6880  void       *address;
6881}
6882lt__PROGRAM__LTX_preloaded_symbols[] =
6883{
6884  { "@PROGRAM@", (void *) 0 },
6885_LT_EOF
6886	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6887	  cat <<\_LT_EOF >> conftest.$ac_ext
6888  {0, (void *) 0}
6889};
6890
6891/* This works around a problem in FreeBSD linker */
6892#ifdef FREEBSD_WORKAROUND
6893static const void *lt_preloaded_setup() {
6894  return lt__PROGRAM__LTX_preloaded_symbols;
6895}
6896#endif
6897
6898#ifdef __cplusplus
6899}
6900#endif
6901_LT_EOF
6902	  # Now try linking the two files.
6903	  mv conftest.$ac_objext conftstm.$ac_objext
6904	  lt_save_LIBS="$LIBS"
6905	  lt_save_CFLAGS="$CFLAGS"
6906	  LIBS="conftstm.$ac_objext"
6907	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6908	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6909  (eval $ac_link) 2>&5
6910  ac_status=$?
6911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6913	    pipe_works=yes
6914	  fi
6915	  LIBS="$lt_save_LIBS"
6916	  CFLAGS="$lt_save_CFLAGS"
6917	else
6918	  echo "cannot find nm_test_func in $nlist" >&5
6919	fi
6920      else
6921	echo "cannot find nm_test_var in $nlist" >&5
6922      fi
6923    else
6924      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6925    fi
6926  else
6927    echo "$progname: failed program was:" >&5
6928    cat conftest.$ac_ext >&5
6929  fi
6930  rm -rf conftest* conftst*
6931
6932  # Do not use the global_symbol_pipe unless it works.
6933  if test "$pipe_works" = yes; then
6934    break
6935  else
6936    lt_cv_sys_global_symbol_pipe=
6937  fi
6938done
6939
6940fi
6941
6942if test -z "$lt_cv_sys_global_symbol_pipe"; then
6943  lt_cv_sys_global_symbol_to_cdecl=
6944fi
6945if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6947$as_echo "failed" >&6; }
6948else
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6950$as_echo "ok" >&6; }
6951fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975# Check whether --enable-libtool-lock was given.
6976if test "${enable_libtool_lock+set}" = set; then :
6977  enableval=$enable_libtool_lock;
6978fi
6979
6980test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6981
6982# Some flags need to be propagated to the compiler or linker for good
6983# libtool support.
6984case $host in
6985ia64-*-hpux*)
6986  # Find out which ABI we are using.
6987  echo 'int i;' > conftest.$ac_ext
6988  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989  (eval $ac_compile) 2>&5
6990  ac_status=$?
6991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992  test $ac_status = 0; }; then
6993    case `/usr/bin/file conftest.$ac_objext` in
6994      *ELF-32*)
6995	HPUX_IA64_MODE="32"
6996	;;
6997      *ELF-64*)
6998	HPUX_IA64_MODE="64"
6999	;;
7000    esac
7001  fi
7002  rm -rf conftest*
7003  ;;
7004*-*-irix6*)
7005  # Find out which ABI we are using.
7006  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7007  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7008  (eval $ac_compile) 2>&5
7009  ac_status=$?
7010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011  test $ac_status = 0; }; then
7012    if test "$lt_cv_prog_gnu_ld" = yes; then
7013      case `/usr/bin/file conftest.$ac_objext` in
7014	*32-bit*)
7015	  LD="${LD-ld} -melf32bsmip"
7016	  ;;
7017	*N32*)
7018	  LD="${LD-ld} -melf32bmipn32"
7019	  ;;
7020	*64-bit*)
7021	  LD="${LD-ld} -melf64bmip"
7022	;;
7023      esac
7024    else
7025      case `/usr/bin/file conftest.$ac_objext` in
7026	*32-bit*)
7027	  LD="${LD-ld} -32"
7028	  ;;
7029	*N32*)
7030	  LD="${LD-ld} -n32"
7031	  ;;
7032	*64-bit*)
7033	  LD="${LD-ld} -64"
7034	  ;;
7035      esac
7036    fi
7037  fi
7038  rm -rf conftest*
7039  ;;
7040
7041x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7042s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7043  # Find out which ABI we are using.
7044  echo 'int i;' > conftest.$ac_ext
7045  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7046  (eval $ac_compile) 2>&5
7047  ac_status=$?
7048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049  test $ac_status = 0; }; then
7050    case `/usr/bin/file conftest.o` in
7051      *32-bit*)
7052	case $host in
7053	  x86_64-*kfreebsd*-gnu)
7054	    LD="${LD-ld} -m elf_i386_fbsd"
7055	    ;;
7056	  x86_64-*linux*)
7057	    case `/usr/bin/file conftest.o` in
7058	      *x86-64*)
7059		LD="${LD-ld} -m elf32_x86_64"
7060		;;
7061	      *)
7062		LD="${LD-ld} -m elf_i386"
7063		;;
7064	    esac
7065	    ;;
7066	  powerpc64le-*linux*)
7067	    LD="${LD-ld} -m elf32lppclinux"
7068	    ;;
7069	  powerpc64-*linux*)
7070	    LD="${LD-ld} -m elf32ppclinux"
7071	    ;;
7072	  s390x-*linux*)
7073	    LD="${LD-ld} -m elf_s390"
7074	    ;;
7075	  sparc64-*linux*)
7076	    LD="${LD-ld} -m elf32_sparc"
7077	    ;;
7078	esac
7079	;;
7080      *64-bit*)
7081	case $host in
7082	  x86_64-*kfreebsd*-gnu)
7083	    LD="${LD-ld} -m elf_x86_64_fbsd"
7084	    ;;
7085	  x86_64-*linux*)
7086	    LD="${LD-ld} -m elf_x86_64"
7087	    ;;
7088	  powerpcle-*linux*)
7089	    LD="${LD-ld} -m elf64lppc"
7090	    ;;
7091	  powerpc-*linux*)
7092	    LD="${LD-ld} -m elf64ppc"
7093	    ;;
7094	  s390*-*linux*|s390*-*tpf*)
7095	    LD="${LD-ld} -m elf64_s390"
7096	    ;;
7097	  sparc*-*linux*)
7098	    LD="${LD-ld} -m elf64_sparc"
7099	    ;;
7100	esac
7101	;;
7102    esac
7103  fi
7104  rm -rf conftest*
7105  ;;
7106
7107*-*-sco3.2v5*)
7108  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7109  SAVE_CFLAGS="$CFLAGS"
7110  CFLAGS="$CFLAGS -belf"
7111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7112$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7113if ${lt_cv_cc_needs_belf+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  ac_ext=c
7117ac_cpp='$CPP $CPPFLAGS'
7118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121
7122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123/* end confdefs.h.  */
7124
7125int
7126main ()
7127{
7128
7129  ;
7130  return 0;
7131}
7132_ACEOF
7133if ac_fn_c_try_link "$LINENO"; then :
7134  lt_cv_cc_needs_belf=yes
7135else
7136  lt_cv_cc_needs_belf=no
7137fi
7138rm -f core conftest.err conftest.$ac_objext \
7139    conftest$ac_exeext conftest.$ac_ext
7140     ac_ext=c
7141ac_cpp='$CPP $CPPFLAGS'
7142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7148$as_echo "$lt_cv_cc_needs_belf" >&6; }
7149  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7150    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7151    CFLAGS="$SAVE_CFLAGS"
7152  fi
7153  ;;
7154sparc*-*solaris*)
7155  # Find out which ABI we are using.
7156  echo 'int i;' > conftest.$ac_ext
7157  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7158  (eval $ac_compile) 2>&5
7159  ac_status=$?
7160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161  test $ac_status = 0; }; then
7162    case `/usr/bin/file conftest.o` in
7163    *64-bit*)
7164      case $lt_cv_prog_gnu_ld in
7165      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7166      *)
7167	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7168	  LD="${LD-ld} -64"
7169	fi
7170	;;
7171      esac
7172      ;;
7173    esac
7174  fi
7175  rm -rf conftest*
7176  ;;
7177esac
7178
7179need_locks="$enable_libtool_lock"
7180
7181
7182  case $host_os in
7183    rhapsody* | darwin*)
7184    if test -n "$ac_tool_prefix"; then
7185  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7186set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188$as_echo_n "checking for $ac_word... " >&6; }
7189if ${ac_cv_prog_DSYMUTIL+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  if test -n "$DSYMUTIL"; then
7193  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198  IFS=$as_save_IFS
7199  test -z "$as_dir" && as_dir=.
7200    for ac_exec_ext in '' $ac_executable_extensions; do
7201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204    break 2
7205  fi
7206done
7207  done
7208IFS=$as_save_IFS
7209
7210fi
7211fi
7212DSYMUTIL=$ac_cv_prog_DSYMUTIL
7213if test -n "$DSYMUTIL"; then
7214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7215$as_echo "$DSYMUTIL" >&6; }
7216else
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
7219fi
7220
7221
7222fi
7223if test -z "$ac_cv_prog_DSYMUTIL"; then
7224  ac_ct_DSYMUTIL=$DSYMUTIL
7225  # Extract the first word of "dsymutil", so it can be a program name with args.
7226set dummy dsymutil; ac_word=$2
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228$as_echo_n "checking for $ac_word... " >&6; }
7229if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  if test -n "$ac_ct_DSYMUTIL"; then
7233  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238  IFS=$as_save_IFS
7239  test -z "$as_dir" && as_dir=.
7240    for ac_exec_ext in '' $ac_executable_extensions; do
7241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244    break 2
7245  fi
7246done
7247  done
7248IFS=$as_save_IFS
7249
7250fi
7251fi
7252ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7253if test -n "$ac_ct_DSYMUTIL"; then
7254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7255$as_echo "$ac_ct_DSYMUTIL" >&6; }
7256else
7257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258$as_echo "no" >&6; }
7259fi
7260
7261  if test "x$ac_ct_DSYMUTIL" = x; then
7262    DSYMUTIL=":"
7263  else
7264    case $cross_compiling:$ac_tool_warned in
7265yes:)
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268ac_tool_warned=yes ;;
7269esac
7270    DSYMUTIL=$ac_ct_DSYMUTIL
7271  fi
7272else
7273  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7274fi
7275
7276    if test -n "$ac_tool_prefix"; then
7277  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7278set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if ${ac_cv_prog_NMEDIT+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284  if test -n "$NMEDIT"; then
7285  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290  IFS=$as_save_IFS
7291  test -z "$as_dir" && as_dir=.
7292    for ac_exec_ext in '' $ac_executable_extensions; do
7293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296    break 2
7297  fi
7298done
7299  done
7300IFS=$as_save_IFS
7301
7302fi
7303fi
7304NMEDIT=$ac_cv_prog_NMEDIT
7305if test -n "$NMEDIT"; then
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7307$as_echo "$NMEDIT" >&6; }
7308else
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
7311fi
7312
7313
7314fi
7315if test -z "$ac_cv_prog_NMEDIT"; then
7316  ac_ct_NMEDIT=$NMEDIT
7317  # Extract the first word of "nmedit", so it can be a program name with args.
7318set dummy nmedit; ac_word=$2
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320$as_echo_n "checking for $ac_word... " >&6; }
7321if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  if test -n "$ac_ct_NMEDIT"; then
7325  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330  IFS=$as_save_IFS
7331  test -z "$as_dir" && as_dir=.
7332    for ac_exec_ext in '' $ac_executable_extensions; do
7333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336    break 2
7337  fi
7338done
7339  done
7340IFS=$as_save_IFS
7341
7342fi
7343fi
7344ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7345if test -n "$ac_ct_NMEDIT"; then
7346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7347$as_echo "$ac_ct_NMEDIT" >&6; }
7348else
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352
7353  if test "x$ac_ct_NMEDIT" = x; then
7354    NMEDIT=":"
7355  else
7356    case $cross_compiling:$ac_tool_warned in
7357yes:)
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360ac_tool_warned=yes ;;
7361esac
7362    NMEDIT=$ac_ct_NMEDIT
7363  fi
7364else
7365  NMEDIT="$ac_cv_prog_NMEDIT"
7366fi
7367
7368    if test -n "$ac_tool_prefix"; then
7369  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7370set dummy ${ac_tool_prefix}lipo; ac_word=$2
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372$as_echo_n "checking for $ac_word... " >&6; }
7373if ${ac_cv_prog_LIPO+:} false; then :
7374  $as_echo_n "(cached) " >&6
7375else
7376  if test -n "$LIPO"; then
7377  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7378else
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382  IFS=$as_save_IFS
7383  test -z "$as_dir" && as_dir=.
7384    for ac_exec_ext in '' $ac_executable_extensions; do
7385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388    break 2
7389  fi
7390done
7391  done
7392IFS=$as_save_IFS
7393
7394fi
7395fi
7396LIPO=$ac_cv_prog_LIPO
7397if test -n "$LIPO"; then
7398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7399$as_echo "$LIPO" >&6; }
7400else
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402$as_echo "no" >&6; }
7403fi
7404
7405
7406fi
7407if test -z "$ac_cv_prog_LIPO"; then
7408  ac_ct_LIPO=$LIPO
7409  # Extract the first word of "lipo", so it can be a program name with args.
7410set dummy lipo; ac_word=$2
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412$as_echo_n "checking for $ac_word... " >&6; }
7413if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416  if test -n "$ac_ct_LIPO"; then
7417  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422  IFS=$as_save_IFS
7423  test -z "$as_dir" && as_dir=.
7424    for ac_exec_ext in '' $ac_executable_extensions; do
7425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426    ac_cv_prog_ac_ct_LIPO="lipo"
7427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428    break 2
7429  fi
7430done
7431  done
7432IFS=$as_save_IFS
7433
7434fi
7435fi
7436ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7437if test -n "$ac_ct_LIPO"; then
7438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7439$as_echo "$ac_ct_LIPO" >&6; }
7440else
7441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
7443fi
7444
7445  if test "x$ac_ct_LIPO" = x; then
7446    LIPO=":"
7447  else
7448    case $cross_compiling:$ac_tool_warned in
7449yes:)
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452ac_tool_warned=yes ;;
7453esac
7454    LIPO=$ac_ct_LIPO
7455  fi
7456else
7457  LIPO="$ac_cv_prog_LIPO"
7458fi
7459
7460    if test -n "$ac_tool_prefix"; then
7461  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7462set dummy ${ac_tool_prefix}otool; ac_word=$2
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464$as_echo_n "checking for $ac_word... " >&6; }
7465if ${ac_cv_prog_OTOOL+:} false; then :
7466  $as_echo_n "(cached) " >&6
7467else
7468  if test -n "$OTOOL"; then
7469  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7470else
7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474  IFS=$as_save_IFS
7475  test -z "$as_dir" && as_dir=.
7476    for ac_exec_ext in '' $ac_executable_extensions; do
7477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480    break 2
7481  fi
7482done
7483  done
7484IFS=$as_save_IFS
7485
7486fi
7487fi
7488OTOOL=$ac_cv_prog_OTOOL
7489if test -n "$OTOOL"; then
7490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7491$as_echo "$OTOOL" >&6; }
7492else
7493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494$as_echo "no" >&6; }
7495fi
7496
7497
7498fi
7499if test -z "$ac_cv_prog_OTOOL"; then
7500  ac_ct_OTOOL=$OTOOL
7501  # Extract the first word of "otool", so it can be a program name with args.
7502set dummy otool; ac_word=$2
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504$as_echo_n "checking for $ac_word... " >&6; }
7505if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  if test -n "$ac_ct_OTOOL"; then
7509  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7510else
7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514  IFS=$as_save_IFS
7515  test -z "$as_dir" && as_dir=.
7516    for ac_exec_ext in '' $ac_executable_extensions; do
7517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518    ac_cv_prog_ac_ct_OTOOL="otool"
7519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520    break 2
7521  fi
7522done
7523  done
7524IFS=$as_save_IFS
7525
7526fi
7527fi
7528ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7529if test -n "$ac_ct_OTOOL"; then
7530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7531$as_echo "$ac_ct_OTOOL" >&6; }
7532else
7533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534$as_echo "no" >&6; }
7535fi
7536
7537  if test "x$ac_ct_OTOOL" = x; then
7538    OTOOL=":"
7539  else
7540    case $cross_compiling:$ac_tool_warned in
7541yes:)
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544ac_tool_warned=yes ;;
7545esac
7546    OTOOL=$ac_ct_OTOOL
7547  fi
7548else
7549  OTOOL="$ac_cv_prog_OTOOL"
7550fi
7551
7552    if test -n "$ac_tool_prefix"; then
7553  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7554set dummy ${ac_tool_prefix}otool64; ac_word=$2
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556$as_echo_n "checking for $ac_word... " >&6; }
7557if ${ac_cv_prog_OTOOL64+:} false; then :
7558  $as_echo_n "(cached) " >&6
7559else
7560  if test -n "$OTOOL64"; then
7561  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7562else
7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566  IFS=$as_save_IFS
7567  test -z "$as_dir" && as_dir=.
7568    for ac_exec_ext in '' $ac_executable_extensions; do
7569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572    break 2
7573  fi
7574done
7575  done
7576IFS=$as_save_IFS
7577
7578fi
7579fi
7580OTOOL64=$ac_cv_prog_OTOOL64
7581if test -n "$OTOOL64"; then
7582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7583$as_echo "$OTOOL64" >&6; }
7584else
7585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586$as_echo "no" >&6; }
7587fi
7588
7589
7590fi
7591if test -z "$ac_cv_prog_OTOOL64"; then
7592  ac_ct_OTOOL64=$OTOOL64
7593  # Extract the first word of "otool64", so it can be a program name with args.
7594set dummy otool64; ac_word=$2
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596$as_echo_n "checking for $ac_word... " >&6; }
7597if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  if test -n "$ac_ct_OTOOL64"; then
7601  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606  IFS=$as_save_IFS
7607  test -z "$as_dir" && as_dir=.
7608    for ac_exec_ext in '' $ac_executable_extensions; do
7609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610    ac_cv_prog_ac_ct_OTOOL64="otool64"
7611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612    break 2
7613  fi
7614done
7615  done
7616IFS=$as_save_IFS
7617
7618fi
7619fi
7620ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7621if test -n "$ac_ct_OTOOL64"; then
7622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7623$as_echo "$ac_ct_OTOOL64" >&6; }
7624else
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626$as_echo "no" >&6; }
7627fi
7628
7629  if test "x$ac_ct_OTOOL64" = x; then
7630    OTOOL64=":"
7631  else
7632    case $cross_compiling:$ac_tool_warned in
7633yes:)
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636ac_tool_warned=yes ;;
7637esac
7638    OTOOL64=$ac_ct_OTOOL64
7639  fi
7640else
7641  OTOOL64="$ac_cv_prog_OTOOL64"
7642fi
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7671$as_echo_n "checking for -single_module linker flag... " >&6; }
7672if ${lt_cv_apple_cc_single_mod+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  lt_cv_apple_cc_single_mod=no
7676      if test -z "${LT_MULTI_MODULE}"; then
7677	# By default we will add the -single_module flag. You can override
7678	# by either setting the environment variable LT_MULTI_MODULE
7679	# non-empty at configure time, or by adding -multi_module to the
7680	# link flags.
7681	rm -rf libconftest.dylib*
7682	echo "int foo(void){return 1;}" > conftest.c
7683	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684-dynamiclib -Wl,-single_module conftest.c" >&5
7685	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7686	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7687        _lt_result=$?
7688	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7689	  lt_cv_apple_cc_single_mod=yes
7690	else
7691	  cat conftest.err >&5
7692	fi
7693	rm -rf libconftest.dylib*
7694	rm -f conftest.*
7695      fi
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7698$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7700$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7701if ${lt_cv_ld_exported_symbols_list+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  lt_cv_ld_exported_symbols_list=no
7705      save_LDFLAGS=$LDFLAGS
7706      echo "_main" > conftest.sym
7707      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7708      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710
7711int
7712main ()
7713{
7714
7715  ;
7716  return 0;
7717}
7718_ACEOF
7719if ac_fn_c_try_link "$LINENO"; then :
7720  lt_cv_ld_exported_symbols_list=yes
7721else
7722  lt_cv_ld_exported_symbols_list=no
7723fi
7724rm -f core conftest.err conftest.$ac_objext \
7725    conftest$ac_exeext conftest.$ac_ext
7726	LDFLAGS="$save_LDFLAGS"
7727
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7730$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7732$as_echo_n "checking for -force_load linker flag... " >&6; }
7733if ${lt_cv_ld_force_load+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  lt_cv_ld_force_load=no
7737      cat > conftest.c << _LT_EOF
7738int forced_loaded() { return 2;}
7739_LT_EOF
7740      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7741      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7742      echo "$AR cru libconftest.a conftest.o" >&5
7743      $AR cru libconftest.a conftest.o 2>&5
7744      cat > conftest.c << _LT_EOF
7745int main() { return 0;}
7746_LT_EOF
7747      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7748      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7749      _lt_result=$?
7750      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7751	lt_cv_ld_force_load=yes
7752      else
7753	cat conftest.err >&5
7754      fi
7755        rm -f conftest.err libconftest.a conftest conftest.c
7756        rm -rf conftest.dSYM
7757
7758fi
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7760$as_echo "$lt_cv_ld_force_load" >&6; }
7761    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7762    # build without first building modern cctools / linker.
7763    case $host_cpu-$host_os in
7764    *-rhapsody* | *-darwin1.[012])
7765      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7766    *-darwin1.*)
7767      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7768    *-darwin*)
7769      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7770      # deployment target is forced to an earlier version.
7771      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7772	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7773	  ;;
7774	10.[012][,.]*)
7775	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7776	  ;;
7777	*)
7778	  ;;
7779     esac
7780    ;;
7781  esac
7782    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7783      _lt_dar_single_mod='$single_module'
7784    fi
7785    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7786      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7787    else
7788      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7789    fi
7790    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7791      _lt_dsymutil='~$DSYMUTIL $lib || :'
7792    else
7793      _lt_dsymutil=
7794    fi
7795    ;;
7796  esac
7797
7798ac_ext=c
7799ac_cpp='$CPP $CPPFLAGS'
7800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7804$as_echo_n "checking how to run the C preprocessor... " >&6; }
7805# On Suns, sometimes $CPP names a directory.
7806if test -n "$CPP" && test -d "$CPP"; then
7807  CPP=
7808fi
7809if test -z "$CPP"; then
7810  if ${ac_cv_prog_CPP+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813      # Double quotes because CPP needs to be expanded
7814    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7815    do
7816      ac_preproc_ok=false
7817for ac_c_preproc_warn_flag in '' yes
7818do
7819  # Use a header file that comes with gcc, so configuring glibc
7820  # with a fresh cross-compiler works.
7821  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822  # <limits.h> exists even on freestanding compilers.
7823  # On the NeXT, cc -E runs the code through the compiler's parser,
7824  # not just through cpp. "Syntax error" is here to catch this case.
7825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h.  */
7827#ifdef __STDC__
7828# include <limits.h>
7829#else
7830# include <assert.h>
7831#endif
7832		     Syntax error
7833_ACEOF
7834if ac_fn_c_try_cpp "$LINENO"; then :
7835
7836else
7837  # Broken: fails on valid input.
7838continue
7839fi
7840rm -f conftest.err conftest.i conftest.$ac_ext
7841
7842  # OK, works on sane cases.  Now check whether nonexistent headers
7843  # can be detected and how.
7844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h.  */
7846#include <ac_nonexistent.h>
7847_ACEOF
7848if ac_fn_c_try_cpp "$LINENO"; then :
7849  # Broken: success on invalid input.
7850continue
7851else
7852  # Passes both tests.
7853ac_preproc_ok=:
7854break
7855fi
7856rm -f conftest.err conftest.i conftest.$ac_ext
7857
7858done
7859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7860rm -f conftest.i conftest.err conftest.$ac_ext
7861if $ac_preproc_ok; then :
7862  break
7863fi
7864
7865    done
7866    ac_cv_prog_CPP=$CPP
7867
7868fi
7869  CPP=$ac_cv_prog_CPP
7870else
7871  ac_cv_prog_CPP=$CPP
7872fi
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7874$as_echo "$CPP" >&6; }
7875ac_preproc_ok=false
7876for ac_c_preproc_warn_flag in '' yes
7877do
7878  # Use a header file that comes with gcc, so configuring glibc
7879  # with a fresh cross-compiler works.
7880  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7881  # <limits.h> exists even on freestanding compilers.
7882  # On the NeXT, cc -E runs the code through the compiler's parser,
7883  # not just through cpp. "Syntax error" is here to catch this case.
7884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h.  */
7886#ifdef __STDC__
7887# include <limits.h>
7888#else
7889# include <assert.h>
7890#endif
7891		     Syntax error
7892_ACEOF
7893if ac_fn_c_try_cpp "$LINENO"; then :
7894
7895else
7896  # Broken: fails on valid input.
7897continue
7898fi
7899rm -f conftest.err conftest.i conftest.$ac_ext
7900
7901  # OK, works on sane cases.  Now check whether nonexistent headers
7902  # can be detected and how.
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905#include <ac_nonexistent.h>
7906_ACEOF
7907if ac_fn_c_try_cpp "$LINENO"; then :
7908  # Broken: success on invalid input.
7909continue
7910else
7911  # Passes both tests.
7912ac_preproc_ok=:
7913break
7914fi
7915rm -f conftest.err conftest.i conftest.$ac_ext
7916
7917done
7918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7919rm -f conftest.i conftest.err conftest.$ac_ext
7920if $ac_preproc_ok; then :
7921
7922else
7923  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7925as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7926See \`config.log' for more details" "$LINENO" 5; }
7927fi
7928
7929ac_ext=c
7930ac_cpp='$CPP $CPPFLAGS'
7931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7937$as_echo_n "checking for ANSI C header files... " >&6; }
7938if ${ac_cv_header_stdc+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943#include <stdlib.h>
7944#include <stdarg.h>
7945#include <string.h>
7946#include <float.h>
7947
7948int
7949main ()
7950{
7951
7952  ;
7953  return 0;
7954}
7955_ACEOF
7956if ac_fn_c_try_compile "$LINENO"; then :
7957  ac_cv_header_stdc=yes
7958else
7959  ac_cv_header_stdc=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962
7963if test $ac_cv_header_stdc = yes; then
7964  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967#include <string.h>
7968
7969_ACEOF
7970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7971  $EGREP "memchr" >/dev/null 2>&1; then :
7972
7973else
7974  ac_cv_header_stdc=no
7975fi
7976rm -f conftest*
7977
7978fi
7979
7980if test $ac_cv_header_stdc = yes; then
7981  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984#include <stdlib.h>
7985
7986_ACEOF
7987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7988  $EGREP "free" >/dev/null 2>&1; then :
7989
7990else
7991  ac_cv_header_stdc=no
7992fi
7993rm -f conftest*
7994
7995fi
7996
7997if test $ac_cv_header_stdc = yes; then
7998  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7999  if test "$cross_compiling" = yes; then :
8000  :
8001else
8002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003/* end confdefs.h.  */
8004#include <ctype.h>
8005#include <stdlib.h>
8006#if ((' ' & 0x0FF) == 0x020)
8007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8009#else
8010# define ISLOWER(c) \
8011		   (('a' <= (c) && (c) <= 'i') \
8012		     || ('j' <= (c) && (c) <= 'r') \
8013		     || ('s' <= (c) && (c) <= 'z'))
8014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8015#endif
8016
8017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8018int
8019main ()
8020{
8021  int i;
8022  for (i = 0; i < 256; i++)
8023    if (XOR (islower (i), ISLOWER (i))
8024	|| toupper (i) != TOUPPER (i))
8025      return 2;
8026  return 0;
8027}
8028_ACEOF
8029if ac_fn_c_try_run "$LINENO"; then :
8030
8031else
8032  ac_cv_header_stdc=no
8033fi
8034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8035  conftest.$ac_objext conftest.beam conftest.$ac_ext
8036fi
8037
8038fi
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8041$as_echo "$ac_cv_header_stdc" >&6; }
8042if test $ac_cv_header_stdc = yes; then
8043
8044$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8045
8046fi
8047
8048# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8049for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8050		  inttypes.h stdint.h unistd.h
8051do :
8052  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8053ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8054"
8055if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8056  cat >>confdefs.h <<_ACEOF
8057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8058_ACEOF
8059
8060fi
8061
8062done
8063
8064
8065for ac_header in dlfcn.h
8066do :
8067  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8068"
8069if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8070  cat >>confdefs.h <<_ACEOF
8071#define HAVE_DLFCN_H 1
8072_ACEOF
8073
8074fi
8075
8076done
8077
8078
8079
8080
8081
8082
8083# Set options
8084
8085
8086
8087        enable_dlopen=no
8088
8089
8090  enable_win32_dll=no
8091
8092
8093            # Check whether --enable-shared was given.
8094if test "${enable_shared+set}" = set; then :
8095  enableval=$enable_shared; p=${PACKAGE-default}
8096    case $enableval in
8097    yes) enable_shared=yes ;;
8098    no) enable_shared=no ;;
8099    *)
8100      enable_shared=no
8101      # Look at the argument we got.  We use all the common list separators.
8102      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8103      for pkg in $enableval; do
8104	IFS="$lt_save_ifs"
8105	if test "X$pkg" = "X$p"; then
8106	  enable_shared=yes
8107	fi
8108      done
8109      IFS="$lt_save_ifs"
8110      ;;
8111    esac
8112else
8113  enable_shared=yes
8114fi
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124  # Check whether --enable-static was given.
8125if test "${enable_static+set}" = set; then :
8126  enableval=$enable_static; p=${PACKAGE-default}
8127    case $enableval in
8128    yes) enable_static=yes ;;
8129    no) enable_static=no ;;
8130    *)
8131     enable_static=no
8132      # Look at the argument we got.  We use all the common list separators.
8133      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134      for pkg in $enableval; do
8135	IFS="$lt_save_ifs"
8136	if test "X$pkg" = "X$p"; then
8137	  enable_static=yes
8138	fi
8139      done
8140      IFS="$lt_save_ifs"
8141      ;;
8142    esac
8143else
8144  enable_static=yes
8145fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156# Check whether --with-pic was given.
8157if test "${with_pic+set}" = set; then :
8158  withval=$with_pic; pic_mode="$withval"
8159else
8160  pic_mode=default
8161fi
8162
8163
8164test -z "$pic_mode" && pic_mode=default
8165
8166
8167
8168
8169
8170
8171
8172  # Check whether --enable-fast-install was given.
8173if test "${enable_fast_install+set}" = set; then :
8174  enableval=$enable_fast_install; p=${PACKAGE-default}
8175    case $enableval in
8176    yes) enable_fast_install=yes ;;
8177    no) enable_fast_install=no ;;
8178    *)
8179      enable_fast_install=no
8180      # Look at the argument we got.  We use all the common list separators.
8181      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182      for pkg in $enableval; do
8183	IFS="$lt_save_ifs"
8184	if test "X$pkg" = "X$p"; then
8185	  enable_fast_install=yes
8186	fi
8187      done
8188      IFS="$lt_save_ifs"
8189      ;;
8190    esac
8191else
8192  enable_fast_install=yes
8193fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205# This can be used to rebuild libtool when needed
8206LIBTOOL_DEPS="$ltmain"
8207
8208# Always use our own libtool.
8209LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236test -z "$LN_S" && LN_S="ln -s"
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251if test -n "${ZSH_VERSION+set}" ; then
8252   setopt NO_GLOB_SUBST
8253fi
8254
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8256$as_echo_n "checking for objdir... " >&6; }
8257if ${lt_cv_objdir+:} false; then :
8258  $as_echo_n "(cached) " >&6
8259else
8260  rm -f .libs 2>/dev/null
8261mkdir .libs 2>/dev/null
8262if test -d .libs; then
8263  lt_cv_objdir=.libs
8264else
8265  # MS-DOS does not allow filenames that begin with a dot.
8266  lt_cv_objdir=_libs
8267fi
8268rmdir .libs 2>/dev/null
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8271$as_echo "$lt_cv_objdir" >&6; }
8272objdir=$lt_cv_objdir
8273
8274
8275
8276
8277
8278cat >>confdefs.h <<_ACEOF
8279#define LT_OBJDIR "$lt_cv_objdir/"
8280_ACEOF
8281
8282
8283
8284
8285case $host_os in
8286aix3*)
8287  # AIX sometimes has problems with the GCC collect2 program.  For some
8288  # reason, if we set the COLLECT_NAMES environment variable, the problems
8289  # vanish in a puff of smoke.
8290  if test "X${COLLECT_NAMES+set}" != Xset; then
8291    COLLECT_NAMES=
8292    export COLLECT_NAMES
8293  fi
8294  ;;
8295esac
8296
8297# Global variables:
8298ofile=libtool
8299can_build_shared=yes
8300
8301# All known linkers require a `.a' archive for static linking (except MSVC,
8302# which needs '.lib').
8303libext=a
8304
8305with_gnu_ld="$lt_cv_prog_gnu_ld"
8306
8307old_CC="$CC"
8308old_CFLAGS="$CFLAGS"
8309
8310# Set sane defaults for various variables
8311test -z "$CC" && CC=cc
8312test -z "$LTCC" && LTCC=$CC
8313test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8314test -z "$LD" && LD=ld
8315test -z "$ac_objext" && ac_objext=o
8316
8317for cc_temp in $compiler""; do
8318  case $cc_temp in
8319    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8320    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8321    \-*) ;;
8322    *) break;;
8323  esac
8324done
8325cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8326
8327
8328# Only perform the check for file, if the check method requires it
8329test -z "$MAGIC_CMD" && MAGIC_CMD=file
8330case $deplibs_check_method in
8331file_magic*)
8332  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8334$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8335if ${lt_cv_path_MAGIC_CMD+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  case $MAGIC_CMD in
8339[\\/*] |  ?:[\\/]*)
8340  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341  ;;
8342*)
8343  lt_save_MAGIC_CMD="$MAGIC_CMD"
8344  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8345  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8346  for ac_dir in $ac_dummy; do
8347    IFS="$lt_save_ifs"
8348    test -z "$ac_dir" && ac_dir=.
8349    if test -f $ac_dir/${ac_tool_prefix}file; then
8350      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8351      if test -n "$file_magic_test_file"; then
8352	case $deplibs_check_method in
8353	"file_magic "*)
8354	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8355	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8356	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8357	    $EGREP "$file_magic_regex" > /dev/null; then
8358	    :
8359	  else
8360	    cat <<_LT_EOF 1>&2
8361
8362*** Warning: the command libtool uses to detect shared libraries,
8363*** $file_magic_cmd, produces output that libtool cannot recognize.
8364*** The result is that libtool may fail to recognize shared libraries
8365*** as such.  This will affect the creation of libtool libraries that
8366*** depend on shared libraries, but programs linked with such libtool
8367*** libraries will work regardless of this problem.  Nevertheless, you
8368*** may want to report the problem to your system manager and/or to
8369*** bug-libtool@gnu.org
8370
8371_LT_EOF
8372	  fi ;;
8373	esac
8374      fi
8375      break
8376    fi
8377  done
8378  IFS="$lt_save_ifs"
8379  MAGIC_CMD="$lt_save_MAGIC_CMD"
8380  ;;
8381esac
8382fi
8383
8384MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385if test -n "$MAGIC_CMD"; then
8386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8387$as_echo "$MAGIC_CMD" >&6; }
8388else
8389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390$as_echo "no" >&6; }
8391fi
8392
8393
8394
8395
8396
8397if test -z "$lt_cv_path_MAGIC_CMD"; then
8398  if test -n "$ac_tool_prefix"; then
8399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8400$as_echo_n "checking for file... " >&6; }
8401if ${lt_cv_path_MAGIC_CMD+:} false; then :
8402  $as_echo_n "(cached) " >&6
8403else
8404  case $MAGIC_CMD in
8405[\\/*] |  ?:[\\/]*)
8406  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8407  ;;
8408*)
8409  lt_save_MAGIC_CMD="$MAGIC_CMD"
8410  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8411  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8412  for ac_dir in $ac_dummy; do
8413    IFS="$lt_save_ifs"
8414    test -z "$ac_dir" && ac_dir=.
8415    if test -f $ac_dir/file; then
8416      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8417      if test -n "$file_magic_test_file"; then
8418	case $deplibs_check_method in
8419	"file_magic "*)
8420	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8421	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8423	    $EGREP "$file_magic_regex" > /dev/null; then
8424	    :
8425	  else
8426	    cat <<_LT_EOF 1>&2
8427
8428*** Warning: the command libtool uses to detect shared libraries,
8429*** $file_magic_cmd, produces output that libtool cannot recognize.
8430*** The result is that libtool may fail to recognize shared libraries
8431*** as such.  This will affect the creation of libtool libraries that
8432*** depend on shared libraries, but programs linked with such libtool
8433*** libraries will work regardless of this problem.  Nevertheless, you
8434*** may want to report the problem to your system manager and/or to
8435*** bug-libtool@gnu.org
8436
8437_LT_EOF
8438	  fi ;;
8439	esac
8440      fi
8441      break
8442    fi
8443  done
8444  IFS="$lt_save_ifs"
8445  MAGIC_CMD="$lt_save_MAGIC_CMD"
8446  ;;
8447esac
8448fi
8449
8450MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8451if test -n "$MAGIC_CMD"; then
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8453$as_echo "$MAGIC_CMD" >&6; }
8454else
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456$as_echo "no" >&6; }
8457fi
8458
8459
8460  else
8461    MAGIC_CMD=:
8462  fi
8463fi
8464
8465  fi
8466  ;;
8467esac
8468
8469# Use C for the default configuration in the libtool script
8470
8471lt_save_CC="$CC"
8472ac_ext=c
8473ac_cpp='$CPP $CPPFLAGS'
8474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476ac_compiler_gnu=$ac_cv_c_compiler_gnu
8477
8478
8479# Source file extension for C test sources.
8480ac_ext=c
8481
8482# Object file extension for compiled C test sources.
8483objext=o
8484objext=$objext
8485
8486# Code to be used in simple compile tests
8487lt_simple_compile_test_code="int some_variable = 0;"
8488
8489# Code to be used in simple link tests
8490lt_simple_link_test_code='int main(){return(0);}'
8491
8492
8493
8494
8495
8496
8497
8498# If no C compiler was specified, use CC.
8499LTCC=${LTCC-"$CC"}
8500
8501# If no C compiler flags were specified, use CFLAGS.
8502LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8503
8504# Allow CC to be a program name with arguments.
8505compiler=$CC
8506
8507# Save the default compiler, since it gets overwritten when the other
8508# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8509compiler_DEFAULT=$CC
8510
8511# save warnings/boilerplate of simple test code
8512ac_outfile=conftest.$ac_objext
8513echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8514eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8515_lt_compiler_boilerplate=`cat conftest.err`
8516$RM conftest*
8517
8518ac_outfile=conftest.$ac_objext
8519echo "$lt_simple_link_test_code" >conftest.$ac_ext
8520eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521_lt_linker_boilerplate=`cat conftest.err`
8522$RM -r conftest*
8523
8524
8525## CAVEAT EMPTOR:
8526## There is no encapsulation within the following macros, do not change
8527## the running order or otherwise move them around unless you know exactly
8528## what you are doing...
8529if test -n "$compiler"; then
8530
8531lt_prog_compiler_no_builtin_flag=
8532
8533if test "$GCC" = yes; then
8534  case $cc_basename in
8535  nvcc*)
8536    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8537  *)
8538    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8539  esac
8540
8541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8542$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8543if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  lt_cv_prog_compiler_rtti_exceptions=no
8547   ac_outfile=conftest.$ac_objext
8548   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549   lt_compiler_flag="-fno-rtti -fno-exceptions"
8550   # Insert the option either (1) after the last *FLAGS variable, or
8551   # (2) before a word containing "conftest.", or (3) at the end.
8552   # Note that $ac_compile itself does not contain backslashes and begins
8553   # with a dollar sign (not a hyphen), so the echo should work correctly.
8554   # The option is referenced via a variable to avoid confusing sed.
8555   lt_compile=`echo "$ac_compile" | $SED \
8556   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558   -e 's:$: $lt_compiler_flag:'`
8559   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560   (eval "$lt_compile" 2>conftest.err)
8561   ac_status=$?
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   if (exit $ac_status) && test -s "$ac_outfile"; then
8565     # The compiler can only warn and ignore the option if not recognized
8566     # So say no if there are warnings other than the usual output.
8567     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570       lt_cv_prog_compiler_rtti_exceptions=yes
8571     fi
8572   fi
8573   $RM conftest*
8574
8575fi
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8577$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8578
8579if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8580    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8581else
8582    :
8583fi
8584
8585fi
8586
8587
8588
8589
8590
8591
8592  lt_prog_compiler_wl=
8593lt_prog_compiler_pic=
8594lt_prog_compiler_static=
8595
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8597$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8598
8599  if test "$GCC" = yes; then
8600    lt_prog_compiler_wl='-Wl,'
8601    lt_prog_compiler_static='-static'
8602
8603    case $host_os in
8604      aix*)
8605      # All AIX code is PIC.
8606      if test "$host_cpu" = ia64; then
8607	# AIX 5 now supports IA64 processor
8608	lt_prog_compiler_static='-Bstatic'
8609      fi
8610      lt_prog_compiler_pic='-fPIC'
8611      ;;
8612
8613    amigaos*)
8614      case $host_cpu in
8615      powerpc)
8616            # see comment about AmigaOS4 .so support
8617            lt_prog_compiler_pic='-fPIC'
8618        ;;
8619      m68k)
8620            # FIXME: we need at least 68020 code to build shared libraries, but
8621            # adding the `-m68020' flag to GCC prevents building anything better,
8622            # like `-m68040'.
8623            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8624        ;;
8625      esac
8626      ;;
8627
8628    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8629      # PIC is the default for these OSes.
8630      ;;
8631
8632    mingw* | cygwin* | pw32* | os2* | cegcc*)
8633      # This hack is so that the source file can tell whether it is being
8634      # built for inclusion in a dll (and should export symbols for example).
8635      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8636      # (--disable-auto-import) libraries
8637      lt_prog_compiler_pic='-DDLL_EXPORT'
8638      ;;
8639
8640    darwin* | rhapsody*)
8641      # PIC is the default on this platform
8642      # Common symbols not allowed in MH_DYLIB files
8643      lt_prog_compiler_pic='-fno-common'
8644      ;;
8645
8646    haiku*)
8647      # PIC is the default for Haiku.
8648      # The "-static" flag exists, but is broken.
8649      lt_prog_compiler_static=
8650      ;;
8651
8652    hpux*)
8653      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8654      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8655      # sets the default TLS model and affects inlining.
8656      case $host_cpu in
8657      hppa*64*)
8658	# +Z the default
8659	;;
8660      *)
8661	lt_prog_compiler_pic='-fPIC'
8662	;;
8663      esac
8664      ;;
8665
8666    interix[3-9]*)
8667      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8668      # Instead, we relocate shared libraries at runtime.
8669      ;;
8670
8671    msdosdjgpp*)
8672      # Just because we use GCC doesn't mean we suddenly get shared libraries
8673      # on systems that don't support them.
8674      lt_prog_compiler_can_build_shared=no
8675      enable_shared=no
8676      ;;
8677
8678    *nto* | *qnx*)
8679      # QNX uses GNU C++, but need to define -shared option too, otherwise
8680      # it will coredump.
8681      lt_prog_compiler_pic='-fPIC -shared'
8682      ;;
8683
8684    sysv4*MP*)
8685      if test -d /usr/nec; then
8686	lt_prog_compiler_pic=-Kconform_pic
8687      fi
8688      ;;
8689
8690    *)
8691      lt_prog_compiler_pic='-fPIC'
8692      ;;
8693    esac
8694
8695    case $cc_basename in
8696    nvcc*) # Cuda Compiler Driver 2.2
8697      lt_prog_compiler_wl='-Xlinker '
8698      lt_prog_compiler_pic='-Xcompiler -fPIC'
8699      ;;
8700    esac
8701  else
8702    # PORTME Check for flag to pass linker flags through the system compiler.
8703    case $host_os in
8704    aix*)
8705      lt_prog_compiler_wl='-Wl,'
8706      if test "$host_cpu" = ia64; then
8707	# AIX 5 now supports IA64 processor
8708	lt_prog_compiler_static='-Bstatic'
8709      else
8710	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8711      fi
8712      ;;
8713
8714    mingw* | cygwin* | pw32* | os2* | cegcc*)
8715      # This hack is so that the source file can tell whether it is being
8716      # built for inclusion in a dll (and should export symbols for example).
8717      lt_prog_compiler_pic='-DDLL_EXPORT'
8718      ;;
8719
8720    hpux9* | hpux10* | hpux11*)
8721      lt_prog_compiler_wl='-Wl,'
8722      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8723      # not for PA HP-UX.
8724      case $host_cpu in
8725      hppa*64*|ia64*)
8726	# +Z the default
8727	;;
8728      *)
8729	lt_prog_compiler_pic='+Z'
8730	;;
8731      esac
8732      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8733      lt_prog_compiler_static='${wl}-a ${wl}archive'
8734      ;;
8735
8736    irix5* | irix6* | nonstopux*)
8737      lt_prog_compiler_wl='-Wl,'
8738      # PIC (with -KPIC) is the default.
8739      lt_prog_compiler_static='-non_shared'
8740      ;;
8741
8742    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8743      case $cc_basename in
8744      # old Intel for x86_64 which still supported -KPIC.
8745      ecc*)
8746	lt_prog_compiler_wl='-Wl,'
8747	lt_prog_compiler_pic='-KPIC'
8748	lt_prog_compiler_static='-static'
8749        ;;
8750      # icc used to be incompatible with GCC.
8751      # ICC 10 doesn't accept -KPIC any more.
8752      icc* | ifort*)
8753	lt_prog_compiler_wl='-Wl,'
8754	lt_prog_compiler_pic='-fPIC'
8755	lt_prog_compiler_static='-static'
8756        ;;
8757      # Lahey Fortran 8.1.
8758      lf95*)
8759	lt_prog_compiler_wl='-Wl,'
8760	lt_prog_compiler_pic='--shared'
8761	lt_prog_compiler_static='--static'
8762	;;
8763      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8764        # Portland Group compilers (*not* the Pentium gcc compiler,
8765	# which looks to be a dead project)
8766	lt_prog_compiler_wl='-Wl,'
8767	lt_prog_compiler_pic='-fpic'
8768	lt_prog_compiler_static='-Bstatic'
8769        ;;
8770      ccc*)
8771        lt_prog_compiler_wl='-Wl,'
8772        # All Alpha code is PIC.
8773        lt_prog_compiler_static='-non_shared'
8774        ;;
8775      xl* | bgxl* | bgf* | mpixl*)
8776	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8777	lt_prog_compiler_wl='-Wl,'
8778	lt_prog_compiler_pic='-qpic'
8779	lt_prog_compiler_static='-qstaticlink'
8780	;;
8781      *)
8782	case `$CC -V 2>&1 | sed 5q` in
8783	*Sun\ F* | *Sun*Fortran*)
8784	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8785	  lt_prog_compiler_pic='-KPIC'
8786	  lt_prog_compiler_static='-Bstatic'
8787	  lt_prog_compiler_wl=''
8788	  ;;
8789	*Sun\ C*)
8790	  # Sun C 5.9
8791	  lt_prog_compiler_pic='-KPIC'
8792	  lt_prog_compiler_static='-Bstatic'
8793	  lt_prog_compiler_wl='-Wl,'
8794	  ;;
8795	esac
8796	;;
8797      esac
8798      ;;
8799
8800    newsos6)
8801      lt_prog_compiler_pic='-KPIC'
8802      lt_prog_compiler_static='-Bstatic'
8803      ;;
8804
8805    *nto* | *qnx*)
8806      # QNX uses GNU C++, but need to define -shared option too, otherwise
8807      # it will coredump.
8808      lt_prog_compiler_pic='-fPIC -shared'
8809      ;;
8810
8811    osf3* | osf4* | osf5*)
8812      lt_prog_compiler_wl='-Wl,'
8813      # All OSF/1 code is PIC.
8814      lt_prog_compiler_static='-non_shared'
8815      ;;
8816
8817    rdos*)
8818      lt_prog_compiler_static='-non_shared'
8819      ;;
8820
8821    solaris*)
8822      lt_prog_compiler_pic='-KPIC'
8823      lt_prog_compiler_static='-Bstatic'
8824      case $cc_basename in
8825      f77* | f90* | f95*)
8826	lt_prog_compiler_wl='-Qoption ld ';;
8827      *)
8828	lt_prog_compiler_wl='-Wl,';;
8829      esac
8830      ;;
8831
8832    sunos4*)
8833      lt_prog_compiler_wl='-Qoption ld '
8834      lt_prog_compiler_pic='-PIC'
8835      lt_prog_compiler_static='-Bstatic'
8836      ;;
8837
8838    sysv4 | sysv4.2uw2* | sysv4.3*)
8839      lt_prog_compiler_wl='-Wl,'
8840      lt_prog_compiler_pic='-KPIC'
8841      lt_prog_compiler_static='-Bstatic'
8842      ;;
8843
8844    sysv4*MP*)
8845      if test -d /usr/nec ;then
8846	lt_prog_compiler_pic='-Kconform_pic'
8847	lt_prog_compiler_static='-Bstatic'
8848      fi
8849      ;;
8850
8851    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8852      lt_prog_compiler_wl='-Wl,'
8853      lt_prog_compiler_pic='-KPIC'
8854      lt_prog_compiler_static='-Bstatic'
8855      ;;
8856
8857    unicos*)
8858      lt_prog_compiler_wl='-Wl,'
8859      lt_prog_compiler_can_build_shared=no
8860      ;;
8861
8862    uts4*)
8863      lt_prog_compiler_pic='-pic'
8864      lt_prog_compiler_static='-Bstatic'
8865      ;;
8866
8867    *)
8868      lt_prog_compiler_can_build_shared=no
8869      ;;
8870    esac
8871  fi
8872
8873case $host_os in
8874  # For platforms which do not support PIC, -DPIC is meaningless:
8875  *djgpp*)
8876    lt_prog_compiler_pic=
8877    ;;
8878  *)
8879    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8880    ;;
8881esac
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8883$as_echo "$lt_prog_compiler_pic" >&6; }
8884
8885
8886
8887
8888
8889
8890#
8891# Check to make sure the PIC flag actually works.
8892#
8893if test -n "$lt_prog_compiler_pic"; then
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8895$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8896if ${lt_cv_prog_compiler_pic_works+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  lt_cv_prog_compiler_pic_works=no
8900   ac_outfile=conftest.$ac_objext
8901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8903   # Insert the option either (1) after the last *FLAGS variable, or
8904   # (2) before a word containing "conftest.", or (3) at the end.
8905   # Note that $ac_compile itself does not contain backslashes and begins
8906   # with a dollar sign (not a hyphen), so the echo should work correctly.
8907   # The option is referenced via a variable to avoid confusing sed.
8908   lt_compile=`echo "$ac_compile" | $SED \
8909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911   -e 's:$: $lt_compiler_flag:'`
8912   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913   (eval "$lt_compile" 2>conftest.err)
8914   ac_status=$?
8915   cat conftest.err >&5
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   if (exit $ac_status) && test -s "$ac_outfile"; then
8918     # The compiler can only warn and ignore the option if not recognized
8919     # So say no if there are warnings other than the usual output.
8920     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8921     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8922     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8923       lt_cv_prog_compiler_pic_works=yes
8924     fi
8925   fi
8926   $RM conftest*
8927
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8930$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8931
8932if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8933    case $lt_prog_compiler_pic in
8934     "" | " "*) ;;
8935     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8936     esac
8937else
8938    lt_prog_compiler_pic=
8939     lt_prog_compiler_can_build_shared=no
8940fi
8941
8942fi
8943
8944
8945
8946
8947
8948
8949#
8950# Check to make sure the static flag actually works.
8951#
8952wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8954$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8955if ${lt_cv_prog_compiler_static_works+:} false; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  lt_cv_prog_compiler_static_works=no
8959   save_LDFLAGS="$LDFLAGS"
8960   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8961   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8962   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8963     # The linker can only warn and ignore the option if not recognized
8964     # So say no if there are warnings
8965     if test -s conftest.err; then
8966       # Append any errors to the config.log.
8967       cat conftest.err 1>&5
8968       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8969       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8970       if diff conftest.exp conftest.er2 >/dev/null; then
8971         lt_cv_prog_compiler_static_works=yes
8972       fi
8973     else
8974       lt_cv_prog_compiler_static_works=yes
8975     fi
8976   fi
8977   $RM -r conftest*
8978   LDFLAGS="$save_LDFLAGS"
8979
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8982$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8983
8984if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8985    :
8986else
8987    lt_prog_compiler_static=
8988fi
8989
8990
8991
8992
8993
8994
8995
8996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8998if ${lt_cv_prog_compiler_c_o+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  lt_cv_prog_compiler_c_o=no
9002   $RM -r conftest 2>/dev/null
9003   mkdir conftest
9004   cd conftest
9005   mkdir out
9006   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007
9008   lt_compiler_flag="-o out/conftest2.$ac_objext"
9009   # Insert the option either (1) after the last *FLAGS variable, or
9010   # (2) before a word containing "conftest.", or (3) at the end.
9011   # Note that $ac_compile itself does not contain backslashes and begins
9012   # with a dollar sign (not a hyphen), so the echo should work correctly.
9013   lt_compile=`echo "$ac_compile" | $SED \
9014   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016   -e 's:$: $lt_compiler_flag:'`
9017   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9018   (eval "$lt_compile" 2>out/conftest.err)
9019   ac_status=$?
9020   cat out/conftest.err >&5
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023   then
9024     # The compiler can only warn and ignore the option if not recognized
9025     # So say no if there are warnings
9026     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9027     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9028     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9029       lt_cv_prog_compiler_c_o=yes
9030     fi
9031   fi
9032   chmod u+w . 2>&5
9033   $RM conftest*
9034   # SGI C++ compiler will create directory out/ii_files/ for
9035   # template instantiation
9036   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9037   $RM out/* && rmdir out
9038   cd ..
9039   $RM -r conftest
9040   $RM conftest*
9041
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9044$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9045
9046
9047
9048
9049
9050
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9052$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9053if ${lt_cv_prog_compiler_c_o+:} false; then :
9054  $as_echo_n "(cached) " >&6
9055else
9056  lt_cv_prog_compiler_c_o=no
9057   $RM -r conftest 2>/dev/null
9058   mkdir conftest
9059   cd conftest
9060   mkdir out
9061   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9062
9063   lt_compiler_flag="-o out/conftest2.$ac_objext"
9064   # Insert the option either (1) after the last *FLAGS variable, or
9065   # (2) before a word containing "conftest.", or (3) at the end.
9066   # Note that $ac_compile itself does not contain backslashes and begins
9067   # with a dollar sign (not a hyphen), so the echo should work correctly.
9068   lt_compile=`echo "$ac_compile" | $SED \
9069   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9070   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9071   -e 's:$: $lt_compiler_flag:'`
9072   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9073   (eval "$lt_compile" 2>out/conftest.err)
9074   ac_status=$?
9075   cat out/conftest.err >&5
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9078   then
9079     # The compiler can only warn and ignore the option if not recognized
9080     # So say no if there are warnings
9081     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9082     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9083     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9084       lt_cv_prog_compiler_c_o=yes
9085     fi
9086   fi
9087   chmod u+w . 2>&5
9088   $RM conftest*
9089   # SGI C++ compiler will create directory out/ii_files/ for
9090   # template instantiation
9091   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9092   $RM out/* && rmdir out
9093   cd ..
9094   $RM -r conftest
9095   $RM conftest*
9096
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9099$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9100
9101
9102
9103
9104hard_links="nottested"
9105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9106  # do not overwrite the value of need_locks provided by the user
9107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9108$as_echo_n "checking if we can lock with hard links... " >&6; }
9109  hard_links=yes
9110  $RM conftest*
9111  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9112  touch conftest.a
9113  ln conftest.a conftest.b 2>&5 || hard_links=no
9114  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9116$as_echo "$hard_links" >&6; }
9117  if test "$hard_links" = no; then
9118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9119$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9120    need_locks=warn
9121  fi
9122else
9123  need_locks=no
9124fi
9125
9126
9127
9128
9129
9130
9131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9132$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9133
9134  runpath_var=
9135  allow_undefined_flag=
9136  always_export_symbols=no
9137  archive_cmds=
9138  archive_expsym_cmds=
9139  compiler_needs_object=no
9140  enable_shared_with_static_runtimes=no
9141  export_dynamic_flag_spec=
9142  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9143  hardcode_automatic=no
9144  hardcode_direct=no
9145  hardcode_direct_absolute=no
9146  hardcode_libdir_flag_spec=
9147  hardcode_libdir_flag_spec_ld=
9148  hardcode_libdir_separator=
9149  hardcode_minus_L=no
9150  hardcode_shlibpath_var=unsupported
9151  inherit_rpath=no
9152  link_all_deplibs=unknown
9153  module_cmds=
9154  module_expsym_cmds=
9155  old_archive_from_new_cmds=
9156  old_archive_from_expsyms_cmds=
9157  thread_safe_flag_spec=
9158  whole_archive_flag_spec=
9159  # include_expsyms should be a list of space-separated symbols to be *always*
9160  # included in the symbol list
9161  include_expsyms=
9162  # exclude_expsyms can be an extended regexp of symbols to exclude
9163  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165  # as well as any symbol that contains `d'.
9166  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9167  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168  # platforms (ab)use it in PIC code, but their linkers get confused if
9169  # the symbol is explicitly referenced.  Since portable code cannot
9170  # rely on this symbol name, it's probably fine to never include it in
9171  # preloaded symbol tables.
9172  # Exclude shared library initialization/finalization symbols.
9173  extract_expsyms_cmds=
9174
9175  case $host_os in
9176  cygwin* | mingw* | pw32* | cegcc*)
9177    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9178    # When not using gcc, we currently assume that we are using
9179    # Microsoft Visual C++.
9180    if test "$GCC" != yes; then
9181      with_gnu_ld=no
9182    fi
9183    ;;
9184  interix*)
9185    # we just hope/assume this is gcc and not c89 (= MSVC++)
9186    with_gnu_ld=yes
9187    ;;
9188  openbsd*)
9189    with_gnu_ld=no
9190    ;;
9191  esac
9192
9193  ld_shlibs=yes
9194
9195  # On some targets, GNU ld is compatible enough with the native linker
9196  # that we're better off using the native interface for both.
9197  lt_use_gnu_ld_interface=no
9198  if test "$with_gnu_ld" = yes; then
9199    case $host_os in
9200      aix*)
9201	# The AIX port of GNU ld has always aspired to compatibility
9202	# with the native linker.  However, as the warning in the GNU ld
9203	# block says, versions before 2.19.5* couldn't really create working
9204	# shared libraries, regardless of the interface used.
9205	case `$LD -v 2>&1` in
9206	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9207	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9208	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9209	  *)
9210	    lt_use_gnu_ld_interface=yes
9211	    ;;
9212	esac
9213	;;
9214      *)
9215	lt_use_gnu_ld_interface=yes
9216	;;
9217    esac
9218  fi
9219
9220  if test "$lt_use_gnu_ld_interface" = yes; then
9221    # If archive_cmds runs LD, not CC, wlarc should be empty
9222    wlarc='${wl}'
9223
9224    # Set some defaults for GNU ld with shared library support. These
9225    # are reset later if shared libraries are not supported. Putting them
9226    # here allows them to be overridden if necessary.
9227    runpath_var=LD_RUN_PATH
9228    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229    export_dynamic_flag_spec='${wl}--export-dynamic'
9230    # ancient GNU ld didn't support --whole-archive et. al.
9231    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9232      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9233    else
9234      whole_archive_flag_spec=
9235    fi
9236    supports_anon_versioning=no
9237    case `$LD -v 2>&1` in
9238      *GNU\ gold*) supports_anon_versioning=yes ;;
9239      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9240      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9241      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9242      *\ 2.11.*) ;; # other 2.11 versions
9243      *) supports_anon_versioning=yes ;;
9244    esac
9245
9246    # See if GNU ld supports shared libraries.
9247    case $host_os in
9248    aix[3-9]*)
9249      # On AIX/PPC, the GNU linker is very broken
9250      if test "$host_cpu" != ia64; then
9251	ld_shlibs=no
9252	cat <<_LT_EOF 1>&2
9253
9254*** Warning: the GNU linker, at least up to release 2.19, is reported
9255*** to be unable to reliably create shared libraries on AIX.
9256*** Therefore, libtool is disabling shared libraries support.  If you
9257*** really care for shared libraries, you may want to install binutils
9258*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259*** You will then need to restart the configuration process.
9260
9261_LT_EOF
9262      fi
9263      ;;
9264
9265    amigaos*)
9266      case $host_cpu in
9267      powerpc)
9268            # see comment about AmigaOS4 .so support
9269            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270            archive_expsym_cmds=''
9271        ;;
9272      m68k)
9273            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)'
9274            hardcode_libdir_flag_spec='-L$libdir'
9275            hardcode_minus_L=yes
9276        ;;
9277      esac
9278      ;;
9279
9280    beos*)
9281      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282	allow_undefined_flag=unsupported
9283	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284	# support --undefined.  This deserves some investigation.  FIXME
9285	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286      else
9287	ld_shlibs=no
9288      fi
9289      ;;
9290
9291    cygwin* | mingw* | pw32* | cegcc*)
9292      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293      # as there is no search path for DLLs.
9294      hardcode_libdir_flag_spec='-L$libdir'
9295      export_dynamic_flag_spec='${wl}--export-all-symbols'
9296      allow_undefined_flag=unsupported
9297      always_export_symbols=no
9298      enable_shared_with_static_runtimes=yes
9299      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9300
9301      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9302        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9303	# If the export-symbols file already is a .def file (1st line
9304	# is EXPORTS), use it as is; otherwise, prepend...
9305	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9306	  cp $export_symbols $output_objdir/$soname.def;
9307	else
9308	  echo EXPORTS > $output_objdir/$soname.def;
9309	  cat $export_symbols >> $output_objdir/$soname.def;
9310	fi~
9311	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9312      else
9313	ld_shlibs=no
9314      fi
9315      ;;
9316
9317    haiku*)
9318      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319      link_all_deplibs=yes
9320      ;;
9321
9322    interix[3-9]*)
9323      hardcode_direct=no
9324      hardcode_shlibpath_var=no
9325      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9326      export_dynamic_flag_spec='${wl}-E'
9327      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9328      # Instead, shared libraries are loaded at an image base (0x10000000 by
9329      # default) and relocated if they conflict, which is a slow very memory
9330      # consuming and fragmenting process.  To avoid this, we pick a random,
9331      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9332      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9333      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9334      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'
9335      ;;
9336
9337    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9338      tmp_diet=no
9339      if test "$host_os" = linux-dietlibc; then
9340	case $cc_basename in
9341	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9342	esac
9343      fi
9344      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9345	 && test "$tmp_diet" = no
9346      then
9347	tmp_addflag=' $pic_flag'
9348	tmp_sharedflag='-shared'
9349	case $cc_basename,$host_cpu in
9350        pgcc*)				# Portland Group C compiler
9351	  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'
9352	  tmp_addflag=' $pic_flag'
9353	  ;;
9354	pgf77* | pgf90* | pgf95* | pgfortran*)
9355					# Portland Group f77 and f90 compilers
9356	  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'
9357	  tmp_addflag=' $pic_flag -Mnomain' ;;
9358	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9359	  tmp_addflag=' -i_dynamic' ;;
9360	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9361	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9362	ifc* | ifort*)			# Intel Fortran compiler
9363	  tmp_addflag=' -nofor_main' ;;
9364	lf95*)				# Lahey Fortran 8.1
9365	  whole_archive_flag_spec=
9366	  tmp_sharedflag='--shared' ;;
9367	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9368	  tmp_sharedflag='-qmkshrobj'
9369	  tmp_addflag= ;;
9370	nvcc*)	# Cuda Compiler Driver 2.2
9371	  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'
9372	  compiler_needs_object=yes
9373	  ;;
9374	esac
9375	case `$CC -V 2>&1 | sed 5q` in
9376	*Sun\ C*)			# Sun C 5.9
9377	  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'
9378	  compiler_needs_object=yes
9379	  tmp_sharedflag='-G' ;;
9380	*Sun\ F*)			# Sun Fortran 8.3
9381	  tmp_sharedflag='-G' ;;
9382	esac
9383	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384
9385        if test "x$supports_anon_versioning" = xyes; then
9386          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9387	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9388	    echo "local: *; };" >> $output_objdir/$libname.ver~
9389	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9390        fi
9391
9392	case $cc_basename in
9393	xlf* | bgf* | bgxlf* | mpixlf*)
9394	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9395	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9396	  hardcode_libdir_flag_spec=
9397	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9398	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9399	  if test "x$supports_anon_versioning" = xyes; then
9400	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9401	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9402	      echo "local: *; };" >> $output_objdir/$libname.ver~
9403	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9404	  fi
9405	  ;;
9406	esac
9407      else
9408        ld_shlibs=no
9409      fi
9410      ;;
9411
9412    netbsd*)
9413      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9415	wlarc=
9416      else
9417	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419      fi
9420      ;;
9421
9422    solaris*)
9423      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9424	ld_shlibs=no
9425	cat <<_LT_EOF 1>&2
9426
9427*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9428*** create shared libraries on Solaris systems.  Therefore, libtool
9429*** is disabling shared libraries support.  We urge you to upgrade GNU
9430*** binutils to release 2.9.1 or newer.  Another option is to modify
9431*** your PATH or compiler configuration so that the native linker is
9432*** used, and then restart.
9433
9434_LT_EOF
9435      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9436	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9438      else
9439	ld_shlibs=no
9440      fi
9441      ;;
9442
9443    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9444      case `$LD -v 2>&1` in
9445        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9446	ld_shlibs=no
9447	cat <<_LT_EOF 1>&2
9448
9449*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9450*** reliably create shared libraries on SCO systems.  Therefore, libtool
9451*** is disabling shared libraries support.  We urge you to upgrade GNU
9452*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9453*** your PATH or compiler configuration so that the native linker is
9454*** used, and then restart.
9455
9456_LT_EOF
9457	;;
9458	*)
9459	  # For security reasons, it is highly recommended that you always
9460	  # use absolute paths for naming shared libraries, and exclude the
9461	  # DT_RUNPATH tag from executables and libraries.  But doing so
9462	  # requires that you compile everything twice, which is a pain.
9463	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467	  else
9468	    ld_shlibs=no
9469	  fi
9470	;;
9471      esac
9472      ;;
9473
9474    sunos4*)
9475      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476      wlarc=
9477      hardcode_direct=yes
9478      hardcode_shlibpath_var=no
9479      ;;
9480
9481    *)
9482      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485      else
9486	ld_shlibs=no
9487      fi
9488      ;;
9489    esac
9490
9491    if test "$ld_shlibs" = no; then
9492      runpath_var=
9493      hardcode_libdir_flag_spec=
9494      export_dynamic_flag_spec=
9495      whole_archive_flag_spec=
9496    fi
9497  else
9498    # PORTME fill in a description of your system's linker (not GNU ld)
9499    case $host_os in
9500    aix3*)
9501      allow_undefined_flag=unsupported
9502      always_export_symbols=yes
9503      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'
9504      # Note: this linker hardcodes the directories in LIBPATH if there
9505      # are no directories specified by -L.
9506      hardcode_minus_L=yes
9507      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9508	# Neither direct hardcoding nor static linking is supported with a
9509	# broken collect2.
9510	hardcode_direct=unsupported
9511      fi
9512      ;;
9513
9514    aix[4-9]*)
9515      if test "$host_cpu" = ia64; then
9516	# On IA64, the linker does run time linking by default, so we don't
9517	# have to do anything special.
9518	aix_use_runtimelinking=no
9519	exp_sym_flag='-Bexport'
9520	no_entry_flag=""
9521      else
9522	# If we're using GNU nm, then we don't want the "-C" option.
9523	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9524	# Also, AIX nm treats weak defined symbols like other global
9525	# defined symbols, whereas GNU nm marks them as "W".
9526	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9527	  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'
9528	else
9529	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9530	fi
9531	aix_use_runtimelinking=no
9532
9533	# Test if we are trying to use run time linking or normal
9534	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9535	# need to do runtime linking.
9536	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9537	  for ld_flag in $LDFLAGS; do
9538	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9539	    aix_use_runtimelinking=yes
9540	    break
9541	  fi
9542	  done
9543	  ;;
9544	esac
9545
9546	exp_sym_flag='-bexport'
9547	no_entry_flag='-bnoentry'
9548      fi
9549
9550      # When large executables or shared objects are built, AIX ld can
9551      # have problems creating the table of contents.  If linking a library
9552      # or program results in "error TOC overflow" add -mminimal-toc to
9553      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9554      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9555
9556      archive_cmds=''
9557      hardcode_direct=yes
9558      hardcode_direct_absolute=yes
9559      hardcode_libdir_separator=':'
9560      link_all_deplibs=yes
9561      file_list_spec='${wl}-f,'
9562
9563      if test "$GCC" = yes; then
9564	case $host_os in aix4.[012]|aix4.[012].*)
9565	# We only want to do this on AIX 4.2 and lower, the check
9566	# below for broken collect2 doesn't work under 4.3+
9567	  collect2name=`${CC} -print-prog-name=collect2`
9568	  if test -f "$collect2name" &&
9569	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9570	  then
9571	  # We have reworked collect2
9572	  :
9573	  else
9574	  # We have old collect2
9575	  hardcode_direct=unsupported
9576	  # It fails to find uninstalled libraries when the uninstalled
9577	  # path is not listed in the libpath.  Setting hardcode_minus_L
9578	  # to unsupported forces relinking
9579	  hardcode_minus_L=yes
9580	  hardcode_libdir_flag_spec='-L$libdir'
9581	  hardcode_libdir_separator=
9582	  fi
9583	  ;;
9584	esac
9585	shared_flag='-shared'
9586	if test "$aix_use_runtimelinking" = yes; then
9587	  shared_flag="$shared_flag "'${wl}-G'
9588	fi
9589      else
9590	# not using gcc
9591	if test "$host_cpu" = ia64; then
9592	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9593	# chokes on -Wl,-G. The following line is correct:
9594	  shared_flag='-G'
9595	else
9596	  if test "$aix_use_runtimelinking" = yes; then
9597	    shared_flag='${wl}-G'
9598	  else
9599	    shared_flag='${wl}-bM:SRE'
9600	  fi
9601	fi
9602      fi
9603
9604      export_dynamic_flag_spec='${wl}-bexpall'
9605      # It seems that -bexpall does not export symbols beginning with
9606      # underscore (_), so it is better to generate a list of symbols to export.
9607      always_export_symbols=yes
9608      if test "$aix_use_runtimelinking" = yes; then
9609	# Warning - without using the other runtime loading flags (-brtl),
9610	# -berok will link without error, but may produce a broken library.
9611	allow_undefined_flag='-berok'
9612        # Determine the default libpath from the value encoded in an
9613        # empty executable.
9614        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615/* end confdefs.h.  */
9616
9617int
9618main ()
9619{
9620
9621  ;
9622  return 0;
9623}
9624_ACEOF
9625if ac_fn_c_try_link "$LINENO"; then :
9626
9627lt_aix_libpath_sed='
9628    /Import File Strings/,/^$/ {
9629	/^0/ {
9630	    s/^0  *\(.*\)$/\1/
9631	    p
9632	}
9633    }'
9634aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635# Check for a 64-bit object if we didn't find anything.
9636if test -z "$aix_libpath"; then
9637  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638fi
9639fi
9640rm -f core conftest.err conftest.$ac_objext \
9641    conftest$ac_exeext conftest.$ac_ext
9642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9643
9644        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9645        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"
9646      else
9647	if test "$host_cpu" = ia64; then
9648	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9649	  allow_undefined_flag="-z nodefs"
9650	  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"
9651	else
9652	 # Determine the default libpath from the value encoded in an
9653	 # empty executable.
9654	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655/* end confdefs.h.  */
9656
9657int
9658main ()
9659{
9660
9661  ;
9662  return 0;
9663}
9664_ACEOF
9665if ac_fn_c_try_link "$LINENO"; then :
9666
9667lt_aix_libpath_sed='
9668    /Import File Strings/,/^$/ {
9669	/^0/ {
9670	    s/^0  *\(.*\)$/\1/
9671	    p
9672	}
9673    }'
9674aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675# Check for a 64-bit object if we didn't find anything.
9676if test -z "$aix_libpath"; then
9677  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678fi
9679fi
9680rm -f core conftest.err conftest.$ac_objext \
9681    conftest$ac_exeext conftest.$ac_ext
9682if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9683
9684	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9685	  # Warning - without using the other run time loading flags,
9686	  # -berok will link without error, but may produce a broken library.
9687	  no_undefined_flag=' ${wl}-bernotok'
9688	  allow_undefined_flag=' ${wl}-berok'
9689	  if test "$with_gnu_ld" = yes; then
9690	    # We only use this code for GNU lds that support --whole-archive.
9691	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9692	  else
9693	    # Exported symbols can be pulled into shared objects from archives
9694	    whole_archive_flag_spec='$convenience'
9695	  fi
9696	  archive_cmds_need_lc=yes
9697	  # This is similar to how AIX traditionally builds its shared libraries.
9698	  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'
9699	fi
9700      fi
9701      ;;
9702
9703    amigaos*)
9704      case $host_cpu in
9705      powerpc)
9706            # see comment about AmigaOS4 .so support
9707            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708            archive_expsym_cmds=''
9709        ;;
9710      m68k)
9711            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)'
9712            hardcode_libdir_flag_spec='-L$libdir'
9713            hardcode_minus_L=yes
9714        ;;
9715      esac
9716      ;;
9717
9718    bsdi[45]*)
9719      export_dynamic_flag_spec=-rdynamic
9720      ;;
9721
9722    cygwin* | mingw* | pw32* | cegcc*)
9723      # When not using gcc, we currently assume that we are using
9724      # Microsoft Visual C++.
9725      # hardcode_libdir_flag_spec is actually meaningless, as there is
9726      # no search path for DLLs.
9727      hardcode_libdir_flag_spec=' '
9728      allow_undefined_flag=unsupported
9729      # Tell ltmain to make .lib files, not .a files.
9730      libext=lib
9731      # Tell ltmain to make .dll files, not .so files.
9732      shrext_cmds=".dll"
9733      # FIXME: Setting linknames here is a bad hack.
9734      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9735      # The linker will automatically build a .lib file if we build a DLL.
9736      old_archive_from_new_cmds='true'
9737      # FIXME: Should let the user specify the lib program.
9738      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9739      fix_srcfile_path='`cygpath -w "$srcfile"`'
9740      enable_shared_with_static_runtimes=yes
9741      ;;
9742
9743    darwin* | rhapsody*)
9744
9745
9746  archive_cmds_need_lc=no
9747  hardcode_direct=no
9748  hardcode_automatic=yes
9749  hardcode_shlibpath_var=unsupported
9750  if test "$lt_cv_ld_force_load" = "yes"; then
9751    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\"`'
9752  else
9753    whole_archive_flag_spec=''
9754  fi
9755  link_all_deplibs=yes
9756  allow_undefined_flag="$_lt_dar_allow_undefined"
9757  case $cc_basename in
9758     ifort*) _lt_dar_can_shared=yes ;;
9759     *) _lt_dar_can_shared=$GCC ;;
9760  esac
9761  if test "$_lt_dar_can_shared" = "yes"; then
9762    output_verbose_link_cmd=func_echo_all
9763    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9764    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9765    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}"
9766    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}"
9767
9768  else
9769  ld_shlibs=no
9770  fi
9771
9772      ;;
9773
9774    dgux*)
9775      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776      hardcode_libdir_flag_spec='-L$libdir'
9777      hardcode_shlibpath_var=no
9778      ;;
9779
9780    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9781    # support.  Future versions do this automatically, but an explicit c++rt0.o
9782    # does not break anything, and helps significantly (at the cost of a little
9783    # extra space).
9784    freebsd2.2*)
9785      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9786      hardcode_libdir_flag_spec='-R$libdir'
9787      hardcode_direct=yes
9788      hardcode_shlibpath_var=no
9789      ;;
9790
9791    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9792    freebsd2.*)
9793      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9794      hardcode_direct=yes
9795      hardcode_minus_L=yes
9796      hardcode_shlibpath_var=no
9797      ;;
9798
9799    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9800    freebsd* | dragonfly*)
9801      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9802      hardcode_libdir_flag_spec='-R$libdir'
9803      hardcode_direct=yes
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    hpux9*)
9808      if test "$GCC" = yes; then
9809	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9810      else
9811	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'
9812      fi
9813      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814      hardcode_libdir_separator=:
9815      hardcode_direct=yes
9816
9817      # hardcode_minus_L: Not really in the search PATH,
9818      # but as the default location of the library.
9819      hardcode_minus_L=yes
9820      export_dynamic_flag_spec='${wl}-E'
9821      ;;
9822
9823    hpux10*)
9824      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9825	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826      else
9827	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9828      fi
9829      if test "$with_gnu_ld" = no; then
9830	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831	hardcode_libdir_flag_spec_ld='+b $libdir'
9832	hardcode_libdir_separator=:
9833	hardcode_direct=yes
9834	hardcode_direct_absolute=yes
9835	export_dynamic_flag_spec='${wl}-E'
9836	# hardcode_minus_L: Not really in the search PATH,
9837	# but as the default location of the library.
9838	hardcode_minus_L=yes
9839      fi
9840      ;;
9841
9842    hpux11*)
9843      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9844	case $host_cpu in
9845	hppa*64*)
9846	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9847	  ;;
9848	ia64*)
9849	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9850	  ;;
9851	*)
9852	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853	  ;;
9854	esac
9855      else
9856	case $host_cpu in
9857	hppa*64*)
9858	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859	  ;;
9860	ia64*)
9861	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862	  ;;
9863	*)
9864
9865	  # Older versions of the 11.00 compiler do not understand -b yet
9866	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9867	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9868$as_echo_n "checking if $CC understands -b... " >&6; }
9869if ${lt_cv_prog_compiler__b+:} false; then :
9870  $as_echo_n "(cached) " >&6
9871else
9872  lt_cv_prog_compiler__b=no
9873   save_LDFLAGS="$LDFLAGS"
9874   LDFLAGS="$LDFLAGS -b"
9875   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9876   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9877     # The linker can only warn and ignore the option if not recognized
9878     # So say no if there are warnings
9879     if test -s conftest.err; then
9880       # Append any errors to the config.log.
9881       cat conftest.err 1>&5
9882       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9883       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9884       if diff conftest.exp conftest.er2 >/dev/null; then
9885         lt_cv_prog_compiler__b=yes
9886       fi
9887     else
9888       lt_cv_prog_compiler__b=yes
9889     fi
9890   fi
9891   $RM -r conftest*
9892   LDFLAGS="$save_LDFLAGS"
9893
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9896$as_echo "$lt_cv_prog_compiler__b" >&6; }
9897
9898if test x"$lt_cv_prog_compiler__b" = xyes; then
9899    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900else
9901    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9902fi
9903
9904	  ;;
9905	esac
9906      fi
9907      if test "$with_gnu_ld" = no; then
9908	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909	hardcode_libdir_separator=:
9910
9911	case $host_cpu in
9912	hppa*64*|ia64*)
9913	  hardcode_direct=no
9914	  hardcode_shlibpath_var=no
9915	  ;;
9916	*)
9917	  hardcode_direct=yes
9918	  hardcode_direct_absolute=yes
9919	  export_dynamic_flag_spec='${wl}-E'
9920
9921	  # hardcode_minus_L: Not really in the search PATH,
9922	  # but as the default location of the library.
9923	  hardcode_minus_L=yes
9924	  ;;
9925	esac
9926      fi
9927      ;;
9928
9929    irix5* | irix6* | nonstopux*)
9930      if test "$GCC" = yes; then
9931	archive_cmds='$CC -shared $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'
9932	# Try to use the -exported_symbol ld option, if it does not
9933	# work, assume that -exports_file does not work either and
9934	# implicitly export all symbols.
9935        save_LDFLAGS="$LDFLAGS"
9936        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9937        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h.  */
9939int foo(void) {}
9940_ACEOF
9941if ac_fn_c_try_link "$LINENO"; then :
9942  archive_expsym_cmds='$CC -shared $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'
9943
9944fi
9945rm -f core conftest.err conftest.$ac_objext \
9946    conftest$ac_exeext conftest.$ac_ext
9947        LDFLAGS="$save_LDFLAGS"
9948      else
9949	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'
9950	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'
9951      fi
9952      archive_cmds_need_lc='no'
9953      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954      hardcode_libdir_separator=:
9955      inherit_rpath=yes
9956      link_all_deplibs=yes
9957      ;;
9958
9959    netbsd*)
9960      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9961	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9962      else
9963	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9964      fi
9965      hardcode_libdir_flag_spec='-R$libdir'
9966      hardcode_direct=yes
9967      hardcode_shlibpath_var=no
9968      ;;
9969
9970    newsos6)
9971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972      hardcode_direct=yes
9973      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974      hardcode_libdir_separator=:
9975      hardcode_shlibpath_var=no
9976      ;;
9977
9978    *nto* | *qnx*)
9979      ;;
9980
9981    openbsd*)
9982      if test -f /usr/libexec/ld.so; then
9983	hardcode_direct=yes
9984	hardcode_shlibpath_var=no
9985	hardcode_direct_absolute=yes
9986	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9987	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9989	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990	  export_dynamic_flag_spec='${wl}-E'
9991	else
9992	  case $host_os in
9993	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9994	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995	     hardcode_libdir_flag_spec='-R$libdir'
9996	     ;;
9997	   *)
9998	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10000	     ;;
10001	  esac
10002	fi
10003      else
10004	ld_shlibs=no
10005      fi
10006      ;;
10007
10008    os2*)
10009      hardcode_libdir_flag_spec='-L$libdir'
10010      hardcode_minus_L=yes
10011      allow_undefined_flag=unsupported
10012      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'
10013      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10014      ;;
10015
10016    osf3*)
10017      if test "$GCC" = yes; then
10018	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019	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'
10020      else
10021	allow_undefined_flag=' -expect_unresolved \*'
10022	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'
10023      fi
10024      archive_cmds_need_lc='no'
10025      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026      hardcode_libdir_separator=:
10027      ;;
10028
10029    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10030      if test "$GCC" = yes; then
10031	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10032	archive_cmds='$CC -shared${allow_undefined_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'
10033	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034      else
10035	allow_undefined_flag=' -expect_unresolved \*'
10036	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'
10037	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~
10038	$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'
10039
10040	# Both c and cxx compiler support -rpath directly
10041	hardcode_libdir_flag_spec='-rpath $libdir'
10042      fi
10043      archive_cmds_need_lc='no'
10044      hardcode_libdir_separator=:
10045      ;;
10046
10047    solaris*)
10048      no_undefined_flag=' -z defs'
10049      if test "$GCC" = yes; then
10050	wlarc='${wl}'
10051	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10054      else
10055	case `$CC -V 2>&1` in
10056	*"Compilers 5.0"*)
10057	  wlarc=''
10058	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10061	  ;;
10062	*)
10063	  wlarc='${wl}'
10064	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10067	  ;;
10068	esac
10069      fi
10070      hardcode_libdir_flag_spec='-R$libdir'
10071      hardcode_shlibpath_var=no
10072      case $host_os in
10073      solaris2.[0-5] | solaris2.[0-5].*) ;;
10074      *)
10075	# The compiler driver will combine and reorder linker options,
10076	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10077	# but is careful enough not to reorder.
10078	# Supported since Solaris 2.6 (maybe 2.5.1?)
10079	if test "$GCC" = yes; then
10080	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10081	else
10082	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083	fi
10084	;;
10085      esac
10086      link_all_deplibs=yes
10087      ;;
10088
10089    sunos4*)
10090      if test "x$host_vendor" = xsequent; then
10091	# Use $CC to link under sequent, because it throws in some extra .o
10092	# files that make .init and .fini sections work.
10093	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094      else
10095	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10096      fi
10097      hardcode_libdir_flag_spec='-L$libdir'
10098      hardcode_direct=yes
10099      hardcode_minus_L=yes
10100      hardcode_shlibpath_var=no
10101      ;;
10102
10103    sysv4)
10104      case $host_vendor in
10105	sni)
10106	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107	  hardcode_direct=yes # is this really true???
10108	;;
10109	siemens)
10110	  ## LD is ld it makes a PLAMLIB
10111	  ## CC just makes a GrossModule.
10112	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10113	  reload_cmds='$CC -r -o $output$reload_objs'
10114	  hardcode_direct=no
10115        ;;
10116	motorola)
10117	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10119	;;
10120      esac
10121      runpath_var='LD_RUN_PATH'
10122      hardcode_shlibpath_var=no
10123      ;;
10124
10125    sysv4.3*)
10126      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127      hardcode_shlibpath_var=no
10128      export_dynamic_flag_spec='-Bexport'
10129      ;;
10130
10131    sysv4*MP*)
10132      if test -d /usr/nec; then
10133	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134	hardcode_shlibpath_var=no
10135	runpath_var=LD_RUN_PATH
10136	hardcode_runpath_var=yes
10137	ld_shlibs=yes
10138      fi
10139      ;;
10140
10141    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10142      no_undefined_flag='${wl}-z,text'
10143      archive_cmds_need_lc=no
10144      hardcode_shlibpath_var=no
10145      runpath_var='LD_RUN_PATH'
10146
10147      if test "$GCC" = yes; then
10148	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150      else
10151	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153      fi
10154      ;;
10155
10156    sysv5* | sco3.2v5* | sco5v6*)
10157      # Note: We can NOT use -z defs as we might desire, because we do not
10158      # link with -lc, and that would cause any symbols used from libc to
10159      # always be unresolved, which means just about no library would
10160      # ever link correctly.  If we're not using GNU ld we use -z text
10161      # though, which does catch some bad symbols but isn't as heavy-handed
10162      # as -z defs.
10163      no_undefined_flag='${wl}-z,text'
10164      allow_undefined_flag='${wl}-z,nodefs'
10165      archive_cmds_need_lc=no
10166      hardcode_shlibpath_var=no
10167      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10168      hardcode_libdir_separator=':'
10169      link_all_deplibs=yes
10170      export_dynamic_flag_spec='${wl}-Bexport'
10171      runpath_var='LD_RUN_PATH'
10172
10173      if test "$GCC" = yes; then
10174	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176      else
10177	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179      fi
10180      ;;
10181
10182    uts4*)
10183      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184      hardcode_libdir_flag_spec='-L$libdir'
10185      hardcode_shlibpath_var=no
10186      ;;
10187
10188    *)
10189      ld_shlibs=no
10190      ;;
10191    esac
10192
10193    if test x$host_vendor = xsni; then
10194      case $host in
10195      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196	export_dynamic_flag_spec='${wl}-Blargedynsym'
10197	;;
10198      esac
10199    fi
10200  fi
10201
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10203$as_echo "$ld_shlibs" >&6; }
10204test "$ld_shlibs" = no && can_build_shared=no
10205
10206with_gnu_ld=$with_gnu_ld
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222#
10223# Do we need to explicitly link libc?
10224#
10225case "x$archive_cmds_need_lc" in
10226x|xyes)
10227  # Assume -lc should be added
10228  archive_cmds_need_lc=yes
10229
10230  if test "$enable_shared" = yes && test "$GCC" = yes; then
10231    case $archive_cmds in
10232    *'~'*)
10233      # FIXME: we may have to deal with multi-command sequences.
10234      ;;
10235    '$CC '*)
10236      # Test whether the compiler implicitly links with -lc since on some
10237      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10238      # to ld, don't add -lc before -lgcc.
10239      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10240$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10241if ${lt_cv_archive_cmds_need_lc+:} false; then :
10242  $as_echo_n "(cached) " >&6
10243else
10244  $RM conftest*
10245	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10246
10247	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10248  (eval $ac_compile) 2>&5
10249  ac_status=$?
10250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10251  test $ac_status = 0; } 2>conftest.err; then
10252	  soname=conftest
10253	  lib=conftest
10254	  libobjs=conftest.$ac_objext
10255	  deplibs=
10256	  wl=$lt_prog_compiler_wl
10257	  pic_flag=$lt_prog_compiler_pic
10258	  compiler_flags=-v
10259	  linker_flags=-v
10260	  verstring=
10261	  output_objdir=.
10262	  libname=conftest
10263	  lt_save_allow_undefined_flag=$allow_undefined_flag
10264	  allow_undefined_flag=
10265	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10266  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10267  ac_status=$?
10268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10269  test $ac_status = 0; }
10270	  then
10271	    lt_cv_archive_cmds_need_lc=no
10272	  else
10273	    lt_cv_archive_cmds_need_lc=yes
10274	  fi
10275	  allow_undefined_flag=$lt_save_allow_undefined_flag
10276	else
10277	  cat conftest.err 1>&5
10278	fi
10279	$RM conftest*
10280
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10283$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10284      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10285      ;;
10286    esac
10287  fi
10288  ;;
10289esac
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10448$as_echo_n "checking dynamic linker characteristics... " >&6; }
10449
10450if test "$GCC" = yes; then
10451  case $host_os in
10452    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10453    *) lt_awk_arg="/^libraries:/" ;;
10454  esac
10455  case $host_os in
10456    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10457    *) lt_sed_strip_eq="s,=/,/,g" ;;
10458  esac
10459  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10460  case $lt_search_path_spec in
10461  *\;*)
10462    # if the path contains ";" then we assume it to be the separator
10463    # otherwise default to the standard path separator (i.e. ":") - it is
10464    # assumed that no part of a normal pathname contains ";" but that should
10465    # okay in the real world where ";" in dirpaths is itself problematic.
10466    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10467    ;;
10468  *)
10469    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10470    ;;
10471  esac
10472  # Ok, now we have the path, separated by spaces, we can step through it
10473  # and add multilib dir if necessary.
10474  lt_tmp_lt_search_path_spec=
10475  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10476  for lt_sys_path in $lt_search_path_spec; do
10477    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10478      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10479    else
10480      test -d "$lt_sys_path" && \
10481	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10482    fi
10483  done
10484  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10485BEGIN {RS=" "; FS="/|\n";} {
10486  lt_foo="";
10487  lt_count=0;
10488  for (lt_i = NF; lt_i > 0; lt_i--) {
10489    if ($lt_i != "" && $lt_i != ".") {
10490      if ($lt_i == "..") {
10491        lt_count++;
10492      } else {
10493        if (lt_count == 0) {
10494          lt_foo="/" $lt_i lt_foo;
10495        } else {
10496          lt_count--;
10497        }
10498      }
10499    }
10500  }
10501  if (lt_foo != "") { lt_freq[lt_foo]++; }
10502  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10503}'`
10504  # AWK program above erroneously prepends '/' to C:/dos/paths
10505  # for these hosts.
10506  case $host_os in
10507    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10508      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10509  esac
10510  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10511else
10512  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10513fi
10514library_names_spec=
10515libname_spec='lib$name'
10516soname_spec=
10517shrext_cmds=".so"
10518postinstall_cmds=
10519postuninstall_cmds=
10520finish_cmds=
10521finish_eval=
10522shlibpath_var=
10523shlibpath_overrides_runpath=unknown
10524version_type=none
10525dynamic_linker="$host_os ld.so"
10526sys_lib_dlsearch_path_spec="/lib /usr/lib"
10527need_lib_prefix=unknown
10528hardcode_into_libs=no
10529
10530# when you set need_version to no, make sure it does not cause -set_version
10531# flags to be left without arguments
10532need_version=unknown
10533
10534case $host_os in
10535aix3*)
10536  version_type=linux
10537  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10538  shlibpath_var=LIBPATH
10539
10540  # AIX 3 has no versioning support, so we append a major version to the name.
10541  soname_spec='${libname}${release}${shared_ext}$major'
10542  ;;
10543
10544aix[4-9]*)
10545  version_type=linux
10546  need_lib_prefix=no
10547  need_version=no
10548  hardcode_into_libs=yes
10549  if test "$host_cpu" = ia64; then
10550    # AIX 5 supports IA64
10551    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10552    shlibpath_var=LD_LIBRARY_PATH
10553  else
10554    # With GCC up to 2.95.x, collect2 would create an import file
10555    # for dependence libraries.  The import file would start with
10556    # the line `#! .'.  This would cause the generated library to
10557    # depend on `.', always an invalid library.  This was fixed in
10558    # development snapshots of GCC prior to 3.0.
10559    case $host_os in
10560      aix4 | aix4.[01] | aix4.[01].*)
10561      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10562	   echo ' yes '
10563	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10564	:
10565      else
10566	can_build_shared=no
10567      fi
10568      ;;
10569    esac
10570    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10571    # soname into executable. Probably we can add versioning support to
10572    # collect2, so additional links can be useful in future.
10573    if test "$aix_use_runtimelinking" = yes; then
10574      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10575      # instead of lib<name>.a to let people know that these are not
10576      # typical AIX shared libraries.
10577      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578    else
10579      # We preserve .a as extension for shared libraries through AIX4.2
10580      # and later when we are not doing run time linking.
10581      library_names_spec='${libname}${release}.a $libname.a'
10582      soname_spec='${libname}${release}${shared_ext}$major'
10583    fi
10584    shlibpath_var=LIBPATH
10585  fi
10586  ;;
10587
10588amigaos*)
10589  case $host_cpu in
10590  powerpc)
10591    # Since July 2007 AmigaOS4 officially supports .so libraries.
10592    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594    ;;
10595  m68k)
10596    library_names_spec='$libname.ixlibrary $libname.a'
10597    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10598    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'
10599    ;;
10600  esac
10601  ;;
10602
10603beos*)
10604  library_names_spec='${libname}${shared_ext}'
10605  dynamic_linker="$host_os ld.so"
10606  shlibpath_var=LIBRARY_PATH
10607  ;;
10608
10609bsdi[45]*)
10610  version_type=linux
10611  need_version=no
10612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613  soname_spec='${libname}${release}${shared_ext}$major'
10614  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10615  shlibpath_var=LD_LIBRARY_PATH
10616  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10617  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10618  # the default ld.so.conf also contains /usr/contrib/lib and
10619  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10620  # libtool to hard-code these into programs
10621  ;;
10622
10623cygwin* | mingw* | pw32* | cegcc*)
10624  version_type=windows
10625  shrext_cmds=".dll"
10626  need_version=no
10627  need_lib_prefix=no
10628
10629  case $GCC,$host_os in
10630  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10631    library_names_spec='$libname.dll.a'
10632    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633    postinstall_cmds='base_file=`basename \${file}`~
10634      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10635      dldir=$destdir/`dirname \$dlpath`~
10636      test -d \$dldir || mkdir -p \$dldir~
10637      $install_prog $dir/$dlname \$dldir/$dlname~
10638      chmod a+x \$dldir/$dlname~
10639      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10640        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10641      fi'
10642    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10643      dlpath=$dir/\$dldll~
10644       $RM \$dlpath'
10645    shlibpath_overrides_runpath=yes
10646
10647    case $host_os in
10648    cygwin*)
10649      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10650      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10651
10652      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10653      ;;
10654    mingw* | cegcc*)
10655      # MinGW DLLs use traditional 'lib' prefix
10656      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657      ;;
10658    pw32*)
10659      # pw32 DLLs use 'pw' prefix rather than 'lib'
10660      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661      ;;
10662    esac
10663    ;;
10664
10665  *)
10666    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10667    ;;
10668  esac
10669  dynamic_linker='Win32 ld.exe'
10670  # FIXME: first we should search . and the directory the executable is in
10671  shlibpath_var=PATH
10672  ;;
10673
10674darwin* | rhapsody*)
10675  dynamic_linker="$host_os dyld"
10676  version_type=darwin
10677  need_lib_prefix=no
10678  need_version=no
10679  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10680  soname_spec='${libname}${release}${major}$shared_ext'
10681  shlibpath_overrides_runpath=yes
10682  shlibpath_var=DYLD_LIBRARY_PATH
10683  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10684
10685  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10686  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10687  ;;
10688
10689dgux*)
10690  version_type=linux
10691  need_lib_prefix=no
10692  need_version=no
10693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10694  soname_spec='${libname}${release}${shared_ext}$major'
10695  shlibpath_var=LD_LIBRARY_PATH
10696  ;;
10697
10698freebsd* | dragonfly*)
10699  # DragonFly does not have aout.  When/if they implement a new
10700  # versioning mechanism, adjust this.
10701  if test -x /usr/bin/objformat; then
10702    objformat=`/usr/bin/objformat`
10703  else
10704    case $host_os in
10705    freebsd[23].*) objformat=aout ;;
10706    *) objformat=elf ;;
10707    esac
10708  fi
10709  version_type=freebsd-$objformat
10710  case $version_type in
10711    freebsd-elf*)
10712      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10713      need_version=no
10714      need_lib_prefix=no
10715      ;;
10716    freebsd-*)
10717      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10718      need_version=yes
10719      ;;
10720  esac
10721  shlibpath_var=LD_LIBRARY_PATH
10722  case $host_os in
10723  freebsd2.*)
10724    shlibpath_overrides_runpath=yes
10725    ;;
10726  freebsd3.[01]* | freebsdelf3.[01]*)
10727    shlibpath_overrides_runpath=yes
10728    hardcode_into_libs=yes
10729    ;;
10730  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10731  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10732    shlibpath_overrides_runpath=no
10733    hardcode_into_libs=yes
10734    ;;
10735  *) # from 4.6 on, and DragonFly
10736    shlibpath_overrides_runpath=yes
10737    hardcode_into_libs=yes
10738    ;;
10739  esac
10740  ;;
10741
10742gnu*)
10743  version_type=linux
10744  need_lib_prefix=no
10745  need_version=no
10746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10747  soname_spec='${libname}${release}${shared_ext}$major'
10748  shlibpath_var=LD_LIBRARY_PATH
10749  hardcode_into_libs=yes
10750  ;;
10751
10752haiku*)
10753  version_type=linux
10754  need_lib_prefix=no
10755  need_version=no
10756  dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10760  shlibpath_overrides_runpath=yes
10761  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10762  hardcode_into_libs=yes
10763  ;;
10764
10765hpux9* | hpux10* | hpux11*)
10766  # Give a soname corresponding to the major version so that dld.sl refuses to
10767  # link against other versions.
10768  version_type=sunos
10769  need_lib_prefix=no
10770  need_version=no
10771  case $host_cpu in
10772  ia64*)
10773    shrext_cmds='.so'
10774    hardcode_into_libs=yes
10775    dynamic_linker="$host_os dld.so"
10776    shlibpath_var=LD_LIBRARY_PATH
10777    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779    soname_spec='${libname}${release}${shared_ext}$major'
10780    if test "X$HPUX_IA64_MODE" = X32; then
10781      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10782    else
10783      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10784    fi
10785    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10786    ;;
10787  hppa*64*)
10788    shrext_cmds='.sl'
10789    hardcode_into_libs=yes
10790    dynamic_linker="$host_os dld.sl"
10791    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10792    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10793    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794    soname_spec='${libname}${release}${shared_ext}$major'
10795    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10796    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10797    ;;
10798  *)
10799    shrext_cmds='.sl'
10800    dynamic_linker="$host_os dld.sl"
10801    shlibpath_var=SHLIB_PATH
10802    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804    soname_spec='${libname}${release}${shared_ext}$major'
10805    ;;
10806  esac
10807  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10808  postinstall_cmds='chmod 555 $lib'
10809  # or fails outright, so override atomically:
10810  install_override_mode=555
10811  ;;
10812
10813interix[3-9]*)
10814  version_type=linux
10815  need_lib_prefix=no
10816  need_version=no
10817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818  soname_spec='${libname}${release}${shared_ext}$major'
10819  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10820  shlibpath_var=LD_LIBRARY_PATH
10821  shlibpath_overrides_runpath=no
10822  hardcode_into_libs=yes
10823  ;;
10824
10825irix5* | irix6* | nonstopux*)
10826  case $host_os in
10827    nonstopux*) version_type=nonstopux ;;
10828    *)
10829	if test "$lt_cv_prog_gnu_ld" = yes; then
10830		version_type=linux
10831	else
10832		version_type=irix
10833	fi ;;
10834  esac
10835  need_lib_prefix=no
10836  need_version=no
10837  soname_spec='${libname}${release}${shared_ext}$major'
10838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10839  case $host_os in
10840  irix5* | nonstopux*)
10841    libsuff= shlibsuff=
10842    ;;
10843  *)
10844    case $LD in # libtool.m4 will add one of these switches to LD
10845    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10846      libsuff= shlibsuff= libmagic=32-bit;;
10847    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10848      libsuff=32 shlibsuff=N32 libmagic=N32;;
10849    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10850      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10851    *) libsuff= shlibsuff= libmagic=never-match;;
10852    esac
10853    ;;
10854  esac
10855  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10856  shlibpath_overrides_runpath=no
10857  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10858  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10859  hardcode_into_libs=yes
10860  ;;
10861
10862# No shared lib support for Linux oldld, aout, or coff.
10863linux*oldld* | linux*aout* | linux*coff*)
10864  dynamic_linker=no
10865  ;;
10866
10867# This must be Linux ELF.
10868linux* | k*bsd*-gnu | kopensolaris*-gnu)
10869  version_type=linux
10870  need_lib_prefix=no
10871  need_version=no
10872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873  soname_spec='${libname}${release}${shared_ext}$major'
10874  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10875  shlibpath_var=LD_LIBRARY_PATH
10876  shlibpath_overrides_runpath=no
10877
10878  # Some binutils ld are patched to set DT_RUNPATH
10879  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10880  $as_echo_n "(cached) " >&6
10881else
10882  lt_cv_shlibpath_overrides_runpath=no
10883    save_LDFLAGS=$LDFLAGS
10884    save_libdir=$libdir
10885    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10886	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10887    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889
10890int
10891main ()
10892{
10893
10894  ;
10895  return 0;
10896}
10897_ACEOF
10898if ac_fn_c_try_link "$LINENO"; then :
10899  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10900  lt_cv_shlibpath_overrides_runpath=yes
10901fi
10902fi
10903rm -f core conftest.err conftest.$ac_objext \
10904    conftest$ac_exeext conftest.$ac_ext
10905    LDFLAGS=$save_LDFLAGS
10906    libdir=$save_libdir
10907
10908fi
10909
10910  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10911
10912  # This implies no fast_install, which is unacceptable.
10913  # Some rework will be needed to allow for fast_install
10914  # before this can be enabled.
10915  hardcode_into_libs=yes
10916
10917  # Append ld.so.conf contents to the search path
10918  if test -f /etc/ld.so.conf; then
10919    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' ' '`
10920    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10921  fi
10922
10923  # We used to test for /lib/ld.so.1 and disable shared libraries on
10924  # powerpc, because MkLinux only supported shared libraries with the
10925  # GNU dynamic linker.  Since this was broken with cross compilers,
10926  # most powerpc-linux boxes support dynamic linking these days and
10927  # people can always --disable-shared, the test was removed, and we
10928  # assume the GNU/Linux dynamic linker is in use.
10929  dynamic_linker='GNU/Linux ld.so'
10930  ;;
10931
10932netbsd*)
10933  version_type=sunos
10934  need_lib_prefix=no
10935  need_version=no
10936  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10937    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10938    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10939    dynamic_linker='NetBSD (a.out) ld.so'
10940  else
10941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10942    soname_spec='${libname}${release}${shared_ext}$major'
10943    dynamic_linker='NetBSD ld.elf_so'
10944  fi
10945  shlibpath_var=LD_LIBRARY_PATH
10946  shlibpath_overrides_runpath=yes
10947  hardcode_into_libs=yes
10948  ;;
10949
10950newsos6)
10951  version_type=linux
10952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953  shlibpath_var=LD_LIBRARY_PATH
10954  shlibpath_overrides_runpath=yes
10955  ;;
10956
10957*nto* | *qnx*)
10958  version_type=qnx
10959  need_lib_prefix=no
10960  need_version=no
10961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962  soname_spec='${libname}${release}${shared_ext}$major'
10963  shlibpath_var=LD_LIBRARY_PATH
10964  shlibpath_overrides_runpath=no
10965  hardcode_into_libs=yes
10966  dynamic_linker='ldqnx.so'
10967  ;;
10968
10969openbsd*)
10970  version_type=sunos
10971  sys_lib_dlsearch_path_spec="/usr/lib"
10972  need_lib_prefix=no
10973  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10974  case $host_os in
10975    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10976    *)				need_version=no  ;;
10977  esac
10978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980  shlibpath_var=LD_LIBRARY_PATH
10981  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982    case $host_os in
10983      openbsd2.[89] | openbsd2.[89].*)
10984	shlibpath_overrides_runpath=no
10985	;;
10986      *)
10987	shlibpath_overrides_runpath=yes
10988	;;
10989      esac
10990  else
10991    shlibpath_overrides_runpath=yes
10992  fi
10993  ;;
10994
10995os2*)
10996  libname_spec='$name'
10997  shrext_cmds=".dll"
10998  need_lib_prefix=no
10999  library_names_spec='$libname${shared_ext} $libname.a'
11000  dynamic_linker='OS/2 ld.exe'
11001  shlibpath_var=LIBPATH
11002  ;;
11003
11004osf3* | osf4* | osf5*)
11005  version_type=osf
11006  need_lib_prefix=no
11007  need_version=no
11008  soname_spec='${libname}${release}${shared_ext}$major'
11009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010  shlibpath_var=LD_LIBRARY_PATH
11011  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11012  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11013  ;;
11014
11015rdos*)
11016  dynamic_linker=no
11017  ;;
11018
11019solaris*)
11020  version_type=linux
11021  need_lib_prefix=no
11022  need_version=no
11023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024  soname_spec='${libname}${release}${shared_ext}$major'
11025  shlibpath_var=LD_LIBRARY_PATH
11026  shlibpath_overrides_runpath=yes
11027  hardcode_into_libs=yes
11028  # ldd complains unless libraries are executable
11029  postinstall_cmds='chmod +x $lib'
11030  ;;
11031
11032sunos4*)
11033  version_type=sunos
11034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11035  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11036  shlibpath_var=LD_LIBRARY_PATH
11037  shlibpath_overrides_runpath=yes
11038  if test "$with_gnu_ld" = yes; then
11039    need_lib_prefix=no
11040  fi
11041  need_version=yes
11042  ;;
11043
11044sysv4 | sysv4.3*)
11045  version_type=linux
11046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047  soname_spec='${libname}${release}${shared_ext}$major'
11048  shlibpath_var=LD_LIBRARY_PATH
11049  case $host_vendor in
11050    sni)
11051      shlibpath_overrides_runpath=no
11052      need_lib_prefix=no
11053      runpath_var=LD_RUN_PATH
11054      ;;
11055    siemens)
11056      need_lib_prefix=no
11057      ;;
11058    motorola)
11059      need_lib_prefix=no
11060      need_version=no
11061      shlibpath_overrides_runpath=no
11062      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11063      ;;
11064  esac
11065  ;;
11066
11067sysv4*MP*)
11068  if test -d /usr/nec ;then
11069    version_type=linux
11070    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071    soname_spec='$libname${shared_ext}.$major'
11072    shlibpath_var=LD_LIBRARY_PATH
11073  fi
11074  ;;
11075
11076sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077  version_type=freebsd-elf
11078  need_lib_prefix=no
11079  need_version=no
11080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081  soname_spec='${libname}${release}${shared_ext}$major'
11082  shlibpath_var=LD_LIBRARY_PATH
11083  shlibpath_overrides_runpath=yes
11084  hardcode_into_libs=yes
11085  if test "$with_gnu_ld" = yes; then
11086    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11087  else
11088    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11089    case $host_os in
11090      sco3.2v5*)
11091        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11092	;;
11093    esac
11094  fi
11095  sys_lib_dlsearch_path_spec='/usr/lib'
11096  ;;
11097
11098tpf*)
11099  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11100  version_type=linux
11101  need_lib_prefix=no
11102  need_version=no
11103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104  shlibpath_var=LD_LIBRARY_PATH
11105  shlibpath_overrides_runpath=no
11106  hardcode_into_libs=yes
11107  ;;
11108
11109uts4*)
11110  version_type=linux
11111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112  soname_spec='${libname}${release}${shared_ext}$major'
11113  shlibpath_var=LD_LIBRARY_PATH
11114  ;;
11115
11116*)
11117  dynamic_linker=no
11118  ;;
11119esac
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11121$as_echo "$dynamic_linker" >&6; }
11122test "$dynamic_linker" = no && can_build_shared=no
11123
11124variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11125if test "$GCC" = yes; then
11126  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11127fi
11128
11129if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11130  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11131fi
11132if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11133  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11134fi
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11228$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11229hardcode_action=
11230if test -n "$hardcode_libdir_flag_spec" ||
11231   test -n "$runpath_var" ||
11232   test "X$hardcode_automatic" = "Xyes" ; then
11233
11234  # We can hardcode non-existent directories.
11235  if test "$hardcode_direct" != no &&
11236     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11237     # have to relink, otherwise we might link with an installed library
11238     # when we should be linking with a yet-to-be-installed one
11239     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11240     test "$hardcode_minus_L" != no; then
11241    # Linking always hardcodes the temporary library directory.
11242    hardcode_action=relink
11243  else
11244    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11245    hardcode_action=immediate
11246  fi
11247else
11248  # We cannot hardcode anything, or else we can only hardcode existing
11249  # directories.
11250  hardcode_action=unsupported
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11253$as_echo "$hardcode_action" >&6; }
11254
11255if test "$hardcode_action" = relink ||
11256   test "$inherit_rpath" = yes; then
11257  # Fast installation is not supported
11258  enable_fast_install=no
11259elif test "$shlibpath_overrides_runpath" = yes ||
11260     test "$enable_shared" = no; then
11261  # Fast installation is not necessary
11262  enable_fast_install=needless
11263fi
11264
11265
11266
11267
11268
11269
11270  if test "x$enable_dlopen" != xyes; then
11271  enable_dlopen=unknown
11272  enable_dlopen_self=unknown
11273  enable_dlopen_self_static=unknown
11274else
11275  lt_cv_dlopen=no
11276  lt_cv_dlopen_libs=
11277
11278  case $host_os in
11279  beos*)
11280    lt_cv_dlopen="load_add_on"
11281    lt_cv_dlopen_libs=
11282    lt_cv_dlopen_self=yes
11283    ;;
11284
11285  mingw* | pw32* | cegcc*)
11286    lt_cv_dlopen="LoadLibrary"
11287    lt_cv_dlopen_libs=
11288    ;;
11289
11290  cygwin*)
11291    lt_cv_dlopen="dlopen"
11292    lt_cv_dlopen_libs=
11293    ;;
11294
11295  darwin*)
11296  # if libdl is installed we need to link against it
11297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298$as_echo_n "checking for dlopen in -ldl... " >&6; }
11299if ${ac_cv_lib_dl_dlopen+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  ac_check_lib_save_LIBS=$LIBS
11303LIBS="-ldl  $LIBS"
11304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305/* end confdefs.h.  */
11306
11307/* Override any GCC internal prototype to avoid an error.
11308   Use char because int might match the return type of a GCC
11309   builtin and then its argument prototype would still apply.  */
11310#ifdef __cplusplus
11311extern "C"
11312#endif
11313char dlopen ();
11314int
11315main ()
11316{
11317return dlopen ();
11318  ;
11319  return 0;
11320}
11321_ACEOF
11322if ac_fn_c_try_link "$LINENO"; then :
11323  ac_cv_lib_dl_dlopen=yes
11324else
11325  ac_cv_lib_dl_dlopen=no
11326fi
11327rm -f core conftest.err conftest.$ac_objext \
11328    conftest$ac_exeext conftest.$ac_ext
11329LIBS=$ac_check_lib_save_LIBS
11330fi
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335else
11336
11337    lt_cv_dlopen="dyld"
11338    lt_cv_dlopen_libs=
11339    lt_cv_dlopen_self=yes
11340
11341fi
11342
11343    ;;
11344
11345  *)
11346    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11347if test "x$ac_cv_func_shl_load" = xyes; then :
11348  lt_cv_dlopen="shl_load"
11349else
11350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11351$as_echo_n "checking for shl_load in -ldld... " >&6; }
11352if ${ac_cv_lib_dld_shl_load+:} false; then :
11353  $as_echo_n "(cached) " >&6
11354else
11355  ac_check_lib_save_LIBS=$LIBS
11356LIBS="-ldld  $LIBS"
11357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h.  */
11359
11360/* Override any GCC internal prototype to avoid an error.
11361   Use char because int might match the return type of a GCC
11362   builtin and then its argument prototype would still apply.  */
11363#ifdef __cplusplus
11364extern "C"
11365#endif
11366char shl_load ();
11367int
11368main ()
11369{
11370return shl_load ();
11371  ;
11372  return 0;
11373}
11374_ACEOF
11375if ac_fn_c_try_link "$LINENO"; then :
11376  ac_cv_lib_dld_shl_load=yes
11377else
11378  ac_cv_lib_dld_shl_load=no
11379fi
11380rm -f core conftest.err conftest.$ac_objext \
11381    conftest$ac_exeext conftest.$ac_ext
11382LIBS=$ac_check_lib_save_LIBS
11383fi
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11385$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11386if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11387  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11388else
11389  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11390if test "x$ac_cv_func_dlopen" = xyes; then :
11391  lt_cv_dlopen="dlopen"
11392else
11393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11394$as_echo_n "checking for dlopen in -ldl... " >&6; }
11395if ${ac_cv_lib_dl_dlopen+:} false; then :
11396  $as_echo_n "(cached) " >&6
11397else
11398  ac_check_lib_save_LIBS=$LIBS
11399LIBS="-ldl  $LIBS"
11400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401/* end confdefs.h.  */
11402
11403/* Override any GCC internal prototype to avoid an error.
11404   Use char because int might match the return type of a GCC
11405   builtin and then its argument prototype would still apply.  */
11406#ifdef __cplusplus
11407extern "C"
11408#endif
11409char dlopen ();
11410int
11411main ()
11412{
11413return dlopen ();
11414  ;
11415  return 0;
11416}
11417_ACEOF
11418if ac_fn_c_try_link "$LINENO"; then :
11419  ac_cv_lib_dl_dlopen=yes
11420else
11421  ac_cv_lib_dl_dlopen=no
11422fi
11423rm -f core conftest.err conftest.$ac_objext \
11424    conftest$ac_exeext conftest.$ac_ext
11425LIBS=$ac_check_lib_save_LIBS
11426fi
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11428$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11429if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11430  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11431else
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11433$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11434if ${ac_cv_lib_svld_dlopen+:} false; then :
11435  $as_echo_n "(cached) " >&6
11436else
11437  ac_check_lib_save_LIBS=$LIBS
11438LIBS="-lsvld  $LIBS"
11439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h.  */
11441
11442/* Override any GCC internal prototype to avoid an error.
11443   Use char because int might match the return type of a GCC
11444   builtin and then its argument prototype would still apply.  */
11445#ifdef __cplusplus
11446extern "C"
11447#endif
11448char dlopen ();
11449int
11450main ()
11451{
11452return dlopen ();
11453  ;
11454  return 0;
11455}
11456_ACEOF
11457if ac_fn_c_try_link "$LINENO"; then :
11458  ac_cv_lib_svld_dlopen=yes
11459else
11460  ac_cv_lib_svld_dlopen=no
11461fi
11462rm -f core conftest.err conftest.$ac_objext \
11463    conftest$ac_exeext conftest.$ac_ext
11464LIBS=$ac_check_lib_save_LIBS
11465fi
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11467$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11468if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11469  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11470else
11471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11472$as_echo_n "checking for dld_link in -ldld... " >&6; }
11473if ${ac_cv_lib_dld_dld_link+:} false; then :
11474  $as_echo_n "(cached) " >&6
11475else
11476  ac_check_lib_save_LIBS=$LIBS
11477LIBS="-ldld  $LIBS"
11478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479/* end confdefs.h.  */
11480
11481/* Override any GCC internal prototype to avoid an error.
11482   Use char because int might match the return type of a GCC
11483   builtin and then its argument prototype would still apply.  */
11484#ifdef __cplusplus
11485extern "C"
11486#endif
11487char dld_link ();
11488int
11489main ()
11490{
11491return dld_link ();
11492  ;
11493  return 0;
11494}
11495_ACEOF
11496if ac_fn_c_try_link "$LINENO"; then :
11497  ac_cv_lib_dld_dld_link=yes
11498else
11499  ac_cv_lib_dld_dld_link=no
11500fi
11501rm -f core conftest.err conftest.$ac_objext \
11502    conftest$ac_exeext conftest.$ac_ext
11503LIBS=$ac_check_lib_save_LIBS
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11506$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11507if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11508  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11509fi
11510
11511
11512fi
11513
11514
11515fi
11516
11517
11518fi
11519
11520
11521fi
11522
11523
11524fi
11525
11526    ;;
11527  esac
11528
11529  if test "x$lt_cv_dlopen" != xno; then
11530    enable_dlopen=yes
11531  else
11532    enable_dlopen=no
11533  fi
11534
11535  case $lt_cv_dlopen in
11536  dlopen)
11537    save_CPPFLAGS="$CPPFLAGS"
11538    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11539
11540    save_LDFLAGS="$LDFLAGS"
11541    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11542
11543    save_LIBS="$LIBS"
11544    LIBS="$lt_cv_dlopen_libs $LIBS"
11545
11546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11547$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11548if ${lt_cv_dlopen_self+:} false; then :
11549  $as_echo_n "(cached) " >&6
11550else
11551  	  if test "$cross_compiling" = yes; then :
11552  lt_cv_dlopen_self=cross
11553else
11554  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11555  lt_status=$lt_dlunknown
11556  cat > conftest.$ac_ext <<_LT_EOF
11557#line 11557 "configure"
11558#include "confdefs.h"
11559
11560#if HAVE_DLFCN_H
11561#include <dlfcn.h>
11562#endif
11563
11564#include <stdio.h>
11565
11566#ifdef RTLD_GLOBAL
11567#  define LT_DLGLOBAL		RTLD_GLOBAL
11568#else
11569#  ifdef DL_GLOBAL
11570#    define LT_DLGLOBAL		DL_GLOBAL
11571#  else
11572#    define LT_DLGLOBAL		0
11573#  endif
11574#endif
11575
11576/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11577   find out it does not work in some platform. */
11578#ifndef LT_DLLAZY_OR_NOW
11579#  ifdef RTLD_LAZY
11580#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11581#  else
11582#    ifdef DL_LAZY
11583#      define LT_DLLAZY_OR_NOW		DL_LAZY
11584#    else
11585#      ifdef RTLD_NOW
11586#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11587#      else
11588#        ifdef DL_NOW
11589#          define LT_DLLAZY_OR_NOW	DL_NOW
11590#        else
11591#          define LT_DLLAZY_OR_NOW	0
11592#        endif
11593#      endif
11594#    endif
11595#  endif
11596#endif
11597
11598/* When -fvisbility=hidden is used, assume the code has been annotated
11599   correspondingly for the symbols needed.  */
11600#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11601void fnord () __attribute__((visibility("default")));
11602#endif
11603
11604void fnord () { int i=42; }
11605int main ()
11606{
11607  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608  int status = $lt_dlunknown;
11609
11610  if (self)
11611    {
11612      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11613      else
11614        {
11615	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11616          else puts (dlerror ());
11617	}
11618      /* dlclose (self); */
11619    }
11620  else
11621    puts (dlerror ());
11622
11623  return status;
11624}
11625_LT_EOF
11626  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11627  (eval $ac_link) 2>&5
11628  ac_status=$?
11629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11631    (./conftest; exit; ) >&5 2>/dev/null
11632    lt_status=$?
11633    case x$lt_status in
11634      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11635      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11636      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11637    esac
11638  else :
11639    # compilation failed
11640    lt_cv_dlopen_self=no
11641  fi
11642fi
11643rm -fr conftest*
11644
11645
11646fi
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11648$as_echo "$lt_cv_dlopen_self" >&6; }
11649
11650    if test "x$lt_cv_dlopen_self" = xyes; then
11651      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11652      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11653$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11654if ${lt_cv_dlopen_self_static+:} false; then :
11655  $as_echo_n "(cached) " >&6
11656else
11657  	  if test "$cross_compiling" = yes; then :
11658  lt_cv_dlopen_self_static=cross
11659else
11660  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11661  lt_status=$lt_dlunknown
11662  cat > conftest.$ac_ext <<_LT_EOF
11663#line 11663 "configure"
11664#include "confdefs.h"
11665
11666#if HAVE_DLFCN_H
11667#include <dlfcn.h>
11668#endif
11669
11670#include <stdio.h>
11671
11672#ifdef RTLD_GLOBAL
11673#  define LT_DLGLOBAL		RTLD_GLOBAL
11674#else
11675#  ifdef DL_GLOBAL
11676#    define LT_DLGLOBAL		DL_GLOBAL
11677#  else
11678#    define LT_DLGLOBAL		0
11679#  endif
11680#endif
11681
11682/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11683   find out it does not work in some platform. */
11684#ifndef LT_DLLAZY_OR_NOW
11685#  ifdef RTLD_LAZY
11686#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11687#  else
11688#    ifdef DL_LAZY
11689#      define LT_DLLAZY_OR_NOW		DL_LAZY
11690#    else
11691#      ifdef RTLD_NOW
11692#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11693#      else
11694#        ifdef DL_NOW
11695#          define LT_DLLAZY_OR_NOW	DL_NOW
11696#        else
11697#          define LT_DLLAZY_OR_NOW	0
11698#        endif
11699#      endif
11700#    endif
11701#  endif
11702#endif
11703
11704/* When -fvisbility=hidden is used, assume the code has been annotated
11705   correspondingly for the symbols needed.  */
11706#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11707void fnord () __attribute__((visibility("default")));
11708#endif
11709
11710void fnord () { int i=42; }
11711int main ()
11712{
11713  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714  int status = $lt_dlunknown;
11715
11716  if (self)
11717    {
11718      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11719      else
11720        {
11721	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11722          else puts (dlerror ());
11723	}
11724      /* dlclose (self); */
11725    }
11726  else
11727    puts (dlerror ());
11728
11729  return status;
11730}
11731_LT_EOF
11732  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11733  (eval $ac_link) 2>&5
11734  ac_status=$?
11735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11737    (./conftest; exit; ) >&5 2>/dev/null
11738    lt_status=$?
11739    case x$lt_status in
11740      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11741      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11742      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11743    esac
11744  else :
11745    # compilation failed
11746    lt_cv_dlopen_self_static=no
11747  fi
11748fi
11749rm -fr conftest*
11750
11751
11752fi
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11754$as_echo "$lt_cv_dlopen_self_static" >&6; }
11755    fi
11756
11757    CPPFLAGS="$save_CPPFLAGS"
11758    LDFLAGS="$save_LDFLAGS"
11759    LIBS="$save_LIBS"
11760    ;;
11761  esac
11762
11763  case $lt_cv_dlopen_self in
11764  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11765  *) enable_dlopen_self=unknown ;;
11766  esac
11767
11768  case $lt_cv_dlopen_self_static in
11769  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11770  *) enable_dlopen_self_static=unknown ;;
11771  esac
11772fi
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790striplib=
11791old_striplib=
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11793$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11794if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11795  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11796  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798$as_echo "yes" >&6; }
11799else
11800# FIXME - insert some real tests, host_os isn't really good enough
11801  case $host_os in
11802  darwin*)
11803    if test -n "$STRIP" ; then
11804      striplib="$STRIP -x"
11805      old_striplib="$STRIP -S"
11806      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807$as_echo "yes" >&6; }
11808    else
11809      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
11811    fi
11812    ;;
11813  *)
11814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815$as_echo "no" >&6; }
11816    ;;
11817  esac
11818fi
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831  # Report which library types will actually be built
11832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11833$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11835$as_echo "$can_build_shared" >&6; }
11836
11837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11838$as_echo_n "checking whether to build shared libraries... " >&6; }
11839  test "$can_build_shared" = "no" && enable_shared=no
11840
11841  # On AIX, shared libraries and static libraries use the same namespace, and
11842  # are all built from PIC.
11843  case $host_os in
11844  aix3*)
11845    test "$enable_shared" = yes && enable_static=no
11846    if test -n "$RANLIB"; then
11847      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11848      postinstall_cmds='$RANLIB $lib'
11849    fi
11850    ;;
11851
11852  aix[4-9]*)
11853    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11854      test "$enable_shared" = yes && enable_static=no
11855    fi
11856    ;;
11857  esac
11858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11859$as_echo "$enable_shared" >&6; }
11860
11861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11862$as_echo_n "checking whether to build static libraries... " >&6; }
11863  # Make sure either enable_shared or enable_static is yes.
11864  test "$enable_shared" = yes || enable_static=yes
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11866$as_echo "$enable_static" >&6; }
11867
11868
11869
11870
11871fi
11872ac_ext=c
11873ac_cpp='$CPP $CPPFLAGS'
11874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877
11878CC="$lt_save_CC"
11879
11880      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11881    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11882    (test "X$CXX" != "Xg++"))) ; then
11883  ac_ext=cpp
11884ac_cpp='$CXXCPP $CPPFLAGS'
11885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11889$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11890if test -z "$CXXCPP"; then
11891  if ${ac_cv_prog_CXXCPP+:} false; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894      # Double quotes because CXXCPP needs to be expanded
11895    for CXXCPP in "$CXX -E" "/lib/cpp"
11896    do
11897      ac_preproc_ok=false
11898for ac_cxx_preproc_warn_flag in '' yes
11899do
11900  # Use a header file that comes with gcc, so configuring glibc
11901  # with a fresh cross-compiler works.
11902  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903  # <limits.h> exists even on freestanding compilers.
11904  # On the NeXT, cc -E runs the code through the compiler's parser,
11905  # not just through cpp. "Syntax error" is here to catch this case.
11906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h.  */
11908#ifdef __STDC__
11909# include <limits.h>
11910#else
11911# include <assert.h>
11912#endif
11913		     Syntax error
11914_ACEOF
11915if ac_fn_cxx_try_cpp "$LINENO"; then :
11916
11917else
11918  # Broken: fails on valid input.
11919continue
11920fi
11921rm -f conftest.err conftest.i conftest.$ac_ext
11922
11923  # OK, works on sane cases.  Now check whether nonexistent headers
11924  # can be detected and how.
11925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h.  */
11927#include <ac_nonexistent.h>
11928_ACEOF
11929if ac_fn_cxx_try_cpp "$LINENO"; then :
11930  # Broken: success on invalid input.
11931continue
11932else
11933  # Passes both tests.
11934ac_preproc_ok=:
11935break
11936fi
11937rm -f conftest.err conftest.i conftest.$ac_ext
11938
11939done
11940# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11941rm -f conftest.i conftest.err conftest.$ac_ext
11942if $ac_preproc_ok; then :
11943  break
11944fi
11945
11946    done
11947    ac_cv_prog_CXXCPP=$CXXCPP
11948
11949fi
11950  CXXCPP=$ac_cv_prog_CXXCPP
11951else
11952  ac_cv_prog_CXXCPP=$CXXCPP
11953fi
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11955$as_echo "$CXXCPP" >&6; }
11956ac_preproc_ok=false
11957for ac_cxx_preproc_warn_flag in '' yes
11958do
11959  # Use a header file that comes with gcc, so configuring glibc
11960  # with a fresh cross-compiler works.
11961  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962  # <limits.h> exists even on freestanding compilers.
11963  # On the NeXT, cc -E runs the code through the compiler's parser,
11964  # not just through cpp. "Syntax error" is here to catch this case.
11965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h.  */
11967#ifdef __STDC__
11968# include <limits.h>
11969#else
11970# include <assert.h>
11971#endif
11972		     Syntax error
11973_ACEOF
11974if ac_fn_cxx_try_cpp "$LINENO"; then :
11975
11976else
11977  # Broken: fails on valid input.
11978continue
11979fi
11980rm -f conftest.err conftest.i conftest.$ac_ext
11981
11982  # OK, works on sane cases.  Now check whether nonexistent headers
11983  # can be detected and how.
11984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985/* end confdefs.h.  */
11986#include <ac_nonexistent.h>
11987_ACEOF
11988if ac_fn_cxx_try_cpp "$LINENO"; then :
11989  # Broken: success on invalid input.
11990continue
11991else
11992  # Passes both tests.
11993ac_preproc_ok=:
11994break
11995fi
11996rm -f conftest.err conftest.i conftest.$ac_ext
11997
11998done
11999# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12000rm -f conftest.i conftest.err conftest.$ac_ext
12001if $ac_preproc_ok; then :
12002
12003else
12004  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12006as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12007See \`config.log' for more details" "$LINENO" 5; }
12008fi
12009
12010ac_ext=c
12011ac_cpp='$CPP $CPPFLAGS'
12012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014ac_compiler_gnu=$ac_cv_c_compiler_gnu
12015
12016else
12017  _lt_caught_CXX_error=yes
12018fi
12019
12020ac_ext=cpp
12021ac_cpp='$CXXCPP $CPPFLAGS'
12022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12025
12026archive_cmds_need_lc_CXX=no
12027allow_undefined_flag_CXX=
12028always_export_symbols_CXX=no
12029archive_expsym_cmds_CXX=
12030compiler_needs_object_CXX=no
12031export_dynamic_flag_spec_CXX=
12032hardcode_direct_CXX=no
12033hardcode_direct_absolute_CXX=no
12034hardcode_libdir_flag_spec_CXX=
12035hardcode_libdir_flag_spec_ld_CXX=
12036hardcode_libdir_separator_CXX=
12037hardcode_minus_L_CXX=no
12038hardcode_shlibpath_var_CXX=unsupported
12039hardcode_automatic_CXX=no
12040inherit_rpath_CXX=no
12041module_cmds_CXX=
12042module_expsym_cmds_CXX=
12043link_all_deplibs_CXX=unknown
12044old_archive_cmds_CXX=$old_archive_cmds
12045reload_flag_CXX=$reload_flag
12046reload_cmds_CXX=$reload_cmds
12047no_undefined_flag_CXX=
12048whole_archive_flag_spec_CXX=
12049enable_shared_with_static_runtimes_CXX=no
12050
12051# Source file extension for C++ test sources.
12052ac_ext=cpp
12053
12054# Object file extension for compiled C++ test sources.
12055objext=o
12056objext_CXX=$objext
12057
12058# No sense in running all these tests if we already determined that
12059# the CXX compiler isn't working.  Some variables (like enable_shared)
12060# are currently assumed to apply to all compilers on this platform,
12061# and will be corrupted by setting them based on a non-working compiler.
12062if test "$_lt_caught_CXX_error" != yes; then
12063  # Code to be used in simple compile tests
12064  lt_simple_compile_test_code="int some_variable = 0;"
12065
12066  # Code to be used in simple link tests
12067  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12068
12069  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12070
12071
12072
12073
12074
12075
12076# If no C compiler was specified, use CC.
12077LTCC=${LTCC-"$CC"}
12078
12079# If no C compiler flags were specified, use CFLAGS.
12080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12081
12082# Allow CC to be a program name with arguments.
12083compiler=$CC
12084
12085
12086  # save warnings/boilerplate of simple test code
12087  ac_outfile=conftest.$ac_objext
12088echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12090_lt_compiler_boilerplate=`cat conftest.err`
12091$RM conftest*
12092
12093  ac_outfile=conftest.$ac_objext
12094echo "$lt_simple_link_test_code" >conftest.$ac_ext
12095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12096_lt_linker_boilerplate=`cat conftest.err`
12097$RM -r conftest*
12098
12099
12100  # Allow CC to be a program name with arguments.
12101  lt_save_CC=$CC
12102  lt_save_LD=$LD
12103  lt_save_GCC=$GCC
12104  GCC=$GXX
12105  lt_save_with_gnu_ld=$with_gnu_ld
12106  lt_save_path_LD=$lt_cv_path_LD
12107  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12108    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12109  else
12110    $as_unset lt_cv_prog_gnu_ld
12111  fi
12112  if test -n "${lt_cv_path_LDCXX+set}"; then
12113    lt_cv_path_LD=$lt_cv_path_LDCXX
12114  else
12115    $as_unset lt_cv_path_LD
12116  fi
12117  test -z "${LDCXX+set}" || LD=$LDCXX
12118  CC=${CXX-"c++"}
12119  compiler=$CC
12120  compiler_CXX=$CC
12121  for cc_temp in $compiler""; do
12122  case $cc_temp in
12123    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12124    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12125    \-*) ;;
12126    *) break;;
12127  esac
12128done
12129cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12130
12131
12132  if test -n "$compiler"; then
12133    # We don't want -fno-exception when compiling C++ code, so set the
12134    # no_builtin_flag separately
12135    if test "$GXX" = yes; then
12136      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12137    else
12138      lt_prog_compiler_no_builtin_flag_CXX=
12139    fi
12140
12141    if test "$GXX" = yes; then
12142      # Set up default GNU C++ configuration
12143
12144
12145
12146# Check whether --with-gnu-ld was given.
12147if test "${with_gnu_ld+set}" = set; then :
12148  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12149else
12150  with_gnu_ld=no
12151fi
12152
12153ac_prog=ld
12154if test "$GCC" = yes; then
12155  # Check if gcc -print-prog-name=ld gives a path.
12156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12157$as_echo_n "checking for ld used by $CC... " >&6; }
12158  case $host in
12159  *-*-mingw*)
12160    # gcc leaves a trailing carriage return which upsets mingw
12161    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12162  *)
12163    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12164  esac
12165  case $ac_prog in
12166    # Accept absolute paths.
12167    [\\/]* | ?:[\\/]*)
12168      re_direlt='/[^/][^/]*/\.\./'
12169      # Canonicalize the pathname of ld
12170      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12171      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12172	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12173      done
12174      test -z "$LD" && LD="$ac_prog"
12175      ;;
12176  "")
12177    # If it fails, then pretend we aren't using GCC.
12178    ac_prog=ld
12179    ;;
12180  *)
12181    # If it is relative, then search for the first ld in PATH.
12182    with_gnu_ld=unknown
12183    ;;
12184  esac
12185elif test "$with_gnu_ld" = yes; then
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12187$as_echo_n "checking for GNU ld... " >&6; }
12188else
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12190$as_echo_n "checking for non-GNU ld... " >&6; }
12191fi
12192if ${lt_cv_path_LD+:} false; then :
12193  $as_echo_n "(cached) " >&6
12194else
12195  if test -z "$LD"; then
12196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12197  for ac_dir in $PATH; do
12198    IFS="$lt_save_ifs"
12199    test -z "$ac_dir" && ac_dir=.
12200    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12201      lt_cv_path_LD="$ac_dir/$ac_prog"
12202      # Check to see if the program is GNU ld.  I'd rather use --version,
12203      # but apparently some variants of GNU ld only accept -v.
12204      # Break only if it was the GNU/non-GNU ld that we prefer.
12205      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12206      *GNU* | *'with BFD'*)
12207	test "$with_gnu_ld" != no && break
12208	;;
12209      *)
12210	test "$with_gnu_ld" != yes && break
12211	;;
12212      esac
12213    fi
12214  done
12215  IFS="$lt_save_ifs"
12216else
12217  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12218fi
12219fi
12220
12221LD="$lt_cv_path_LD"
12222if test -n "$LD"; then
12223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12224$as_echo "$LD" >&6; }
12225else
12226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228fi
12229test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12231$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12232if ${lt_cv_prog_gnu_ld+:} false; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12236case `$LD -v 2>&1 </dev/null` in
12237*GNU* | *'with BFD'*)
12238  lt_cv_prog_gnu_ld=yes
12239  ;;
12240*)
12241  lt_cv_prog_gnu_ld=no
12242  ;;
12243esac
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12246$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12247with_gnu_ld=$lt_cv_prog_gnu_ld
12248
12249
12250
12251
12252
12253
12254
12255      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12256      # archiving commands below assume that GNU ld is being used.
12257      if test "$with_gnu_ld" = yes; then
12258        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12260
12261        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12262        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263
12264        # If archive_cmds runs LD, not CC, wlarc should be empty
12265        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12266        #     investigate it a little bit more. (MM)
12267        wlarc='${wl}'
12268
12269        # ancient GNU ld didn't support --whole-archive et. al.
12270        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12271	  $GREP 'no-whole-archive' > /dev/null; then
12272          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12273        else
12274          whole_archive_flag_spec_CXX=
12275        fi
12276      else
12277        with_gnu_ld=no
12278        wlarc=
12279
12280        # A generic and very simple default shared library creation
12281        # command for GNU C++ for the case where it uses the native
12282        # linker, instead of GNU ld.  If possible, this setting should
12283        # overridden to take advantage of the native linker features on
12284        # the platform it is being used on.
12285        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12286      fi
12287
12288      # Commands to make compiler produce verbose output that lists
12289      # what "hidden" libraries, object files and flags are used when
12290      # linking a shared library.
12291      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12292
12293    else
12294      GXX=no
12295      with_gnu_ld=no
12296      wlarc=
12297    fi
12298
12299    # PORTME: fill in a description of your system's C++ link characteristics
12300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12301$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12302    ld_shlibs_CXX=yes
12303    case $host_os in
12304      aix3*)
12305        # FIXME: insert proper C++ library support
12306        ld_shlibs_CXX=no
12307        ;;
12308      aix[4-9]*)
12309        if test "$host_cpu" = ia64; then
12310          # On IA64, the linker does run time linking by default, so we don't
12311          # have to do anything special.
12312          aix_use_runtimelinking=no
12313          exp_sym_flag='-Bexport'
12314          no_entry_flag=""
12315        else
12316          aix_use_runtimelinking=no
12317
12318          # Test if we are trying to use run time linking or normal
12319          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12320          # need to do runtime linking.
12321          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12322	    for ld_flag in $LDFLAGS; do
12323	      case $ld_flag in
12324	      *-brtl*)
12325	        aix_use_runtimelinking=yes
12326	        break
12327	        ;;
12328	      esac
12329	    done
12330	    ;;
12331          esac
12332
12333          exp_sym_flag='-bexport'
12334          no_entry_flag='-bnoentry'
12335        fi
12336
12337        # When large executables or shared objects are built, AIX ld can
12338        # have problems creating the table of contents.  If linking a library
12339        # or program results in "error TOC overflow" add -mminimal-toc to
12340        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12341        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12342
12343        archive_cmds_CXX=''
12344        hardcode_direct_CXX=yes
12345        hardcode_direct_absolute_CXX=yes
12346        hardcode_libdir_separator_CXX=':'
12347        link_all_deplibs_CXX=yes
12348        file_list_spec_CXX='${wl}-f,'
12349
12350        if test "$GXX" = yes; then
12351          case $host_os in aix4.[012]|aix4.[012].*)
12352          # We only want to do this on AIX 4.2 and lower, the check
12353          # below for broken collect2 doesn't work under 4.3+
12354	  collect2name=`${CC} -print-prog-name=collect2`
12355	  if test -f "$collect2name" &&
12356	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12357	  then
12358	    # We have reworked collect2
12359	    :
12360	  else
12361	    # We have old collect2
12362	    hardcode_direct_CXX=unsupported
12363	    # It fails to find uninstalled libraries when the uninstalled
12364	    # path is not listed in the libpath.  Setting hardcode_minus_L
12365	    # to unsupported forces relinking
12366	    hardcode_minus_L_CXX=yes
12367	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12368	    hardcode_libdir_separator_CXX=
12369	  fi
12370          esac
12371          shared_flag='-shared'
12372	  if test "$aix_use_runtimelinking" = yes; then
12373	    shared_flag="$shared_flag "'${wl}-G'
12374	  fi
12375        else
12376          # not using gcc
12377          if test "$host_cpu" = ia64; then
12378	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12379	  # chokes on -Wl,-G. The following line is correct:
12380	  shared_flag='-G'
12381          else
12382	    if test "$aix_use_runtimelinking" = yes; then
12383	      shared_flag='${wl}-G'
12384	    else
12385	      shared_flag='${wl}-bM:SRE'
12386	    fi
12387          fi
12388        fi
12389
12390        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12391        # It seems that -bexpall does not export symbols beginning with
12392        # underscore (_), so it is better to generate a list of symbols to
12393	# export.
12394        always_export_symbols_CXX=yes
12395        if test "$aix_use_runtimelinking" = yes; then
12396          # Warning - without using the other runtime loading flags (-brtl),
12397          # -berok will link without error, but may produce a broken library.
12398          allow_undefined_flag_CXX='-berok'
12399          # Determine the default libpath from the value encoded in an empty
12400          # executable.
12401          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403
12404int
12405main ()
12406{
12407
12408  ;
12409  return 0;
12410}
12411_ACEOF
12412if ac_fn_cxx_try_link "$LINENO"; then :
12413
12414lt_aix_libpath_sed='
12415    /Import File Strings/,/^$/ {
12416	/^0/ {
12417	    s/^0  *\(.*\)$/\1/
12418	    p
12419	}
12420    }'
12421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12422# Check for a 64-bit object if we didn't find anything.
12423if test -z "$aix_libpath"; then
12424  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12425fi
12426fi
12427rm -f core conftest.err conftest.$ac_objext \
12428    conftest$ac_exeext conftest.$ac_ext
12429if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12430
12431          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12432
12433          archive_expsym_cmds_CXX='$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"
12434        else
12435          if test "$host_cpu" = ia64; then
12436	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12437	    allow_undefined_flag_CXX="-z nodefs"
12438	    archive_expsym_cmds_CXX="\$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"
12439          else
12440	    # Determine the default libpath from the value encoded in an
12441	    # empty executable.
12442	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443/* end confdefs.h.  */
12444
12445int
12446main ()
12447{
12448
12449  ;
12450  return 0;
12451}
12452_ACEOF
12453if ac_fn_cxx_try_link "$LINENO"; then :
12454
12455lt_aix_libpath_sed='
12456    /Import File Strings/,/^$/ {
12457	/^0/ {
12458	    s/^0  *\(.*\)$/\1/
12459	    p
12460	}
12461    }'
12462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12463# Check for a 64-bit object if we didn't find anything.
12464if test -z "$aix_libpath"; then
12465  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12466fi
12467fi
12468rm -f core conftest.err conftest.$ac_objext \
12469    conftest$ac_exeext conftest.$ac_ext
12470if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12471
12472	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12473	    # Warning - without using the other run time loading flags,
12474	    # -berok will link without error, but may produce a broken library.
12475	    no_undefined_flag_CXX=' ${wl}-bernotok'
12476	    allow_undefined_flag_CXX=' ${wl}-berok'
12477	    if test "$with_gnu_ld" = yes; then
12478	      # We only use this code for GNU lds that support --whole-archive.
12479	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12480	    else
12481	      # Exported symbols can be pulled into shared objects from archives
12482	      whole_archive_flag_spec_CXX='$convenience'
12483	    fi
12484	    archive_cmds_need_lc_CXX=yes
12485	    # This is similar to how AIX traditionally builds its shared
12486	    # libraries.
12487	    archive_expsym_cmds_CXX="\$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'
12488          fi
12489        fi
12490        ;;
12491
12492      beos*)
12493	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12494	  allow_undefined_flag_CXX=unsupported
12495	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12496	  # support --undefined.  This deserves some investigation.  FIXME
12497	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12498	else
12499	  ld_shlibs_CXX=no
12500	fi
12501	;;
12502
12503      chorus*)
12504        case $cc_basename in
12505          *)
12506	  # FIXME: insert proper C++ library support
12507	  ld_shlibs_CXX=no
12508	  ;;
12509        esac
12510        ;;
12511
12512      cygwin* | mingw* | pw32* | cegcc*)
12513        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12514        # as there is no search path for DLLs.
12515        hardcode_libdir_flag_spec_CXX='-L$libdir'
12516        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12517        allow_undefined_flag_CXX=unsupported
12518        always_export_symbols_CXX=no
12519        enable_shared_with_static_runtimes_CXX=yes
12520
12521        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12522          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12523          # If the export-symbols file already is a .def file (1st line
12524          # is EXPORTS), use it as is; otherwise, prepend...
12525          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12526	    cp $export_symbols $output_objdir/$soname.def;
12527          else
12528	    echo EXPORTS > $output_objdir/$soname.def;
12529	    cat $export_symbols >> $output_objdir/$soname.def;
12530          fi~
12531          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12532        else
12533          ld_shlibs_CXX=no
12534        fi
12535        ;;
12536      darwin* | rhapsody*)
12537
12538
12539  archive_cmds_need_lc_CXX=no
12540  hardcode_direct_CXX=no
12541  hardcode_automatic_CXX=yes
12542  hardcode_shlibpath_var_CXX=unsupported
12543  if test "$lt_cv_ld_force_load" = "yes"; then
12544    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12545  else
12546    whole_archive_flag_spec_CXX=''
12547  fi
12548  link_all_deplibs_CXX=yes
12549  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12550  case $cc_basename in
12551     ifort*) _lt_dar_can_shared=yes ;;
12552     *) _lt_dar_can_shared=$GCC ;;
12553  esac
12554  if test "$_lt_dar_can_shared" = "yes"; then
12555    output_verbose_link_cmd=func_echo_all
12556    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12557    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12558    archive_expsym_cmds_CXX="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}"
12559    module_expsym_cmds_CXX="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}"
12560       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12561      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12562      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12563    fi
12564
12565  else
12566  ld_shlibs_CXX=no
12567  fi
12568
12569	;;
12570
12571      dgux*)
12572        case $cc_basename in
12573          ec++*)
12574	    # FIXME: insert proper C++ library support
12575	    ld_shlibs_CXX=no
12576	    ;;
12577          ghcx*)
12578	    # Green Hills C++ Compiler
12579	    # FIXME: insert proper C++ library support
12580	    ld_shlibs_CXX=no
12581	    ;;
12582          *)
12583	    # FIXME: insert proper C++ library support
12584	    ld_shlibs_CXX=no
12585	    ;;
12586        esac
12587        ;;
12588
12589      freebsd2.*)
12590        # C++ shared libraries reported to be fairly broken before
12591	# switch to ELF
12592        ld_shlibs_CXX=no
12593        ;;
12594
12595      freebsd-elf*)
12596        archive_cmds_need_lc_CXX=no
12597        ;;
12598
12599      freebsd* | dragonfly*)
12600        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12601        # conventions
12602        ld_shlibs_CXX=yes
12603        ;;
12604
12605      gnu*)
12606        ;;
12607
12608      haiku*)
12609        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12610        link_all_deplibs_CXX=yes
12611        ;;
12612
12613      hpux9*)
12614        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12615        hardcode_libdir_separator_CXX=:
12616        export_dynamic_flag_spec_CXX='${wl}-E'
12617        hardcode_direct_CXX=yes
12618        hardcode_minus_L_CXX=yes # Not in the search PATH,
12619				             # but as the default
12620				             # location of the library.
12621
12622        case $cc_basename in
12623          CC*)
12624            # FIXME: insert proper C++ library support
12625            ld_shlibs_CXX=no
12626            ;;
12627          aCC*)
12628            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12629            # Commands to make compiler produce verbose output that lists
12630            # what "hidden" libraries, object files and flags are used when
12631            # linking a shared library.
12632            #
12633            # There doesn't appear to be a way to prevent this compiler from
12634            # explicitly linking system object files so we need to strip them
12635            # from the output so that they don't get included in the library
12636            # dependencies.
12637            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12638            ;;
12639          *)
12640            if test "$GXX" = yes; then
12641              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12642            else
12643              # FIXME: insert proper C++ library support
12644              ld_shlibs_CXX=no
12645            fi
12646            ;;
12647        esac
12648        ;;
12649
12650      hpux10*|hpux11*)
12651        if test $with_gnu_ld = no; then
12652	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12653	  hardcode_libdir_separator_CXX=:
12654
12655          case $host_cpu in
12656            hppa*64*|ia64*)
12657              ;;
12658            *)
12659	      export_dynamic_flag_spec_CXX='${wl}-E'
12660              ;;
12661          esac
12662        fi
12663        case $host_cpu in
12664          hppa*64*|ia64*)
12665            hardcode_direct_CXX=no
12666            hardcode_shlibpath_var_CXX=no
12667            ;;
12668          *)
12669            hardcode_direct_CXX=yes
12670            hardcode_direct_absolute_CXX=yes
12671            hardcode_minus_L_CXX=yes # Not in the search PATH,
12672					         # but as the default
12673					         # location of the library.
12674            ;;
12675        esac
12676
12677        case $cc_basename in
12678          CC*)
12679	    # FIXME: insert proper C++ library support
12680	    ld_shlibs_CXX=no
12681	    ;;
12682          aCC*)
12683	    case $host_cpu in
12684	      hppa*64*)
12685	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12686	        ;;
12687	      ia64*)
12688	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12689	        ;;
12690	      *)
12691	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12692	        ;;
12693	    esac
12694	    # Commands to make compiler produce verbose output that lists
12695	    # what "hidden" libraries, object files and flags are used when
12696	    # linking a shared library.
12697	    #
12698	    # There doesn't appear to be a way to prevent this compiler from
12699	    # explicitly linking system object files so we need to strip them
12700	    # from the output so that they don't get included in the library
12701	    # dependencies.
12702	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12703	    ;;
12704          *)
12705	    if test "$GXX" = yes; then
12706	      if test $with_gnu_ld = no; then
12707	        case $host_cpu in
12708	          hppa*64*)
12709	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12710	            ;;
12711	          ia64*)
12712	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12713	            ;;
12714	          *)
12715	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12716	            ;;
12717	        esac
12718	      fi
12719	    else
12720	      # FIXME: insert proper C++ library support
12721	      ld_shlibs_CXX=no
12722	    fi
12723	    ;;
12724        esac
12725        ;;
12726
12727      interix[3-9]*)
12728	hardcode_direct_CXX=no
12729	hardcode_shlibpath_var_CXX=no
12730	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12731	export_dynamic_flag_spec_CXX='${wl}-E'
12732	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12733	# Instead, shared libraries are loaded at an image base (0x10000000 by
12734	# default) and relocated if they conflict, which is a slow very memory
12735	# consuming and fragmenting process.  To avoid this, we pick a random,
12736	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12737	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12738	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12739	archive_expsym_cmds_CXX='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'
12740	;;
12741      irix5* | irix6*)
12742        case $cc_basename in
12743          CC*)
12744	    # SGI C++
12745	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12746
12747	    # Archives containing C++ object files must be created using
12748	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12749	    # necessary to make sure instantiated templates are included
12750	    # in the archive.
12751	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12752	    ;;
12753          *)
12754	    if test "$GXX" = yes; then
12755	      if test "$with_gnu_ld" = no; then
12756	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12757	      else
12758	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12759	      fi
12760	    fi
12761	    link_all_deplibs_CXX=yes
12762	    ;;
12763        esac
12764        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12765        hardcode_libdir_separator_CXX=:
12766        inherit_rpath_CXX=yes
12767        ;;
12768
12769      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12770        case $cc_basename in
12771          KCC*)
12772	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12773
12774	    # KCC will only create a shared library if the output file
12775	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776	    # to its proper name (with version) after linking.
12777	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12778	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12779	    # Commands to make compiler produce verbose output that lists
12780	    # what "hidden" libraries, object files and flags are used when
12781	    # linking a shared library.
12782	    #
12783	    # There doesn't appear to be a way to prevent this compiler from
12784	    # explicitly linking system object files so we need to strip them
12785	    # from the output so that they don't get included in the library
12786	    # dependencies.
12787	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12788
12789	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12790	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12791
12792	    # Archives containing C++ object files must be created using
12793	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12794	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12795	    ;;
12796	  icpc* | ecpc* )
12797	    # Intel C++
12798	    with_gnu_ld=yes
12799	    # version 8.0 and above of icpc choke on multiply defined symbols
12800	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12801	    # earlier do not add the objects themselves.
12802	    case `$CC -V 2>&1` in
12803	      *"Version 7."*)
12804	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12806		;;
12807	      *)  # Version 8.0 or newer
12808	        tmp_idyn=
12809	        case $host_cpu in
12810		  ia64*) tmp_idyn=' -i_dynamic';;
12811		esac
12812	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12814		;;
12815	    esac
12816	    archive_cmds_need_lc_CXX=no
12817	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12818	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12819	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12820	    ;;
12821          pgCC* | pgcpp*)
12822            # Portland Group C++ compiler
12823	    case `$CC -V` in
12824	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12825	      prelink_cmds_CXX='tpldir=Template.dir~
12826		rm -rf $tpldir~
12827		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12828		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12829	      old_archive_cmds_CXX='tpldir=Template.dir~
12830		rm -rf $tpldir~
12831		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12832		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12833		$RANLIB $oldlib'
12834	      archive_cmds_CXX='tpldir=Template.dir~
12835		rm -rf $tpldir~
12836		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12837		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12838	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12839		rm -rf $tpldir~
12840		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12841		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12842	      ;;
12843	    *) # Version 6 and above use weak symbols
12844	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12845	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12846	      ;;
12847	    esac
12848
12849	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12850	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12851	    whole_archive_flag_spec_CXX='${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'
12852            ;;
12853	  cxx*)
12854	    # Compaq C++
12855	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12856	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12857
12858	    runpath_var=LD_RUN_PATH
12859	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12860	    hardcode_libdir_separator_CXX=:
12861
12862	    # Commands to make compiler produce verbose output that lists
12863	    # what "hidden" libraries, object files and flags are used when
12864	    # linking a shared library.
12865	    #
12866	    # There doesn't appear to be a way to prevent this compiler from
12867	    # explicitly linking system object files so we need to strip them
12868	    # from the output so that they don't get included in the library
12869	    # dependencies.
12870	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12871	    ;;
12872	  xl* | mpixl* | bgxl*)
12873	    # IBM XL 8.0 on PPC, with GNU ld
12874	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12875	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12876	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12877	    if test "x$supports_anon_versioning" = xyes; then
12878	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12879		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12880		echo "local: *; };" >> $output_objdir/$libname.ver~
12881		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12882	    fi
12883	    ;;
12884	  *)
12885	    case `$CC -V 2>&1 | sed 5q` in
12886	    *Sun\ C*)
12887	      # Sun C++ 5.9
12888	      no_undefined_flag_CXX=' -zdefs'
12889	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12890	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12891	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12892	      whole_archive_flag_spec_CXX='${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'
12893	      compiler_needs_object_CXX=yes
12894
12895	      # Not sure whether something based on
12896	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12897	      # would be better.
12898	      output_verbose_link_cmd='func_echo_all'
12899
12900	      # Archives containing C++ object files must be created using
12901	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12902	      # necessary to make sure instantiated templates are included
12903	      # in the archive.
12904	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12905	      ;;
12906	    esac
12907	    ;;
12908	esac
12909	;;
12910
12911      lynxos*)
12912        # FIXME: insert proper C++ library support
12913	ld_shlibs_CXX=no
12914	;;
12915
12916      m88k*)
12917        # FIXME: insert proper C++ library support
12918        ld_shlibs_CXX=no
12919	;;
12920
12921      mvs*)
12922        case $cc_basename in
12923          cxx*)
12924	    # FIXME: insert proper C++ library support
12925	    ld_shlibs_CXX=no
12926	    ;;
12927	  *)
12928	    # FIXME: insert proper C++ library support
12929	    ld_shlibs_CXX=no
12930	    ;;
12931	esac
12932	;;
12933
12934      netbsd*)
12935        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12936	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12937	  wlarc=
12938	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12939	  hardcode_direct_CXX=yes
12940	  hardcode_shlibpath_var_CXX=no
12941	fi
12942	# Workaround some broken pre-1.5 toolchains
12943	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12944	;;
12945
12946      *nto* | *qnx*)
12947        ld_shlibs_CXX=yes
12948	;;
12949
12950      openbsd2*)
12951        # C++ shared libraries are fairly broken
12952	ld_shlibs_CXX=no
12953	;;
12954
12955      openbsd*)
12956	if test -f /usr/libexec/ld.so; then
12957	  hardcode_direct_CXX=yes
12958	  hardcode_shlibpath_var_CXX=no
12959	  hardcode_direct_absolute_CXX=yes
12960	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12961	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12962	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12963	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12964	    export_dynamic_flag_spec_CXX='${wl}-E'
12965	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12966	  fi
12967	  output_verbose_link_cmd=func_echo_all
12968	else
12969	  ld_shlibs_CXX=no
12970	fi
12971	;;
12972
12973      osf3* | osf4* | osf5*)
12974        case $cc_basename in
12975          KCC*)
12976	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12977
12978	    # KCC will only create a shared library if the output file
12979	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12980	    # to its proper name (with version) after linking.
12981	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12982
12983	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12984	    hardcode_libdir_separator_CXX=:
12985
12986	    # Archives containing C++ object files must be created using
12987	    # the KAI C++ compiler.
12988	    case $host in
12989	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12990	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12991	    esac
12992	    ;;
12993          RCC*)
12994	    # Rational C++ 2.4.1
12995	    # FIXME: insert proper C++ library support
12996	    ld_shlibs_CXX=no
12997	    ;;
12998          cxx*)
12999	    case $host in
13000	      osf3*)
13001	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13002	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13003	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004		;;
13005	      *)
13006	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13007	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13008	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13009	          echo "-hidden">> $lib.exp~
13010	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13011	          $RM $lib.exp'
13012	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13013		;;
13014	    esac
13015
13016	    hardcode_libdir_separator_CXX=:
13017
13018	    # Commands to make compiler produce verbose output that lists
13019	    # what "hidden" libraries, object files and flags are used when
13020	    # linking a shared library.
13021	    #
13022	    # There doesn't appear to be a way to prevent this compiler from
13023	    # explicitly linking system object files so we need to strip them
13024	    # from the output so that they don't get included in the library
13025	    # dependencies.
13026	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13027	    ;;
13028	  *)
13029	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13030	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13031	      case $host in
13032	        osf3*)
13033	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13034		  ;;
13035	        *)
13036	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13037		  ;;
13038	      esac
13039
13040	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13041	      hardcode_libdir_separator_CXX=:
13042
13043	      # Commands to make compiler produce verbose output that lists
13044	      # what "hidden" libraries, object files and flags are used when
13045	      # linking a shared library.
13046	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13047
13048	    else
13049	      # FIXME: insert proper C++ library support
13050	      ld_shlibs_CXX=no
13051	    fi
13052	    ;;
13053        esac
13054        ;;
13055
13056      psos*)
13057        # FIXME: insert proper C++ library support
13058        ld_shlibs_CXX=no
13059        ;;
13060
13061      sunos4*)
13062        case $cc_basename in
13063          CC*)
13064	    # Sun C++ 4.x
13065	    # FIXME: insert proper C++ library support
13066	    ld_shlibs_CXX=no
13067	    ;;
13068          lcc*)
13069	    # Lucid
13070	    # FIXME: insert proper C++ library support
13071	    ld_shlibs_CXX=no
13072	    ;;
13073          *)
13074	    # FIXME: insert proper C++ library support
13075	    ld_shlibs_CXX=no
13076	    ;;
13077        esac
13078        ;;
13079
13080      solaris*)
13081        case $cc_basename in
13082          CC*)
13083	    # Sun C++ 4.2, 5.x and Centerline C++
13084            archive_cmds_need_lc_CXX=yes
13085	    no_undefined_flag_CXX=' -zdefs'
13086	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13087	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13088	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13089
13090	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13091	    hardcode_shlibpath_var_CXX=no
13092	    case $host_os in
13093	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13094	      *)
13095		# The compiler driver will combine and reorder linker options,
13096		# but understands `-z linker_flag'.
13097	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13098		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13099	        ;;
13100	    esac
13101	    link_all_deplibs_CXX=yes
13102
13103	    output_verbose_link_cmd='func_echo_all'
13104
13105	    # Archives containing C++ object files must be created using
13106	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13107	    # necessary to make sure instantiated templates are included
13108	    # in the archive.
13109	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13110	    ;;
13111          gcx*)
13112	    # Green Hills C++ Compiler
13113	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13114
13115	    # The C++ compiler must be used to create the archive.
13116	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13117	    ;;
13118          *)
13119	    # GNU C++ compiler with Solaris linker
13120	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13121	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13122	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13123	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13124	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13125		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13126
13127	        # Commands to make compiler produce verbose output that lists
13128	        # what "hidden" libraries, object files and flags are used when
13129	        # linking a shared library.
13130	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13131	      else
13132	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13133	        # platform.
13134	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13135	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13136		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13137
13138	        # Commands to make compiler produce verbose output that lists
13139	        # what "hidden" libraries, object files and flags are used when
13140	        # linking a shared library.
13141	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13142	      fi
13143
13144	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13145	      case $host_os in
13146		solaris2.[0-5] | solaris2.[0-5].*) ;;
13147		*)
13148		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13149		  ;;
13150	      esac
13151	    fi
13152	    ;;
13153        esac
13154        ;;
13155
13156    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13157      no_undefined_flag_CXX='${wl}-z,text'
13158      archive_cmds_need_lc_CXX=no
13159      hardcode_shlibpath_var_CXX=no
13160      runpath_var='LD_RUN_PATH'
13161
13162      case $cc_basename in
13163        CC*)
13164	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13165	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13166	  ;;
13167	*)
13168	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13169	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13170	  ;;
13171      esac
13172      ;;
13173
13174      sysv5* | sco3.2v5* | sco5v6*)
13175	# Note: We can NOT use -z defs as we might desire, because we do not
13176	# link with -lc, and that would cause any symbols used from libc to
13177	# always be unresolved, which means just about no library would
13178	# ever link correctly.  If we're not using GNU ld we use -z text
13179	# though, which does catch some bad symbols but isn't as heavy-handed
13180	# as -z defs.
13181	no_undefined_flag_CXX='${wl}-z,text'
13182	allow_undefined_flag_CXX='${wl}-z,nodefs'
13183	archive_cmds_need_lc_CXX=no
13184	hardcode_shlibpath_var_CXX=no
13185	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13186	hardcode_libdir_separator_CXX=':'
13187	link_all_deplibs_CXX=yes
13188	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13189	runpath_var='LD_RUN_PATH'
13190
13191	case $cc_basename in
13192          CC*)
13193	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13194	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13195	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13196	      '"$old_archive_cmds_CXX"
13197	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13198	      '"$reload_cmds_CXX"
13199	    ;;
13200	  *)
13201	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13203	    ;;
13204	esac
13205      ;;
13206
13207      tandem*)
13208        case $cc_basename in
13209          NCC*)
13210	    # NonStop-UX NCC 3.20
13211	    # FIXME: insert proper C++ library support
13212	    ld_shlibs_CXX=no
13213	    ;;
13214          *)
13215	    # FIXME: insert proper C++ library support
13216	    ld_shlibs_CXX=no
13217	    ;;
13218        esac
13219        ;;
13220
13221      vxworks*)
13222        # FIXME: insert proper C++ library support
13223        ld_shlibs_CXX=no
13224        ;;
13225
13226      *)
13227        # FIXME: insert proper C++ library support
13228        ld_shlibs_CXX=no
13229        ;;
13230    esac
13231
13232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13233$as_echo "$ld_shlibs_CXX" >&6; }
13234    test "$ld_shlibs_CXX" = no && can_build_shared=no
13235
13236    GCC_CXX="$GXX"
13237    LD_CXX="$LD"
13238
13239    ## CAVEAT EMPTOR:
13240    ## There is no encapsulation within the following macros, do not change
13241    ## the running order or otherwise move them around unless you know exactly
13242    ## what you are doing...
13243    # Dependencies to place before and after the object being linked:
13244predep_objects_CXX=
13245postdep_objects_CXX=
13246predeps_CXX=
13247postdeps_CXX=
13248compiler_lib_search_path_CXX=
13249
13250cat > conftest.$ac_ext <<_LT_EOF
13251class Foo
13252{
13253public:
13254  Foo (void) { a = 0; }
13255private:
13256  int a;
13257};
13258_LT_EOF
13259
13260if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13261  (eval $ac_compile) 2>&5
13262  ac_status=$?
13263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264  test $ac_status = 0; }; then
13265  # Parse the compiler output and extract the necessary
13266  # objects, libraries and library flags.
13267
13268  # Sentinel used to keep track of whether or not we are before
13269  # the conftest object file.
13270  pre_test_object_deps_done=no
13271
13272  for p in `eval "$output_verbose_link_cmd"`; do
13273    case $p in
13274
13275    -L* | -R* | -l*)
13276       # Some compilers place space between "-{L,R}" and the path.
13277       # Remove the space.
13278       if test $p = "-L" ||
13279          test $p = "-R"; then
13280	 prev=$p
13281	 continue
13282       else
13283	 prev=
13284       fi
13285
13286       if test "$pre_test_object_deps_done" = no; then
13287	 case $p in
13288	 -L* | -R*)
13289	   # Internal compiler library paths should come after those
13290	   # provided the user.  The postdeps already come after the
13291	   # user supplied libs so there is no need to process them.
13292	   if test -z "$compiler_lib_search_path_CXX"; then
13293	     compiler_lib_search_path_CXX="${prev}${p}"
13294	   else
13295	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13296	   fi
13297	   ;;
13298	 # The "-l" case would never come before the object being
13299	 # linked, so don't bother handling this case.
13300	 esac
13301       else
13302	 if test -z "$postdeps_CXX"; then
13303	   postdeps_CXX="${prev}${p}"
13304	 else
13305	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13306	 fi
13307       fi
13308       ;;
13309
13310    *.$objext)
13311       # This assumes that the test object file only shows up
13312       # once in the compiler output.
13313       if test "$p" = "conftest.$objext"; then
13314	 pre_test_object_deps_done=yes
13315	 continue
13316       fi
13317
13318       if test "$pre_test_object_deps_done" = no; then
13319	 if test -z "$predep_objects_CXX"; then
13320	   predep_objects_CXX="$p"
13321	 else
13322	   predep_objects_CXX="$predep_objects_CXX $p"
13323	 fi
13324       else
13325	 if test -z "$postdep_objects_CXX"; then
13326	   postdep_objects_CXX="$p"
13327	 else
13328	   postdep_objects_CXX="$postdep_objects_CXX $p"
13329	 fi
13330       fi
13331       ;;
13332
13333    *) ;; # Ignore the rest.
13334
13335    esac
13336  done
13337
13338  # Clean up.
13339  rm -f a.out a.exe
13340else
13341  echo "libtool.m4: error: problem compiling CXX test program"
13342fi
13343
13344$RM -f confest.$objext
13345
13346# PORTME: override above test on systems where it is broken
13347case $host_os in
13348interix[3-9]*)
13349  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13350  # hack all around it, let's just trust "g++" to DTRT.
13351  predep_objects_CXX=
13352  postdep_objects_CXX=
13353  postdeps_CXX=
13354  ;;
13355
13356linux*)
13357  case `$CC -V 2>&1 | sed 5q` in
13358  *Sun\ C*)
13359    # Sun C++ 5.9
13360
13361    # The more standards-conforming stlport4 library is
13362    # incompatible with the Cstd library. Avoid specifying
13363    # it if it's in CXXFLAGS. Ignore libCrun as
13364    # -library=stlport4 depends on it.
13365    case " $CXX $CXXFLAGS " in
13366    *" -library=stlport4 "*)
13367      solaris_use_stlport4=yes
13368      ;;
13369    esac
13370
13371    if test "$solaris_use_stlport4" != yes; then
13372      postdeps_CXX='-library=Cstd -library=Crun'
13373    fi
13374    ;;
13375  esac
13376  ;;
13377
13378solaris*)
13379  case $cc_basename in
13380  CC*)
13381    # The more standards-conforming stlport4 library is
13382    # incompatible with the Cstd library. Avoid specifying
13383    # it if it's in CXXFLAGS. Ignore libCrun as
13384    # -library=stlport4 depends on it.
13385    case " $CXX $CXXFLAGS " in
13386    *" -library=stlport4 "*)
13387      solaris_use_stlport4=yes
13388      ;;
13389    esac
13390
13391    # Adding this requires a known-good setup of shared libraries for
13392    # Sun compiler versions before 5.6, else PIC objects from an old
13393    # archive will be linked into the output, leading to subtle bugs.
13394    if test "$solaris_use_stlport4" != yes; then
13395      postdeps_CXX='-library=Cstd -library=Crun'
13396    fi
13397    ;;
13398  esac
13399  ;;
13400esac
13401
13402
13403case " $postdeps_CXX " in
13404*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13405esac
13406 compiler_lib_search_dirs_CXX=
13407if test -n "${compiler_lib_search_path_CXX}"; then
13408 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13409fi
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441    lt_prog_compiler_wl_CXX=
13442lt_prog_compiler_pic_CXX=
13443lt_prog_compiler_static_CXX=
13444
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13446$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13447
13448  # C++ specific cases for pic, static, wl, etc.
13449  if test "$GXX" = yes; then
13450    lt_prog_compiler_wl_CXX='-Wl,'
13451    lt_prog_compiler_static_CXX='-static'
13452
13453    case $host_os in
13454    aix*)
13455      # All AIX code is PIC.
13456      if test "$host_cpu" = ia64; then
13457	# AIX 5 now supports IA64 processor
13458	lt_prog_compiler_static_CXX='-Bstatic'
13459      fi
13460      lt_prog_compiler_pic_CXX='-fPIC'
13461      ;;
13462
13463    amigaos*)
13464      case $host_cpu in
13465      powerpc)
13466            # see comment about AmigaOS4 .so support
13467            lt_prog_compiler_pic_CXX='-fPIC'
13468        ;;
13469      m68k)
13470            # FIXME: we need at least 68020 code to build shared libraries, but
13471            # adding the `-m68020' flag to GCC prevents building anything better,
13472            # like `-m68040'.
13473            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13474        ;;
13475      esac
13476      ;;
13477
13478    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13479      # PIC is the default for these OSes.
13480      ;;
13481    mingw* | cygwin* | os2* | pw32* | cegcc*)
13482      # This hack is so that the source file can tell whether it is being
13483      # built for inclusion in a dll (and should export symbols for example).
13484      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13485      # (--disable-auto-import) libraries
13486      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13487      ;;
13488    darwin* | rhapsody*)
13489      # PIC is the default on this platform
13490      # Common symbols not allowed in MH_DYLIB files
13491      lt_prog_compiler_pic_CXX='-fno-common'
13492      ;;
13493    *djgpp*)
13494      # DJGPP does not support shared libraries at all
13495      lt_prog_compiler_pic_CXX=
13496      ;;
13497    haiku*)
13498      # PIC is the default for Haiku.
13499      # The "-static" flag exists, but is broken.
13500      lt_prog_compiler_static_CXX=
13501      ;;
13502    interix[3-9]*)
13503      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13504      # Instead, we relocate shared libraries at runtime.
13505      ;;
13506    sysv4*MP*)
13507      if test -d /usr/nec; then
13508	lt_prog_compiler_pic_CXX=-Kconform_pic
13509      fi
13510      ;;
13511    hpux*)
13512      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13513      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13514      # sets the default TLS model and affects inlining.
13515      case $host_cpu in
13516      hppa*64*)
13517	;;
13518      *)
13519	lt_prog_compiler_pic_CXX='-fPIC'
13520	;;
13521      esac
13522      ;;
13523    *qnx* | *nto*)
13524      # QNX uses GNU C++, but need to define -shared option too, otherwise
13525      # it will coredump.
13526      lt_prog_compiler_pic_CXX='-fPIC -shared'
13527      ;;
13528    *)
13529      lt_prog_compiler_pic_CXX='-fPIC'
13530      ;;
13531    esac
13532  else
13533    case $host_os in
13534      aix[4-9]*)
13535	# All AIX code is PIC.
13536	if test "$host_cpu" = ia64; then
13537	  # AIX 5 now supports IA64 processor
13538	  lt_prog_compiler_static_CXX='-Bstatic'
13539	else
13540	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13541	fi
13542	;;
13543      chorus*)
13544	case $cc_basename in
13545	cxch68*)
13546	  # Green Hills C++ Compiler
13547	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13548	  ;;
13549	esac
13550	;;
13551      dgux*)
13552	case $cc_basename in
13553	  ec++*)
13554	    lt_prog_compiler_pic_CXX='-KPIC'
13555	    ;;
13556	  ghcx*)
13557	    # Green Hills C++ Compiler
13558	    lt_prog_compiler_pic_CXX='-pic'
13559	    ;;
13560	  *)
13561	    ;;
13562	esac
13563	;;
13564      freebsd* | dragonfly*)
13565	# FreeBSD uses GNU C++
13566	;;
13567      hpux9* | hpux10* | hpux11*)
13568	case $cc_basename in
13569	  CC*)
13570	    lt_prog_compiler_wl_CXX='-Wl,'
13571	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13572	    if test "$host_cpu" != ia64; then
13573	      lt_prog_compiler_pic_CXX='+Z'
13574	    fi
13575	    ;;
13576	  aCC*)
13577	    lt_prog_compiler_wl_CXX='-Wl,'
13578	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13579	    case $host_cpu in
13580	    hppa*64*|ia64*)
13581	      # +Z the default
13582	      ;;
13583	    *)
13584	      lt_prog_compiler_pic_CXX='+Z'
13585	      ;;
13586	    esac
13587	    ;;
13588	  *)
13589	    ;;
13590	esac
13591	;;
13592      interix*)
13593	# This is c89, which is MS Visual C++ (no shared libs)
13594	# Anyone wants to do a port?
13595	;;
13596      irix5* | irix6* | nonstopux*)
13597	case $cc_basename in
13598	  CC*)
13599	    lt_prog_compiler_wl_CXX='-Wl,'
13600	    lt_prog_compiler_static_CXX='-non_shared'
13601	    # CC pic flag -KPIC is the default.
13602	    ;;
13603	  *)
13604	    ;;
13605	esac
13606	;;
13607      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13608	case $cc_basename in
13609	  KCC*)
13610	    # KAI C++ Compiler
13611	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13612	    lt_prog_compiler_pic_CXX='-fPIC'
13613	    ;;
13614	  ecpc* )
13615	    # old Intel C++ for x86_64 which still supported -KPIC.
13616	    lt_prog_compiler_wl_CXX='-Wl,'
13617	    lt_prog_compiler_pic_CXX='-KPIC'
13618	    lt_prog_compiler_static_CXX='-static'
13619	    ;;
13620	  icpc* )
13621	    # Intel C++, used to be incompatible with GCC.
13622	    # ICC 10 doesn't accept -KPIC any more.
13623	    lt_prog_compiler_wl_CXX='-Wl,'
13624	    lt_prog_compiler_pic_CXX='-fPIC'
13625	    lt_prog_compiler_static_CXX='-static'
13626	    ;;
13627	  pgCC* | pgcpp*)
13628	    # Portland Group C++ compiler
13629	    lt_prog_compiler_wl_CXX='-Wl,'
13630	    lt_prog_compiler_pic_CXX='-fpic'
13631	    lt_prog_compiler_static_CXX='-Bstatic'
13632	    ;;
13633	  cxx*)
13634	    # Compaq C++
13635	    # Make sure the PIC flag is empty.  It appears that all Alpha
13636	    # Linux and Compaq Tru64 Unix objects are PIC.
13637	    lt_prog_compiler_pic_CXX=
13638	    lt_prog_compiler_static_CXX='-non_shared'
13639	    ;;
13640	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13641	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13642	    lt_prog_compiler_wl_CXX='-Wl,'
13643	    lt_prog_compiler_pic_CXX='-qpic'
13644	    lt_prog_compiler_static_CXX='-qstaticlink'
13645	    ;;
13646	  *)
13647	    case `$CC -V 2>&1 | sed 5q` in
13648	    *Sun\ C*)
13649	      # Sun C++ 5.9
13650	      lt_prog_compiler_pic_CXX='-KPIC'
13651	      lt_prog_compiler_static_CXX='-Bstatic'
13652	      lt_prog_compiler_wl_CXX='-Qoption ld '
13653	      ;;
13654	    esac
13655	    ;;
13656	esac
13657	;;
13658      lynxos*)
13659	;;
13660      m88k*)
13661	;;
13662      mvs*)
13663	case $cc_basename in
13664	  cxx*)
13665	    lt_prog_compiler_pic_CXX='-W c,exportall'
13666	    ;;
13667	  *)
13668	    ;;
13669	esac
13670	;;
13671      netbsd*)
13672	;;
13673      *qnx* | *nto*)
13674        # QNX uses GNU C++, but need to define -shared option too, otherwise
13675        # it will coredump.
13676        lt_prog_compiler_pic_CXX='-fPIC -shared'
13677        ;;
13678      osf3* | osf4* | osf5*)
13679	case $cc_basename in
13680	  KCC*)
13681	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13682	    ;;
13683	  RCC*)
13684	    # Rational C++ 2.4.1
13685	    lt_prog_compiler_pic_CXX='-pic'
13686	    ;;
13687	  cxx*)
13688	    # Digital/Compaq C++
13689	    lt_prog_compiler_wl_CXX='-Wl,'
13690	    # Make sure the PIC flag is empty.  It appears that all Alpha
13691	    # Linux and Compaq Tru64 Unix objects are PIC.
13692	    lt_prog_compiler_pic_CXX=
13693	    lt_prog_compiler_static_CXX='-non_shared'
13694	    ;;
13695	  *)
13696	    ;;
13697	esac
13698	;;
13699      psos*)
13700	;;
13701      solaris*)
13702	case $cc_basename in
13703	  CC*)
13704	    # Sun C++ 4.2, 5.x and Centerline C++
13705	    lt_prog_compiler_pic_CXX='-KPIC'
13706	    lt_prog_compiler_static_CXX='-Bstatic'
13707	    lt_prog_compiler_wl_CXX='-Qoption ld '
13708	    ;;
13709	  gcx*)
13710	    # Green Hills C++ Compiler
13711	    lt_prog_compiler_pic_CXX='-PIC'
13712	    ;;
13713	  *)
13714	    ;;
13715	esac
13716	;;
13717      sunos4*)
13718	case $cc_basename in
13719	  CC*)
13720	    # Sun C++ 4.x
13721	    lt_prog_compiler_pic_CXX='-pic'
13722	    lt_prog_compiler_static_CXX='-Bstatic'
13723	    ;;
13724	  lcc*)
13725	    # Lucid
13726	    lt_prog_compiler_pic_CXX='-pic'
13727	    ;;
13728	  *)
13729	    ;;
13730	esac
13731	;;
13732      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13733	case $cc_basename in
13734	  CC*)
13735	    lt_prog_compiler_wl_CXX='-Wl,'
13736	    lt_prog_compiler_pic_CXX='-KPIC'
13737	    lt_prog_compiler_static_CXX='-Bstatic'
13738	    ;;
13739	esac
13740	;;
13741      tandem*)
13742	case $cc_basename in
13743	  NCC*)
13744	    # NonStop-UX NCC 3.20
13745	    lt_prog_compiler_pic_CXX='-KPIC'
13746	    ;;
13747	  *)
13748	    ;;
13749	esac
13750	;;
13751      vxworks*)
13752	;;
13753      *)
13754	lt_prog_compiler_can_build_shared_CXX=no
13755	;;
13756    esac
13757  fi
13758
13759case $host_os in
13760  # For platforms which do not support PIC, -DPIC is meaningless:
13761  *djgpp*)
13762    lt_prog_compiler_pic_CXX=
13763    ;;
13764  *)
13765    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13766    ;;
13767esac
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13769$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13770
13771
13772
13773#
13774# Check to make sure the PIC flag actually works.
13775#
13776if test -n "$lt_prog_compiler_pic_CXX"; then
13777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13778$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13779if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13780  $as_echo_n "(cached) " >&6
13781else
13782  lt_cv_prog_compiler_pic_works_CXX=no
13783   ac_outfile=conftest.$ac_objext
13784   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13785   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13786   # Insert the option either (1) after the last *FLAGS variable, or
13787   # (2) before a word containing "conftest.", or (3) at the end.
13788   # Note that $ac_compile itself does not contain backslashes and begins
13789   # with a dollar sign (not a hyphen), so the echo should work correctly.
13790   # The option is referenced via a variable to avoid confusing sed.
13791   lt_compile=`echo "$ac_compile" | $SED \
13792   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13794   -e 's:$: $lt_compiler_flag:'`
13795   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13796   (eval "$lt_compile" 2>conftest.err)
13797   ac_status=$?
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   if (exit $ac_status) && test -s "$ac_outfile"; then
13801     # The compiler can only warn and ignore the option if not recognized
13802     # So say no if there are warnings other than the usual output.
13803     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13804     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13805     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13806       lt_cv_prog_compiler_pic_works_CXX=yes
13807     fi
13808   fi
13809   $RM conftest*
13810
13811fi
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13813$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13814
13815if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13816    case $lt_prog_compiler_pic_CXX in
13817     "" | " "*) ;;
13818     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13819     esac
13820else
13821    lt_prog_compiler_pic_CXX=
13822     lt_prog_compiler_can_build_shared_CXX=no
13823fi
13824
13825fi
13826
13827
13828
13829#
13830# Check to make sure the static flag actually works.
13831#
13832wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13834$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13835if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13836  $as_echo_n "(cached) " >&6
13837else
13838  lt_cv_prog_compiler_static_works_CXX=no
13839   save_LDFLAGS="$LDFLAGS"
13840   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13841   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13842   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13843     # The linker can only warn and ignore the option if not recognized
13844     # So say no if there are warnings
13845     if test -s conftest.err; then
13846       # Append any errors to the config.log.
13847       cat conftest.err 1>&5
13848       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13849       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13850       if diff conftest.exp conftest.er2 >/dev/null; then
13851         lt_cv_prog_compiler_static_works_CXX=yes
13852       fi
13853     else
13854       lt_cv_prog_compiler_static_works_CXX=yes
13855     fi
13856   fi
13857   $RM -r conftest*
13858   LDFLAGS="$save_LDFLAGS"
13859
13860fi
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13862$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13863
13864if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13865    :
13866else
13867    lt_prog_compiler_static_CXX=
13868fi
13869
13870
13871
13872
13873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13875if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13876  $as_echo_n "(cached) " >&6
13877else
13878  lt_cv_prog_compiler_c_o_CXX=no
13879   $RM -r conftest 2>/dev/null
13880   mkdir conftest
13881   cd conftest
13882   mkdir out
13883   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13884
13885   lt_compiler_flag="-o out/conftest2.$ac_objext"
13886   # Insert the option either (1) after the last *FLAGS variable, or
13887   # (2) before a word containing "conftest.", or (3) at the end.
13888   # Note that $ac_compile itself does not contain backslashes and begins
13889   # with a dollar sign (not a hyphen), so the echo should work correctly.
13890   lt_compile=`echo "$ac_compile" | $SED \
13891   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13892   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13893   -e 's:$: $lt_compiler_flag:'`
13894   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13895   (eval "$lt_compile" 2>out/conftest.err)
13896   ac_status=$?
13897   cat out/conftest.err >&5
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13900   then
13901     # The compiler can only warn and ignore the option if not recognized
13902     # So say no if there are warnings
13903     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13904     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13905     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13906       lt_cv_prog_compiler_c_o_CXX=yes
13907     fi
13908   fi
13909   chmod u+w . 2>&5
13910   $RM conftest*
13911   # SGI C++ compiler will create directory out/ii_files/ for
13912   # template instantiation
13913   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13914   $RM out/* && rmdir out
13915   cd ..
13916   $RM -r conftest
13917   $RM conftest*
13918
13919fi
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13921$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13922
13923
13924
13925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13926$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13927if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13928  $as_echo_n "(cached) " >&6
13929else
13930  lt_cv_prog_compiler_c_o_CXX=no
13931   $RM -r conftest 2>/dev/null
13932   mkdir conftest
13933   cd conftest
13934   mkdir out
13935   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13936
13937   lt_compiler_flag="-o out/conftest2.$ac_objext"
13938   # Insert the option either (1) after the last *FLAGS variable, or
13939   # (2) before a word containing "conftest.", or (3) at the end.
13940   # Note that $ac_compile itself does not contain backslashes and begins
13941   # with a dollar sign (not a hyphen), so the echo should work correctly.
13942   lt_compile=`echo "$ac_compile" | $SED \
13943   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13944   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13945   -e 's:$: $lt_compiler_flag:'`
13946   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13947   (eval "$lt_compile" 2>out/conftest.err)
13948   ac_status=$?
13949   cat out/conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13952   then
13953     # The compiler can only warn and ignore the option if not recognized
13954     # So say no if there are warnings
13955     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13956     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13957     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13958       lt_cv_prog_compiler_c_o_CXX=yes
13959     fi
13960   fi
13961   chmod u+w . 2>&5
13962   $RM conftest*
13963   # SGI C++ compiler will create directory out/ii_files/ for
13964   # template instantiation
13965   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13966   $RM out/* && rmdir out
13967   cd ..
13968   $RM -r conftest
13969   $RM conftest*
13970
13971fi
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13973$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13974
13975
13976
13977
13978hard_links="nottested"
13979if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13980  # do not overwrite the value of need_locks provided by the user
13981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13982$as_echo_n "checking if we can lock with hard links... " >&6; }
13983  hard_links=yes
13984  $RM conftest*
13985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13986  touch conftest.a
13987  ln conftest.a conftest.b 2>&5 || hard_links=no
13988  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13990$as_echo "$hard_links" >&6; }
13991  if test "$hard_links" = no; then
13992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13993$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13994    need_locks=warn
13995  fi
13996else
13997  need_locks=no
13998fi
13999
14000
14001
14002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14003$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14004
14005  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14006  case $host_os in
14007  aix[4-9]*)
14008    # If we're using GNU nm, then we don't want the "-C" option.
14009    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14010    # Also, AIX nm treats weak defined symbols like other global defined
14011    # symbols, whereas GNU nm marks them as "W".
14012    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14013      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14014    else
14015      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14016    fi
14017    ;;
14018  pw32*)
14019    export_symbols_cmds_CXX="$ltdll_cmds"
14020  ;;
14021  cygwin* | mingw* | cegcc*)
14022    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14023  ;;
14024  *)
14025    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14026  ;;
14027  esac
14028  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14029
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14031$as_echo "$ld_shlibs_CXX" >&6; }
14032test "$ld_shlibs_CXX" = no && can_build_shared=no
14033
14034with_gnu_ld_CXX=$with_gnu_ld
14035
14036
14037
14038
14039
14040
14041#
14042# Do we need to explicitly link libc?
14043#
14044case "x$archive_cmds_need_lc_CXX" in
14045x|xyes)
14046  # Assume -lc should be added
14047  archive_cmds_need_lc_CXX=yes
14048
14049  if test "$enable_shared" = yes && test "$GCC" = yes; then
14050    case $archive_cmds_CXX in
14051    *'~'*)
14052      # FIXME: we may have to deal with multi-command sequences.
14053      ;;
14054    '$CC '*)
14055      # Test whether the compiler implicitly links with -lc since on some
14056      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14057      # to ld, don't add -lc before -lgcc.
14058      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14059$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14060if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14061  $as_echo_n "(cached) " >&6
14062else
14063  $RM conftest*
14064	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14065
14066	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14067  (eval $ac_compile) 2>&5
14068  ac_status=$?
14069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070  test $ac_status = 0; } 2>conftest.err; then
14071	  soname=conftest
14072	  lib=conftest
14073	  libobjs=conftest.$ac_objext
14074	  deplibs=
14075	  wl=$lt_prog_compiler_wl_CXX
14076	  pic_flag=$lt_prog_compiler_pic_CXX
14077	  compiler_flags=-v
14078	  linker_flags=-v
14079	  verstring=
14080	  output_objdir=.
14081	  libname=conftest
14082	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14083	  allow_undefined_flag_CXX=
14084	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14085  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14086  ac_status=$?
14087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088  test $ac_status = 0; }
14089	  then
14090	    lt_cv_archive_cmds_need_lc_CXX=no
14091	  else
14092	    lt_cv_archive_cmds_need_lc_CXX=yes
14093	  fi
14094	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14095	else
14096	  cat conftest.err 1>&5
14097	fi
14098	$RM conftest*
14099
14100fi
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14102$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14103      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14104      ;;
14105    esac
14106  fi
14107  ;;
14108esac
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14174$as_echo_n "checking dynamic linker characteristics... " >&6; }
14175
14176library_names_spec=
14177libname_spec='lib$name'
14178soname_spec=
14179shrext_cmds=".so"
14180postinstall_cmds=
14181postuninstall_cmds=
14182finish_cmds=
14183finish_eval=
14184shlibpath_var=
14185shlibpath_overrides_runpath=unknown
14186version_type=none
14187dynamic_linker="$host_os ld.so"
14188sys_lib_dlsearch_path_spec="/lib /usr/lib"
14189need_lib_prefix=unknown
14190hardcode_into_libs=no
14191
14192# when you set need_version to no, make sure it does not cause -set_version
14193# flags to be left without arguments
14194need_version=unknown
14195
14196case $host_os in
14197aix3*)
14198  version_type=linux
14199  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14200  shlibpath_var=LIBPATH
14201
14202  # AIX 3 has no versioning support, so we append a major version to the name.
14203  soname_spec='${libname}${release}${shared_ext}$major'
14204  ;;
14205
14206aix[4-9]*)
14207  version_type=linux
14208  need_lib_prefix=no
14209  need_version=no
14210  hardcode_into_libs=yes
14211  if test "$host_cpu" = ia64; then
14212    # AIX 5 supports IA64
14213    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14214    shlibpath_var=LD_LIBRARY_PATH
14215  else
14216    # With GCC up to 2.95.x, collect2 would create an import file
14217    # for dependence libraries.  The import file would start with
14218    # the line `#! .'.  This would cause the generated library to
14219    # depend on `.', always an invalid library.  This was fixed in
14220    # development snapshots of GCC prior to 3.0.
14221    case $host_os in
14222      aix4 | aix4.[01] | aix4.[01].*)
14223      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14224	   echo ' yes '
14225	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14226	:
14227      else
14228	can_build_shared=no
14229      fi
14230      ;;
14231    esac
14232    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14233    # soname into executable. Probably we can add versioning support to
14234    # collect2, so additional links can be useful in future.
14235    if test "$aix_use_runtimelinking" = yes; then
14236      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14237      # instead of lib<name>.a to let people know that these are not
14238      # typical AIX shared libraries.
14239      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240    else
14241      # We preserve .a as extension for shared libraries through AIX4.2
14242      # and later when we are not doing run time linking.
14243      library_names_spec='${libname}${release}.a $libname.a'
14244      soname_spec='${libname}${release}${shared_ext}$major'
14245    fi
14246    shlibpath_var=LIBPATH
14247  fi
14248  ;;
14249
14250amigaos*)
14251  case $host_cpu in
14252  powerpc)
14253    # Since July 2007 AmigaOS4 officially supports .so libraries.
14254    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14255    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256    ;;
14257  m68k)
14258    library_names_spec='$libname.ixlibrary $libname.a'
14259    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14260    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'
14261    ;;
14262  esac
14263  ;;
14264
14265beos*)
14266  library_names_spec='${libname}${shared_ext}'
14267  dynamic_linker="$host_os ld.so"
14268  shlibpath_var=LIBRARY_PATH
14269  ;;
14270
14271bsdi[45]*)
14272  version_type=linux
14273  need_version=no
14274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275  soname_spec='${libname}${release}${shared_ext}$major'
14276  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14277  shlibpath_var=LD_LIBRARY_PATH
14278  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14279  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14280  # the default ld.so.conf also contains /usr/contrib/lib and
14281  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14282  # libtool to hard-code these into programs
14283  ;;
14284
14285cygwin* | mingw* | pw32* | cegcc*)
14286  version_type=windows
14287  shrext_cmds=".dll"
14288  need_version=no
14289  need_lib_prefix=no
14290
14291  case $GCC,$host_os in
14292  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14293    library_names_spec='$libname.dll.a'
14294    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14295    postinstall_cmds='base_file=`basename \${file}`~
14296      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14297      dldir=$destdir/`dirname \$dlpath`~
14298      test -d \$dldir || mkdir -p \$dldir~
14299      $install_prog $dir/$dlname \$dldir/$dlname~
14300      chmod a+x \$dldir/$dlname~
14301      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14302        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14303      fi'
14304    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14305      dlpath=$dir/\$dldll~
14306       $RM \$dlpath'
14307    shlibpath_overrides_runpath=yes
14308
14309    case $host_os in
14310    cygwin*)
14311      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14312      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14313
14314      ;;
14315    mingw* | cegcc*)
14316      # MinGW DLLs use traditional 'lib' prefix
14317      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14318      ;;
14319    pw32*)
14320      # pw32 DLLs use 'pw' prefix rather than 'lib'
14321      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322      ;;
14323    esac
14324    ;;
14325
14326  *)
14327    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14328    ;;
14329  esac
14330  dynamic_linker='Win32 ld.exe'
14331  # FIXME: first we should search . and the directory the executable is in
14332  shlibpath_var=PATH
14333  ;;
14334
14335darwin* | rhapsody*)
14336  dynamic_linker="$host_os dyld"
14337  version_type=darwin
14338  need_lib_prefix=no
14339  need_version=no
14340  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14341  soname_spec='${libname}${release}${major}$shared_ext'
14342  shlibpath_overrides_runpath=yes
14343  shlibpath_var=DYLD_LIBRARY_PATH
14344  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14345
14346  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14347  ;;
14348
14349dgux*)
14350  version_type=linux
14351  need_lib_prefix=no
14352  need_version=no
14353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14354  soname_spec='${libname}${release}${shared_ext}$major'
14355  shlibpath_var=LD_LIBRARY_PATH
14356  ;;
14357
14358freebsd* | dragonfly*)
14359  # DragonFly does not have aout.  When/if they implement a new
14360  # versioning mechanism, adjust this.
14361  if test -x /usr/bin/objformat; then
14362    objformat=`/usr/bin/objformat`
14363  else
14364    case $host_os in
14365    freebsd[23].*) objformat=aout ;;
14366    *) objformat=elf ;;
14367    esac
14368  fi
14369  version_type=freebsd-$objformat
14370  case $version_type in
14371    freebsd-elf*)
14372      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14373      need_version=no
14374      need_lib_prefix=no
14375      ;;
14376    freebsd-*)
14377      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14378      need_version=yes
14379      ;;
14380  esac
14381  shlibpath_var=LD_LIBRARY_PATH
14382  case $host_os in
14383  freebsd2.*)
14384    shlibpath_overrides_runpath=yes
14385    ;;
14386  freebsd3.[01]* | freebsdelf3.[01]*)
14387    shlibpath_overrides_runpath=yes
14388    hardcode_into_libs=yes
14389    ;;
14390  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14391  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14392    shlibpath_overrides_runpath=no
14393    hardcode_into_libs=yes
14394    ;;
14395  *) # from 4.6 on, and DragonFly
14396    shlibpath_overrides_runpath=yes
14397    hardcode_into_libs=yes
14398    ;;
14399  esac
14400  ;;
14401
14402gnu*)
14403  version_type=linux
14404  need_lib_prefix=no
14405  need_version=no
14406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14407  soname_spec='${libname}${release}${shared_ext}$major'
14408  shlibpath_var=LD_LIBRARY_PATH
14409  hardcode_into_libs=yes
14410  ;;
14411
14412haiku*)
14413  version_type=linux
14414  need_lib_prefix=no
14415  need_version=no
14416  dynamic_linker="$host_os runtime_loader"
14417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14418  soname_spec='${libname}${release}${shared_ext}$major'
14419  shlibpath_var=LIBRARY_PATH
14420  shlibpath_overrides_runpath=yes
14421  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14422  hardcode_into_libs=yes
14423  ;;
14424
14425hpux9* | hpux10* | hpux11*)
14426  # Give a soname corresponding to the major version so that dld.sl refuses to
14427  # link against other versions.
14428  version_type=sunos
14429  need_lib_prefix=no
14430  need_version=no
14431  case $host_cpu in
14432  ia64*)
14433    shrext_cmds='.so'
14434    hardcode_into_libs=yes
14435    dynamic_linker="$host_os dld.so"
14436    shlibpath_var=LD_LIBRARY_PATH
14437    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439    soname_spec='${libname}${release}${shared_ext}$major'
14440    if test "X$HPUX_IA64_MODE" = X32; then
14441      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14442    else
14443      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14444    fi
14445    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14446    ;;
14447  hppa*64*)
14448    shrext_cmds='.sl'
14449    hardcode_into_libs=yes
14450    dynamic_linker="$host_os dld.sl"
14451    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14452    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454    soname_spec='${libname}${release}${shared_ext}$major'
14455    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14457    ;;
14458  *)
14459    shrext_cmds='.sl'
14460    dynamic_linker="$host_os dld.sl"
14461    shlibpath_var=SHLIB_PATH
14462    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464    soname_spec='${libname}${release}${shared_ext}$major'
14465    ;;
14466  esac
14467  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14468  postinstall_cmds='chmod 555 $lib'
14469  # or fails outright, so override atomically:
14470  install_override_mode=555
14471  ;;
14472
14473interix[3-9]*)
14474  version_type=linux
14475  need_lib_prefix=no
14476  need_version=no
14477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14478  soname_spec='${libname}${release}${shared_ext}$major'
14479  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14480  shlibpath_var=LD_LIBRARY_PATH
14481  shlibpath_overrides_runpath=no
14482  hardcode_into_libs=yes
14483  ;;
14484
14485irix5* | irix6* | nonstopux*)
14486  case $host_os in
14487    nonstopux*) version_type=nonstopux ;;
14488    *)
14489	if test "$lt_cv_prog_gnu_ld" = yes; then
14490		version_type=linux
14491	else
14492		version_type=irix
14493	fi ;;
14494  esac
14495  need_lib_prefix=no
14496  need_version=no
14497  soname_spec='${libname}${release}${shared_ext}$major'
14498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14499  case $host_os in
14500  irix5* | nonstopux*)
14501    libsuff= shlibsuff=
14502    ;;
14503  *)
14504    case $LD in # libtool.m4 will add one of these switches to LD
14505    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14506      libsuff= shlibsuff= libmagic=32-bit;;
14507    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14508      libsuff=32 shlibsuff=N32 libmagic=N32;;
14509    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14510      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14511    *) libsuff= shlibsuff= libmagic=never-match;;
14512    esac
14513    ;;
14514  esac
14515  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14516  shlibpath_overrides_runpath=no
14517  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14518  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14519  hardcode_into_libs=yes
14520  ;;
14521
14522# No shared lib support for Linux oldld, aout, or coff.
14523linux*oldld* | linux*aout* | linux*coff*)
14524  dynamic_linker=no
14525  ;;
14526
14527# This must be Linux ELF.
14528linux* | k*bsd*-gnu | kopensolaris*-gnu)
14529  version_type=linux
14530  need_lib_prefix=no
14531  need_version=no
14532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533  soname_spec='${libname}${release}${shared_ext}$major'
14534  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14535  shlibpath_var=LD_LIBRARY_PATH
14536  shlibpath_overrides_runpath=no
14537
14538  # Some binutils ld are patched to set DT_RUNPATH
14539  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  lt_cv_shlibpath_overrides_runpath=no
14543    save_LDFLAGS=$LDFLAGS
14544    save_libdir=$libdir
14545    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14546	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548/* end confdefs.h.  */
14549
14550int
14551main ()
14552{
14553
14554  ;
14555  return 0;
14556}
14557_ACEOF
14558if ac_fn_cxx_try_link "$LINENO"; then :
14559  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14560  lt_cv_shlibpath_overrides_runpath=yes
14561fi
14562fi
14563rm -f core conftest.err conftest.$ac_objext \
14564    conftest$ac_exeext conftest.$ac_ext
14565    LDFLAGS=$save_LDFLAGS
14566    libdir=$save_libdir
14567
14568fi
14569
14570  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14571
14572  # This implies no fast_install, which is unacceptable.
14573  # Some rework will be needed to allow for fast_install
14574  # before this can be enabled.
14575  hardcode_into_libs=yes
14576
14577  # Append ld.so.conf contents to the search path
14578  if test -f /etc/ld.so.conf; then
14579    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' ' '`
14580    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14581  fi
14582
14583  # We used to test for /lib/ld.so.1 and disable shared libraries on
14584  # powerpc, because MkLinux only supported shared libraries with the
14585  # GNU dynamic linker.  Since this was broken with cross compilers,
14586  # most powerpc-linux boxes support dynamic linking these days and
14587  # people can always --disable-shared, the test was removed, and we
14588  # assume the GNU/Linux dynamic linker is in use.
14589  dynamic_linker='GNU/Linux ld.so'
14590  ;;
14591
14592netbsd*)
14593  version_type=sunos
14594  need_lib_prefix=no
14595  need_version=no
14596  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14598    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14599    dynamic_linker='NetBSD (a.out) ld.so'
14600  else
14601    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14602    soname_spec='${libname}${release}${shared_ext}$major'
14603    dynamic_linker='NetBSD ld.elf_so'
14604  fi
14605  shlibpath_var=LD_LIBRARY_PATH
14606  shlibpath_overrides_runpath=yes
14607  hardcode_into_libs=yes
14608  ;;
14609
14610newsos6)
14611  version_type=linux
14612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613  shlibpath_var=LD_LIBRARY_PATH
14614  shlibpath_overrides_runpath=yes
14615  ;;
14616
14617*nto* | *qnx*)
14618  version_type=qnx
14619  need_lib_prefix=no
14620  need_version=no
14621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14622  soname_spec='${libname}${release}${shared_ext}$major'
14623  shlibpath_var=LD_LIBRARY_PATH
14624  shlibpath_overrides_runpath=no
14625  hardcode_into_libs=yes
14626  dynamic_linker='ldqnx.so'
14627  ;;
14628
14629openbsd*)
14630  version_type=sunos
14631  sys_lib_dlsearch_path_spec="/usr/lib"
14632  need_lib_prefix=no
14633  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14634  case $host_os in
14635    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14636    *)				need_version=no  ;;
14637  esac
14638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14639  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14640  shlibpath_var=LD_LIBRARY_PATH
14641  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14642    case $host_os in
14643      openbsd2.[89] | openbsd2.[89].*)
14644	shlibpath_overrides_runpath=no
14645	;;
14646      *)
14647	shlibpath_overrides_runpath=yes
14648	;;
14649      esac
14650  else
14651    shlibpath_overrides_runpath=yes
14652  fi
14653  ;;
14654
14655os2*)
14656  libname_spec='$name'
14657  shrext_cmds=".dll"
14658  need_lib_prefix=no
14659  library_names_spec='$libname${shared_ext} $libname.a'
14660  dynamic_linker='OS/2 ld.exe'
14661  shlibpath_var=LIBPATH
14662  ;;
14663
14664osf3* | osf4* | osf5*)
14665  version_type=osf
14666  need_lib_prefix=no
14667  need_version=no
14668  soname_spec='${libname}${release}${shared_ext}$major'
14669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670  shlibpath_var=LD_LIBRARY_PATH
14671  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14672  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14673  ;;
14674
14675rdos*)
14676  dynamic_linker=no
14677  ;;
14678
14679solaris*)
14680  version_type=linux
14681  need_lib_prefix=no
14682  need_version=no
14683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684  soname_spec='${libname}${release}${shared_ext}$major'
14685  shlibpath_var=LD_LIBRARY_PATH
14686  shlibpath_overrides_runpath=yes
14687  hardcode_into_libs=yes
14688  # ldd complains unless libraries are executable
14689  postinstall_cmds='chmod +x $lib'
14690  ;;
14691
14692sunos4*)
14693  version_type=sunos
14694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14695  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14696  shlibpath_var=LD_LIBRARY_PATH
14697  shlibpath_overrides_runpath=yes
14698  if test "$with_gnu_ld" = yes; then
14699    need_lib_prefix=no
14700  fi
14701  need_version=yes
14702  ;;
14703
14704sysv4 | sysv4.3*)
14705  version_type=linux
14706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707  soname_spec='${libname}${release}${shared_ext}$major'
14708  shlibpath_var=LD_LIBRARY_PATH
14709  case $host_vendor in
14710    sni)
14711      shlibpath_overrides_runpath=no
14712      need_lib_prefix=no
14713      runpath_var=LD_RUN_PATH
14714      ;;
14715    siemens)
14716      need_lib_prefix=no
14717      ;;
14718    motorola)
14719      need_lib_prefix=no
14720      need_version=no
14721      shlibpath_overrides_runpath=no
14722      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14723      ;;
14724  esac
14725  ;;
14726
14727sysv4*MP*)
14728  if test -d /usr/nec ;then
14729    version_type=linux
14730    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14731    soname_spec='$libname${shared_ext}.$major'
14732    shlibpath_var=LD_LIBRARY_PATH
14733  fi
14734  ;;
14735
14736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14737  version_type=freebsd-elf
14738  need_lib_prefix=no
14739  need_version=no
14740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14741  soname_spec='${libname}${release}${shared_ext}$major'
14742  shlibpath_var=LD_LIBRARY_PATH
14743  shlibpath_overrides_runpath=yes
14744  hardcode_into_libs=yes
14745  if test "$with_gnu_ld" = yes; then
14746    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14747  else
14748    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14749    case $host_os in
14750      sco3.2v5*)
14751        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14752	;;
14753    esac
14754  fi
14755  sys_lib_dlsearch_path_spec='/usr/lib'
14756  ;;
14757
14758tpf*)
14759  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14760  version_type=linux
14761  need_lib_prefix=no
14762  need_version=no
14763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764  shlibpath_var=LD_LIBRARY_PATH
14765  shlibpath_overrides_runpath=no
14766  hardcode_into_libs=yes
14767  ;;
14768
14769uts4*)
14770  version_type=linux
14771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772  soname_spec='${libname}${release}${shared_ext}$major'
14773  shlibpath_var=LD_LIBRARY_PATH
14774  ;;
14775
14776*)
14777  dynamic_linker=no
14778  ;;
14779esac
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14781$as_echo "$dynamic_linker" >&6; }
14782test "$dynamic_linker" = no && can_build_shared=no
14783
14784variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14785if test "$GCC" = yes; then
14786  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14787fi
14788
14789if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14790  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14791fi
14792if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14793  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14794fi
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14834$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14835hardcode_action_CXX=
14836if test -n "$hardcode_libdir_flag_spec_CXX" ||
14837   test -n "$runpath_var_CXX" ||
14838   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14839
14840  # We can hardcode non-existent directories.
14841  if test "$hardcode_direct_CXX" != no &&
14842     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14843     # have to relink, otherwise we might link with an installed library
14844     # when we should be linking with a yet-to-be-installed one
14845     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14846     test "$hardcode_minus_L_CXX" != no; then
14847    # Linking always hardcodes the temporary library directory.
14848    hardcode_action_CXX=relink
14849  else
14850    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14851    hardcode_action_CXX=immediate
14852  fi
14853else
14854  # We cannot hardcode anything, or else we can only hardcode existing
14855  # directories.
14856  hardcode_action_CXX=unsupported
14857fi
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14859$as_echo "$hardcode_action_CXX" >&6; }
14860
14861if test "$hardcode_action_CXX" = relink ||
14862   test "$inherit_rpath_CXX" = yes; then
14863  # Fast installation is not supported
14864  enable_fast_install=no
14865elif test "$shlibpath_overrides_runpath" = yes ||
14866     test "$enable_shared" = no; then
14867  # Fast installation is not necessary
14868  enable_fast_install=needless
14869fi
14870
14871
14872
14873
14874
14875
14876
14877  fi # test -n "$compiler"
14878
14879  CC=$lt_save_CC
14880  LDCXX=$LD
14881  LD=$lt_save_LD
14882  GCC=$lt_save_GCC
14883  with_gnu_ld=$lt_save_with_gnu_ld
14884  lt_cv_path_LDCXX=$lt_cv_path_LD
14885  lt_cv_path_LD=$lt_save_path_LD
14886  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14887  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14888fi # test "$_lt_caught_CXX_error" != yes
14889
14890ac_ext=c
14891ac_cpp='$CPP $CPPFLAGS'
14892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14894ac_compiler_gnu=$ac_cv_c_compiler_gnu
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908        ac_config_commands="$ac_config_commands libtool"
14909
14910
14911
14912
14913# Only expand once:
14914
14915
14916
14917# Test for 64-bit build.
14918# The cast to long int works around a bug in the HP C Compiler
14919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14921# This bug is HP SR number 8606223364.
14922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14923$as_echo_n "checking size of size_t... " >&6; }
14924if ${ac_cv_sizeof_size_t+:} false; then :
14925  $as_echo_n "(cached) " >&6
14926else
14927  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14928
14929else
14930  if test "$ac_cv_type_size_t" = yes; then
14931     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14933as_fn_error 77 "cannot compute sizeof (size_t)
14934See \`config.log' for more details" "$LINENO" 5; }
14935   else
14936     ac_cv_sizeof_size_t=0
14937   fi
14938fi
14939
14940fi
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14942$as_echo "$ac_cv_sizeof_size_t" >&6; }
14943
14944
14945
14946cat >>confdefs.h <<_ACEOF
14947#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14948_ACEOF
14949
14950
14951
14952
14953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14954$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14955    # Check whether --enable-maintainer-mode was given.
14956if test "${enable_maintainer_mode+set}" = set; then :
14957  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14958else
14959  USE_MAINTAINER_MODE=no
14960fi
14961
14962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14963$as_echo "$USE_MAINTAINER_MODE" >&6; }
14964   if test $USE_MAINTAINER_MODE = yes; then
14965  MAINTAINER_MODE_TRUE=
14966  MAINTAINER_MODE_FALSE='#'
14967else
14968  MAINTAINER_MODE_TRUE='#'
14969  MAINTAINER_MODE_FALSE=
14970fi
14971
14972  MAINT=$MAINTAINER_MODE_TRUE
14973
14974
14975
14976for ac_header in sys/mman.h
14977do :
14978  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14979if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14980  cat >>confdefs.h <<_ACEOF
14981#define HAVE_SYS_MMAN_H 1
14982_ACEOF
14983
14984fi
14985
14986done
14987
14988for ac_func in mmap mkostemp
14989do :
14990  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14991ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14992if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14993  cat >>confdefs.h <<_ACEOF
14994#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14995_ACEOF
14996
14997fi
14998done
14999
15000
15001ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15002if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15003  libffi_header_sys_mman_h=yes
15004else
15005  libffi_header_sys_mman_h=no
15006fi
15007
15008
15009ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15010if test "x$ac_cv_func_mmap" = xyes; then :
15011  libffi_func_mmap=yes
15012else
15013  libffi_func_mmap=no
15014fi
15015
15016if test "$libffi_header_sys_mman_h" != yes \
15017 || test "$libffi_func_mmap" != yes; then
15018   ac_cv_func_mmap_file=no
15019   ac_cv_func_mmap_dev_zero=no
15020   ac_cv_func_mmap_anon=no
15021else
15022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15023$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15024if ${ac_cv_func_mmap_file+:} false; then :
15025  $as_echo_n "(cached) " >&6
15026else
15027  # Add a system to this blacklist if
15028   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15029   # memory area containing the same data that you'd get if you applied
15030   # read() to the same fd.  The only system known to have a problem here
15031   # is VMS, where text files have record structure.
15032   case "$host_os" in
15033     vms* | ultrix*)
15034	ac_cv_func_mmap_file=no ;;
15035     *)
15036	ac_cv_func_mmap_file=yes;;
15037   esac
15038fi
15039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15040$as_echo "$ac_cv_func_mmap_file" >&6; }
15041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15042$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15043if ${ac_cv_func_mmap_dev_zero+:} false; then :
15044  $as_echo_n "(cached) " >&6
15045else
15046  # Add a system to this blacklist if it has mmap() but /dev/zero
15047   # does not exist, or if mmapping /dev/zero does not give anonymous
15048   # zeroed pages with both the following properties:
15049   # 1. If you map N consecutive pages in with one call, and then
15050   #    unmap any subset of those pages, the pages that were not
15051   #    explicitly unmapped remain accessible.
15052   # 2. If you map two adjacent blocks of memory and then unmap them
15053   #    both at once, they must both go away.
15054   # Systems known to be in this category are Windows (all variants),
15055   # VMS, and Darwin.
15056   case "$host_os" in
15057     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15058	ac_cv_func_mmap_dev_zero=no ;;
15059     *)
15060	ac_cv_func_mmap_dev_zero=yes;;
15061   esac
15062fi
15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15064$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15065
15066   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15068$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15069if ${ac_cv_decl_map_anon+:} false; then :
15070  $as_echo_n "(cached) " >&6
15071else
15072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074#include <sys/types.h>
15075#include <sys/mman.h>
15076#include <unistd.h>
15077
15078#ifndef MAP_ANONYMOUS
15079#define MAP_ANONYMOUS MAP_ANON
15080#endif
15081
15082int
15083main ()
15084{
15085int n = MAP_ANONYMOUS;
15086  ;
15087  return 0;
15088}
15089_ACEOF
15090if ac_fn_c_try_compile "$LINENO"; then :
15091  ac_cv_decl_map_anon=yes
15092else
15093  ac_cv_decl_map_anon=no
15094fi
15095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096fi
15097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15098$as_echo "$ac_cv_decl_map_anon" >&6; }
15099
15100   if test $ac_cv_decl_map_anon = no; then
15101     ac_cv_func_mmap_anon=no
15102   else
15103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15104$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15105if ${ac_cv_func_mmap_anon+:} false; then :
15106  $as_echo_n "(cached) " >&6
15107else
15108  # Add a system to this blacklist if it has mmap() and MAP_ANON or
15109   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15110   # doesn't give anonymous zeroed pages with the same properties listed
15111   # above for use of /dev/zero.
15112   # Systems known to be in this category are Windows, VMS, and SCO Unix.
15113   case "$host_os" in
15114     vms* | cygwin* | pe | mingw* | sco* | udk* )
15115	ac_cv_func_mmap_anon=no ;;
15116     *)
15117	ac_cv_func_mmap_anon=yes;;
15118   esac
15119fi
15120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15121$as_echo "$ac_cv_func_mmap_anon" >&6; }
15122   fi
15123fi
15124
15125if test $ac_cv_func_mmap_file = yes; then
15126
15127$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15128
15129fi
15130if test $ac_cv_func_mmap_dev_zero = yes; then
15131
15132$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15133
15134fi
15135if test $ac_cv_func_mmap_anon = yes; then
15136
15137$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15138
15139fi
15140
15141
15142 if test -d $srcdir/testsuite; then
15143  TESTSUBDIR_TRUE=
15144  TESTSUBDIR_FALSE='#'
15145else
15146  TESTSUBDIR_TRUE='#'
15147  TESTSUBDIR_FALSE=
15148fi
15149
15150
15151TARGETDIR="unknown"
15152HAVE_LONG_DOUBLE_VARIANT=0
15153
15154. ${srcdir}/configure.host
15155
15156if test -n "${UNSUPPORTED}"; then
15157  as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15158fi
15159
15160
15161
15162
15163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15164$as_echo_n "checking for ANSI C header files... " >&6; }
15165if ${ac_cv_header_stdc+:} false; then :
15166  $as_echo_n "(cached) " >&6
15167else
15168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169/* end confdefs.h.  */
15170#include <stdlib.h>
15171#include <stdarg.h>
15172#include <string.h>
15173#include <float.h>
15174
15175int
15176main ()
15177{
15178
15179  ;
15180  return 0;
15181}
15182_ACEOF
15183if ac_fn_c_try_compile "$LINENO"; then :
15184  ac_cv_header_stdc=yes
15185else
15186  ac_cv_header_stdc=no
15187fi
15188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189
15190if test $ac_cv_header_stdc = yes; then
15191  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193/* end confdefs.h.  */
15194#include <string.h>
15195
15196_ACEOF
15197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15198  $EGREP "memchr" >/dev/null 2>&1; then :
15199
15200else
15201  ac_cv_header_stdc=no
15202fi
15203rm -f conftest*
15204
15205fi
15206
15207if test $ac_cv_header_stdc = yes; then
15208  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210/* end confdefs.h.  */
15211#include <stdlib.h>
15212
15213_ACEOF
15214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15215  $EGREP "free" >/dev/null 2>&1; then :
15216
15217else
15218  ac_cv_header_stdc=no
15219fi
15220rm -f conftest*
15221
15222fi
15223
15224if test $ac_cv_header_stdc = yes; then
15225  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15226  if test "$cross_compiling" = yes; then :
15227  :
15228else
15229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230/* end confdefs.h.  */
15231#include <ctype.h>
15232#include <stdlib.h>
15233#if ((' ' & 0x0FF) == 0x020)
15234# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15235# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15236#else
15237# define ISLOWER(c) \
15238		   (('a' <= (c) && (c) <= 'i') \
15239		     || ('j' <= (c) && (c) <= 'r') \
15240		     || ('s' <= (c) && (c) <= 'z'))
15241# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15242#endif
15243
15244#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15245int
15246main ()
15247{
15248  int i;
15249  for (i = 0; i < 256; i++)
15250    if (XOR (islower (i), ISLOWER (i))
15251	|| toupper (i) != TOUPPER (i))
15252      return 2;
15253  return 0;
15254}
15255_ACEOF
15256if ac_fn_c_try_run "$LINENO"; then :
15257
15258else
15259  ac_cv_header_stdc=no
15260fi
15261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15262  conftest.$ac_objext conftest.beam conftest.$ac_ext
15263fi
15264
15265fi
15266fi
15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15268$as_echo "$ac_cv_header_stdc" >&6; }
15269if test $ac_cv_header_stdc = yes; then
15270
15271$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15272
15273fi
15274
15275for ac_func in memcpy
15276do :
15277  ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15278if test "x$ac_cv_func_memcpy" = xyes; then :
15279  cat >>confdefs.h <<_ACEOF
15280#define HAVE_MEMCPY 1
15281_ACEOF
15282
15283fi
15284done
15285
15286ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15287if test "x$ac_cv_type_size_t" = xyes; then :
15288
15289else
15290
15291cat >>confdefs.h <<_ACEOF
15292#define size_t unsigned int
15293_ACEOF
15294
15295fi
15296
15297# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15298# for constant arguments.  Useless!
15299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15300$as_echo_n "checking for working alloca.h... " >&6; }
15301if ${ac_cv_working_alloca_h+:} false; then :
15302  $as_echo_n "(cached) " >&6
15303else
15304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305/* end confdefs.h.  */
15306#include <alloca.h>
15307int
15308main ()
15309{
15310char *p = (char *) alloca (2 * sizeof (int));
15311			  if (p) return 0;
15312  ;
15313  return 0;
15314}
15315_ACEOF
15316if ac_fn_c_try_link "$LINENO"; then :
15317  ac_cv_working_alloca_h=yes
15318else
15319  ac_cv_working_alloca_h=no
15320fi
15321rm -f core conftest.err conftest.$ac_objext \
15322    conftest$ac_exeext conftest.$ac_ext
15323fi
15324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15325$as_echo "$ac_cv_working_alloca_h" >&6; }
15326if test $ac_cv_working_alloca_h = yes; then
15327
15328$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15329
15330fi
15331
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15333$as_echo_n "checking for alloca... " >&6; }
15334if ${ac_cv_func_alloca_works+:} false; then :
15335  $as_echo_n "(cached) " >&6
15336else
15337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338/* end confdefs.h.  */
15339#ifdef __GNUC__
15340# define alloca __builtin_alloca
15341#else
15342# ifdef _MSC_VER
15343#  include <malloc.h>
15344#  define alloca _alloca
15345# else
15346#  ifdef HAVE_ALLOCA_H
15347#   include <alloca.h>
15348#  else
15349#   ifdef _AIX
15350 #pragma alloca
15351#   else
15352#    ifndef alloca /* predefined by HP cc +Olibcalls */
15353void *alloca (size_t);
15354#    endif
15355#   endif
15356#  endif
15357# endif
15358#endif
15359
15360int
15361main ()
15362{
15363char *p = (char *) alloca (1);
15364				    if (p) return 0;
15365  ;
15366  return 0;
15367}
15368_ACEOF
15369if ac_fn_c_try_link "$LINENO"; then :
15370  ac_cv_func_alloca_works=yes
15371else
15372  ac_cv_func_alloca_works=no
15373fi
15374rm -f core conftest.err conftest.$ac_objext \
15375    conftest$ac_exeext conftest.$ac_ext
15376fi
15377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15378$as_echo "$ac_cv_func_alloca_works" >&6; }
15379
15380if test $ac_cv_func_alloca_works = yes; then
15381
15382$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15383
15384else
15385  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15386# that cause trouble.  Some versions do not even contain alloca or
15387# contain a buggy version.  If you still want to use their alloca,
15388# use ar to extract alloca.o from them instead of compiling alloca.c.
15389
15390ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15391
15392$as_echo "#define C_ALLOCA 1" >>confdefs.h
15393
15394
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15396$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15397if ${ac_cv_os_cray+:} false; then :
15398  $as_echo_n "(cached) " >&6
15399else
15400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401/* end confdefs.h.  */
15402#if defined CRAY && ! defined CRAY2
15403webecray
15404#else
15405wenotbecray
15406#endif
15407
15408_ACEOF
15409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15410  $EGREP "webecray" >/dev/null 2>&1; then :
15411  ac_cv_os_cray=yes
15412else
15413  ac_cv_os_cray=no
15414fi
15415rm -f conftest*
15416
15417fi
15418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15419$as_echo "$ac_cv_os_cray" >&6; }
15420if test $ac_cv_os_cray = yes; then
15421  for ac_func in _getb67 GETB67 getb67; do
15422    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15423ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15424if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15425
15426cat >>confdefs.h <<_ACEOF
15427#define CRAY_STACKSEG_END $ac_func
15428_ACEOF
15429
15430    break
15431fi
15432
15433  done
15434fi
15435
15436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15437$as_echo_n "checking stack direction for C alloca... " >&6; }
15438if ${ac_cv_c_stack_direction+:} false; then :
15439  $as_echo_n "(cached) " >&6
15440else
15441  if test "$cross_compiling" = yes; then :
15442  ac_cv_c_stack_direction=0
15443else
15444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445/* end confdefs.h.  */
15446$ac_includes_default
15447int
15448find_stack_direction (int *addr, int depth)
15449{
15450  int dir, dummy = 0;
15451  if (! addr)
15452    addr = &dummy;
15453  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15454  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15455  return dir + dummy;
15456}
15457
15458int
15459main (int argc, char **argv)
15460{
15461  return find_stack_direction (0, argc + !argv + 20) < 0;
15462}
15463_ACEOF
15464if ac_fn_c_try_run "$LINENO"; then :
15465  ac_cv_c_stack_direction=1
15466else
15467  ac_cv_c_stack_direction=-1
15468fi
15469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15470  conftest.$ac_objext conftest.beam conftest.$ac_ext
15471fi
15472
15473fi
15474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15475$as_echo "$ac_cv_c_stack_direction" >&6; }
15476cat >>confdefs.h <<_ACEOF
15477#define STACK_DIRECTION $ac_cv_c_stack_direction
15478_ACEOF
15479
15480
15481fi
15482
15483
15484# The cast to long int works around a bug in the HP C Compiler
15485# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15486# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15487# This bug is HP SR number 8606223364.
15488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15489$as_echo_n "checking size of double... " >&6; }
15490if ${ac_cv_sizeof_double+:} false; then :
15491  $as_echo_n "(cached) " >&6
15492else
15493  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
15494
15495else
15496  if test "$ac_cv_type_double" = yes; then
15497     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15499as_fn_error 77 "cannot compute sizeof (double)
15500See \`config.log' for more details" "$LINENO" 5; }
15501   else
15502     ac_cv_sizeof_double=0
15503   fi
15504fi
15505
15506fi
15507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15508$as_echo "$ac_cv_sizeof_double" >&6; }
15509
15510
15511
15512cat >>confdefs.h <<_ACEOF
15513#define SIZEOF_DOUBLE $ac_cv_sizeof_double
15514_ACEOF
15515
15516
15517# The cast to long int works around a bug in the HP C Compiler
15518# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15519# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15520# This bug is HP SR number 8606223364.
15521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15522$as_echo_n "checking size of long double... " >&6; }
15523if ${ac_cv_sizeof_long_double+:} false; then :
15524  $as_echo_n "(cached) " >&6
15525else
15526  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
15527
15528else
15529  if test "$ac_cv_type_long_double" = yes; then
15530     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15532as_fn_error 77 "cannot compute sizeof (long double)
15533See \`config.log' for more details" "$LINENO" 5; }
15534   else
15535     ac_cv_sizeof_long_double=0
15536   fi
15537fi
15538
15539fi
15540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15541$as_echo "$ac_cv_sizeof_long_double" >&6; }
15542
15543
15544
15545cat >>confdefs.h <<_ACEOF
15546#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15547_ACEOF
15548
15549
15550
15551# Also AC_SUBST this variable for ffi.h.
15552if test -z "$HAVE_LONG_DOUBLE"; then
15553  HAVE_LONG_DOUBLE=0
15554  if test $ac_cv_sizeof_long_double != 0; then
15555    if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15556
15557$as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15558
15559      HAVE_LONG_DOUBLE=1
15560    else
15561      if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15562        HAVE_LONG_DOUBLE=1
15563
15564$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15565
15566      fi
15567    fi
15568  fi
15569fi
15570
15571
15572
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15574$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15575if ${ac_cv_c_bigendian+:} false; then :
15576  $as_echo_n "(cached) " >&6
15577else
15578  ac_cv_c_bigendian=unknown
15579    # See if we're dealing with a universal compiler.
15580    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581/* end confdefs.h.  */
15582#ifndef __APPLE_CC__
15583	       not a universal capable compiler
15584	     #endif
15585	     typedef int dummy;
15586
15587_ACEOF
15588if ac_fn_c_try_compile "$LINENO"; then :
15589
15590	# Check for potential -arch flags.  It is not universal unless
15591	# there are at least two -arch flags with different values.
15592	ac_arch=
15593	ac_prev=
15594	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15595	 if test -n "$ac_prev"; then
15596	   case $ac_word in
15597	     i?86 | x86_64 | ppc | ppc64)
15598	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15599		 ac_arch=$ac_word
15600	       else
15601		 ac_cv_c_bigendian=universal
15602		 break
15603	       fi
15604	       ;;
15605	   esac
15606	   ac_prev=
15607	 elif test "x$ac_word" = "x-arch"; then
15608	   ac_prev=arch
15609	 fi
15610       done
15611fi
15612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613    if test $ac_cv_c_bigendian = unknown; then
15614      # See if sys/param.h defines the BYTE_ORDER macro.
15615      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616/* end confdefs.h.  */
15617#include <sys/types.h>
15618	     #include <sys/param.h>
15619
15620int
15621main ()
15622{
15623#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15624		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15625		     && LITTLE_ENDIAN)
15626	      bogus endian macros
15627	     #endif
15628
15629  ;
15630  return 0;
15631}
15632_ACEOF
15633if ac_fn_c_try_compile "$LINENO"; then :
15634  # It does; now see whether it defined to BIG_ENDIAN or not.
15635	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637#include <sys/types.h>
15638		#include <sys/param.h>
15639
15640int
15641main ()
15642{
15643#if BYTE_ORDER != BIG_ENDIAN
15644		 not big endian
15645		#endif
15646
15647  ;
15648  return 0;
15649}
15650_ACEOF
15651if ac_fn_c_try_compile "$LINENO"; then :
15652  ac_cv_c_bigendian=yes
15653else
15654  ac_cv_c_bigendian=no
15655fi
15656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657fi
15658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659    fi
15660    if test $ac_cv_c_bigendian = unknown; then
15661      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663/* end confdefs.h.  */
15664#include <limits.h>
15665
15666int
15667main ()
15668{
15669#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15670	      bogus endian macros
15671	     #endif
15672
15673  ;
15674  return 0;
15675}
15676_ACEOF
15677if ac_fn_c_try_compile "$LINENO"; then :
15678  # It does; now see whether it defined to _BIG_ENDIAN or not.
15679	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h.  */
15681#include <limits.h>
15682
15683int
15684main ()
15685{
15686#ifndef _BIG_ENDIAN
15687		 not big endian
15688		#endif
15689
15690  ;
15691  return 0;
15692}
15693_ACEOF
15694if ac_fn_c_try_compile "$LINENO"; then :
15695  ac_cv_c_bigendian=yes
15696else
15697  ac_cv_c_bigendian=no
15698fi
15699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700fi
15701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702    fi
15703    if test $ac_cv_c_bigendian = unknown; then
15704      # Compile a test program.
15705      if test "$cross_compiling" = yes; then :
15706  # Try to guess by grepping values from an object file.
15707	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709short int ascii_mm[] =
15710		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15711		short int ascii_ii[] =
15712		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15713		int use_ascii (int i) {
15714		  return ascii_mm[i] + ascii_ii[i];
15715		}
15716		short int ebcdic_ii[] =
15717		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15718		short int ebcdic_mm[] =
15719		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15720		int use_ebcdic (int i) {
15721		  return ebcdic_mm[i] + ebcdic_ii[i];
15722		}
15723		extern int foo;
15724
15725int
15726main ()
15727{
15728return use_ascii (foo) == use_ebcdic (foo);
15729  ;
15730  return 0;
15731}
15732_ACEOF
15733if ac_fn_c_try_compile "$LINENO"; then :
15734  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15735	      ac_cv_c_bigendian=yes
15736	    fi
15737	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15738	      if test "$ac_cv_c_bigendian" = unknown; then
15739		ac_cv_c_bigendian=no
15740	      else
15741		# finding both strings is unlikely to happen, but who knows?
15742		ac_cv_c_bigendian=unknown
15743	      fi
15744	    fi
15745fi
15746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747else
15748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749/* end confdefs.h.  */
15750$ac_includes_default
15751int
15752main ()
15753{
15754
15755	     /* Are we little or big endian?  From Harbison&Steele.  */
15756	     union
15757	     {
15758	       long int l;
15759	       char c[sizeof (long int)];
15760	     } u;
15761	     u.l = 1;
15762	     return u.c[sizeof (long int) - 1] == 1;
15763
15764  ;
15765  return 0;
15766}
15767_ACEOF
15768if ac_fn_c_try_run "$LINENO"; then :
15769  ac_cv_c_bigendian=no
15770else
15771  ac_cv_c_bigendian=yes
15772fi
15773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15774  conftest.$ac_objext conftest.beam conftest.$ac_ext
15775fi
15776
15777    fi
15778fi
15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15780$as_echo "$ac_cv_c_bigendian" >&6; }
15781 case $ac_cv_c_bigendian in #(
15782   yes)
15783     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15784;; #(
15785   no)
15786      ;; #(
15787   universal)
15788
15789$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15790
15791     ;; #(
15792   *)
15793     as_fn_error $? "unknown endianness
15794 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15795 esac
15796
15797
15798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15799$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15800if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15801  $as_echo_n "(cached) " >&6
15802else
15803
15804    gcc_cv_as_cfi_pseudo_op=unknown
15805    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806/* end confdefs.h.  */
15807asm (".cfi_startproc\n\t.cfi_endproc");
15808int
15809main ()
15810{
15811
15812  ;
15813  return 0;
15814}
15815_ACEOF
15816if ac_fn_c_try_compile "$LINENO"; then :
15817  gcc_cv_as_cfi_pseudo_op=yes
15818else
15819  gcc_cv_as_cfi_pseudo_op=no
15820fi
15821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822
15823fi
15824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15825$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15826 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15827
15828$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15829
15830 fi
15831
15832
15833case "$TARGET" in
15834  SPARC)
15835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15836$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15837if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15838  $as_echo_n "(cached) " >&6
15839else
15840
15841	save_CFLAGS="$CFLAGS"
15842	save_LDFLAGS="$LDFLAGS"
15843	CFLAGS="$CFLAGS -fpic"
15844	LDFLAGS="$LDFLAGS -shared"
15845	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846/* end confdefs.h.  */
15847asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15848int
15849main ()
15850{
15851
15852  ;
15853  return 0;
15854}
15855_ACEOF
15856if ac_fn_c_try_link "$LINENO"; then :
15857  libffi_cv_as_sparc_ua_pcrel=yes
15858else
15859  libffi_cv_as_sparc_ua_pcrel=no
15860fi
15861rm -f core conftest.err conftest.$ac_objext \
15862    conftest$ac_exeext conftest.$ac_ext
15863	CFLAGS="$save_CFLAGS"
15864	LDFLAGS="$save_LDFLAGS"
15865fi
15866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15867$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15868    if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15869
15870$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15871
15872    fi
15873
15874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15875$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15876if ${libffi_cv_as_register_pseudo_op+:} false; then :
15877  $as_echo_n "(cached) " >&6
15878else
15879
15880       libffi_cv_as_register_pseudo_op=unknown
15881       # Check if we have .register
15882       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883/* end confdefs.h.  */
15884
15885int
15886main ()
15887{
15888asm (".register %g2, #scratch");
15889  ;
15890  return 0;
15891}
15892_ACEOF
15893if ac_fn_c_try_compile "$LINENO"; then :
15894  libffi_cv_as_register_pseudo_op=yes
15895else
15896  libffi_cv_as_register_pseudo_op=no
15897fi
15898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899
15900fi
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15902$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15903    if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15904
15905$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15906
15907    fi
15908    ;;
15909
15910  X86*)
15911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15912$as_echo_n "checking assembler supports pc related relocs... " >&6; }
15913if ${libffi_cv_as_x86_pcrel+:} false; then :
15914  $as_echo_n "(cached) " >&6
15915else
15916
15917	libffi_cv_as_x86_pcrel=no
15918	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15919	if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15920	    libffi_cv_as_x86_pcrel=yes
15921	fi
15922
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15925$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15926    if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15927
15928$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15929
15930    fi
15931    ;;
15932
15933  S390)
15934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15935$as_echo_n "checking compiler uses zarch features... " >&6; }
15936if ${libffi_cv_as_s390_zarch+:} false; then :
15937  $as_echo_n "(cached) " >&6
15938else
15939
15940	libffi_cv_as_s390_zarch=no
15941	echo 'void foo(void) { bar(); bar(); }' > conftest.c
15942	if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15943	    if grep -q brasl conftest.s; then
15944	        libffi_cv_as_s390_zarch=yes
15945	    fi
15946	fi
15947
15948fi
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15950$as_echo "$libffi_cv_as_s390_zarch" >&6; }
15951    if test "x$libffi_cv_as_s390_zarch" = xyes; then
15952
15953$as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15954
15955    fi
15956    ;;
15957esac
15958
15959# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15960# Check whether --enable-pax_emutramp was given.
15961if test "${enable_pax_emutramp+set}" = set; then :
15962  enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15963
15964$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15965
15966  fi
15967fi
15968
15969
15970FFI_EXEC_TRAMPOLINE_TABLE=0
15971case "$target" in
15972     *arm*-apple-darwin* | aarch64-apple-darwin*)
15973       FFI_EXEC_TRAMPOLINE_TABLE=1
15974
15975$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15976
15977     ;;
15978     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15979
15980$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15981
15982     ;;
15983esac
15984 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15985  FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15986  FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15987else
15988  FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
15989  FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
15990fi
15991
15992
15993
15994if test x$TARGET = xX86_64; then
15995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
15996$as_echo_n "checking toolchain supports unwind section type... " >&6; }
15997if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
15998  $as_echo_n "(cached) " >&6
15999else
16000
16001        cat  > conftest1.s << EOF
16002.text
16003.globl foo
16004foo:
16005jmp bar
16006.section .eh_frame,"a",@unwind
16007bar:
16008EOF
16009
16010        cat > conftest2.c  << EOF
16011extern void foo();
16012int main(){foo();}
16013EOF
16014
16015	libffi_cv_as_x86_64_unwind_section_type=no
16016	# we ensure that we can compile _and_ link an assembly file containing an @unwind section
16017	# since the compiler can support it and not the linker (ie old binutils)
16018	if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16019           $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16020	    libffi_cv_as_x86_64_unwind_section_type=yes
16021	fi
16022
16023fi
16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16025$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16026    if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16027
16028$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16029
16030    fi
16031fi
16032
16033if test "x$GCC" = "xyes"; then
16034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16035$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16036if ${libffi_cv_ro_eh_frame+:} false; then :
16037  $as_echo_n "(cached) " >&6
16038else
16039
16040  	libffi_cv_ro_eh_frame=no
16041  	echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16042  	if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
16043	    objdump -h conftest.o > conftest.dump 2>&1
16044	    libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
16045	    if test "x$libffi_eh_frame_line" != "x"; then
16046	        libffi_test_line=`expr $libffi_eh_frame_line + 1`p
16047	        sed -n $libffi_test_line conftest.dump > conftest.line
16048	        if grep READONLY conftest.line > /dev/null; then
16049	            libffi_cv_ro_eh_frame=yes
16050	        fi
16051	    fi
16052  	fi
16053  	rm -f conftest.*
16054
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16057$as_echo "$libffi_cv_ro_eh_frame" >&6; }
16058  if test "x$libffi_cv_ro_eh_frame" = xyes; then
16059
16060$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16061
16062
16063$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16064
16065  else
16066
16067$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16068
16069  fi
16070
16071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16072$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16073if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16074  $as_echo_n "(cached) " >&6
16075else
16076
16077  	echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
16078  	libffi_cv_hidden_visibility_attribute=no
16079  	if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16080  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16081  (eval $ac_try) 2>&5
16082  ac_status=$?
16083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16084  test $ac_status = 0; }; }; then
16085  	    if grep '\.hidden.*foo' conftest.s >/dev/null; then
16086  		libffi_cv_hidden_visibility_attribute=yes
16087  	    fi
16088  	fi
16089  	rm -f conftest.*
16090
16091fi
16092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16093$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16094  if test $libffi_cv_hidden_visibility_attribute = yes; then
16095
16096$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16097
16098  fi
16099fi
16100
16101
16102
16103
16104
16105
16106
16107TARGET_OBJ=
16108for i in $SOURCES; do
16109  TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16110done
16111
16112
16113
16114
16115
16116# Check whether --enable-debug was given.
16117if test "${enable_debug+set}" = set; then :
16118  enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16119
16120$as_echo "#define FFI_DEBUG 1" >>confdefs.h
16121
16122  fi
16123fi
16124
16125 if test "$enable_debug" = "yes"; then
16126  FFI_DEBUG_TRUE=
16127  FFI_DEBUG_FALSE='#'
16128else
16129  FFI_DEBUG_TRUE='#'
16130  FFI_DEBUG_FALSE=
16131fi
16132
16133
16134# Check whether --enable-structs was given.
16135if test "${enable_structs+set}" = set; then :
16136  enableval=$enable_structs; if test "$enable_structs" = "no"; then
16137
16138$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16139
16140  fi
16141fi
16142
16143 if test "$enable_debug" = "yes"; then
16144  FFI_DEBUG_TRUE=
16145  FFI_DEBUG_FALSE='#'
16146else
16147  FFI_DEBUG_TRUE='#'
16148  FFI_DEBUG_FALSE=
16149fi
16150
16151
16152# Check whether --enable-raw-api was given.
16153if test "${enable_raw_api+set}" = set; then :
16154  enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16155
16156$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16157
16158  fi
16159fi
16160
16161
16162# Check whether --enable-purify-safety was given.
16163if test "${enable_purify_safety+set}" = set; then :
16164  enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16165
16166$as_echo "#define USING_PURIFY 1" >>confdefs.h
16167
16168  fi
16169fi
16170
16171
16172if test -n "$with_cross_host" &&
16173   test x"$with_cross_host" != x"no"; then
16174  toolexecdir='$(exec_prefix)/$(target_alias)'
16175  toolexeclibdir='$(toolexecdir)/lib'
16176else
16177  toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16178  toolexeclibdir='$(libdir)'
16179fi
16180multi_os_directory=`$CC -print-multi-os-directory`
16181case $multi_os_directory in
16182  .) ;; # Avoid trailing /.
16183  *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16184esac
16185
16186
16187
16188if test "${multilib}" = "yes"; then
16189  multilib_arg="--enable-multilib"
16190else
16191  multilib_arg=
16192fi
16193
16194# Check linker support.
16195
16196
16197# Check whether --with-gnu-ld was given.
16198if test "${with_gnu_ld+set}" = set; then :
16199  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16200else
16201  with_gnu_ld=no
16202fi
16203
16204ac_prog=ld
16205if test "$GCC" = yes; then
16206  # Check if gcc -print-prog-name=ld gives a path.
16207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16208$as_echo_n "checking for ld used by $CC... " >&6; }
16209  case $host in
16210  *-*-mingw*)
16211    # gcc leaves a trailing carriage return which upsets mingw
16212    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16213  *)
16214    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16215  esac
16216  case $ac_prog in
16217    # Accept absolute paths.
16218    [\\/]* | ?:[\\/]*)
16219      re_direlt='/[^/][^/]*/\.\./'
16220      # Canonicalize the pathname of ld
16221      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16222      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16223	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16224      done
16225      test -z "$LD" && LD="$ac_prog"
16226      ;;
16227  "")
16228    # If it fails, then pretend we aren't using GCC.
16229    ac_prog=ld
16230    ;;
16231  *)
16232    # If it is relative, then search for the first ld in PATH.
16233    with_gnu_ld=unknown
16234    ;;
16235  esac
16236elif test "$with_gnu_ld" = yes; then
16237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16238$as_echo_n "checking for GNU ld... " >&6; }
16239else
16240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16241$as_echo_n "checking for non-GNU ld... " >&6; }
16242fi
16243if ${lt_cv_path_LD+:} false; then :
16244  $as_echo_n "(cached) " >&6
16245else
16246  if test -z "$LD"; then
16247  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16248  for ac_dir in $PATH; do
16249    IFS="$lt_save_ifs"
16250    test -z "$ac_dir" && ac_dir=.
16251    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16252      lt_cv_path_LD="$ac_dir/$ac_prog"
16253      # Check to see if the program is GNU ld.  I'd rather use --version,
16254      # but apparently some variants of GNU ld only accept -v.
16255      # Break only if it was the GNU/non-GNU ld that we prefer.
16256      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16257      *GNU* | *'with BFD'*)
16258	test "$with_gnu_ld" != no && break
16259	;;
16260      *)
16261	test "$with_gnu_ld" != yes && break
16262	;;
16263      esac
16264    fi
16265  done
16266  IFS="$lt_save_ifs"
16267else
16268  lt_cv_path_LD="$LD" # Let the user override the test with a path.
16269fi
16270fi
16271
16272LD="$lt_cv_path_LD"
16273if test -n "$LD"; then
16274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16275$as_echo "$LD" >&6; }
16276else
16277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16278$as_echo "no" >&6; }
16279fi
16280test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16282$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16283if ${lt_cv_prog_gnu_ld+:} false; then :
16284  $as_echo_n "(cached) " >&6
16285else
16286  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16287case `$LD -v 2>&1 </dev/null` in
16288*GNU* | *'with BFD'*)
16289  lt_cv_prog_gnu_ld=yes
16290  ;;
16291*)
16292  lt_cv_prog_gnu_ld=no
16293  ;;
16294esac
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16297$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16298with_gnu_ld=$lt_cv_prog_gnu_ld
16299
16300
16301
16302
16303
16304
16305
16306  # If we're not using GNU ld, then there's no point in even trying these
16307  # tests.  Check for that first.  We should have already tested for gld
16308  # by now (in libtool), but require it now just to be safe...
16309  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16310  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16311
16312
16313
16314  # The name set by libtool depends on the version of libtool.  Shame on us
16315  # for depending on an impl detail, but c'est la vie.  Older versions used
16316  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16317  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16318  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16319  # set (hence we're using an older libtool), then set it.
16320  if test x${with_gnu_ld+set} != xset; then
16321    if test x${ac_cv_prog_gnu_ld+set} != xset; then
16322      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16323      with_gnu_ld=no
16324    else
16325      with_gnu_ld=$ac_cv_prog_gnu_ld
16326    fi
16327  fi
16328
16329  # Start by getting the version number.  I think the libtool test already
16330  # does some of this, but throws away the result.
16331  libat_ld_is_gold=no
16332  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16333    libat_ld_is_gold=yes
16334  fi
16335
16336  ldver=`$LD --version 2>/dev/null |
16337         sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16338
16339  libat_gnu_ld_version=`echo $ldver | \
16340         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16341
16342  # Set --gc-sections.
16343  if test "$with_gnu_ld" = "notbroken"; then
16344    # GNU ld it is!  Joy and bunny rabbits!
16345
16346    # All these tests are for C++; save the language and the compiler flags.
16347    # Need to do this so that g++ won't try to link in libstdc++
16348    ac_test_CFLAGS="${CFLAGS+set}"
16349    ac_save_CFLAGS="$CFLAGS"
16350    CFLAGS='-x c++  -Wl,--gc-sections'
16351
16352    # Check for -Wl,--gc-sections
16353    # XXX This test is broken at the moment, as symbols required for linking
16354    # are now in libsupc++ (not built yet).  In addition, this test has
16355    # cored on solaris in the past.  In addition, --gc-sections doesn't
16356    # really work at the moment (keeps on discarding used sections, first
16357    # .eh_frame and now some of the glibc sections for iconv).
16358    # Bzzzzt.  Thanks for playing, maybe next time.
16359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16360$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16361    if test "$cross_compiling" = yes; then :
16362  ac_sectionLDflags=yes
16363else
16364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365/* end confdefs.h.  */
16366
16367     int main(void)
16368     {
16369       try { throw 1; }
16370       catch (...) { };
16371       return 0;
16372     }
16373
16374_ACEOF
16375if ac_fn_c_try_run "$LINENO"; then :
16376  ac_sectionLDflags=yes
16377else
16378  ac_sectionLDflags=no
16379fi
16380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16381  conftest.$ac_objext conftest.beam conftest.$ac_ext
16382fi
16383
16384    if test "$ac_test_CFLAGS" = set; then
16385      CFLAGS="$ac_save_CFLAGS"
16386    else
16387      # this is the suspicious part
16388      CFLAGS=''
16389    fi
16390    if test "$ac_sectionLDflags" = "yes"; then
16391      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16392    fi
16393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16394$as_echo "$ac_sectionLDflags" >&6; }
16395  fi
16396
16397  # Set linker optimization flags.
16398  if test x"$with_gnu_ld" = x"yes"; then
16399    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16400  fi
16401
16402
16403
16404
16405
16406
16407 # Check whether --enable-symvers was given.
16408if test "${enable_symvers+set}" = set; then :
16409  enableval=$enable_symvers;
16410      case "$enableval" in
16411       yes|no|gnu*|sun) ;;
16412       *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16413                          esac
16414
16415else
16416  enable_symvers=yes
16417fi
16418
16419
16420
16421# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16422# don't know enough about $LD to do tricks...
16423
16424
16425# Turn a 'yes' into a suitable default.
16426if test x$enable_symvers = xyes ; then
16427  # FIXME  The following test is too strict, in theory.
16428  if test $enable_shared = no || test "x$LD" = x; then
16429    enable_symvers=no
16430  else
16431    if test $with_gnu_ld = yes ; then
16432      enable_symvers=gnu
16433    else
16434      case ${target_os} in
16435        # Sun symbol versioning exists since Solaris 2.5.
16436        solaris2.[5-9]* | solaris2.1[0-9]*)
16437          enable_symvers=sun ;;
16438        *)
16439          enable_symvers=no ;;
16440      esac
16441    fi
16442  fi
16443fi
16444
16445# Check if 'sun' was requested on non-Solaris 2 platforms.
16446if test x$enable_symvers = xsun ; then
16447  case ${target_os} in
16448    solaris2*)
16449      # All fine.
16450      ;;
16451    *)
16452      # Unlikely to work.
16453      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16454$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16455      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16456$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16457      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16458$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16459      enable_symvers=no
16460      ;;
16461  esac
16462fi
16463
16464# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16465if test $enable_symvers != no; then
16466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16467$as_echo_n "checking for shared libgcc... " >&6; }
16468  ac_save_CFLAGS="$CFLAGS"
16469  CFLAGS=' -lgcc_s'
16470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h.  */
16472
16473int
16474main ()
16475{
16476return 0;
16477  ;
16478  return 0;
16479}
16480_ACEOF
16481if ac_fn_c_try_link "$LINENO"; then :
16482  libat_shared_libgcc=yes
16483else
16484  libat_shared_libgcc=no
16485fi
16486rm -f core conftest.err conftest.$ac_objext \
16487    conftest$ac_exeext conftest.$ac_ext
16488  CFLAGS="$ac_save_CFLAGS"
16489  if test $libat_shared_libgcc = no; then
16490    cat > conftest.c <<EOF
16491int main (void) { return 0; }
16492EOF
16493    libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16494			     -shared -shared-libgcc -o conftest.so \
16495			     conftest.c -v 2>&1 >/dev/null \
16496			     | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16497    rm -f conftest.c conftest.so
16498    if test x${libat_libgcc_s_suffix+set} = xset; then
16499      CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16500      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h.  */
16502
16503int
16504main ()
16505{
16506return 0;
16507  ;
16508  return 0;
16509}
16510_ACEOF
16511if ac_fn_c_try_link "$LINENO"; then :
16512  libat_shared_libgcc=yes
16513fi
16514rm -f core conftest.err conftest.$ac_objext \
16515    conftest$ac_exeext conftest.$ac_ext
16516      CFLAGS="$ac_save_CFLAGS"
16517    fi
16518  fi
16519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16520$as_echo "$libat_shared_libgcc" >&6; }
16521fi
16522
16523# For GNU ld, we need at least this version.  The format is described in
16524# LIBAT_CHECK_LINKER_FEATURES above.
16525libat_min_gnu_ld_version=21400
16526# XXXXXXXXXXX libat_gnu_ld_version=21390
16527
16528# Check to see if unspecified "yes" value can win, given results above.
16529# Change "yes" into either "no" or a style name.
16530if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16531  if test $with_gnu_ld = yes; then
16532    if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16533      enable_symvers=gnu
16534    elif test $libat_ld_is_gold = yes ; then
16535      enable_symvers=gnu
16536    else
16537      # The right tools, the right setup, but too old.  Fallbacks?
16538      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16539$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16540      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16541$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16542      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16543$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16544      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16545$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16546      if test $libat_gnu_ld_version -ge 21200 ; then
16547        # Globbing fix is present, proper block support is not.
16548                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16549$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16550        enable_symvers=no
16551      else
16552        # 2.11 or older.
16553        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16554$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16555        enable_symvers=no
16556      fi
16557    fi
16558  elif test $enable_symvers = sun; then
16559    : All interesting versions of Sun ld support sun style symbol versioning.
16560  else
16561    # just fail for now
16562    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16563$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16564    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16565$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16566    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16567$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16568    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16569$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16570    enable_symvers=no
16571  fi
16572fi
16573if test $enable_symvers = gnu; then
16574
16575$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16576
16577fi
16578
16579 if test $enable_symvers != no; then
16580  LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16581  LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16582else
16583  LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16584  LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16585fi
16586
16587 if test $enable_symvers = gnu; then
16588  LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16589  LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16590else
16591  LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16592  LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16593fi
16594
16595 if test $enable_symvers = sun; then
16596  LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16597  LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16598else
16599  LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16600  LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16601fi
16602
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16604$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16605
16606
16607# Determine what GCC version number to use in filesystem paths.
16608
16609  get_gcc_base_ver="cat"
16610
16611# Check whether --with-gcc-major-version-only was given.
16612if test "${with_gcc_major_version_only+set}" = set; then :
16613  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16614        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16615      fi
16616
16617fi
16618
16619
16620
16621
16622ac_config_commands="$ac_config_commands include"
16623
16624ac_config_commands="$ac_config_commands src"
16625
16626
16627ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16628
16629
16630ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16631
16632
16633cat >confcache <<\_ACEOF
16634# This file is a shell script that caches the results of configure
16635# tests run on this system so they can be shared between configure
16636# scripts and configure runs, see configure's option --config-cache.
16637# It is not useful on other systems.  If it contains results you don't
16638# want to keep, you may remove or edit it.
16639#
16640# config.status only pays attention to the cache file if you give it
16641# the --recheck option to rerun configure.
16642#
16643# `ac_cv_env_foo' variables (set or unset) will be overridden when
16644# loading this file, other *unset* `ac_cv_foo' will be assigned the
16645# following values.
16646
16647_ACEOF
16648
16649# The following way of writing the cache mishandles newlines in values,
16650# but we know of no workaround that is simple, portable, and efficient.
16651# So, we kill variables containing newlines.
16652# Ultrix sh set writes to stderr and can't be redirected directly,
16653# and sets the high bit in the cache file unless we assign to the vars.
16654(
16655  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16656    eval ac_val=\$$ac_var
16657    case $ac_val in #(
16658    *${as_nl}*)
16659      case $ac_var in #(
16660      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16661$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16662      esac
16663      case $ac_var in #(
16664      _ | IFS | as_nl) ;; #(
16665      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16666      *) { eval $ac_var=; unset $ac_var;} ;;
16667      esac ;;
16668    esac
16669  done
16670
16671  (set) 2>&1 |
16672    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16673    *${as_nl}ac_space=\ *)
16674      # `set' does not quote correctly, so add quotes: double-quote
16675      # substitution turns \\\\ into \\, and sed turns \\ into \.
16676      sed -n \
16677	"s/'/'\\\\''/g;
16678	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16679      ;; #(
16680    *)
16681      # `set' quotes correctly as required by POSIX, so do not add quotes.
16682      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16683      ;;
16684    esac |
16685    sort
16686) |
16687  sed '
16688     /^ac_cv_env_/b end
16689     t clear
16690     :clear
16691     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16692     t end
16693     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16694     :end' >>confcache
16695if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16696  if test -w "$cache_file"; then
16697    if test "x$cache_file" != "x/dev/null"; then
16698      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16699$as_echo "$as_me: updating cache $cache_file" >&6;}
16700      if test ! -f "$cache_file" || test -h "$cache_file"; then
16701	cat confcache >"$cache_file"
16702      else
16703        case $cache_file in #(
16704        */* | ?:*)
16705	  mv -f confcache "$cache_file"$$ &&
16706	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16707        *)
16708	  mv -f confcache "$cache_file" ;;
16709	esac
16710      fi
16711    fi
16712  else
16713    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16714$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16715  fi
16716fi
16717rm -f confcache
16718
16719test "x$prefix" = xNONE && prefix=$ac_default_prefix
16720# Let make expand exec_prefix.
16721test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16722
16723DEFS=-DHAVE_CONFIG_H
16724
16725ac_libobjs=
16726ac_ltlibobjs=
16727U=
16728for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16729  # 1. Remove the extension, and $U if already installed.
16730  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16731  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16732  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16733  #    will be set to the directory where LIBOBJS objects are built.
16734  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16735  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16736done
16737LIBOBJS=$ac_libobjs
16738
16739LTLIBOBJS=$ac_ltlibobjs
16740
16741
16742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16743$as_echo_n "checking that generated files are newer than configure... " >&6; }
16744   if test -n "$am_sleep_pid"; then
16745     # Hide warnings about reused PIDs.
16746     wait $am_sleep_pid 2>/dev/null
16747   fi
16748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16749$as_echo "done" >&6; }
16750 if test -n "$EXEEXT"; then
16751  am__EXEEXT_TRUE=
16752  am__EXEEXT_FALSE='#'
16753else
16754  am__EXEEXT_TRUE='#'
16755  am__EXEEXT_FALSE=
16756fi
16757
16758if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16759  as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
16760Usually this means the macro was only invoked conditionally." "$LINENO" 5
16761fi
16762if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16763  as_fn_error $? "conditional \"GENINSRC\" was never defined.
16764Usually this means the macro was only invoked conditionally." "$LINENO" 5
16765fi
16766if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16767  as_fn_error $? "conditional \"AMDEP\" was never defined.
16768Usually this means the macro was only invoked conditionally." "$LINENO" 5
16769fi
16770if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16771  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16772Usually this means the macro was only invoked conditionally." "$LINENO" 5
16773fi
16774if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16775  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16776Usually this means the macro was only invoked conditionally." "$LINENO" 5
16777fi
16778if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16779  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16780Usually this means the macro was only invoked conditionally." "$LINENO" 5
16781fi
16782if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16783  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16784Usually this means the macro was only invoked conditionally." "$LINENO" 5
16785fi
16786if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16787  as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
16788Usually this means the macro was only invoked conditionally." "$LINENO" 5
16789fi
16790
16791if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16792  as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16793Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794fi
16795if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16796  as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16797Usually this means the macro was only invoked conditionally." "$LINENO" 5
16798fi
16799if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16800  as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16801Usually this means the macro was only invoked conditionally." "$LINENO" 5
16802fi
16803if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16804  as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16805Usually this means the macro was only invoked conditionally." "$LINENO" 5
16806fi
16807if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16808  as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16809Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810fi
16811if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16812  as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16813Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814fi
16815
16816: "${CONFIG_STATUS=./config.status}"
16817ac_write_fail=0
16818ac_clean_files_save=$ac_clean_files
16819ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16821$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16822as_write_fail=0
16823cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16824#! $SHELL
16825# Generated by $as_me.
16826# Run this file to recreate the current configuration.
16827# Compiler output produced by configure, useful for debugging
16828# configure, is in config.log if it exists.
16829
16830debug=false
16831ac_cs_recheck=false
16832ac_cs_silent=false
16833
16834SHELL=\${CONFIG_SHELL-$SHELL}
16835export SHELL
16836_ASEOF
16837cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16838## -------------------- ##
16839## M4sh Initialization. ##
16840## -------------------- ##
16841
16842# Be more Bourne compatible
16843DUALCASE=1; export DUALCASE # for MKS sh
16844if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16845  emulate sh
16846  NULLCMD=:
16847  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16848  # is contrary to our usage.  Disable this feature.
16849  alias -g '${1+"$@"}'='"$@"'
16850  setopt NO_GLOB_SUBST
16851else
16852  case `(set -o) 2>/dev/null` in #(
16853  *posix*) :
16854    set -o posix ;; #(
16855  *) :
16856     ;;
16857esac
16858fi
16859
16860
16861as_nl='
16862'
16863export as_nl
16864# Printing a long string crashes Solaris 7 /usr/bin/printf.
16865as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16867as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16868# Prefer a ksh shell builtin over an external printf program on Solaris,
16869# but without wasting forks for bash or zsh.
16870if test -z "$BASH_VERSION$ZSH_VERSION" \
16871    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16872  as_echo='print -r --'
16873  as_echo_n='print -rn --'
16874elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16875  as_echo='printf %s\n'
16876  as_echo_n='printf %s'
16877else
16878  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16879    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16880    as_echo_n='/usr/ucb/echo -n'
16881  else
16882    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16883    as_echo_n_body='eval
16884      arg=$1;
16885      case $arg in #(
16886      *"$as_nl"*)
16887	expr "X$arg" : "X\\(.*\\)$as_nl";
16888	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16889      esac;
16890      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16891    '
16892    export as_echo_n_body
16893    as_echo_n='sh -c $as_echo_n_body as_echo'
16894  fi
16895  export as_echo_body
16896  as_echo='sh -c $as_echo_body as_echo'
16897fi
16898
16899# The user is always right.
16900if test "${PATH_SEPARATOR+set}" != set; then
16901  PATH_SEPARATOR=:
16902  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16903    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16904      PATH_SEPARATOR=';'
16905  }
16906fi
16907
16908
16909# IFS
16910# We need space, tab and new line, in precisely that order.  Quoting is
16911# there to prevent editors from complaining about space-tab.
16912# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16913# splitting by setting IFS to empty value.)
16914IFS=" ""	$as_nl"
16915
16916# Find who we are.  Look in the path if we contain no directory separator.
16917as_myself=
16918case $0 in #((
16919  *[\\/]* ) as_myself=$0 ;;
16920  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16921for as_dir in $PATH
16922do
16923  IFS=$as_save_IFS
16924  test -z "$as_dir" && as_dir=.
16925    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16926  done
16927IFS=$as_save_IFS
16928
16929     ;;
16930esac
16931# We did not find ourselves, most probably we were run as `sh COMMAND'
16932# in which case we are not to be found in the path.
16933if test "x$as_myself" = x; then
16934  as_myself=$0
16935fi
16936if test ! -f "$as_myself"; then
16937  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16938  exit 1
16939fi
16940
16941# Unset variables that we do not need and which cause bugs (e.g. in
16942# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16943# suppresses any "Segmentation fault" message there.  '((' could
16944# trigger a bug in pdksh 5.2.14.
16945for as_var in BASH_ENV ENV MAIL MAILPATH
16946do eval test x\${$as_var+set} = xset \
16947  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16948done
16949PS1='$ '
16950PS2='> '
16951PS4='+ '
16952
16953# NLS nuisances.
16954LC_ALL=C
16955export LC_ALL
16956LANGUAGE=C
16957export LANGUAGE
16958
16959# CDPATH.
16960(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16961
16962
16963# as_fn_error STATUS ERROR [LINENO LOG_FD]
16964# ----------------------------------------
16965# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16966# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16967# script with STATUS, using 1 if that was 0.
16968as_fn_error ()
16969{
16970  as_status=$1; test $as_status -eq 0 && as_status=1
16971  if test "$4"; then
16972    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16973    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16974  fi
16975  $as_echo "$as_me: error: $2" >&2
16976  as_fn_exit $as_status
16977} # as_fn_error
16978
16979
16980# as_fn_set_status STATUS
16981# -----------------------
16982# Set $? to STATUS, without forking.
16983as_fn_set_status ()
16984{
16985  return $1
16986} # as_fn_set_status
16987
16988# as_fn_exit STATUS
16989# -----------------
16990# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16991as_fn_exit ()
16992{
16993  set +e
16994  as_fn_set_status $1
16995  exit $1
16996} # as_fn_exit
16997
16998# as_fn_unset VAR
16999# ---------------
17000# Portably unset VAR.
17001as_fn_unset ()
17002{
17003  { eval $1=; unset $1;}
17004}
17005as_unset=as_fn_unset
17006# as_fn_append VAR VALUE
17007# ----------------------
17008# Append the text in VALUE to the end of the definition contained in VAR. Take
17009# advantage of any shell optimizations that allow amortized linear growth over
17010# repeated appends, instead of the typical quadratic growth present in naive
17011# implementations.
17012if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17013  eval 'as_fn_append ()
17014  {
17015    eval $1+=\$2
17016  }'
17017else
17018  as_fn_append ()
17019  {
17020    eval $1=\$$1\$2
17021  }
17022fi # as_fn_append
17023
17024# as_fn_arith ARG...
17025# ------------------
17026# Perform arithmetic evaluation on the ARGs, and store the result in the
17027# global $as_val. Take advantage of shells that can avoid forks. The arguments
17028# must be portable across $(()) and expr.
17029if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17030  eval 'as_fn_arith ()
17031  {
17032    as_val=$(( $* ))
17033  }'
17034else
17035  as_fn_arith ()
17036  {
17037    as_val=`expr "$@" || test $? -eq 1`
17038  }
17039fi # as_fn_arith
17040
17041
17042if expr a : '\(a\)' >/dev/null 2>&1 &&
17043   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17044  as_expr=expr
17045else
17046  as_expr=false
17047fi
17048
17049if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17050  as_basename=basename
17051else
17052  as_basename=false
17053fi
17054
17055if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17056  as_dirname=dirname
17057else
17058  as_dirname=false
17059fi
17060
17061as_me=`$as_basename -- "$0" ||
17062$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17063	 X"$0" : 'X\(//\)$' \| \
17064	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17065$as_echo X/"$0" |
17066    sed '/^.*\/\([^/][^/]*\)\/*$/{
17067	    s//\1/
17068	    q
17069	  }
17070	  /^X\/\(\/\/\)$/{
17071	    s//\1/
17072	    q
17073	  }
17074	  /^X\/\(\/\).*/{
17075	    s//\1/
17076	    q
17077	  }
17078	  s/.*/./; q'`
17079
17080# Avoid depending upon Character Ranges.
17081as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17082as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17083as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17084as_cr_digits='0123456789'
17085as_cr_alnum=$as_cr_Letters$as_cr_digits
17086
17087ECHO_C= ECHO_N= ECHO_T=
17088case `echo -n x` in #(((((
17089-n*)
17090  case `echo 'xy\c'` in
17091  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17092  xy)  ECHO_C='\c';;
17093  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17094       ECHO_T='	';;
17095  esac;;
17096*)
17097  ECHO_N='-n';;
17098esac
17099
17100rm -f conf$$ conf$$.exe conf$$.file
17101if test -d conf$$.dir; then
17102  rm -f conf$$.dir/conf$$.file
17103else
17104  rm -f conf$$.dir
17105  mkdir conf$$.dir 2>/dev/null
17106fi
17107if (echo >conf$$.file) 2>/dev/null; then
17108  if ln -s conf$$.file conf$$ 2>/dev/null; then
17109    as_ln_s='ln -s'
17110    # ... but there are two gotchas:
17111    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17112    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17113    # In both cases, we have to default to `cp -pR'.
17114    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17115      as_ln_s='cp -pR'
17116  elif ln conf$$.file conf$$ 2>/dev/null; then
17117    as_ln_s=ln
17118  else
17119    as_ln_s='cp -pR'
17120  fi
17121else
17122  as_ln_s='cp -pR'
17123fi
17124rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17125rmdir conf$$.dir 2>/dev/null
17126
17127
17128# as_fn_mkdir_p
17129# -------------
17130# Create "$as_dir" as a directory, including parents if necessary.
17131as_fn_mkdir_p ()
17132{
17133
17134  case $as_dir in #(
17135  -*) as_dir=./$as_dir;;
17136  esac
17137  test -d "$as_dir" || eval $as_mkdir_p || {
17138    as_dirs=
17139    while :; do
17140      case $as_dir in #(
17141      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17142      *) as_qdir=$as_dir;;
17143      esac
17144      as_dirs="'$as_qdir' $as_dirs"
17145      as_dir=`$as_dirname -- "$as_dir" ||
17146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17147	 X"$as_dir" : 'X\(//\)[^/]' \| \
17148	 X"$as_dir" : 'X\(//\)$' \| \
17149	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17150$as_echo X"$as_dir" |
17151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17152	    s//\1/
17153	    q
17154	  }
17155	  /^X\(\/\/\)[^/].*/{
17156	    s//\1/
17157	    q
17158	  }
17159	  /^X\(\/\/\)$/{
17160	    s//\1/
17161	    q
17162	  }
17163	  /^X\(\/\).*/{
17164	    s//\1/
17165	    q
17166	  }
17167	  s/.*/./; q'`
17168      test -d "$as_dir" && break
17169    done
17170    test -z "$as_dirs" || eval "mkdir $as_dirs"
17171  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17172
17173
17174} # as_fn_mkdir_p
17175if mkdir -p . 2>/dev/null; then
17176  as_mkdir_p='mkdir -p "$as_dir"'
17177else
17178  test -d ./-p && rmdir ./-p
17179  as_mkdir_p=false
17180fi
17181
17182
17183# as_fn_executable_p FILE
17184# -----------------------
17185# Test if FILE is an executable regular file.
17186as_fn_executable_p ()
17187{
17188  test -f "$1" && test -x "$1"
17189} # as_fn_executable_p
17190as_test_x='test -x'
17191as_executable_p=as_fn_executable_p
17192
17193# Sed expression to map a string onto a valid CPP name.
17194as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17195
17196# Sed expression to map a string onto a valid variable name.
17197as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17198
17199
17200exec 6>&1
17201## ----------------------------------- ##
17202## Main body of $CONFIG_STATUS script. ##
17203## ----------------------------------- ##
17204_ASEOF
17205test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17206
17207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17208# Save the log message, to keep $0 and so on meaningful, and to
17209# report actual input values of CONFIG_FILES etc. instead of their
17210# values after options handling.
17211ac_log="
17212This file was extended by libffi $as_me 3.99999, which was
17213generated by GNU Autoconf 2.69.  Invocation command line was
17214
17215  CONFIG_FILES    = $CONFIG_FILES
17216  CONFIG_HEADERS  = $CONFIG_HEADERS
17217  CONFIG_LINKS    = $CONFIG_LINKS
17218  CONFIG_COMMANDS = $CONFIG_COMMANDS
17219  $ $0 $@
17220
17221on `(hostname || uname -n) 2>/dev/null | sed 1q`
17222"
17223
17224_ACEOF
17225
17226case $ac_config_files in *"
17227"*) set x $ac_config_files; shift; ac_config_files=$*;;
17228esac
17229
17230case $ac_config_headers in *"
17231"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17232esac
17233
17234
17235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17236# Files that config.status was made for.
17237config_files="$ac_config_files"
17238config_headers="$ac_config_headers"
17239config_links="$ac_config_links"
17240config_commands="$ac_config_commands"
17241
17242_ACEOF
17243
17244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17245ac_cs_usage="\
17246\`$as_me' instantiates files and other configuration actions
17247from templates according to the current configuration.  Unless the files
17248and actions are specified as TAGs, all are instantiated by default.
17249
17250Usage: $0 [OPTION]... [TAG]...
17251
17252  -h, --help       print this help, then exit
17253  -V, --version    print version number and configuration settings, then exit
17254      --config     print configuration, then exit
17255  -q, --quiet, --silent
17256                   do not print progress messages
17257  -d, --debug      don't remove temporary files
17258      --recheck    update $as_me by reconfiguring in the same conditions
17259      --file=FILE[:TEMPLATE]
17260                   instantiate the configuration file FILE
17261      --header=FILE[:TEMPLATE]
17262                   instantiate the configuration header FILE
17263
17264Configuration files:
17265$config_files
17266
17267Configuration headers:
17268$config_headers
17269
17270Configuration links:
17271$config_links
17272
17273Configuration commands:
17274$config_commands
17275
17276Report bugs to <http://github.com/atgreen/libffi/issues>."
17277
17278_ACEOF
17279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17280ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17281ac_cs_version="\\
17282libffi config.status 3.99999
17283configured by $0, generated by GNU Autoconf 2.69,
17284  with options \\"\$ac_cs_config\\"
17285
17286Copyright (C) 2012 Free Software Foundation, Inc.
17287This config.status script is free software; the Free Software Foundation
17288gives unlimited permission to copy, distribute and modify it."
17289
17290ac_pwd='$ac_pwd'
17291srcdir='$srcdir'
17292INSTALL='$INSTALL'
17293MKDIR_P='$MKDIR_P'
17294AWK='$AWK'
17295test -n "\$AWK" || AWK=awk
17296_ACEOF
17297
17298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17299# The default lists apply if the user does not specify any file.
17300ac_need_defaults=:
17301while test $# != 0
17302do
17303  case $1 in
17304  --*=?*)
17305    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17306    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17307    ac_shift=:
17308    ;;
17309  --*=)
17310    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17311    ac_optarg=
17312    ac_shift=:
17313    ;;
17314  *)
17315    ac_option=$1
17316    ac_optarg=$2
17317    ac_shift=shift
17318    ;;
17319  esac
17320
17321  case $ac_option in
17322  # Handling of the options.
17323  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17324    ac_cs_recheck=: ;;
17325  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17326    $as_echo "$ac_cs_version"; exit ;;
17327  --config | --confi | --conf | --con | --co | --c )
17328    $as_echo "$ac_cs_config"; exit ;;
17329  --debug | --debu | --deb | --de | --d | -d )
17330    debug=: ;;
17331  --file | --fil | --fi | --f )
17332    $ac_shift
17333    case $ac_optarg in
17334    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17335    '') as_fn_error $? "missing file argument" ;;
17336    esac
17337    as_fn_append CONFIG_FILES " '$ac_optarg'"
17338    ac_need_defaults=false;;
17339  --header | --heade | --head | --hea )
17340    $ac_shift
17341    case $ac_optarg in
17342    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17343    esac
17344    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17345    ac_need_defaults=false;;
17346  --he | --h)
17347    # Conflict between --help and --header
17348    as_fn_error $? "ambiguous option: \`$1'
17349Try \`$0 --help' for more information.";;
17350  --help | --hel | -h )
17351    $as_echo "$ac_cs_usage"; exit ;;
17352  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17353  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17354    ac_cs_silent=: ;;
17355
17356  # This is an error.
17357  -*) as_fn_error $? "unrecognized option: \`$1'
17358Try \`$0 --help' for more information." ;;
17359
17360  *) as_fn_append ac_config_targets " $1"
17361     ac_need_defaults=false ;;
17362
17363  esac
17364  shift
17365done
17366
17367ac_configure_extra_args=
17368
17369if $ac_cs_silent; then
17370  exec 6>/dev/null
17371  ac_configure_extra_args="$ac_configure_extra_args --silent"
17372fi
17373
17374_ACEOF
17375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17376if \$ac_cs_recheck; then
17377  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17378  shift
17379  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17380  CONFIG_SHELL='$SHELL'
17381  export CONFIG_SHELL
17382  exec "\$@"
17383fi
17384
17385_ACEOF
17386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17387exec 5>>config.log
17388{
17389  echo
17390  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17391## Running $as_me. ##
17392_ASBOX
17393  $as_echo "$ac_log"
17394} >&5
17395
17396_ACEOF
17397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17398#
17399# INIT-COMMANDS
17400#
17401
17402srcdir="$srcdir"
17403host="$host"
17404target="$target"
17405with_multisubdir="$with_multisubdir"
17406with_multisrctop="$with_multisrctop"
17407with_target_subdir="$with_target_subdir"
17408ac_configure_args="${multilib_arg} ${ac_configure_args}"
17409multi_basedir="$multi_basedir"
17410CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17411CC="$CC"
17412CXX="$CXX"
17413GFORTRAN="$GFORTRAN"
17414GDC="$GDC"
17415AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17416
17417
17418# The HP-UX ksh and POSIX shell print the target directory to stdout
17419# if CDPATH is set.
17420(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17421
17422sed_quote_subst='$sed_quote_subst'
17423double_quote_subst='$double_quote_subst'
17424delay_variable_subst='$delay_variable_subst'
17425macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17426macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17427enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17428enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17429pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17430enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17431SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17432ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17433host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17434host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17435host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17436build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17437build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17438build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17439SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17440Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17441GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17442EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17443FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17444LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17445NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17446LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17447max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17448ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17449exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17450lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17451lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17452lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17453reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17454reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17455OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17456deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17457file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17458AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17459AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17460STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17461RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17462old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17463old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17464old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17465lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17466CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17467CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17468compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17469GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17470lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17471lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17472lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17473lt_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"`'
17474objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17475MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17476lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17477lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17478lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17479lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17480lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17481need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17482DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17483NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17484LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17485OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17486OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17487libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17488shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17489extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17490archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17491enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17492export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17493whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17494compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17495old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17496old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17497archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17498archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17499module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17500module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17501with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17502allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17503no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17504hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17505hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17506hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17507hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17508hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17509hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17510hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17511hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17512inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17513link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17514fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17515always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17516export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17517exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17518include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17519prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17520file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17521variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17522need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17523need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17524version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17525runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17526shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17527shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17528libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17529library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17530soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17531install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17532postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17533postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17534finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17535finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17536hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17537sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17538sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17539hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17540enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17541enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17542enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17543old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17544striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17545compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17546predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17547postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17548predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17549postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17550compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17551LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17552reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17553reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17554old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17555compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17556GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17557lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17558lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17559lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17560lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17561lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17562archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17563enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17564export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17565whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17566compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17567old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17568old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17569archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17570archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17571module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17572module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17573with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17574allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17575no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17576hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17577hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17578hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17579hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17580hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17581hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17582hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17583hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17584inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17585link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17586fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17587always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17588export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17589exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17590include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17591prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17592file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17593hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17594compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17595predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17596postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17597predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17598postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17599compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17600
17601LTCC='$LTCC'
17602LTCFLAGS='$LTCFLAGS'
17603compiler='$compiler_DEFAULT'
17604
17605# A function that is used when there is no print builtin or printf.
17606func_fallback_echo ()
17607{
17608  eval 'cat <<_LTECHO_EOF
17609\$1
17610_LTECHO_EOF'
17611}
17612
17613# Quote evaled strings.
17614for var in SHELL \
17615ECHO \
17616SED \
17617GREP \
17618EGREP \
17619FGREP \
17620LD \
17621NM \
17622LN_S \
17623lt_SP2NL \
17624lt_NL2SP \
17625reload_flag \
17626OBJDUMP \
17627deplibs_check_method \
17628file_magic_cmd \
17629AR \
17630AR_FLAGS \
17631STRIP \
17632RANLIB \
17633CC \
17634CFLAGS \
17635compiler \
17636lt_cv_sys_global_symbol_pipe \
17637lt_cv_sys_global_symbol_to_cdecl \
17638lt_cv_sys_global_symbol_to_c_name_address \
17639lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17640lt_prog_compiler_no_builtin_flag \
17641lt_prog_compiler_wl \
17642lt_prog_compiler_pic \
17643lt_prog_compiler_static \
17644lt_cv_prog_compiler_c_o \
17645need_locks \
17646DSYMUTIL \
17647NMEDIT \
17648LIPO \
17649OTOOL \
17650OTOOL64 \
17651shrext_cmds \
17652export_dynamic_flag_spec \
17653whole_archive_flag_spec \
17654compiler_needs_object \
17655with_gnu_ld \
17656allow_undefined_flag \
17657no_undefined_flag \
17658hardcode_libdir_flag_spec \
17659hardcode_libdir_flag_spec_ld \
17660hardcode_libdir_separator \
17661fix_srcfile_path \
17662exclude_expsyms \
17663include_expsyms \
17664file_list_spec \
17665variables_saved_for_relink \
17666libname_spec \
17667library_names_spec \
17668soname_spec \
17669install_override_mode \
17670finish_eval \
17671old_striplib \
17672striplib \
17673compiler_lib_search_dirs \
17674predep_objects \
17675postdep_objects \
17676predeps \
17677postdeps \
17678compiler_lib_search_path \
17679LD_CXX \
17680reload_flag_CXX \
17681compiler_CXX \
17682lt_prog_compiler_no_builtin_flag_CXX \
17683lt_prog_compiler_wl_CXX \
17684lt_prog_compiler_pic_CXX \
17685lt_prog_compiler_static_CXX \
17686lt_cv_prog_compiler_c_o_CXX \
17687export_dynamic_flag_spec_CXX \
17688whole_archive_flag_spec_CXX \
17689compiler_needs_object_CXX \
17690with_gnu_ld_CXX \
17691allow_undefined_flag_CXX \
17692no_undefined_flag_CXX \
17693hardcode_libdir_flag_spec_CXX \
17694hardcode_libdir_flag_spec_ld_CXX \
17695hardcode_libdir_separator_CXX \
17696fix_srcfile_path_CXX \
17697exclude_expsyms_CXX \
17698include_expsyms_CXX \
17699file_list_spec_CXX \
17700compiler_lib_search_dirs_CXX \
17701predep_objects_CXX \
17702postdep_objects_CXX \
17703predeps_CXX \
17704postdeps_CXX \
17705compiler_lib_search_path_CXX; do
17706    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17707    *[\\\\\\\`\\"\\\$]*)
17708      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17709      ;;
17710    *)
17711      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17712      ;;
17713    esac
17714done
17715
17716# Double-quote double-evaled strings.
17717for var in reload_cmds \
17718old_postinstall_cmds \
17719old_postuninstall_cmds \
17720old_archive_cmds \
17721extract_expsyms_cmds \
17722old_archive_from_new_cmds \
17723old_archive_from_expsyms_cmds \
17724archive_cmds \
17725archive_expsym_cmds \
17726module_cmds \
17727module_expsym_cmds \
17728export_symbols_cmds \
17729prelink_cmds \
17730postinstall_cmds \
17731postuninstall_cmds \
17732finish_cmds \
17733sys_lib_search_path_spec \
17734sys_lib_dlsearch_path_spec \
17735reload_cmds_CXX \
17736old_archive_cmds_CXX \
17737old_archive_from_new_cmds_CXX \
17738old_archive_from_expsyms_cmds_CXX \
17739archive_cmds_CXX \
17740archive_expsym_cmds_CXX \
17741module_cmds_CXX \
17742module_expsym_cmds_CXX \
17743export_symbols_cmds_CXX \
17744prelink_cmds_CXX; do
17745    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17746    *[\\\\\\\`\\"\\\$]*)
17747      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17748      ;;
17749    *)
17750      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17751      ;;
17752    esac
17753done
17754
17755ac_aux_dir='$ac_aux_dir'
17756xsi_shell='$xsi_shell'
17757lt_shell_append='$lt_shell_append'
17758
17759# See if we are running on zsh, and set the options which allow our
17760# commands through without removal of \ escapes INIT.
17761if test -n "\${ZSH_VERSION+set}" ; then
17762   setopt NO_GLOB_SUBST
17763fi
17764
17765
17766    PACKAGE='$PACKAGE'
17767    VERSION='$VERSION'
17768    TIMESTAMP='$TIMESTAMP'
17769    RM='$RM'
17770    ofile='$ofile'
17771
17772
17773
17774
17775
17776TARGETDIR="$TARGETDIR"
17777
17778_ACEOF
17779
17780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17781
17782# Handling of arguments.
17783for ac_config_target in $ac_config_targets
17784do
17785  case $ac_config_target in
17786    "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17787    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17788    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17789    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17790    "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17791    "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17792    "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17793    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17794    "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17795    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17796    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17797    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17798    "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17799
17800  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17801  esac
17802done
17803
17804
17805# If the user did not use the arguments to specify the items to instantiate,
17806# then the envvar interface is used.  Set only those that are not.
17807# We use the long form for the default assignment because of an extremely
17808# bizarre bug on SunOS 4.1.3.
17809if $ac_need_defaults; then
17810  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17811  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17812  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17813  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17814fi
17815
17816# Have a temporary directory for convenience.  Make it in the build tree
17817# simply because there is no reason against having it here, and in addition,
17818# creating and moving files from /tmp can sometimes cause problems.
17819# Hook for its removal unless debugging.
17820# Note that there is a small window in which the directory will not be cleaned:
17821# after its creation but before its name has been assigned to `$tmp'.
17822$debug ||
17823{
17824  tmp= ac_tmp=
17825  trap 'exit_status=$?
17826  : "${ac_tmp:=$tmp}"
17827  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17828' 0
17829  trap 'as_fn_exit 1' 1 2 13 15
17830}
17831# Create a (secure) tmp directory for tmp files.
17832
17833{
17834  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17835  test -d "$tmp"
17836}  ||
17837{
17838  tmp=./conf$$-$RANDOM
17839  (umask 077 && mkdir "$tmp")
17840} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17841ac_tmp=$tmp
17842
17843# Set up the scripts for CONFIG_FILES section.
17844# No need to generate them if there are no CONFIG_FILES.
17845# This happens for instance with `./config.status config.h'.
17846if test -n "$CONFIG_FILES"; then
17847
17848
17849ac_cr=`echo X | tr X '\015'`
17850# On cygwin, bash can eat \r inside `` if the user requested igncr.
17851# But we know of no other shell where ac_cr would be empty at this
17852# point, so we can use a bashism as a fallback.
17853if test "x$ac_cr" = x; then
17854  eval ac_cr=\$\'\\r\'
17855fi
17856ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17857if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17858  ac_cs_awk_cr='\\r'
17859else
17860  ac_cs_awk_cr=$ac_cr
17861fi
17862
17863echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17864_ACEOF
17865
17866
17867{
17868  echo "cat >conf$$subs.awk <<_ACEOF" &&
17869  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17870  echo "_ACEOF"
17871} >conf$$subs.sh ||
17872  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17873ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17874ac_delim='%!_!# '
17875for ac_last_try in false false false false false :; do
17876  . ./conf$$subs.sh ||
17877    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17878
17879  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17880  if test $ac_delim_n = $ac_delim_num; then
17881    break
17882  elif $ac_last_try; then
17883    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17884  else
17885    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17886  fi
17887done
17888rm -f conf$$subs.sh
17889
17890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17891cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17892_ACEOF
17893sed -n '
17894h
17895s/^/S["/; s/!.*/"]=/
17896p
17897g
17898s/^[^!]*!//
17899:repl
17900t repl
17901s/'"$ac_delim"'$//
17902t delim
17903:nl
17904h
17905s/\(.\{148\}\)..*/\1/
17906t more1
17907s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17908p
17909n
17910b repl
17911:more1
17912s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17913p
17914g
17915s/.\{148\}//
17916t nl
17917:delim
17918h
17919s/\(.\{148\}\)..*/\1/
17920t more2
17921s/["\\]/\\&/g; s/^/"/; s/$/"/
17922p
17923b
17924:more2
17925s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17926p
17927g
17928s/.\{148\}//
17929t delim
17930' <conf$$subs.awk | sed '
17931/^[^""]/{
17932  N
17933  s/\n//
17934}
17935' >>$CONFIG_STATUS || ac_write_fail=1
17936rm -f conf$$subs.awk
17937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17938_ACAWK
17939cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17940  for (key in S) S_is_set[key] = 1
17941  FS = ""
17942
17943}
17944{
17945  line = $ 0
17946  nfields = split(line, field, "@")
17947  substed = 0
17948  len = length(field[1])
17949  for (i = 2; i < nfields; i++) {
17950    key = field[i]
17951    keylen = length(key)
17952    if (S_is_set[key]) {
17953      value = S[key]
17954      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17955      len += length(value) + length(field[++i])
17956      substed = 1
17957    } else
17958      len += 1 + keylen
17959  }
17960
17961  print line
17962}
17963
17964_ACAWK
17965_ACEOF
17966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17967if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17968  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17969else
17970  cat
17971fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17972  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17973_ACEOF
17974
17975# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17976# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17977# trailing colons and then remove the whole line if VPATH becomes empty
17978# (actually we leave an empty line to preserve line numbers).
17979if test "x$srcdir" = x.; then
17980  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17981h
17982s///
17983s/^/:/
17984s/[	 ]*$/:/
17985s/:\$(srcdir):/:/g
17986s/:\${srcdir}:/:/g
17987s/:@srcdir@:/:/g
17988s/^:*//
17989s/:*$//
17990x
17991s/\(=[	 ]*\).*/\1/
17992G
17993s/\n//
17994s/^[^=]*=[	 ]*$//
17995}'
17996fi
17997
17998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17999fi # test -n "$CONFIG_FILES"
18000
18001# Set up the scripts for CONFIG_HEADERS section.
18002# No need to generate them if there are no CONFIG_HEADERS.
18003# This happens for instance with `./config.status Makefile'.
18004if test -n "$CONFIG_HEADERS"; then
18005cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18006BEGIN {
18007_ACEOF
18008
18009# Transform confdefs.h into an awk script `defines.awk', embedded as
18010# here-document in config.status, that substitutes the proper values into
18011# config.h.in to produce config.h.
18012
18013# Create a delimiter string that does not exist in confdefs.h, to ease
18014# handling of long lines.
18015ac_delim='%!_!# '
18016for ac_last_try in false false :; do
18017  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18018  if test -z "$ac_tt"; then
18019    break
18020  elif $ac_last_try; then
18021    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18022  else
18023    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18024  fi
18025done
18026
18027# For the awk script, D is an array of macro values keyed by name,
18028# likewise P contains macro parameters if any.  Preserve backslash
18029# newline sequences.
18030
18031ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18032sed -n '
18033s/.\{148\}/&'"$ac_delim"'/g
18034t rset
18035:rset
18036s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18037t def
18038d
18039:def
18040s/\\$//
18041t bsnl
18042s/["\\]/\\&/g
18043s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18044D["\1"]=" \3"/p
18045s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18046d
18047:bsnl
18048s/["\\]/\\&/g
18049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18050D["\1"]=" \3\\\\\\n"\\/p
18051t cont
18052s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18053t cont
18054d
18055:cont
18056n
18057s/.\{148\}/&'"$ac_delim"'/g
18058t clear
18059:clear
18060s/\\$//
18061t bsnlc
18062s/["\\]/\\&/g; s/^/"/; s/$/"/p
18063d
18064:bsnlc
18065s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18066b cont
18067' <confdefs.h | sed '
18068s/'"$ac_delim"'/"\\\
18069"/g' >>$CONFIG_STATUS || ac_write_fail=1
18070
18071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18072  for (key in D) D_is_set[key] = 1
18073  FS = ""
18074}
18075/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18076  line = \$ 0
18077  split(line, arg, " ")
18078  if (arg[1] == "#") {
18079    defundef = arg[2]
18080    mac1 = arg[3]
18081  } else {
18082    defundef = substr(arg[1], 2)
18083    mac1 = arg[2]
18084  }
18085  split(mac1, mac2, "(") #)
18086  macro = mac2[1]
18087  prefix = substr(line, 1, index(line, defundef) - 1)
18088  if (D_is_set[macro]) {
18089    # Preserve the white space surrounding the "#".
18090    print prefix "define", macro P[macro] D[macro]
18091    next
18092  } else {
18093    # Replace #undef with comments.  This is necessary, for example,
18094    # in the case of _POSIX_SOURCE, which is predefined and required
18095    # on some systems where configure will not decide to define it.
18096    if (defundef == "undef") {
18097      print "/*", prefix defundef, macro, "*/"
18098      next
18099    }
18100  }
18101}
18102{ print }
18103_ACAWK
18104_ACEOF
18105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18106  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18107fi # test -n "$CONFIG_HEADERS"
18108
18109
18110eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18111shift
18112for ac_tag
18113do
18114  case $ac_tag in
18115  :[FHLC]) ac_mode=$ac_tag; continue;;
18116  esac
18117  case $ac_mode$ac_tag in
18118  :[FHL]*:*);;
18119  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18120  :[FH]-) ac_tag=-:-;;
18121  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18122  esac
18123  ac_save_IFS=$IFS
18124  IFS=:
18125  set x $ac_tag
18126  IFS=$ac_save_IFS
18127  shift
18128  ac_file=$1
18129  shift
18130
18131  case $ac_mode in
18132  :L) ac_source=$1;;
18133  :[FH])
18134    ac_file_inputs=
18135    for ac_f
18136    do
18137      case $ac_f in
18138      -) ac_f="$ac_tmp/stdin";;
18139      *) # Look for the file first in the build tree, then in the source tree
18140	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18141	 # because $ac_f cannot contain `:'.
18142	 test -f "$ac_f" ||
18143	   case $ac_f in
18144	   [\\/$]*) false;;
18145	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18146	   esac ||
18147	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18148      esac
18149      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18150      as_fn_append ac_file_inputs " '$ac_f'"
18151    done
18152
18153    # Let's still pretend it is `configure' which instantiates (i.e., don't
18154    # use $as_me), people would be surprised to read:
18155    #    /* config.h.  Generated by config.status.  */
18156    configure_input='Generated from '`
18157	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18158	`' by configure.'
18159    if test x"$ac_file" != x-; then
18160      configure_input="$ac_file.  $configure_input"
18161      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18162$as_echo "$as_me: creating $ac_file" >&6;}
18163    fi
18164    # Neutralize special characters interpreted by sed in replacement strings.
18165    case $configure_input in #(
18166    *\&* | *\|* | *\\* )
18167       ac_sed_conf_input=`$as_echo "$configure_input" |
18168       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18169    *) ac_sed_conf_input=$configure_input;;
18170    esac
18171
18172    case $ac_tag in
18173    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18174      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18175    esac
18176    ;;
18177  esac
18178
18179  ac_dir=`$as_dirname -- "$ac_file" ||
18180$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18181	 X"$ac_file" : 'X\(//\)[^/]' \| \
18182	 X"$ac_file" : 'X\(//\)$' \| \
18183	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18184$as_echo X"$ac_file" |
18185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18186	    s//\1/
18187	    q
18188	  }
18189	  /^X\(\/\/\)[^/].*/{
18190	    s//\1/
18191	    q
18192	  }
18193	  /^X\(\/\/\)$/{
18194	    s//\1/
18195	    q
18196	  }
18197	  /^X\(\/\).*/{
18198	    s//\1/
18199	    q
18200	  }
18201	  s/.*/./; q'`
18202  as_dir="$ac_dir"; as_fn_mkdir_p
18203  ac_builddir=.
18204
18205case "$ac_dir" in
18206.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18207*)
18208  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18209  # A ".." for each directory in $ac_dir_suffix.
18210  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18211  case $ac_top_builddir_sub in
18212  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18213  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18214  esac ;;
18215esac
18216ac_abs_top_builddir=$ac_pwd
18217ac_abs_builddir=$ac_pwd$ac_dir_suffix
18218# for backward compatibility:
18219ac_top_builddir=$ac_top_build_prefix
18220
18221case $srcdir in
18222  .)  # We are building in place.
18223    ac_srcdir=.
18224    ac_top_srcdir=$ac_top_builddir_sub
18225    ac_abs_top_srcdir=$ac_pwd ;;
18226  [\\/]* | ?:[\\/]* )  # Absolute name.
18227    ac_srcdir=$srcdir$ac_dir_suffix;
18228    ac_top_srcdir=$srcdir
18229    ac_abs_top_srcdir=$srcdir ;;
18230  *) # Relative name.
18231    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18232    ac_top_srcdir=$ac_top_build_prefix$srcdir
18233    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18234esac
18235ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18236
18237
18238  case $ac_mode in
18239  :F)
18240  #
18241  # CONFIG_FILE
18242  #
18243
18244  case $INSTALL in
18245  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18246  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18247  esac
18248  ac_MKDIR_P=$MKDIR_P
18249  case $MKDIR_P in
18250  [\\/$]* | ?:[\\/]* ) ;;
18251  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18252  esac
18253_ACEOF
18254
18255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18256# If the template does not know about datarootdir, expand it.
18257# FIXME: This hack should be removed a few years after 2.60.
18258ac_datarootdir_hack=; ac_datarootdir_seen=
18259ac_sed_dataroot='
18260/datarootdir/ {
18261  p
18262  q
18263}
18264/@datadir@/p
18265/@docdir@/p
18266/@infodir@/p
18267/@localedir@/p
18268/@mandir@/p'
18269case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18270*datarootdir*) ac_datarootdir_seen=yes;;
18271*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18272  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18273$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18274_ACEOF
18275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18276  ac_datarootdir_hack='
18277  s&@datadir@&$datadir&g
18278  s&@docdir@&$docdir&g
18279  s&@infodir@&$infodir&g
18280  s&@localedir@&$localedir&g
18281  s&@mandir@&$mandir&g
18282  s&\\\${datarootdir}&$datarootdir&g' ;;
18283esac
18284_ACEOF
18285
18286# Neutralize VPATH when `$srcdir' = `.'.
18287# Shell code in configure.ac might set extrasub.
18288# FIXME: do we really want to maintain this feature?
18289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18290ac_sed_extra="$ac_vpsub
18291$extrasub
18292_ACEOF
18293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18294:t
18295/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18296s|@configure_input@|$ac_sed_conf_input|;t t
18297s&@top_builddir@&$ac_top_builddir_sub&;t t
18298s&@top_build_prefix@&$ac_top_build_prefix&;t t
18299s&@srcdir@&$ac_srcdir&;t t
18300s&@abs_srcdir@&$ac_abs_srcdir&;t t
18301s&@top_srcdir@&$ac_top_srcdir&;t t
18302s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18303s&@builddir@&$ac_builddir&;t t
18304s&@abs_builddir@&$ac_abs_builddir&;t t
18305s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18306s&@INSTALL@&$ac_INSTALL&;t t
18307s&@MKDIR_P@&$ac_MKDIR_P&;t t
18308$ac_datarootdir_hack
18309"
18310eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18311  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18312
18313test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18314  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18315  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18316      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18317  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18318which seems to be undefined.  Please make sure it is defined" >&5
18319$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18320which seems to be undefined.  Please make sure it is defined" >&2;}
18321
18322  rm -f "$ac_tmp/stdin"
18323  case $ac_file in
18324  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18325  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18326  esac \
18327  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18328 ;;
18329  :H)
18330  #
18331  # CONFIG_HEADER
18332  #
18333  if test x"$ac_file" != x-; then
18334    {
18335      $as_echo "/* $configure_input  */" \
18336      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18337    } >"$ac_tmp/config.h" \
18338      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18339    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18340      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18341$as_echo "$as_me: $ac_file is unchanged" >&6;}
18342    else
18343      rm -f "$ac_file"
18344      mv "$ac_tmp/config.h" "$ac_file" \
18345	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18346    fi
18347  else
18348    $as_echo "/* $configure_input  */" \
18349      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18350      || as_fn_error $? "could not create -" "$LINENO" 5
18351  fi
18352# Compute "$ac_file"'s index in $config_headers.
18353_am_arg="$ac_file"
18354_am_stamp_count=1
18355for _am_header in $config_headers :; do
18356  case $_am_header in
18357    $_am_arg | $_am_arg:* )
18358      break ;;
18359    * )
18360      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18361  esac
18362done
18363echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18364$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18365	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18366	 X"$_am_arg" : 'X\(//\)$' \| \
18367	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18368$as_echo X"$_am_arg" |
18369    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18370	    s//\1/
18371	    q
18372	  }
18373	  /^X\(\/\/\)[^/].*/{
18374	    s//\1/
18375	    q
18376	  }
18377	  /^X\(\/\/\)$/{
18378	    s//\1/
18379	    q
18380	  }
18381	  /^X\(\/\).*/{
18382	    s//\1/
18383	    q
18384	  }
18385	  s/.*/./; q'`/stamp-h$_am_stamp_count
18386 ;;
18387  :L)
18388  #
18389  # CONFIG_LINK
18390  #
18391
18392  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18393    :
18394  else
18395    # Prefer the file from the source tree if names are identical.
18396    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18397      ac_source=$srcdir/$ac_source
18398    fi
18399
18400    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18401$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18402
18403    if test ! -r "$ac_source"; then
18404      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18405    fi
18406    rm -f "$ac_file"
18407
18408    # Try a relative symlink, then a hard link, then a copy.
18409    case $ac_source in
18410    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18411	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18412    esac
18413    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18414      ln "$ac_source" "$ac_file" 2>/dev/null ||
18415      cp -p "$ac_source" "$ac_file" ||
18416      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18417  fi
18418 ;;
18419  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18420$as_echo "$as_me: executing $ac_file commands" >&6;}
18421 ;;
18422  esac
18423
18424
18425  case $ac_file$ac_mode in
18426    "default-1":C)
18427# Only add multilib support code if we just rebuilt the top-level
18428# Makefile.
18429case " $CONFIG_FILES " in
18430 *" Makefile "*)
18431   ac_file=Makefile . ${multi_basedir}/config-ml.in
18432   ;;
18433esac ;;
18434    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18435  # Older Autoconf quotes --file arguments for eval, but not when files
18436  # are listed without --file.  Let's play safe and only enable the eval
18437  # if we detect the quoting.
18438  case $CONFIG_FILES in
18439  *\'*) eval set x "$CONFIG_FILES" ;;
18440  *)   set x $CONFIG_FILES ;;
18441  esac
18442  shift
18443  for mf
18444  do
18445    # Strip MF so we end up with the name of the file.
18446    mf=`echo "$mf" | sed -e 's/:.*$//'`
18447    # Check whether this is an Automake generated Makefile or not.
18448    # We used to match only the files named 'Makefile.in', but
18449    # some people rename them; so instead we look at the file content.
18450    # Grep'ing the first line is not enough: some people post-process
18451    # each Makefile.in and add a new line on top of each file to say so.
18452    # Grep'ing the whole file is not good either: AIX grep has a line
18453    # limit of 2048, but all sed's we know have understand at least 4000.
18454    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18455      dirpart=`$as_dirname -- "$mf" ||
18456$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18457	 X"$mf" : 'X\(//\)[^/]' \| \
18458	 X"$mf" : 'X\(//\)$' \| \
18459	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18460$as_echo X"$mf" |
18461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18462	    s//\1/
18463	    q
18464	  }
18465	  /^X\(\/\/\)[^/].*/{
18466	    s//\1/
18467	    q
18468	  }
18469	  /^X\(\/\/\)$/{
18470	    s//\1/
18471	    q
18472	  }
18473	  /^X\(\/\).*/{
18474	    s//\1/
18475	    q
18476	  }
18477	  s/.*/./; q'`
18478    else
18479      continue
18480    fi
18481    # Extract the definition of DEPDIR, am__include, and am__quote
18482    # from the Makefile without running 'make'.
18483    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18484    test -z "$DEPDIR" && continue
18485    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18486    test -z "$am__include" && continue
18487    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18488    # Find all dependency output files, they are included files with
18489    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18490    # simplest approach to changing $(DEPDIR) to its actual value in the
18491    # expansion.
18492    for file in `sed -n "
18493      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18494	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18495      # Make sure the directory exists.
18496      test -f "$dirpart/$file" && continue
18497      fdir=`$as_dirname -- "$file" ||
18498$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499	 X"$file" : 'X\(//\)[^/]' \| \
18500	 X"$file" : 'X\(//\)$' \| \
18501	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18502$as_echo X"$file" |
18503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18504	    s//\1/
18505	    q
18506	  }
18507	  /^X\(\/\/\)[^/].*/{
18508	    s//\1/
18509	    q
18510	  }
18511	  /^X\(\/\/\)$/{
18512	    s//\1/
18513	    q
18514	  }
18515	  /^X\(\/\).*/{
18516	    s//\1/
18517	    q
18518	  }
18519	  s/.*/./; q'`
18520      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18521      # echo "creating $dirpart/$file"
18522      echo '# dummy' > "$dirpart/$file"
18523    done
18524  done
18525}
18526 ;;
18527    "libtool":C)
18528
18529    # See if we are running on zsh, and set the options which allow our
18530    # commands through without removal of \ escapes.
18531    if test -n "${ZSH_VERSION+set}" ; then
18532      setopt NO_GLOB_SUBST
18533    fi
18534
18535    cfgfile="${ofile}T"
18536    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18537    $RM "$cfgfile"
18538
18539    cat <<_LT_EOF >> "$cfgfile"
18540#! $SHELL
18541
18542# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18543# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18544# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18545# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18546#
18547#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18548#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18549#   Written by Gordon Matzigkeit, 1996
18550#
18551#   This file is part of GNU Libtool.
18552#
18553# GNU Libtool is free software; you can redistribute it and/or
18554# modify it under the terms of the GNU General Public License as
18555# published by the Free Software Foundation; either version 2 of
18556# the License, or (at your option) any later version.
18557#
18558# As a special exception to the GNU General Public License,
18559# if you distribute this file as part of a program or library that
18560# is built using GNU Libtool, you may include this file under the
18561# same distribution terms that you use for the rest of that program.
18562#
18563# GNU Libtool is distributed in the hope that it will be useful,
18564# but WITHOUT ANY WARRANTY; without even the implied warranty of
18565# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18566# GNU General Public License for more details.
18567#
18568# You should have received a copy of the GNU General Public License
18569# along with GNU Libtool; see the file COPYING.  If not, a copy
18570# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18571# obtained by writing to the Free Software Foundation, Inc.,
18572# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18573
18574
18575# The names of the tagged configurations supported by this script.
18576available_tags="CXX "
18577
18578# ### BEGIN LIBTOOL CONFIG
18579
18580# Which release of libtool.m4 was used?
18581macro_version=$macro_version
18582macro_revision=$macro_revision
18583
18584# Whether or not to build shared libraries.
18585build_libtool_libs=$enable_shared
18586
18587# Whether or not to build static libraries.
18588build_old_libs=$enable_static
18589
18590# What type of objects to build.
18591pic_mode=$pic_mode
18592
18593# Whether or not to optimize for fast installation.
18594fast_install=$enable_fast_install
18595
18596# Shell to use when invoking shell scripts.
18597SHELL=$lt_SHELL
18598
18599# An echo program that protects backslashes.
18600ECHO=$lt_ECHO
18601
18602# The host system.
18603host_alias=$host_alias
18604host=$host
18605host_os=$host_os
18606
18607# The build system.
18608build_alias=$build_alias
18609build=$build
18610build_os=$build_os
18611
18612# A sed program that does not truncate output.
18613SED=$lt_SED
18614
18615# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18616Xsed="\$SED -e 1s/^X//"
18617
18618# A grep program that handles long lines.
18619GREP=$lt_GREP
18620
18621# An ERE matcher.
18622EGREP=$lt_EGREP
18623
18624# A literal string matcher.
18625FGREP=$lt_FGREP
18626
18627# A BSD- or MS-compatible name lister.
18628NM=$lt_NM
18629
18630# Whether we need soft or hard links.
18631LN_S=$lt_LN_S
18632
18633# What is the maximum length of a command?
18634max_cmd_len=$max_cmd_len
18635
18636# Object file suffix (normally "o").
18637objext=$ac_objext
18638
18639# Executable file suffix (normally "").
18640exeext=$exeext
18641
18642# whether the shell understands "unset".
18643lt_unset=$lt_unset
18644
18645# turn spaces into newlines.
18646SP2NL=$lt_lt_SP2NL
18647
18648# turn newlines into spaces.
18649NL2SP=$lt_lt_NL2SP
18650
18651# An object symbol dumper.
18652OBJDUMP=$lt_OBJDUMP
18653
18654# Method to check whether dependent libraries are shared objects.
18655deplibs_check_method=$lt_deplibs_check_method
18656
18657# Command to use when deplibs_check_method == "file_magic".
18658file_magic_cmd=$lt_file_magic_cmd
18659
18660# The archiver.
18661AR=$lt_AR
18662AR_FLAGS=$lt_AR_FLAGS
18663
18664# A symbol stripping program.
18665STRIP=$lt_STRIP
18666
18667# Commands used to install an old-style archive.
18668RANLIB=$lt_RANLIB
18669old_postinstall_cmds=$lt_old_postinstall_cmds
18670old_postuninstall_cmds=$lt_old_postuninstall_cmds
18671
18672# Whether to use a lock for old archive extraction.
18673lock_old_archive_extraction=$lock_old_archive_extraction
18674
18675# A C compiler.
18676LTCC=$lt_CC
18677
18678# LTCC compiler flags.
18679LTCFLAGS=$lt_CFLAGS
18680
18681# Take the output of nm and produce a listing of raw symbols and C names.
18682global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18683
18684# Transform the output of nm in a proper C declaration.
18685global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18686
18687# Transform the output of nm in a C name address pair.
18688global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18689
18690# Transform the output of nm in a C name address pair when lib prefix is needed.
18691global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18692
18693# The name of the directory that contains temporary libtool files.
18694objdir=$objdir
18695
18696# Used to examine libraries when file_magic_cmd begins with "file".
18697MAGIC_CMD=$MAGIC_CMD
18698
18699# Must we lock files when doing compilation?
18700need_locks=$lt_need_locks
18701
18702# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18703DSYMUTIL=$lt_DSYMUTIL
18704
18705# Tool to change global to local symbols on Mac OS X.
18706NMEDIT=$lt_NMEDIT
18707
18708# Tool to manipulate fat objects and archives on Mac OS X.
18709LIPO=$lt_LIPO
18710
18711# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18712OTOOL=$lt_OTOOL
18713
18714# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18715OTOOL64=$lt_OTOOL64
18716
18717# Old archive suffix (normally "a").
18718libext=$libext
18719
18720# Shared library suffix (normally ".so").
18721shrext_cmds=$lt_shrext_cmds
18722
18723# The commands to extract the exported symbol list from a shared archive.
18724extract_expsyms_cmds=$lt_extract_expsyms_cmds
18725
18726# Variables whose values should be saved in libtool wrapper scripts and
18727# restored at link time.
18728variables_saved_for_relink=$lt_variables_saved_for_relink
18729
18730# Do we need the "lib" prefix for modules?
18731need_lib_prefix=$need_lib_prefix
18732
18733# Do we need a version for libraries?
18734need_version=$need_version
18735
18736# Library versioning type.
18737version_type=$version_type
18738
18739# Shared library runtime path variable.
18740runpath_var=$runpath_var
18741
18742# Shared library path variable.
18743shlibpath_var=$shlibpath_var
18744
18745# Is shlibpath searched before the hard-coded library search path?
18746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18747
18748# Format of library name prefix.
18749libname_spec=$lt_libname_spec
18750
18751# List of archive names.  First name is the real one, the rest are links.
18752# The last name is the one that the linker finds with -lNAME
18753library_names_spec=$lt_library_names_spec
18754
18755# The coded name of the library, if different from the real name.
18756soname_spec=$lt_soname_spec
18757
18758# Permission mode override for installation of shared libraries.
18759install_override_mode=$lt_install_override_mode
18760
18761# Command to use after installation of a shared archive.
18762postinstall_cmds=$lt_postinstall_cmds
18763
18764# Command to use after uninstallation of a shared archive.
18765postuninstall_cmds=$lt_postuninstall_cmds
18766
18767# Commands used to finish a libtool library installation in a directory.
18768finish_cmds=$lt_finish_cmds
18769
18770# As "finish_cmds", except a single script fragment to be evaled but
18771# not shown.
18772finish_eval=$lt_finish_eval
18773
18774# Whether we should hardcode library paths into libraries.
18775hardcode_into_libs=$hardcode_into_libs
18776
18777# Compile-time system search path for libraries.
18778sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18779
18780# Run-time system search path for libraries.
18781sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18782
18783# Whether dlopen is supported.
18784dlopen_support=$enable_dlopen
18785
18786# Whether dlopen of programs is supported.
18787dlopen_self=$enable_dlopen_self
18788
18789# Whether dlopen of statically linked programs is supported.
18790dlopen_self_static=$enable_dlopen_self_static
18791
18792# Commands to strip libraries.
18793old_striplib=$lt_old_striplib
18794striplib=$lt_striplib
18795
18796
18797# The linker used to build libraries.
18798LD=$lt_LD
18799
18800# How to create reloadable object files.
18801reload_flag=$lt_reload_flag
18802reload_cmds=$lt_reload_cmds
18803
18804# Commands used to build an old-style archive.
18805old_archive_cmds=$lt_old_archive_cmds
18806
18807# A language specific compiler.
18808CC=$lt_compiler
18809
18810# Is the compiler the GNU compiler?
18811with_gcc=$GCC
18812
18813# Compiler flag to turn off builtin functions.
18814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18815
18816# How to pass a linker flag through the compiler.
18817wl=$lt_lt_prog_compiler_wl
18818
18819# Additional compiler flags for building library objects.
18820pic_flag=$lt_lt_prog_compiler_pic
18821
18822# Compiler flag to prevent dynamic linking.
18823link_static_flag=$lt_lt_prog_compiler_static
18824
18825# Does compiler simultaneously support -c and -o options?
18826compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18827
18828# Whether or not to add -lc for building shared libraries.
18829build_libtool_need_lc=$archive_cmds_need_lc
18830
18831# Whether or not to disallow shared libs when runtime libs are static.
18832allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18833
18834# Compiler flag to allow reflexive dlopens.
18835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18836
18837# Compiler flag to generate shared objects directly from archives.
18838whole_archive_flag_spec=$lt_whole_archive_flag_spec
18839
18840# Whether the compiler copes with passing no objects directly.
18841compiler_needs_object=$lt_compiler_needs_object
18842
18843# Create an old-style archive from a shared archive.
18844old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18845
18846# Create a temporary old-style archive to link instead of a shared archive.
18847old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18848
18849# Commands used to build a shared archive.
18850archive_cmds=$lt_archive_cmds
18851archive_expsym_cmds=$lt_archive_expsym_cmds
18852
18853# Commands used to build a loadable module if different from building
18854# a shared archive.
18855module_cmds=$lt_module_cmds
18856module_expsym_cmds=$lt_module_expsym_cmds
18857
18858# Whether we are building with GNU ld or not.
18859with_gnu_ld=$lt_with_gnu_ld
18860
18861# Flag that allows shared libraries with undefined symbols to be built.
18862allow_undefined_flag=$lt_allow_undefined_flag
18863
18864# Flag that enforces no undefined symbols.
18865no_undefined_flag=$lt_no_undefined_flag
18866
18867# Flag to hardcode \$libdir into a binary during linking.
18868# This must work even if \$libdir does not exist
18869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18870
18871# If ld is used when linking, flag to hardcode \$libdir into a binary
18872# during linking.  This must work even if \$libdir does not exist.
18873hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18874
18875# Whether we need a single "-rpath" flag with a separated argument.
18876hardcode_libdir_separator=$lt_hardcode_libdir_separator
18877
18878# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18879# DIR into the resulting binary.
18880hardcode_direct=$hardcode_direct
18881
18882# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18883# DIR into the resulting binary and the resulting library dependency is
18884# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18885# library is relocated.
18886hardcode_direct_absolute=$hardcode_direct_absolute
18887
18888# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18889# into the resulting binary.
18890hardcode_minus_L=$hardcode_minus_L
18891
18892# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18893# into the resulting binary.
18894hardcode_shlibpath_var=$hardcode_shlibpath_var
18895
18896# Set to "yes" if building a shared library automatically hardcodes DIR
18897# into the library and all subsequent libraries and executables linked
18898# against it.
18899hardcode_automatic=$hardcode_automatic
18900
18901# Set to yes if linker adds runtime paths of dependent libraries
18902# to runtime path list.
18903inherit_rpath=$inherit_rpath
18904
18905# Whether libtool must link a program against all its dependency libraries.
18906link_all_deplibs=$link_all_deplibs
18907
18908# Fix the shell variable \$srcfile for the compiler.
18909fix_srcfile_path=$lt_fix_srcfile_path
18910
18911# Set to "yes" if exported symbols are required.
18912always_export_symbols=$always_export_symbols
18913
18914# The commands to list exported symbols.
18915export_symbols_cmds=$lt_export_symbols_cmds
18916
18917# Symbols that should not be listed in the preloaded symbols.
18918exclude_expsyms=$lt_exclude_expsyms
18919
18920# Symbols that must always be exported.
18921include_expsyms=$lt_include_expsyms
18922
18923# Commands necessary for linking programs (against libraries) with templates.
18924prelink_cmds=$lt_prelink_cmds
18925
18926# Specify filename containing input files.
18927file_list_spec=$lt_file_list_spec
18928
18929# How to hardcode a shared library path into an executable.
18930hardcode_action=$hardcode_action
18931
18932# The directories searched by this compiler when creating a shared library.
18933compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18934
18935# Dependencies to place before and after the objects being linked to
18936# create a shared library.
18937predep_objects=$lt_predep_objects
18938postdep_objects=$lt_postdep_objects
18939predeps=$lt_predeps
18940postdeps=$lt_postdeps
18941
18942# The library search path used internally by the compiler when linking
18943# a shared library.
18944compiler_lib_search_path=$lt_compiler_lib_search_path
18945
18946# ### END LIBTOOL CONFIG
18947
18948_LT_EOF
18949
18950  case $host_os in
18951  aix3*)
18952    cat <<\_LT_EOF >> "$cfgfile"
18953# AIX sometimes has problems with the GCC collect2 program.  For some
18954# reason, if we set the COLLECT_NAMES environment variable, the problems
18955# vanish in a puff of smoke.
18956if test "X${COLLECT_NAMES+set}" != Xset; then
18957  COLLECT_NAMES=
18958  export COLLECT_NAMES
18959fi
18960_LT_EOF
18961    ;;
18962  esac
18963
18964
18965ltmain="$ac_aux_dir/ltmain.sh"
18966
18967
18968  # We use sed instead of cat because bash on DJGPP gets confused if
18969  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18970  # text mode, it properly converts lines to CR/LF.  This bash problem
18971  # is reportedly fixed, but why not run on old versions too?
18972  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18973    || (rm -f "$cfgfile"; exit 1)
18974
18975  case $xsi_shell in
18976  yes)
18977    cat << \_LT_EOF >> "$cfgfile"
18978
18979# func_dirname file append nondir_replacement
18980# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18981# otherwise set result to NONDIR_REPLACEMENT.
18982func_dirname ()
18983{
18984  case ${1} in
18985    */*) func_dirname_result="${1%/*}${2}" ;;
18986    *  ) func_dirname_result="${3}" ;;
18987  esac
18988}
18989
18990# func_basename file
18991func_basename ()
18992{
18993  func_basename_result="${1##*/}"
18994}
18995
18996# func_dirname_and_basename file append nondir_replacement
18997# perform func_basename and func_dirname in a single function
18998# call:
18999#   dirname:  Compute the dirname of FILE.  If nonempty,
19000#             add APPEND to the result, otherwise set result
19001#             to NONDIR_REPLACEMENT.
19002#             value returned in "$func_dirname_result"
19003#   basename: Compute filename of FILE.
19004#             value retuned in "$func_basename_result"
19005# Implementation must be kept synchronized with func_dirname
19006# and func_basename. For efficiency, we do not delegate to
19007# those functions but instead duplicate the functionality here.
19008func_dirname_and_basename ()
19009{
19010  case ${1} in
19011    */*) func_dirname_result="${1%/*}${2}" ;;
19012    *  ) func_dirname_result="${3}" ;;
19013  esac
19014  func_basename_result="${1##*/}"
19015}
19016
19017# func_stripname prefix suffix name
19018# strip PREFIX and SUFFIX off of NAME.
19019# PREFIX and SUFFIX must not contain globbing or regex special
19020# characters, hashes, percent signs, but SUFFIX may contain a leading
19021# dot (in which case that matches only a dot).
19022func_stripname ()
19023{
19024  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19025  # positional parameters, so assign one to ordinary parameter first.
19026  func_stripname_result=${3}
19027  func_stripname_result=${func_stripname_result#"${1}"}
19028  func_stripname_result=${func_stripname_result%"${2}"}
19029}
19030
19031# func_opt_split
19032func_opt_split ()
19033{
19034  func_opt_split_opt=${1%%=*}
19035  func_opt_split_arg=${1#*=}
19036}
19037
19038# func_lo2o object
19039func_lo2o ()
19040{
19041  case ${1} in
19042    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19043    *)    func_lo2o_result=${1} ;;
19044  esac
19045}
19046
19047# func_xform libobj-or-source
19048func_xform ()
19049{
19050  func_xform_result=${1%.*}.lo
19051}
19052
19053# func_arith arithmetic-term...
19054func_arith ()
19055{
19056  func_arith_result=$(( $* ))
19057}
19058
19059# func_len string
19060# STRING may not start with a hyphen.
19061func_len ()
19062{
19063  func_len_result=${#1}
19064}
19065
19066_LT_EOF
19067    ;;
19068  *) # Bourne compatible functions.
19069    cat << \_LT_EOF >> "$cfgfile"
19070
19071# func_dirname file append nondir_replacement
19072# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19073# otherwise set result to NONDIR_REPLACEMENT.
19074func_dirname ()
19075{
19076  # Extract subdirectory from the argument.
19077  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19078  if test "X$func_dirname_result" = "X${1}"; then
19079    func_dirname_result="${3}"
19080  else
19081    func_dirname_result="$func_dirname_result${2}"
19082  fi
19083}
19084
19085# func_basename file
19086func_basename ()
19087{
19088  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19089}
19090
19091
19092# func_stripname prefix suffix name
19093# strip PREFIX and SUFFIX off of NAME.
19094# PREFIX and SUFFIX must not contain globbing or regex special
19095# characters, hashes, percent signs, but SUFFIX may contain a leading
19096# dot (in which case that matches only a dot).
19097# func_strip_suffix prefix name
19098func_stripname ()
19099{
19100  case ${2} in
19101    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19102    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19103  esac
19104}
19105
19106# sed scripts:
19107my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19108my_sed_long_arg='1s/^-[^=]*=//'
19109
19110# func_opt_split
19111func_opt_split ()
19112{
19113  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19114  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19115}
19116
19117# func_lo2o object
19118func_lo2o ()
19119{
19120  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19121}
19122
19123# func_xform libobj-or-source
19124func_xform ()
19125{
19126  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19127}
19128
19129# func_arith arithmetic-term...
19130func_arith ()
19131{
19132  func_arith_result=`expr "$@"`
19133}
19134
19135# func_len string
19136# STRING may not start with a hyphen.
19137func_len ()
19138{
19139  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19140}
19141
19142_LT_EOF
19143esac
19144
19145case $lt_shell_append in
19146  yes)
19147    cat << \_LT_EOF >> "$cfgfile"
19148
19149# func_append var value
19150# Append VALUE to the end of shell variable VAR.
19151func_append ()
19152{
19153  eval "$1+=\$2"
19154}
19155_LT_EOF
19156    ;;
19157  *)
19158    cat << \_LT_EOF >> "$cfgfile"
19159
19160# func_append var value
19161# Append VALUE to the end of shell variable VAR.
19162func_append ()
19163{
19164  eval "$1=\$$1\$2"
19165}
19166
19167_LT_EOF
19168    ;;
19169  esac
19170
19171
19172  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19173    || (rm -f "$cfgfile"; exit 1)
19174
19175  mv -f "$cfgfile" "$ofile" ||
19176    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19177  chmod +x "$ofile"
19178
19179
19180    cat <<_LT_EOF >> "$ofile"
19181
19182# ### BEGIN LIBTOOL TAG CONFIG: CXX
19183
19184# The linker used to build libraries.
19185LD=$lt_LD_CXX
19186
19187# How to create reloadable object files.
19188reload_flag=$lt_reload_flag_CXX
19189reload_cmds=$lt_reload_cmds_CXX
19190
19191# Commands used to build an old-style archive.
19192old_archive_cmds=$lt_old_archive_cmds_CXX
19193
19194# A language specific compiler.
19195CC=$lt_compiler_CXX
19196
19197# Is the compiler the GNU compiler?
19198with_gcc=$GCC_CXX
19199
19200# Compiler flag to turn off builtin functions.
19201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19202
19203# How to pass a linker flag through the compiler.
19204wl=$lt_lt_prog_compiler_wl_CXX
19205
19206# Additional compiler flags for building library objects.
19207pic_flag=$lt_lt_prog_compiler_pic_CXX
19208
19209# Compiler flag to prevent dynamic linking.
19210link_static_flag=$lt_lt_prog_compiler_static_CXX
19211
19212# Does compiler simultaneously support -c and -o options?
19213compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19214
19215# Whether or not to add -lc for building shared libraries.
19216build_libtool_need_lc=$archive_cmds_need_lc_CXX
19217
19218# Whether or not to disallow shared libs when runtime libs are static.
19219allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19220
19221# Compiler flag to allow reflexive dlopens.
19222export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19223
19224# Compiler flag to generate shared objects directly from archives.
19225whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19226
19227# Whether the compiler copes with passing no objects directly.
19228compiler_needs_object=$lt_compiler_needs_object_CXX
19229
19230# Create an old-style archive from a shared archive.
19231old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19232
19233# Create a temporary old-style archive to link instead of a shared archive.
19234old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19235
19236# Commands used to build a shared archive.
19237archive_cmds=$lt_archive_cmds_CXX
19238archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19239
19240# Commands used to build a loadable module if different from building
19241# a shared archive.
19242module_cmds=$lt_module_cmds_CXX
19243module_expsym_cmds=$lt_module_expsym_cmds_CXX
19244
19245# Whether we are building with GNU ld or not.
19246with_gnu_ld=$lt_with_gnu_ld_CXX
19247
19248# Flag that allows shared libraries with undefined symbols to be built.
19249allow_undefined_flag=$lt_allow_undefined_flag_CXX
19250
19251# Flag that enforces no undefined symbols.
19252no_undefined_flag=$lt_no_undefined_flag_CXX
19253
19254# Flag to hardcode \$libdir into a binary during linking.
19255# This must work even if \$libdir does not exist
19256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19257
19258# If ld is used when linking, flag to hardcode \$libdir into a binary
19259# during linking.  This must work even if \$libdir does not exist.
19260hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19261
19262# Whether we need a single "-rpath" flag with a separated argument.
19263hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19264
19265# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19266# DIR into the resulting binary.
19267hardcode_direct=$hardcode_direct_CXX
19268
19269# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19270# DIR into the resulting binary and the resulting library dependency is
19271# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19272# library is relocated.
19273hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19274
19275# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19276# into the resulting binary.
19277hardcode_minus_L=$hardcode_minus_L_CXX
19278
19279# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19280# into the resulting binary.
19281hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19282
19283# Set to "yes" if building a shared library automatically hardcodes DIR
19284# into the library and all subsequent libraries and executables linked
19285# against it.
19286hardcode_automatic=$hardcode_automatic_CXX
19287
19288# Set to yes if linker adds runtime paths of dependent libraries
19289# to runtime path list.
19290inherit_rpath=$inherit_rpath_CXX
19291
19292# Whether libtool must link a program against all its dependency libraries.
19293link_all_deplibs=$link_all_deplibs_CXX
19294
19295# Fix the shell variable \$srcfile for the compiler.
19296fix_srcfile_path=$lt_fix_srcfile_path_CXX
19297
19298# Set to "yes" if exported symbols are required.
19299always_export_symbols=$always_export_symbols_CXX
19300
19301# The commands to list exported symbols.
19302export_symbols_cmds=$lt_export_symbols_cmds_CXX
19303
19304# Symbols that should not be listed in the preloaded symbols.
19305exclude_expsyms=$lt_exclude_expsyms_CXX
19306
19307# Symbols that must always be exported.
19308include_expsyms=$lt_include_expsyms_CXX
19309
19310# Commands necessary for linking programs (against libraries) with templates.
19311prelink_cmds=$lt_prelink_cmds_CXX
19312
19313# Specify filename containing input files.
19314file_list_spec=$lt_file_list_spec_CXX
19315
19316# How to hardcode a shared library path into an executable.
19317hardcode_action=$hardcode_action_CXX
19318
19319# The directories searched by this compiler when creating a shared library.
19320compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19321
19322# Dependencies to place before and after the objects being linked to
19323# create a shared library.
19324predep_objects=$lt_predep_objects_CXX
19325postdep_objects=$lt_postdep_objects_CXX
19326predeps=$lt_predeps_CXX
19327postdeps=$lt_postdeps_CXX
19328
19329# The library search path used internally by the compiler when linking
19330# a shared library.
19331compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19332
19333# ### END LIBTOOL TAG CONFIG: CXX
19334_LT_EOF
19335
19336 ;;
19337    "include":C) test -d include || mkdir include ;;
19338    "src":C)
19339test -d src || mkdir src
19340test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19341 ;;
19342
19343  esac
19344done # for ac_tag
19345
19346
19347as_fn_exit 0
19348_ACEOF
19349ac_clean_files=$ac_clean_files_save
19350
19351test $ac_write_fail = 0 ||
19352  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19353
19354
19355# configure is writing to config.log, and then calls config.status.
19356# config.status does its own redirection, appending to config.log.
19357# Unfortunately, on DOS this fails, as config.log is still kept open
19358# by configure, so config.status won't be able to write to it; its
19359# output is simply discarded.  So we exec the FD to /dev/null,
19360# effectively closing config.log, so it can be properly (re)opened and
19361# appended to by config.status.  When coming back to configure, we
19362# need to make the FD available again.
19363if test "$no_create" != yes; then
19364  ac_cs_success=:
19365  ac_config_status_args=
19366  test "$silent" = yes &&
19367    ac_config_status_args="$ac_config_status_args --quiet"
19368  exec 5>/dev/null
19369  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19370  exec 5>>config.log
19371  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19372  # would make configure fail if this is the last instruction.
19373  $ac_cs_success || as_fn_exit 1
19374fi
19375if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19376  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19377$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19378fi
19379
19380