1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libffi 3.1.
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.1'
594PACKAGE_STRING='libffi 3.1'
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
638toolexeclibdir
639toolexecdir
640FFI_DEBUG_FALSE
641FFI_DEBUG_TRUE
642TARGETDIR
643TARGET
644FFI_EXEC_TRAMPOLINE_TABLE
645FFI_EXEC_TRAMPOLINE_TABLE_FALSE
646FFI_EXEC_TRAMPOLINE_TABLE_TRUE
647sys_symbol_underscore
648HAVE_LONG_DOUBLE_VARIANT
649HAVE_LONG_DOUBLE
650ALLOCA
651XTENSA_FALSE
652XTENSA_TRUE
653VAX_FALSE
654VAX_TRUE
655TILE_FALSE
656TILE_TRUE
657PA64_HPUX_FALSE
658PA64_HPUX_TRUE
659PA_HPUX_FALSE
660PA_HPUX_TRUE
661PA_LINUX_FALSE
662PA_LINUX_TRUE
663SH64_FALSE
664SH64_TRUE
665SH_FALSE
666SH_TRUE
667X86_64_FALSE
668X86_64_TRUE
669S390_FALSE
670S390_TRUE
671FRV_FALSE
672FRV_TRUE
673LIBFFI_CRIS_FALSE
674LIBFFI_CRIS_TRUE
675AVR32_FALSE
676AVR32_TRUE
677ARM_FALSE
678ARM_TRUE
679ARC_FALSE
680ARC_TRUE
681AARCH64_FALSE
682AARCH64_TRUE
683POWERPC_FREEBSD_FALSE
684POWERPC_FREEBSD_TRUE
685POWERPC_DARWIN_FALSE
686POWERPC_DARWIN_TRUE
687POWERPC_AIX_FALSE
688POWERPC_AIX_TRUE
689POWERPC_FALSE
690POWERPC_TRUE
691NIOS2_FALSE
692NIOS2_TRUE
693MOXIE_FALSE
694MOXIE_TRUE
695METAG_FALSE
696METAG_TRUE
697MICROBLAZE_FALSE
698MICROBLAZE_TRUE
699M88K_FALSE
700M88K_TRUE
701M68K_FALSE
702M68K_TRUE
703M32R_FALSE
704M32R_TRUE
705IA64_FALSE
706IA64_TRUE
707ALPHA_FALSE
708ALPHA_TRUE
709X86_DARWIN64_FALSE
710X86_DARWIN64_TRUE
711X86_DARWIN32_FALSE
712X86_DARWIN32_TRUE
713X86_DARWIN_FALSE
714X86_DARWIN_TRUE
715X86_WIN64_FALSE
716X86_WIN64_TRUE
717X86_WIN32_FALSE
718X86_WIN32_TRUE
719X86_FREEBSD_FALSE
720X86_FREEBSD_TRUE
721X86_FALSE
722X86_TRUE
723SPARC_FALSE
724SPARC_TRUE
725BFIN_FALSE
726BFIN_TRUE
727MIPS_FALSE
728MIPS_TRUE
729AM_LTLDFLAGS
730AM_RUNTESTFLAGS
731TESTSUBDIR_FALSE
732TESTSUBDIR_TRUE
733MAINT
734MAINTAINER_MODE_FALSE
735MAINTAINER_MODE_TRUE
736PRTDIAG
737CXXCPP
738CPP
739OTOOL64
740OTOOL
741LIPO
742NMEDIT
743DSYMUTIL
744MANIFEST_TOOL
745RANLIB
746ac_ct_AR
747AR
748DLLTOOL
749OBJDUMP
750LN_S
751NM
752ac_ct_DUMPBIN
753DUMPBIN
754LD
755FGREP
756EGREP
757GREP
758SED
759LIBTOOL
760am__fastdepCCAS_FALSE
761am__fastdepCCAS_TRUE
762CCASDEPMODE
763CCASFLAGS
764CCAS
765am__fastdepCXX_FALSE
766am__fastdepCXX_TRUE
767CXXDEPMODE
768ac_ct_CXX
769CXXFLAGS
770CXX
771am__fastdepCC_FALSE
772am__fastdepCC_TRUE
773CCDEPMODE
774am__nodep
775AMDEPBACKSLASH
776AMDEP_FALSE
777AMDEP_TRUE
778am__quote
779am__include
780DEPDIR
781OBJEXT
782EXEEXT
783ac_ct_CC
784CPPFLAGS
785LDFLAGS
786CFLAGS
787CC
788AM_BACKSLASH
789AM_DEFAULT_VERBOSITY
790AM_DEFAULT_V
791AM_V
792am__untar
793am__tar
794AMTAR
795am__leading_dot
796SET_MAKE
797AWK
798mkdir_p
799MKDIR_P
800INSTALL_STRIP_PROGRAM
801STRIP
802install_sh
803MAKEINFO
804AUTOHEADER
805AUTOMAKE
806AUTOCONF
807ACLOCAL
808VERSION
809PACKAGE
810CYGPATH_W
811am__isrc
812INSTALL_DATA
813INSTALL_SCRIPT
814INSTALL_PROGRAM
815ax_enable_builddir_sed
816target_os
817target_vendor
818target_cpu
819target
820host_os
821host_vendor
822host_cpu
823host
824build_os
825build_vendor
826build_cpu
827build
828target_alias
829host_alias
830build_alias
831LIBS
832ECHO_T
833ECHO_N
834ECHO_C
835DEFS
836mandir
837localedir
838libdir
839psdir
840pdfdir
841dvidir
842htmldir
843infodir
844docdir
845oldincludedir
846includedir
847localstatedir
848sharedstatedir
849sysconfdir
850datadir
851datarootdir
852libexecdir
853sbindir
854bindir
855program_transform_name
856prefix
857exec_prefix
858PACKAGE_URL
859PACKAGE_BUGREPORT
860PACKAGE_STRING
861PACKAGE_VERSION
862PACKAGE_TARNAME
863PACKAGE_NAME
864PATH_SEPARATOR
865SHELL'
866ac_subst_files=''
867ac_user_opts='
868enable_option_checking
869enable_builddir
870enable_silent_rules
871enable_dependency_tracking
872enable_shared
873enable_static
874with_pic
875enable_fast_install
876with_gnu_ld
877with_sysroot
878enable_libtool_lock
879enable_portable_binary
880with_gcc_arch
881enable_maintainer_mode
882enable_pax_emutramp
883enable_debug
884enable_structs
885enable_raw_api
886enable_purify_safety
887'
888      ac_precious_vars='build_alias
889host_alias
890target_alias
891CCAS
892CCASFLAGS
893CPP
894CPPFLAGS
895CXXCPP'
896
897
898# Initialize some variables set by options.
899ac_init_help=
900ac_init_version=false
901ac_unrecognized_opts=
902ac_unrecognized_sep=
903# The variables have the same names as the options, with
904# dashes changed to underlines.
905cache_file=/dev/null
906exec_prefix=NONE
907no_create=
908no_recursion=
909prefix=NONE
910program_prefix=NONE
911program_suffix=NONE
912program_transform_name=s,x,x,
913silent=
914site=
915srcdir=
916verbose=
917x_includes=NONE
918x_libraries=NONE
919
920# Installation directory options.
921# These are left unexpanded so users can "make install exec_prefix=/foo"
922# and all the variables that are supposed to be based on exec_prefix
923# by default will actually change.
924# Use braces instead of parens because sh, perl, etc. also accept them.
925# (The list follows the same order as the GNU Coding Standards.)
926bindir='${exec_prefix}/bin'
927sbindir='${exec_prefix}/sbin'
928libexecdir='${exec_prefix}/libexec'
929datarootdir='${prefix}/share'
930datadir='${datarootdir}'
931sysconfdir='${prefix}/etc'
932sharedstatedir='${prefix}/com'
933localstatedir='${prefix}/var'
934includedir='${prefix}/include'
935oldincludedir='/usr/include'
936docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937infodir='${datarootdir}/info'
938htmldir='${docdir}'
939dvidir='${docdir}'
940pdfdir='${docdir}'
941psdir='${docdir}'
942libdir='${exec_prefix}/lib'
943localedir='${datarootdir}/locale'
944mandir='${datarootdir}/man'
945
946ac_prev=
947ac_dashdash=
948for ac_option
949do
950  # If the previous option needs an argument, assign it.
951  if test -n "$ac_prev"; then
952    eval $ac_prev=\$ac_option
953    ac_prev=
954    continue
955  fi
956
957  case $ac_option in
958  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959  *=)   ac_optarg= ;;
960  *)    ac_optarg=yes ;;
961  esac
962
963  # Accept the important Cygnus configure options, so we can diagnose typos.
964
965  case $ac_dashdash$ac_option in
966  --)
967    ac_dashdash=yes ;;
968
969  -bindir | --bindir | --bindi | --bind | --bin | --bi)
970    ac_prev=bindir ;;
971  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972    bindir=$ac_optarg ;;
973
974  -build | --build | --buil | --bui | --bu)
975    ac_prev=build_alias ;;
976  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977    build_alias=$ac_optarg ;;
978
979  -cache-file | --cache-file | --cache-fil | --cache-fi \
980  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981    ac_prev=cache_file ;;
982  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984    cache_file=$ac_optarg ;;
985
986  --config-cache | -C)
987    cache_file=config.cache ;;
988
989  -datadir | --datadir | --datadi | --datad)
990    ac_prev=datadir ;;
991  -datadir=* | --datadir=* | --datadi=* | --datad=*)
992    datadir=$ac_optarg ;;
993
994  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995  | --dataroo | --dataro | --datar)
996    ac_prev=datarootdir ;;
997  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999    datarootdir=$ac_optarg ;;
1000
1001  -disable-* | --disable-*)
1002    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003    # Reject names that are not valid shell variable names.
1004    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005      as_fn_error $? "invalid feature name: $ac_useropt"
1006    ac_useropt_orig=$ac_useropt
1007    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008    case $ac_user_opts in
1009      *"
1010"enable_$ac_useropt"
1011"*) ;;
1012      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1013	 ac_unrecognized_sep=', ';;
1014    esac
1015    eval enable_$ac_useropt=no ;;
1016
1017  -docdir | --docdir | --docdi | --doc | --do)
1018    ac_prev=docdir ;;
1019  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020    docdir=$ac_optarg ;;
1021
1022  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023    ac_prev=dvidir ;;
1024  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025    dvidir=$ac_optarg ;;
1026
1027  -enable-* | --enable-*)
1028    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031      as_fn_error $? "invalid feature name: $ac_useropt"
1032    ac_useropt_orig=$ac_useropt
1033    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034    case $ac_user_opts in
1035      *"
1036"enable_$ac_useropt"
1037"*) ;;
1038      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039	 ac_unrecognized_sep=', ';;
1040    esac
1041    eval enable_$ac_useropt=\$ac_optarg ;;
1042
1043  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045  | --exec | --exe | --ex)
1046    ac_prev=exec_prefix ;;
1047  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049  | --exec=* | --exe=* | --ex=*)
1050    exec_prefix=$ac_optarg ;;
1051
1052  -gas | --gas | --ga | --g)
1053    # Obsolete; use --with-gas.
1054    with_gas=yes ;;
1055
1056  -help | --help | --hel | --he | -h)
1057    ac_init_help=long ;;
1058  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059    ac_init_help=recursive ;;
1060  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061    ac_init_help=short ;;
1062
1063  -host | --host | --hos | --ho)
1064    ac_prev=host_alias ;;
1065  -host=* | --host=* | --hos=* | --ho=*)
1066    host_alias=$ac_optarg ;;
1067
1068  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069    ac_prev=htmldir ;;
1070  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071  | --ht=*)
1072    htmldir=$ac_optarg ;;
1073
1074  -includedir | --includedir | --includedi | --included | --include \
1075  | --includ | --inclu | --incl | --inc)
1076    ac_prev=includedir ;;
1077  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078  | --includ=* | --inclu=* | --incl=* | --inc=*)
1079    includedir=$ac_optarg ;;
1080
1081  -infodir | --infodir | --infodi | --infod | --info | --inf)
1082    ac_prev=infodir ;;
1083  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084    infodir=$ac_optarg ;;
1085
1086  -libdir | --libdir | --libdi | --libd)
1087    ac_prev=libdir ;;
1088  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089    libdir=$ac_optarg ;;
1090
1091  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092  | --libexe | --libex | --libe)
1093    ac_prev=libexecdir ;;
1094  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095  | --libexe=* | --libex=* | --libe=*)
1096    libexecdir=$ac_optarg ;;
1097
1098  -localedir | --localedir | --localedi | --localed | --locale)
1099    ac_prev=localedir ;;
1100  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101    localedir=$ac_optarg ;;
1102
1103  -localstatedir | --localstatedir | --localstatedi | --localstated \
1104  | --localstate | --localstat | --localsta | --localst | --locals)
1105    ac_prev=localstatedir ;;
1106  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108    localstatedir=$ac_optarg ;;
1109
1110  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111    ac_prev=mandir ;;
1112  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113    mandir=$ac_optarg ;;
1114
1115  -nfp | --nfp | --nf)
1116    # Obsolete; use --without-fp.
1117    with_fp=no ;;
1118
1119  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120  | --no-cr | --no-c | -n)
1121    no_create=yes ;;
1122
1123  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125    no_recursion=yes ;;
1126
1127  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129  | --oldin | --oldi | --old | --ol | --o)
1130    ac_prev=oldincludedir ;;
1131  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134    oldincludedir=$ac_optarg ;;
1135
1136  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137    ac_prev=prefix ;;
1138  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139    prefix=$ac_optarg ;;
1140
1141  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142  | --program-pre | --program-pr | --program-p)
1143    ac_prev=program_prefix ;;
1144  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146    program_prefix=$ac_optarg ;;
1147
1148  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149  | --program-suf | --program-su | --program-s)
1150    ac_prev=program_suffix ;;
1151  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153    program_suffix=$ac_optarg ;;
1154
1155  -program-transform-name | --program-transform-name \
1156  | --program-transform-nam | --program-transform-na \
1157  | --program-transform-n | --program-transform- \
1158  | --program-transform | --program-transfor \
1159  | --program-transfo | --program-transf \
1160  | --program-trans | --program-tran \
1161  | --progr-tra | --program-tr | --program-t)
1162    ac_prev=program_transform_name ;;
1163  -program-transform-name=* | --program-transform-name=* \
1164  | --program-transform-nam=* | --program-transform-na=* \
1165  | --program-transform-n=* | --program-transform-=* \
1166  | --program-transform=* | --program-transfor=* \
1167  | --program-transfo=* | --program-transf=* \
1168  | --program-trans=* | --program-tran=* \
1169  | --progr-tra=* | --program-tr=* | --program-t=*)
1170    program_transform_name=$ac_optarg ;;
1171
1172  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173    ac_prev=pdfdir ;;
1174  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175    pdfdir=$ac_optarg ;;
1176
1177  -psdir | --psdir | --psdi | --psd | --ps)
1178    ac_prev=psdir ;;
1179  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180    psdir=$ac_optarg ;;
1181
1182  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183  | -silent | --silent | --silen | --sile | --sil)
1184    silent=yes ;;
1185
1186  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187    ac_prev=sbindir ;;
1188  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189  | --sbi=* | --sb=*)
1190    sbindir=$ac_optarg ;;
1191
1192  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194  | --sharedst | --shareds | --shared | --share | --shar \
1195  | --sha | --sh)
1196    ac_prev=sharedstatedir ;;
1197  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200  | --sha=* | --sh=*)
1201    sharedstatedir=$ac_optarg ;;
1202
1203  -site | --site | --sit)
1204    ac_prev=site ;;
1205  -site=* | --site=* | --sit=*)
1206    site=$ac_optarg ;;
1207
1208  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209    ac_prev=srcdir ;;
1210  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211    srcdir=$ac_optarg ;;
1212
1213  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214  | --syscon | --sysco | --sysc | --sys | --sy)
1215    ac_prev=sysconfdir ;;
1216  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218    sysconfdir=$ac_optarg ;;
1219
1220  -target | --target | --targe | --targ | --tar | --ta | --t)
1221    ac_prev=target_alias ;;
1222  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223    target_alias=$ac_optarg ;;
1224
1225  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226    verbose=yes ;;
1227
1228  -version | --version | --versio | --versi | --vers | -V)
1229    ac_init_version=: ;;
1230
1231  -with-* | --with-*)
1232    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233    # Reject names that are not valid shell variable names.
1234    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235      as_fn_error $? "invalid package name: $ac_useropt"
1236    ac_useropt_orig=$ac_useropt
1237    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238    case $ac_user_opts in
1239      *"
1240"with_$ac_useropt"
1241"*) ;;
1242      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243	 ac_unrecognized_sep=', ';;
1244    esac
1245    eval with_$ac_useropt=\$ac_optarg ;;
1246
1247  -without-* | --without-*)
1248    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249    # Reject names that are not valid shell variable names.
1250    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251      as_fn_error $? "invalid package name: $ac_useropt"
1252    ac_useropt_orig=$ac_useropt
1253    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254    case $ac_user_opts in
1255      *"
1256"with_$ac_useropt"
1257"*) ;;
1258      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259	 ac_unrecognized_sep=', ';;
1260    esac
1261    eval with_$ac_useropt=no ;;
1262
1263  --x)
1264    # Obsolete; use --with-x.
1265    with_x=yes ;;
1266
1267  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268  | --x-incl | --x-inc | --x-in | --x-i)
1269    ac_prev=x_includes ;;
1270  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272    x_includes=$ac_optarg ;;
1273
1274  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276    ac_prev=x_libraries ;;
1277  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279    x_libraries=$ac_optarg ;;
1280
1281  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1282Try \`$0 --help' for more information"
1283    ;;
1284
1285  *=*)
1286    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287    # Reject names that are not valid shell variable names.
1288    case $ac_envvar in #(
1289      '' | [0-9]* | *[!_$as_cr_alnum]* )
1290      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1291    esac
1292    eval $ac_envvar=\$ac_optarg
1293    export $ac_envvar ;;
1294
1295  *)
1296    # FIXME: should be removed in autoconf 3.0.
1297    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301    ;;
1302
1303  esac
1304done
1305
1306if test -n "$ac_prev"; then
1307  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308  as_fn_error $? "missing argument to $ac_option"
1309fi
1310
1311if test -n "$ac_unrecognized_opts"; then
1312  case $enable_option_checking in
1313    no) ;;
1314    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316  esac
1317fi
1318
1319# Check all directory arguments for consistency.
1320for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321		datadir sysconfdir sharedstatedir localstatedir includedir \
1322		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323		libdir localedir mandir
1324do
1325  eval ac_val=\$$ac_var
1326  # Remove trailing slashes.
1327  case $ac_val in
1328    */ )
1329      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330      eval $ac_var=\$ac_val;;
1331  esac
1332  # Be sure to have absolute directory names.
1333  case $ac_val in
1334    [\\/$]* | ?:[\\/]* )  continue;;
1335    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336  esac
1337  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338done
1339
1340# There might be people who depend on the old broken behavior: `$host'
1341# used to hold the argument of --host etc.
1342# FIXME: To remove some day.
1343build=$build_alias
1344host=$host_alias
1345target=$target_alias
1346
1347# FIXME: To remove some day.
1348if test "x$host_alias" != x; then
1349  if test "x$build_alias" = x; then
1350    cross_compiling=maybe
1351  elif test "x$build_alias" != "x$host_alias"; then
1352    cross_compiling=yes
1353  fi
1354fi
1355
1356ac_tool_prefix=
1357test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359test "$silent" = yes && exec 6>/dev/null
1360
1361
1362ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363ac_ls_di=`ls -di .` &&
1364ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365  as_fn_error $? "working directory cannot be determined"
1366test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367  as_fn_error $? "pwd does not report name of working directory"
1368
1369
1370# Find the source files, if location was not specified.
1371if test -z "$srcdir"; then
1372  ac_srcdir_defaulted=yes
1373  # Try the directory containing this script, then the parent directory.
1374  ac_confdir=`$as_dirname -- "$as_myself" ||
1375$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376	 X"$as_myself" : 'X\(//\)[^/]' \| \
1377	 X"$as_myself" : 'X\(//\)$' \| \
1378	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379$as_echo X"$as_myself" |
1380    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\/\)[^/].*/{
1385	    s//\1/
1386	    q
1387	  }
1388	  /^X\(\/\/\)$/{
1389	    s//\1/
1390	    q
1391	  }
1392	  /^X\(\/\).*/{
1393	    s//\1/
1394	    q
1395	  }
1396	  s/.*/./; q'`
1397  srcdir=$ac_confdir
1398  if test ! -r "$srcdir/$ac_unique_file"; then
1399    srcdir=..
1400  fi
1401else
1402  ac_srcdir_defaulted=no
1403fi
1404if test ! -r "$srcdir/$ac_unique_file"; then
1405  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407fi
1408ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409ac_abs_confdir=`(
1410	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411	pwd)`
1412# When building in place, set srcdir=.
1413if test "$ac_abs_confdir" = "$ac_pwd"; then
1414  srcdir=.
1415fi
1416# Remove unnecessary trailing slashes from srcdir.
1417# Double slashes in file names in object file debugging info
1418# mess up M-x gdb in Emacs.
1419case $srcdir in
1420*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421esac
1422for ac_var in $ac_precious_vars; do
1423  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424  eval ac_env_${ac_var}_value=\$${ac_var}
1425  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427done
1428
1429#
1430# Report the --help message.
1431#
1432if test "$ac_init_help" = "long"; then
1433  # Omit some internal or obsolete options to make the list less imposing.
1434  # This message is too long to be a string in the A/UX 3.1 sh.
1435  cat <<_ACEOF
1436\`configure' configures libffi 3.1 to adapt to many kinds of systems.
1437
1438Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441VAR=VALUE.  See below for descriptions of some of the useful variables.
1442
1443Defaults for the options are specified in brackets.
1444
1445Configuration:
1446  -h, --help              display this help and exit
1447      --help=short        display options specific to this package
1448      --help=recursive    display the short help of all the included packages
1449  -V, --version           display version information and exit
1450  -q, --quiet, --silent   do not print \`checking ...' messages
1451      --cache-file=FILE   cache test results in FILE [disabled]
1452  -C, --config-cache      alias for \`--cache-file=config.cache'
1453  -n, --no-create         do not create output files
1454      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1455
1456Installation directories:
1457  --prefix=PREFIX         install architecture-independent files in PREFIX
1458                          [$ac_default_prefix]
1459  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1460                          [PREFIX]
1461
1462By default, \`make install' will install all the files in
1463\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1464an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465for instance \`--prefix=\$HOME'.
1466
1467For better control, use the options below.
1468
1469Fine tuning of the installation directories:
1470  --bindir=DIR            user executables [EPREFIX/bin]
1471  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1472  --libexecdir=DIR        program executables [EPREFIX/libexec]
1473  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1474  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1475  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1476  --libdir=DIR            object code libraries [EPREFIX/lib]
1477  --includedir=DIR        C header files [PREFIX/include]
1478  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1479  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1480  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1481  --infodir=DIR           info documentation [DATAROOTDIR/info]
1482  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1483  --mandir=DIR            man documentation [DATAROOTDIR/man]
1484  --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1485  --htmldir=DIR           html documentation [DOCDIR]
1486  --dvidir=DIR            dvi documentation [DOCDIR]
1487  --pdfdir=DIR            pdf documentation [DOCDIR]
1488  --psdir=DIR             ps documentation [DOCDIR]
1489_ACEOF
1490
1491  cat <<\_ACEOF
1492
1493Program names:
1494  --program-prefix=PREFIX            prepend PREFIX to installed program names
1495  --program-suffix=SUFFIX            append SUFFIX to installed program names
1496  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1497
1498System types:
1499  --build=BUILD     configure for building on BUILD [guessed]
1500  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1501  --target=TARGET   configure for building compilers for TARGET [HOST]
1502_ACEOF
1503fi
1504
1505if test -n "$ac_init_help"; then
1506  case $ac_init_help in
1507     short | recursive ) echo "Configuration of libffi 3.1:";;
1508   esac
1509  cat <<\_ACEOF
1510
1511Optional Features:
1512  --disable-option-checking  ignore unrecognized --enable/--with options
1513  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1514  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1515  --disable-builddir      disable automatic build in subdir of sources
1516
1517  --enable-silent-rules   less verbose build output (undo: "make V=1")
1518  --disable-silent-rules  verbose build output (undo: "make V=0")
1519  --enable-dependency-tracking
1520                          do not reject slow dependency extractors
1521  --disable-dependency-tracking
1522                          speeds up one-time build
1523  --enable-shared[=PKGS]  build shared libraries [default=yes]
1524  --enable-static[=PKGS]  build static libraries [default=yes]
1525  --enable-fast-install[=PKGS]
1526                          optimize for fast installation [default=yes]
1527  --disable-libtool-lock  avoid locking (might break parallel builds)
1528  --enable-portable-binary
1529                          disable compiler optimizations that would produce
1530                          unportable binaries
1531  --enable-maintainer-mode
1532                          enable make rules and dependencies not useful (and
1533                          sometimes confusing) to the casual installer
1534  --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1535  --enable-debug          debugging mode
1536  --disable-structs       omit code for struct support
1537  --disable-raw-api       make the raw api unavailable
1538  --enable-purify-safety  purify-safe mode
1539
1540Optional Packages:
1541  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1542  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1543  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1544                          both]
1545  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546  --with-sysroot=DIR Search for dependent libraries within DIR
1547                        (or the compiler's sysroot if not specified).
1548  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1549                          instead of guessing
1550
1551Some influential environment variables:
1552  CC          C compiler command
1553  CFLAGS      C compiler flags
1554  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555              nonstandard directory <lib dir>
1556  LIBS        libraries to pass to the linker, e.g. -l<library>
1557  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558              you have headers in a nonstandard directory <include dir>
1559  CXX         C++ compiler command
1560  CXXFLAGS    C++ compiler flags
1561  CCAS        assembler compiler command (defaults to CC)
1562  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1563  CPP         C preprocessor
1564  CXXCPP      C++ preprocessor
1565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
1569Report bugs to <http://github.com/atgreen/libffi/issues>.
1570_ACEOF
1571ac_status=$?
1572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575  # If there are subdirs, report their specific --help.
1576  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577    test -d "$ac_dir" ||
1578      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579      continue
1580    ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586  # A ".." for each directory in $ac_dir_suffix.
1587  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588  case $ac_top_builddir_sub in
1589  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591  esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599  .)  # We are building in place.
1600    ac_srcdir=.
1601    ac_top_srcdir=$ac_top_builddir_sub
1602    ac_abs_top_srcdir=$ac_pwd ;;
1603  [\\/]* | ?:[\\/]* )  # Absolute name.
1604    ac_srcdir=$srcdir$ac_dir_suffix;
1605    ac_top_srcdir=$srcdir
1606    ac_abs_top_srcdir=$srcdir ;;
1607  *) # Relative name.
1608    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614    cd "$ac_dir" || { ac_status=$?; continue; }
1615    # Check for guested configure.
1616    if test -f "$ac_srcdir/configure.gnu"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619    elif test -f "$ac_srcdir/configure"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure" --help=recursive
1622    else
1623      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624    fi || ac_status=$?
1625    cd "$ac_pwd" || { ac_status=$?; break; }
1626  done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631  cat <<\_ACEOF
1632libffi configure 3.1
1633generated by GNU Autoconf 2.69
1634
1635Copyright (C) 2012 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639  exit
1640fi
1641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
1645
1646# ac_fn_c_try_compile LINENO
1647# --------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677	ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_compile
1683
1684# ac_fn_cxx_try_compile LINENO
1685# ----------------------------
1686# Try to compile conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_cxx_try_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  rm -f conftest.$ac_objext
1691  if { { ac_try="$ac_compile"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_compile") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && {
1707	 test -z "$ac_cxx_werror_flag" ||
1708	 test ! -s conftest.err
1709       } && test -s conftest.$ac_objext; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715	ac_retval=1
1716fi
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_cxx_try_compile
1721
1722# ac_fn_c_try_link LINENO
1723# -----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_link ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext conftest$ac_exeext
1729  if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_link") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745	 test -z "$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       } && test -s conftest$ac_exeext && {
1748	 test "$cross_compiling" = yes ||
1749	 test -x conftest$ac_exeext
1750       }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760  # interfere with the next link command; also delete a directory that is
1761  # left behind by Apple's compiler.  We do this before executing the actions.
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764  as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_link
1767
1768# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists and can be compiled using the include files in
1771# INCLUDES, setting the cache variable VAR accordingly.
1772ac_fn_c_check_header_compile ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if eval \${$3+:} false; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h.  */
1782$4
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786  eval "$3=yes"
1787else
1788  eval "$3=no"
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_header_compile
1798
1799# ac_fn_c_try_cpp LINENO
1800# ----------------------
1801# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_cpp ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  if { { ac_try="$ac_cpp conftest.$ac_ext"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } > conftest.i && {
1821	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822	 test ! -s conftest.err
1823       }; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829    ac_retval=1
1830fi
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832  as_fn_set_status $ac_retval
1833
1834} # ac_fn_c_try_cpp
1835
1836# ac_fn_c_try_run LINENO
1837# ----------------------
1838# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839# that executables *can* be run.
1840ac_fn_c_try_run ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  if { { ac_try="$ac_link"
1844case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850  (eval "$ac_link") 2>&5
1851  ac_status=$?
1852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854  { { case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_try") 2>&5
1861  ac_status=$?
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; }; }; then :
1864  ac_retval=0
1865else
1866  $as_echo "$as_me: program exited with status $ac_status" >&5
1867       $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870       ac_retval=$ac_status
1871fi
1872  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874  as_fn_set_status $ac_retval
1875
1876} # ac_fn_c_try_run
1877
1878# ac_fn_c_check_func LINENO FUNC VAR
1879# ----------------------------------
1880# Tests whether FUNC exists, setting the cache variable VAR accordingly
1881ac_fn_c_check_func ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887  $as_echo_n "(cached) " >&6
1888else
1889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1893#define $2 innocuous_$2
1894
1895/* System header to define __stub macros and hopefully few prototypes,
1896    which can conflict with char $2 (); below.
1897    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898    <limits.h> exists even on freestanding compilers.  */
1899
1900#ifdef __STDC__
1901# include <limits.h>
1902#else
1903# include <assert.h>
1904#endif
1905
1906#undef $2
1907
1908/* Override any GCC internal prototype to avoid an error.
1909   Use char because int might match the return type of a GCC
1910   builtin and then its argument prototype would still apply.  */
1911#ifdef __cplusplus
1912extern "C"
1913#endif
1914char $2 ();
1915/* The GNU C library defines this for functions which it implements
1916    to always fail with ENOSYS.  Some functions are actually named
1917    something starting with __ and the normal name is an alias.  */
1918#if defined __stub_$2 || defined __stub___$2
1919choke me
1920#endif
1921
1922int
1923main ()
1924{
1925return $2 ();
1926  ;
1927  return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_link "$LINENO"; then :
1931  eval "$3=yes"
1932else
1933  eval "$3=no"
1934fi
1935rm -f core conftest.err conftest.$ac_objext \
1936    conftest$ac_exeext conftest.$ac_ext
1937fi
1938eval ac_res=\$$3
1939	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943} # ac_fn_c_check_func
1944
1945# ac_fn_cxx_try_cpp LINENO
1946# ------------------------
1947# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948ac_fn_cxx_try_cpp ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  if { { ac_try="$ac_cpp conftest.$ac_ext"
1952case "(($ac_try" in
1953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954  *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959  ac_status=$?
1960  if test -s conftest.err; then
1961    grep -v '^ *+' conftest.err >conftest.er1
1962    cat conftest.er1 >&5
1963    mv -f conftest.er1 conftest.err
1964  fi
1965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966  test $ac_status = 0; } > conftest.i && {
1967	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968	 test ! -s conftest.err
1969       }; then :
1970  ac_retval=0
1971else
1972  $as_echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975    ac_retval=1
1976fi
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978  as_fn_set_status $ac_retval
1979
1980} # ac_fn_cxx_try_cpp
1981
1982# ac_fn_cxx_try_link LINENO
1983# -------------------------
1984# Try to link conftest.$ac_ext, and return whether this succeeded.
1985ac_fn_cxx_try_link ()
1986{
1987  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988  rm -f conftest.$ac_objext conftest$ac_exeext
1989  if { { ac_try="$ac_link"
1990case "(($ac_try" in
1991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992  *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
1996  (eval "$ac_link") 2>conftest.err
1997  ac_status=$?
1998  if test -s conftest.err; then
1999    grep -v '^ *+' conftest.err >conftest.er1
2000    cat conftest.er1 >&5
2001    mv -f conftest.er1 conftest.err
2002  fi
2003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004  test $ac_status = 0; } && {
2005	 test -z "$ac_cxx_werror_flag" ||
2006	 test ! -s conftest.err
2007       } && test -s conftest$ac_exeext && {
2008	 test "$cross_compiling" = yes ||
2009	 test -x conftest$ac_exeext
2010       }; then :
2011  ac_retval=0
2012else
2013  $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016	ac_retval=1
2017fi
2018  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020  # interfere with the next link command; also delete a directory that is
2021  # left behind by Apple's compiler.  We do this before executing the actions.
2022  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024  as_fn_set_status $ac_retval
2025
2026} # ac_fn_cxx_try_link
2027
2028# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029# --------------------------------------------
2030# Tries to find the compile-time value of EXPR in a program that includes
2031# INCLUDES, setting VAR accordingly. Returns whether the value could be
2032# computed
2033ac_fn_c_compute_int ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  if test "$cross_compiling" = yes; then
2037    # Depending upon the size, compute the lo and hi bounds.
2038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) >= 0)];
2045test_array [0] = 0;
2046return test_array [0];
2047
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053  ac_lo=0 ac_mid=0
2054  while :; do
2055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h.  */
2057$4
2058int
2059main ()
2060{
2061static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062test_array [0] = 0;
2063return test_array [0];
2064
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070  ac_hi=$ac_mid; break
2071else
2072  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073			if test $ac_lo -le $ac_mid; then
2074			  ac_lo= ac_hi=
2075			  break
2076			fi
2077			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080  done
2081else
2082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h.  */
2084$4
2085int
2086main ()
2087{
2088static int test_array [1 - 2 * !(($2) < 0)];
2089test_array [0] = 0;
2090return test_array [0];
2091
2092  ;
2093  return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2097  ac_hi=-1 ac_mid=-1
2098  while :; do
2099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101$4
2102int
2103main ()
2104{
2105static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106test_array [0] = 0;
2107return test_array [0];
2108
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114  ac_lo=$ac_mid; break
2115else
2116  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117			if test $ac_mid -le $ac_hi; then
2118			  ac_lo= ac_hi=
2119			  break
2120			fi
2121			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124  done
2125else
2126  ac_lo= ac_hi=
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131# Binary search between lo and hi bounds.
2132while test "x$ac_lo" != "x$ac_hi"; do
2133  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h.  */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141test_array [0] = 0;
2142return test_array [0];
2143
2144  ;
2145  return 0;
2146}
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149  ac_hi=$ac_mid
2150else
2151  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154done
2155case $ac_lo in #((
2156?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157'') ac_retval=1 ;;
2158esac
2159  else
2160    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162$4
2163static long int longval () { return $2; }
2164static unsigned long int ulongval () { return $2; }
2165#include <stdio.h>
2166#include <stdlib.h>
2167int
2168main ()
2169{
2170
2171  FILE *f = fopen ("conftest.val", "w");
2172  if (! f)
2173    return 1;
2174  if (($2) < 0)
2175    {
2176      long int i = longval ();
2177      if (i != ($2))
2178	return 1;
2179      fprintf (f, "%ld", i);
2180    }
2181  else
2182    {
2183      unsigned long int i = ulongval ();
2184      if (i != ($2))
2185	return 1;
2186      fprintf (f, "%lu", i);
2187    }
2188  /* Do not output a trailing newline, as this causes \r\n confusion
2189     on some platforms.  */
2190  return ferror (f) || fclose (f) != 0;
2191
2192  ;
2193  return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_run "$LINENO"; then :
2197  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198else
2199  ac_retval=1
2200fi
2201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202  conftest.$ac_objext conftest.beam conftest.$ac_ext
2203rm -f conftest.val
2204
2205  fi
2206  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207  as_fn_set_status $ac_retval
2208
2209} # ac_fn_c_compute_int
2210
2211# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2212# -------------------------------------------------------
2213# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2214# the include files in INCLUDES and setting the cache variable VAR
2215# accordingly.
2216ac_fn_c_check_header_mongrel ()
2217{
2218  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219  if eval \${$3+:} false; then :
2220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221$as_echo_n "checking for $2... " >&6; }
2222if eval \${$3+:} false; then :
2223  $as_echo_n "(cached) " >&6
2224fi
2225eval ac_res=\$$3
2226	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227$as_echo "$ac_res" >&6; }
2228else
2229  # Is the header compilable?
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2231$as_echo_n "checking $2 usability... " >&6; }
2232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235#include <$2>
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238  ac_header_compiler=yes
2239else
2240  ac_header_compiler=no
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2244$as_echo "$ac_header_compiler" >&6; }
2245
2246# Is the header present?
2247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2248$as_echo_n "checking $2 presence... " >&6; }
2249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251#include <$2>
2252_ACEOF
2253if ac_fn_c_try_cpp "$LINENO"; then :
2254  ac_header_preproc=yes
2255else
2256  ac_header_preproc=no
2257fi
2258rm -f conftest.err conftest.i conftest.$ac_ext
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2260$as_echo "$ac_header_preproc" >&6; }
2261
2262# So?  What about this header?
2263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2264  yes:no: )
2265    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2266$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2267    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269    ;;
2270  no:yes:* )
2271    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2272$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2274$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2275    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2276$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2277    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2278$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2279    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2280$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2281( $as_echo "## ------------------------------------------------------ ##
2282## Report this to http://github.com/atgreen/libffi/issues ##
2283## ------------------------------------------------------ ##"
2284     ) | sed "s/^/$as_me: WARNING:     /" >&2
2285    ;;
2286esac
2287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288$as_echo_n "checking for $2... " >&6; }
2289if eval \${$3+:} false; then :
2290  $as_echo_n "(cached) " >&6
2291else
2292  eval "$3=\$ac_header_compiler"
2293fi
2294eval ac_res=\$$3
2295	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296$as_echo "$ac_res" >&6; }
2297fi
2298  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299
2300} # ac_fn_c_check_header_mongrel
2301
2302# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2303# -------------------------------------------
2304# Tests whether TYPE exists after having included INCLUDES, setting cache
2305# variable VAR accordingly.
2306ac_fn_c_check_type ()
2307{
2308  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310$as_echo_n "checking for $2... " >&6; }
2311if eval \${$3+:} false; then :
2312  $as_echo_n "(cached) " >&6
2313else
2314  eval "$3=no"
2315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316/* end confdefs.h.  */
2317$4
2318int
2319main ()
2320{
2321if (sizeof ($2))
2322	 return 0;
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327if ac_fn_c_try_compile "$LINENO"; then :
2328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$4
2331int
2332main ()
2333{
2334if (sizeof (($2)))
2335	    return 0;
2336  ;
2337  return 0;
2338}
2339_ACEOF
2340if ac_fn_c_try_compile "$LINENO"; then :
2341
2342else
2343  eval "$3=yes"
2344fi
2345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346fi
2347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348fi
2349eval ac_res=\$$3
2350	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351$as_echo "$ac_res" >&6; }
2352  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354} # ac_fn_c_check_type
2355cat >config.log <<_ACEOF
2356This file contains any messages produced by compilers while
2357running configure, to aid debugging if configure makes a mistake.
2358
2359It was created by libffi $as_me 3.1, which was
2360generated by GNU Autoconf 2.69.  Invocation command line was
2361
2362  $ $0 $@
2363
2364_ACEOF
2365exec 5>>config.log
2366{
2367cat <<_ASUNAME
2368## --------- ##
2369## Platform. ##
2370## --------- ##
2371
2372hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377
2378/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2380
2381/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2382/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2383/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2385/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2386/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2387/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2388
2389_ASUNAME
2390
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396    $as_echo "PATH: $as_dir"
2397  done
2398IFS=$as_save_IFS
2399
2400} >&5
2401
2402cat >&5 <<_ACEOF
2403
2404
2405## ----------- ##
2406## Core tests. ##
2407## ----------- ##
2408
2409_ACEOF
2410
2411
2412# Keep a trace of the command line.
2413# Strip out --no-create and --no-recursion so they do not pile up.
2414# Strip out --silent because we don't want to record it for future runs.
2415# Also quote any args containing shell meta-characters.
2416# Make two passes to allow for proper duplicate-argument suppression.
2417ac_configure_args=
2418ac_configure_args0=
2419ac_configure_args1=
2420ac_must_keep_next=false
2421for ac_pass in 1 2
2422do
2423  for ac_arg
2424  do
2425    case $ac_arg in
2426    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428    | -silent | --silent | --silen | --sile | --sil)
2429      continue ;;
2430    *\'*)
2431      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432    esac
2433    case $ac_pass in
2434    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435    2)
2436      as_fn_append ac_configure_args1 " '$ac_arg'"
2437      if test $ac_must_keep_next = true; then
2438	ac_must_keep_next=false # Got value, back to normal.
2439      else
2440	case $ac_arg in
2441	  *=* | --config-cache | -C | -disable-* | --disable-* \
2442	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444	  | -with-* | --with-* | -without-* | --without-* | --x)
2445	    case "$ac_configure_args0 " in
2446	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447	    esac
2448	    ;;
2449	  -* ) ac_must_keep_next=true ;;
2450	esac
2451      fi
2452      as_fn_append ac_configure_args " '$ac_arg'"
2453      ;;
2454    esac
2455  done
2456done
2457{ ac_configure_args0=; unset ac_configure_args0;}
2458{ ac_configure_args1=; unset ac_configure_args1;}
2459
2460# When interrupted or exit'd, cleanup temporary files, and complete
2461# config.log.  We remove comments because anyway the quotes in there
2462# would cause problems or look ugly.
2463# WARNING: Use '\'' to represent an apostrophe within the trap.
2464# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465trap 'exit_status=$?
2466  # Save into config.log some information that might help in debugging.
2467  {
2468    echo
2469
2470    $as_echo "## ---------------- ##
2471## Cache variables. ##
2472## ---------------- ##"
2473    echo
2474    # The following way of writing the cache mishandles newlines in values,
2475(
2476  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477    eval ac_val=\$$ac_var
2478    case $ac_val in #(
2479    *${as_nl}*)
2480      case $ac_var in #(
2481      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483      esac
2484      case $ac_var in #(
2485      _ | IFS | as_nl) ;; #(
2486      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487      *) { eval $ac_var=; unset $ac_var;} ;;
2488      esac ;;
2489    esac
2490  done
2491  (set) 2>&1 |
2492    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493    *${as_nl}ac_space=\ *)
2494      sed -n \
2495	"s/'\''/'\''\\\\'\'''\''/g;
2496	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497      ;; #(
2498    *)
2499      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500      ;;
2501    esac |
2502    sort
2503)
2504    echo
2505
2506    $as_echo "## ----------------- ##
2507## Output variables. ##
2508## ----------------- ##"
2509    echo
2510    for ac_var in $ac_subst_vars
2511    do
2512      eval ac_val=\$$ac_var
2513      case $ac_val in
2514      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515      esac
2516      $as_echo "$ac_var='\''$ac_val'\''"
2517    done | sort
2518    echo
2519
2520    if test -n "$ac_subst_files"; then
2521      $as_echo "## ------------------- ##
2522## File substitutions. ##
2523## ------------------- ##"
2524      echo
2525      for ac_var in $ac_subst_files
2526      do
2527	eval ac_val=\$$ac_var
2528	case $ac_val in
2529	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530	esac
2531	$as_echo "$ac_var='\''$ac_val'\''"
2532      done | sort
2533      echo
2534    fi
2535
2536    if test -s confdefs.h; then
2537      $as_echo "## ----------- ##
2538## confdefs.h. ##
2539## ----------- ##"
2540      echo
2541      cat confdefs.h
2542      echo
2543    fi
2544    test "$ac_signal" != 0 &&
2545      $as_echo "$as_me: caught signal $ac_signal"
2546    $as_echo "$as_me: exit $exit_status"
2547  } >&5
2548  rm -f core *.core core.conftest.* &&
2549    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2550    exit $exit_status
2551' 0
2552for ac_signal in 1 2 13 15; do
2553  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2554done
2555ac_signal=0
2556
2557# confdefs.h avoids OS command line length limits that DEFS can exceed.
2558rm -f -r conftest* confdefs.h
2559
2560$as_echo "/* confdefs.h */" > confdefs.h
2561
2562# Predefined preprocessor variables.
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_NAME "$PACKAGE_NAME"
2566_ACEOF
2567
2568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570_ACEOF
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_VERSION "$PACKAGE_VERSION"
2574_ACEOF
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_STRING "$PACKAGE_STRING"
2578_ACEOF
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_URL "$PACKAGE_URL"
2586_ACEOF
2587
2588
2589# Let the site file select an alternate cache file if it wants to.
2590# Prefer an explicitly selected file to automatically selected ones.
2591ac_site_file1=NONE
2592ac_site_file2=NONE
2593if test -n "$CONFIG_SITE"; then
2594  # We do not want a PATH search for config.site.
2595  case $CONFIG_SITE in #((
2596    -*)  ac_site_file1=./$CONFIG_SITE;;
2597    */*) ac_site_file1=$CONFIG_SITE;;
2598    *)   ac_site_file1=./$CONFIG_SITE;;
2599  esac
2600elif test "x$prefix" != xNONE; then
2601  ac_site_file1=$prefix/share/config.site
2602  ac_site_file2=$prefix/etc/config.site
2603else
2604  ac_site_file1=$ac_default_prefix/share/config.site
2605  ac_site_file2=$ac_default_prefix/etc/config.site
2606fi
2607for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608do
2609  test "x$ac_site_file" = xNONE && continue
2610  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2611    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2612$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2613    sed 's/^/| /' "$ac_site_file" >&5
2614    . "$ac_site_file" \
2615      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617as_fn_error $? "failed to load site script $ac_site_file
2618See \`config.log' for more details" "$LINENO" 5; }
2619  fi
2620done
2621
2622if test -r "$cache_file"; then
2623  # Some versions of bash will fail to source /dev/null (special files
2624  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2625  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627$as_echo "$as_me: loading cache $cache_file" >&6;}
2628    case $cache_file in
2629      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630      *)                      . "./$cache_file";;
2631    esac
2632  fi
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635$as_echo "$as_me: creating cache $cache_file" >&6;}
2636  >$cache_file
2637fi
2638
2639# Check that the precious variables saved in the cache have kept the same
2640# value.
2641ac_cache_corrupted=false
2642for ac_var in $ac_precious_vars; do
2643  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2644  eval ac_new_set=\$ac_env_${ac_var}_set
2645  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2646  eval ac_new_val=\$ac_env_${ac_var}_value
2647  case $ac_old_set,$ac_new_set in
2648    set,)
2649      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2650$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2651      ac_cache_corrupted=: ;;
2652    ,set)
2653      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2654$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2655      ac_cache_corrupted=: ;;
2656    ,);;
2657    *)
2658      if test "x$ac_old_val" != "x$ac_new_val"; then
2659	# differences in whitespace do not lead to failure.
2660	ac_old_val_w=`echo x $ac_old_val`
2661	ac_new_val_w=`echo x $ac_new_val`
2662	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2663	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2664$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2665	  ac_cache_corrupted=:
2666	else
2667	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2668$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2669	  eval $ac_var=\$ac_old_val
2670	fi
2671	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2672$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2673	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2674$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2675      fi;;
2676  esac
2677  # Pass precious variables to config.status.
2678  if test "$ac_new_set" = set; then
2679    case $ac_new_val in
2680    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2681    *) ac_arg=$ac_var=$ac_new_val ;;
2682    esac
2683    case " $ac_configure_args " in
2684      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2685      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2686    esac
2687  fi
2688done
2689if $ac_cache_corrupted; then
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2693$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2694  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2695fi
2696## -------------------- ##
2697## Main body of script. ##
2698## -------------------- ##
2699
2700ac_ext=c
2701ac_cpp='$CPP $CPPFLAGS'
2702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705
2706
2707ac_config_headers="$ac_config_headers fficonfig.h"
2708
2709
2710ac_aux_dir=
2711for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2712  if test -f "$ac_dir/install-sh"; then
2713    ac_aux_dir=$ac_dir
2714    ac_install_sh="$ac_aux_dir/install-sh -c"
2715    break
2716  elif test -f "$ac_dir/install.sh"; then
2717    ac_aux_dir=$ac_dir
2718    ac_install_sh="$ac_aux_dir/install.sh -c"
2719    break
2720  elif test -f "$ac_dir/shtool"; then
2721    ac_aux_dir=$ac_dir
2722    ac_install_sh="$ac_aux_dir/shtool install -c"
2723    break
2724  fi
2725done
2726if test -z "$ac_aux_dir"; then
2727  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2728fi
2729
2730# These three variables are undocumented and unsupported,
2731# and are intended to be withdrawn in a future Autoconf release.
2732# They can cause serious problems if a builder's source tree is in a directory
2733# whose full name contains unusual characters.
2734ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2735ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2736ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2737
2738
2739# Make sure we can run config.sub.
2740$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2742
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744$as_echo_n "checking build system type... " >&6; }
2745if ${ac_cv_build+:} false; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  ac_build_alias=$build_alias
2749test "x$ac_build_alias" = x &&
2750  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751test "x$ac_build_alias" = x &&
2752  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2755
2756fi
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758$as_echo "$ac_cv_build" >&6; }
2759case $ac_cv_build in
2760*-*-*) ;;
2761*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762esac
2763build=$ac_cv_build
2764ac_save_IFS=$IFS; IFS='-'
2765set x $ac_cv_build
2766shift
2767build_cpu=$1
2768build_vendor=$2
2769shift; shift
2770# Remember, the first character of IFS is used to create $*,
2771# except with old shells:
2772build_os=$*
2773IFS=$ac_save_IFS
2774case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2775
2776
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778$as_echo_n "checking host system type... " >&6; }
2779if ${ac_cv_host+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  if test "x$host_alias" = x; then
2783  ac_cv_host=$ac_cv_build
2784else
2785  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787fi
2788
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791$as_echo "$ac_cv_host" >&6; }
2792case $ac_cv_host in
2793*-*-*) ;;
2794*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795esac
2796host=$ac_cv_host
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_host
2799shift
2800host_cpu=$1
2801host_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805host_os=$*
2806IFS=$ac_save_IFS
2807case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2808
2809
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811$as_echo_n "checking target system type... " >&6; }
2812if ${ac_cv_target+:} false; then :
2813  $as_echo_n "(cached) " >&6
2814else
2815  if test "x$target_alias" = x; then
2816  ac_cv_target=$ac_cv_host
2817else
2818  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2820fi
2821
2822fi
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824$as_echo "$ac_cv_target" >&6; }
2825case $ac_cv_target in
2826*-*-*) ;;
2827*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2828esac
2829target=$ac_cv_target
2830ac_save_IFS=$IFS; IFS='-'
2831set x $ac_cv_target
2832shift
2833target_cpu=$1
2834target_vendor=$2
2835shift; shift
2836# Remember, the first character of IFS is used to create $*,
2837# except with old shells:
2838target_os=$*
2839IFS=$ac_save_IFS
2840case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2841
2842
2843# The aliases save the names the user supplied, while $host etc.
2844# will get canonicalized.
2845test -n "$target_alias" &&
2846  test "$program_prefix$program_suffix$program_transform_name" = \
2847    NONENONEs,x,x, &&
2848  program_prefix=${target_alias}-
2849
2850target_alias=${target_alias-$host_alias}
2851
2852case "${host}" in
2853  frv*-elf)
2854    LDFLAGS=`echo $LDFLAGS | sed "s/\-B^ *libgloss\/frv\///"`\ -B`pwd`/../libgloss/frv/
2855    ;;
2856esac
2857
2858
2859   # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2860   if test "${ac_configure_args+set}" != "set" ; then
2861      ac_configure_args=
2862      for ac_arg in ${1+"$@"}; do
2863         ac_configure_args="$ac_configure_args '$ac_arg'"
2864      done
2865   fi
2866
2867# expand $ac_aux_dir to an absolute path
2868am_aux_dir=`cd $ac_aux_dir && pwd`
2869
2870
2871ax_enable_builddir="."
2872# Check whether --enable-builddir was given.
2873if test "${enable_builddir+set}" = set; then :
2874  enableval=$enable_builddir; ax_enable_builddir="$enableval"
2875else
2876  ax_enable_builddir="auto"
2877fi
2878
2879if test ".$ac_srcdir_defaulted" != ".no" ; then
2880if test ".$srcdir" = ".." ; then
2881  if test -f config.status ; then
2882    { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2883$as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2884  else
2885    test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2886    test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2887    test ".$TARGET" = "." && TARGET="$target"
2888    test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2889    if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2890      as_dir=$ax_enable_builddir; as_fn_mkdir_p
2891      echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2892      cd $ax_enable_builddir
2893      if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2894        rm conftest.tmp
2895        { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2896$as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2897      else
2898        as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2899      fi
2900      srcdir=`echo "$ax_enable_builddir" |
2901              sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2902      # going to restart from subdirectory location
2903      test -f $srcdir/config.log   && mv $srcdir/config.log   .
2904      test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2905      test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2906      test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2908$as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2909      case "$0" in # restart
2910       /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2911       *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2912      esac ; exit $?
2913    fi
2914  fi
2915fi fi
2916test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2917# Extract the first word of "gsed sed", so it can be a program name with args.
2918set dummy gsed sed; ac_word=$2
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920$as_echo_n "checking for $ac_word... " >&6; }
2921if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  case $ax_enable_builddir_sed in
2925  [\\/]* | ?:[\\/]*)
2926  ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2927  ;;
2928  *)
2929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  test -z "$as_dir" && as_dir=.
2934    for ac_exec_ext in '' $ac_executable_extensions; do
2935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936    ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938    break 2
2939  fi
2940done
2941  done
2942IFS=$as_save_IFS
2943
2944  test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2945  ;;
2946esac
2947fi
2948ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2949if test -n "$ax_enable_builddir_sed"; then
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2951$as_echo "$ax_enable_builddir_sed" >&6; }
2952else
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954$as_echo "no" >&6; }
2955fi
2956
2957
2958ax_enable_builddir_auxdir="$am_aux_dir"
2959ac_config_commands="$ac_config_commands buildir"
2960
2961
2962am__api_version='1.14'
2963
2964# Find a good install program.  We prefer a C program (faster),
2965# so one script is as good as another.  But avoid the broken or
2966# incompatible versions:
2967# SysV /etc/install, /usr/sbin/install
2968# SunOS /usr/etc/install
2969# IRIX /sbin/install
2970# AIX /bin/install
2971# AmigaOS /C/install, which installs bootblocks on floppy discs
2972# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2973# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2974# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2975# OS/2's system install, which has a completely different semantic
2976# ./install, which can be erroneously created by make from ./install.sh.
2977# Reject install programs that cannot install multiple files.
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2979$as_echo_n "checking for a BSD-compatible install... " >&6; }
2980if test -z "$INSTALL"; then
2981if ${ac_cv_path_install+:} false; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989    # Account for people who put trailing slashes in PATH elements.
2990case $as_dir/ in #((
2991  ./ | .// | /[cC]/* | \
2992  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2993  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2994  /usr/ucb/* ) ;;
2995  *)
2996    # OSF1 and SCO ODT 3.0 have their own names for install.
2997    # Don't use installbsd from OSF since it installs stuff as root
2998    # by default.
2999    for ac_prog in ginstall scoinst install; do
3000      for ac_exec_ext in '' $ac_executable_extensions; do
3001	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3002	  if test $ac_prog = install &&
3003	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3004	    # AIX install.  It has an incompatible calling convention.
3005	    :
3006	  elif test $ac_prog = install &&
3007	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3008	    # program-specific install script used by HP pwplus--don't use.
3009	    :
3010	  else
3011	    rm -rf conftest.one conftest.two conftest.dir
3012	    echo one > conftest.one
3013	    echo two > conftest.two
3014	    mkdir conftest.dir
3015	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3016	      test -s conftest.one && test -s conftest.two &&
3017	      test -s conftest.dir/conftest.one &&
3018	      test -s conftest.dir/conftest.two
3019	    then
3020	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3021	      break 3
3022	    fi
3023	  fi
3024	fi
3025      done
3026    done
3027    ;;
3028esac
3029
3030  done
3031IFS=$as_save_IFS
3032
3033rm -rf conftest.one conftest.two conftest.dir
3034
3035fi
3036  if test "${ac_cv_path_install+set}" = set; then
3037    INSTALL=$ac_cv_path_install
3038  else
3039    # As a last resort, use the slow shell script.  Don't cache a
3040    # value for INSTALL within a source directory, because that will
3041    # break other packages using the cache if that directory is
3042    # removed, or if the value is a relative name.
3043    INSTALL=$ac_install_sh
3044  fi
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3047$as_echo "$INSTALL" >&6; }
3048
3049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3050# It thinks the first close brace ends the variable substitution.
3051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3052
3053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3054
3055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3056
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3058$as_echo_n "checking whether build environment is sane... " >&6; }
3059# Reject unsafe characters in $srcdir or the absolute working directory
3060# name.  Accept space and tab only in the latter.
3061am_lf='
3062'
3063case `pwd` in
3064  *[\\\"\#\$\&\'\`$am_lf]*)
3065    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3066esac
3067case $srcdir in
3068  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3069    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3070esac
3071
3072# Do 'set' in a subshell so we don't clobber the current shell's
3073# arguments.  Must try -L first in case configure is actually a
3074# symlink; some systems play weird games with the mod time of symlinks
3075# (eg FreeBSD returns the mod time of the symlink's containing
3076# directory).
3077if (
3078   am_has_slept=no
3079   for am_try in 1 2; do
3080     echo "timestamp, slept: $am_has_slept" > conftest.file
3081     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3082     if test "$*" = "X"; then
3083	# -L didn't work.
3084	set X `ls -t "$srcdir/configure" conftest.file`
3085     fi
3086     if test "$*" != "X $srcdir/configure conftest.file" \
3087	&& test "$*" != "X conftest.file $srcdir/configure"; then
3088
3089	# If neither matched, then we have a broken ls.  This can happen
3090	# if, for instance, CONFIG_SHELL is bash and it inherits a
3091	# broken ls alias from the environment.  This has actually
3092	# happened.  Such a system could not be considered "sane".
3093	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3094  alias in your environment" "$LINENO" 5
3095     fi
3096     if test "$2" = conftest.file || test $am_try -eq 2; then
3097       break
3098     fi
3099     # Just in case.
3100     sleep 1
3101     am_has_slept=yes
3102   done
3103   test "$2" = conftest.file
3104   )
3105then
3106   # Ok.
3107   :
3108else
3109   as_fn_error $? "newly created file is older than distributed files!
3110Check your system clock" "$LINENO" 5
3111fi
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113$as_echo "yes" >&6; }
3114# If we didn't sleep, we still need to ensure time stamps of config.status and
3115# generated files are strictly newer.
3116am_sleep_pid=
3117if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3118  ( sleep 1 ) &
3119  am_sleep_pid=$!
3120fi
3121
3122rm -f conftest.file
3123
3124test "$program_prefix" != NONE &&
3125  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3126# Use a double $ so make ignores it.
3127test "$program_suffix" != NONE &&
3128  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3129# Double any \ or $.
3130# By default was `s,x,x', remove it if useless.
3131ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3132program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3133
3134if test x"${MISSING+set}" != xset; then
3135  case $am_aux_dir in
3136  *\ * | *\	*)
3137    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3138  *)
3139    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3140  esac
3141fi
3142# Use eval to expand $SHELL
3143if eval "$MISSING --is-lightweight"; then
3144  am_missing_run="$MISSING "
3145else
3146  am_missing_run=
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3148$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3149fi
3150
3151if test x"${install_sh}" != xset; then
3152  case $am_aux_dir in
3153  *\ * | *\	*)
3154    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3155  *)
3156    install_sh="\${SHELL} $am_aux_dir/install-sh"
3157  esac
3158fi
3159
3160# Installed binaries are usually stripped using 'strip' when the user
3161# run "make install-strip".  However 'strip' might not be the right
3162# tool to use in cross-compilation environments, therefore Automake
3163# will honor the 'STRIP' environment variable to overrule this program.
3164if test "$cross_compiling" != no; then
3165  if test -n "$ac_tool_prefix"; then
3166  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3167set dummy ${ac_tool_prefix}strip; ac_word=$2
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169$as_echo_n "checking for $ac_word... " >&6; }
3170if ${ac_cv_prog_STRIP+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  if test -n "$STRIP"; then
3174  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181    for ac_exec_ext in '' $ac_executable_extensions; do
3182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191fi
3192fi
3193STRIP=$ac_cv_prog_STRIP
3194if test -n "$STRIP"; then
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3196$as_echo "$STRIP" >&6; }
3197else
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200fi
3201
3202
3203fi
3204if test -z "$ac_cv_prog_STRIP"; then
3205  ac_ct_STRIP=$STRIP
3206  # Extract the first word of "strip", so it can be a program name with args.
3207set dummy strip; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  if test -n "$ac_ct_STRIP"; then
3214  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221    for ac_exec_ext in '' $ac_executable_extensions; do
3222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223    ac_cv_prog_ac_ct_STRIP="strip"
3224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228  done
3229IFS=$as_save_IFS
3230
3231fi
3232fi
3233ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3234if test -n "$ac_ct_STRIP"; then
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3236$as_echo "$ac_ct_STRIP" >&6; }
3237else
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242  if test "x$ac_ct_STRIP" = x; then
3243    STRIP=":"
3244  else
3245    case $cross_compiling:$ac_tool_warned in
3246yes:)
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249ac_tool_warned=yes ;;
3250esac
3251    STRIP=$ac_ct_STRIP
3252  fi
3253else
3254  STRIP="$ac_cv_prog_STRIP"
3255fi
3256
3257fi
3258INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3259
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3261$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3262if test -z "$MKDIR_P"; then
3263  if ${ac_cv_path_mkdir+:} false; then :
3264  $as_echo_n "(cached) " >&6
3265else
3266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3268do
3269  IFS=$as_save_IFS
3270  test -z "$as_dir" && as_dir=.
3271    for ac_prog in mkdir gmkdir; do
3272	 for ac_exec_ext in '' $ac_executable_extensions; do
3273	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3274	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3275	     'mkdir (GNU coreutils) '* | \
3276	     'mkdir (coreutils) '* | \
3277	     'mkdir (fileutils) '4.1*)
3278	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3279	       break 3;;
3280	   esac
3281	 done
3282       done
3283  done
3284IFS=$as_save_IFS
3285
3286fi
3287
3288  test -d ./--version && rmdir ./--version
3289  if test "${ac_cv_path_mkdir+set}" = set; then
3290    MKDIR_P="$ac_cv_path_mkdir -p"
3291  else
3292    # As a last resort, use the slow shell script.  Don't cache a
3293    # value for MKDIR_P within a source directory, because that will
3294    # break other packages using the cache if that directory is
3295    # removed, or if the value is a relative name.
3296    MKDIR_P="$ac_install_sh -d"
3297  fi
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3300$as_echo "$MKDIR_P" >&6; }
3301
3302for ac_prog in gawk mawk nawk awk
3303do
3304  # Extract the first word of "$ac_prog", so it can be a program name with args.
3305set dummy $ac_prog; ac_word=$2
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if ${ac_cv_prog_AWK+:} false; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  if test -n "$AWK"; then
3312  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319    for ac_exec_ext in '' $ac_executable_extensions; do
3320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_AWK="$ac_prog"
3322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326  done
3327IFS=$as_save_IFS
3328
3329fi
3330fi
3331AWK=$ac_cv_prog_AWK
3332if test -n "$AWK"; then
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3334$as_echo "$AWK" >&6; }
3335else
3336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341  test -n "$AWK" && break
3342done
3343
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3345$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3346set x ${MAKE-make}
3347ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3348if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  cat >conftest.make <<\_ACEOF
3352SHELL = /bin/sh
3353all:
3354	@echo '@@@%%%=$(MAKE)=@@@%%%'
3355_ACEOF
3356# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3357case `${MAKE-make} -f conftest.make 2>/dev/null` in
3358  *@@@%%%=?*=@@@%%%*)
3359    eval ac_cv_prog_make_${ac_make}_set=yes;;
3360  *)
3361    eval ac_cv_prog_make_${ac_make}_set=no;;
3362esac
3363rm -f conftest.make
3364fi
3365if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3367$as_echo "yes" >&6; }
3368  SET_MAKE=
3369else
3370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372  SET_MAKE="MAKE=${MAKE-make}"
3373fi
3374
3375rm -rf .tst 2>/dev/null
3376mkdir .tst 2>/dev/null
3377if test -d .tst; then
3378  am__leading_dot=.
3379else
3380  am__leading_dot=_
3381fi
3382rmdir .tst 2>/dev/null
3383
3384# Check whether --enable-silent-rules was given.
3385if test "${enable_silent_rules+set}" = set; then :
3386  enableval=$enable_silent_rules;
3387fi
3388
3389case $enable_silent_rules in # (((
3390  yes) AM_DEFAULT_VERBOSITY=0;;
3391   no) AM_DEFAULT_VERBOSITY=1;;
3392    *) AM_DEFAULT_VERBOSITY=1;;
3393esac
3394am_make=${MAKE-make}
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3396$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3397if ${am_cv_make_support_nested_variables+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  if $as_echo 'TRUE=$(BAR$(V))
3401BAR0=false
3402BAR1=true
3403V=1
3404am__doit:
3405	@$(TRUE)
3406.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3407  am_cv_make_support_nested_variables=yes
3408else
3409  am_cv_make_support_nested_variables=no
3410fi
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3413$as_echo "$am_cv_make_support_nested_variables" >&6; }
3414if test $am_cv_make_support_nested_variables = yes; then
3415    AM_V='$(V)'
3416  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3417else
3418  AM_V=$AM_DEFAULT_VERBOSITY
3419  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3420fi
3421AM_BACKSLASH='\'
3422
3423if test "`cd $srcdir && pwd`" != "`pwd`"; then
3424  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3425  # is not polluted with repeated "-I."
3426  am__isrc=' -I$(srcdir)'
3427  # test to see if srcdir already configured
3428  if test -f $srcdir/config.status; then
3429    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3430  fi
3431fi
3432
3433# test whether we have cygpath
3434if test -z "$CYGPATH_W"; then
3435  if (cygpath --version) >/dev/null 2>/dev/null; then
3436    CYGPATH_W='cygpath -w'
3437  else
3438    CYGPATH_W=echo
3439  fi
3440fi
3441
3442
3443# Define the identity of the package.
3444 PACKAGE='libffi'
3445 VERSION='3.1'
3446
3447
3448cat >>confdefs.h <<_ACEOF
3449#define PACKAGE "$PACKAGE"
3450_ACEOF
3451
3452
3453cat >>confdefs.h <<_ACEOF
3454#define VERSION "$VERSION"
3455_ACEOF
3456
3457# Some tools Automake needs.
3458
3459ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3460
3461
3462AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3463
3464
3465AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3466
3467
3468AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3469
3470
3471MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3472
3473# For better backward compatibility.  To be removed once Automake 1.9.x
3474# dies out for good.  For more background, see:
3475# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3476# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3477mkdir_p='$(MKDIR_P)'
3478
3479# We need awk for the "check" target.  The system "awk" is bad on
3480# some platforms.
3481# Always define AMTAR for backward compatibility.  Yes, it's still used
3482# in the wild :-(  We should find a proper way to deprecate it ...
3483AMTAR='$${TAR-tar}'
3484
3485
3486# We'll loop over all known methods to create a tar archive until one works.
3487_am_tools='gnutar  pax cpio none'
3488
3489am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3490
3491
3492
3493
3494
3495
3496# POSIX will say in a future version that running "rm -f" with no argument
3497# is OK; and we want to be able to make that assumption in our Makefile
3498# recipes.  So use an aggressive probe to check that the usage we want is
3499# actually supported "in the wild" to an acceptable degree.
3500# See automake bug#10828.
3501# To make any issue more visible, cause the running configure to be aborted
3502# by default if the 'rm' program in use doesn't match our expectations; the
3503# user can still override this though.
3504if rm -f && rm -fr && rm -rf; then : OK; else
3505  cat >&2 <<'END'
3506Oops!
3507
3508Your 'rm' program seems unable to run without file operands specified
3509on the command line, even when the '-f' option is present.  This is contrary
3510to the behaviour of most rm programs out there, and not conforming with
3511the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3512
3513Please tell bug-automake@gnu.org about your system, including the value
3514of your $PATH and any error possibly output before this message.  This
3515can help us improve future automake versions.
3516
3517END
3518  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3519    echo 'Configuration will proceed anyway, since you have set the' >&2
3520    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3521    echo >&2
3522  else
3523    cat >&2 <<'END'
3524Aborting the configuration process, to ensure you take notice of the issue.
3525
3526You can download and install GNU coreutils to get an 'rm' implementation
3527that behaves properly: <http://www.gnu.org/software/coreutils/>.
3528
3529If you want to complete the configuration process using your problematic
3530'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3531to "yes", and re-run configure.
3532
3533END
3534    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3535  fi
3536fi
3537
3538# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3539# We must force CC to /not/ be precious variables; otherwise
3540# the wrong, non-multilib-adjusted value will be used in multilibs.
3541# As a side effect, we have to subst CFLAGS ourselves.
3542# Also save and restore CFLAGS, since AC_PROG_CC will come up with
3543# defaults of its own if none are provided.
3544
3545
3546
3547save_CFLAGS=$CFLAGS
3548ac_ext=c
3549ac_cpp='$CPP $CPPFLAGS'
3550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553if test -n "$ac_tool_prefix"; then
3554  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}gcc; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  if test -n "$CC"; then
3562  ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567  IFS=$as_save_IFS
3568  test -z "$as_dir" && as_dir=.
3569    for ac_exec_ext in '' $ac_executable_extensions; do
3570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573    break 2
3574  fi
3575done
3576  done
3577IFS=$as_save_IFS
3578
3579fi
3580fi
3581CC=$ac_cv_prog_CC
3582if test -n "$CC"; then
3583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584$as_echo "$CC" >&6; }
3585else
3586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
3588fi
3589
3590
3591fi
3592if test -z "$ac_cv_prog_CC"; then
3593  ac_ct_CC=$CC
3594  # Extract the first word of "gcc", so it can be a program name with args.
3595set dummy gcc; ac_word=$2
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597$as_echo_n "checking for $ac_word... " >&6; }
3598if ${ac_cv_prog_ac_ct_CC+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601  if test -n "$ac_ct_CC"; then
3602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607  IFS=$as_save_IFS
3608  test -z "$as_dir" && as_dir=.
3609    for ac_exec_ext in '' $ac_executable_extensions; do
3610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611    ac_cv_prog_ac_ct_CC="gcc"
3612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613    break 2
3614  fi
3615done
3616  done
3617IFS=$as_save_IFS
3618
3619fi
3620fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624$as_echo "$ac_ct_CC" >&6; }
3625else
3626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627$as_echo "no" >&6; }
3628fi
3629
3630  if test "x$ac_ct_CC" = x; then
3631    CC=""
3632  else
3633    case $cross_compiling:$ac_tool_warned in
3634yes:)
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637ac_tool_warned=yes ;;
3638esac
3639    CC=$ac_ct_CC
3640  fi
3641else
3642  CC="$ac_cv_prog_CC"
3643fi
3644
3645if test -z "$CC"; then
3646          if test -n "$ac_tool_prefix"; then
3647    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3648set dummy ${ac_tool_prefix}cc; ac_word=$2
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650$as_echo_n "checking for $ac_word... " >&6; }
3651if ${ac_cv_prog_CC+:} false; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654  if test -n "$CC"; then
3655  ac_cv_prog_CC="$CC" # Let the user override the test.
3656else
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH
3659do
3660  IFS=$as_save_IFS
3661  test -z "$as_dir" && as_dir=.
3662    for ac_exec_ext in '' $ac_executable_extensions; do
3663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664    ac_cv_prog_CC="${ac_tool_prefix}cc"
3665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666    break 2
3667  fi
3668done
3669  done
3670IFS=$as_save_IFS
3671
3672fi
3673fi
3674CC=$ac_cv_prog_CC
3675if test -n "$CC"; then
3676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677$as_echo "$CC" >&6; }
3678else
3679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680$as_echo "no" >&6; }
3681fi
3682
3683
3684  fi
3685fi
3686if test -z "$CC"; then
3687  # Extract the first word of "cc", so it can be a program name with args.
3688set dummy cc; ac_word=$2
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690$as_echo_n "checking for $ac_word... " >&6; }
3691if ${ac_cv_prog_CC+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  if test -n "$CC"; then
3695  ac_cv_prog_CC="$CC" # Let the user override the test.
3696else
3697  ac_prog_rejected=no
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH
3700do
3701  IFS=$as_save_IFS
3702  test -z "$as_dir" && as_dir=.
3703    for ac_exec_ext in '' $ac_executable_extensions; do
3704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3706       ac_prog_rejected=yes
3707       continue
3708     fi
3709    ac_cv_prog_CC="cc"
3710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711    break 2
3712  fi
3713done
3714  done
3715IFS=$as_save_IFS
3716
3717if test $ac_prog_rejected = yes; then
3718  # We found a bogon in the path, so make sure we never use it.
3719  set dummy $ac_cv_prog_CC
3720  shift
3721  if test $# != 0; then
3722    # We chose a different compiler from the bogus one.
3723    # However, it has the same basename, so the bogon will be chosen
3724    # first if we set CC to just the basename; use the full file name.
3725    shift
3726    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3727  fi
3728fi
3729fi
3730fi
3731CC=$ac_cv_prog_CC
3732if test -n "$CC"; then
3733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734$as_echo "$CC" >&6; }
3735else
3736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737$as_echo "no" >&6; }
3738fi
3739
3740
3741fi
3742if test -z "$CC"; then
3743  if test -n "$ac_tool_prefix"; then
3744  for ac_prog in cl.exe
3745  do
3746    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749$as_echo_n "checking for $ac_word... " >&6; }
3750if ${ac_cv_prog_CC+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  if test -n "$CC"; then
3754  ac_cv_prog_CC="$CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  test -z "$as_dir" && as_dir=.
3761    for ac_exec_ext in '' $ac_executable_extensions; do
3762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765    break 2
3766  fi
3767done
3768  done
3769IFS=$as_save_IFS
3770
3771fi
3772fi
3773CC=$ac_cv_prog_CC
3774if test -n "$CC"; then
3775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776$as_echo "$CC" >&6; }
3777else
3778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779$as_echo "no" >&6; }
3780fi
3781
3782
3783    test -n "$CC" && break
3784  done
3785fi
3786if test -z "$CC"; then
3787  ac_ct_CC=$CC
3788  for ac_prog in cl.exe
3789do
3790  # Extract the first word of "$ac_prog", so it can be a program name with args.
3791set dummy $ac_prog; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
3794if ${ac_cv_prog_ac_ct_CC+:} false; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  if test -n "$ac_ct_CC"; then
3798  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803  IFS=$as_save_IFS
3804  test -z "$as_dir" && as_dir=.
3805    for ac_exec_ext in '' $ac_executable_extensions; do
3806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807    ac_cv_prog_ac_ct_CC="$ac_prog"
3808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809    break 2
3810  fi
3811done
3812  done
3813IFS=$as_save_IFS
3814
3815fi
3816fi
3817ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818if test -n "$ac_ct_CC"; then
3819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820$as_echo "$ac_ct_CC" >&6; }
3821else
3822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; }
3824fi
3825
3826
3827  test -n "$ac_ct_CC" && break
3828done
3829
3830  if test "x$ac_ct_CC" = x; then
3831    CC=""
3832  else
3833    case $cross_compiling:$ac_tool_warned in
3834yes:)
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837ac_tool_warned=yes ;;
3838esac
3839    CC=$ac_ct_CC
3840  fi
3841fi
3842
3843fi
3844
3845
3846test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848as_fn_error $? "no acceptable C compiler found in \$PATH
3849See \`config.log' for more details" "$LINENO" 5; }
3850
3851# Provide some information about the compiler.
3852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3853set X $ac_compile
3854ac_compiler=$2
3855for ac_option in --version -v -V -qversion; do
3856  { { ac_try="$ac_compiler $ac_option >&5"
3857case "(($ac_try" in
3858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859  *) ac_try_echo=$ac_try;;
3860esac
3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862$as_echo "$ac_try_echo"; } >&5
3863  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3864  ac_status=$?
3865  if test -s conftest.err; then
3866    sed '10a\
3867... rest of stderr output deleted ...
3868         10q' conftest.err >conftest.er1
3869    cat conftest.er1 >&5
3870  fi
3871  rm -f conftest.er1 conftest.err
3872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873  test $ac_status = 0; }
3874done
3875
3876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h.  */
3878
3879int
3880main ()
3881{
3882
3883  ;
3884  return 0;
3885}
3886_ACEOF
3887ac_clean_files_save=$ac_clean_files
3888ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3889# Try to create an executable without -o first, disregard a.out.
3890# It will help us diagnose broken compilers, and finding out an intuition
3891# of exeext.
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3893$as_echo_n "checking whether the C compiler works... " >&6; }
3894ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3895
3896# The possible output files:
3897ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3898
3899ac_rmfiles=
3900for ac_file in $ac_files
3901do
3902  case $ac_file in
3903    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3904    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3905  esac
3906done
3907rm -f $ac_rmfiles
3908
3909if { { ac_try="$ac_link_default"
3910case "(($ac_try" in
3911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912  *) ac_try_echo=$ac_try;;
3913esac
3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915$as_echo "$ac_try_echo"; } >&5
3916  (eval "$ac_link_default") 2>&5
3917  ac_status=$?
3918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919  test $ac_status = 0; }; then :
3920  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3921# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3922# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3923# so that the user can short-circuit this test for compilers unknown to
3924# Autoconf.
3925for ac_file in $ac_files ''
3926do
3927  test -f "$ac_file" || continue
3928  case $ac_file in
3929    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3930	;;
3931    [ab].out )
3932	# We found the default executable, but exeext='' is most
3933	# certainly right.
3934	break;;
3935    *.* )
3936	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3937	then :; else
3938	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939	fi
3940	# We set ac_cv_exeext here because the later test for it is not
3941	# safe: cross compilers may not add the suffix if given an `-o'
3942	# argument, so we may need to know it at that point already.
3943	# Even if this section looks crufty: it has the advantage of
3944	# actually working.
3945	break;;
3946    * )
3947	break;;
3948  esac
3949done
3950test "$ac_cv_exeext" = no && ac_cv_exeext=
3951
3952else
3953  ac_file=''
3954fi
3955if test -z "$ac_file"; then :
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958$as_echo "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5
3960
3961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963as_fn_error 77 "C compiler cannot create executables
3964See \`config.log' for more details" "$LINENO" 5; }
3965else
3966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3967$as_echo "yes" >&6; }
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3970$as_echo_n "checking for C compiler default output file name... " >&6; }
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3972$as_echo "$ac_file" >&6; }
3973ac_exeext=$ac_cv_exeext
3974
3975rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3976ac_clean_files=$ac_clean_files_save
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3978$as_echo_n "checking for suffix of executables... " >&6; }
3979if { { ac_try="$ac_link"
3980case "(($ac_try" in
3981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982  *) ac_try_echo=$ac_try;;
3983esac
3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985$as_echo "$ac_try_echo"; } >&5
3986  (eval "$ac_link") 2>&5
3987  ac_status=$?
3988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989  test $ac_status = 0; }; then :
3990  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3991# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3992# work properly (i.e., refer to `conftest.exe'), while it won't with
3993# `rm'.
3994for ac_file in conftest.exe conftest conftest.*; do
3995  test -f "$ac_file" || continue
3996  case $ac_file in
3997    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3998    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3999	  break;;
4000    * ) break;;
4001  esac
4002done
4003else
4004  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4007See \`config.log' for more details" "$LINENO" 5; }
4008fi
4009rm -f conftest conftest$ac_cv_exeext
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4011$as_echo "$ac_cv_exeext" >&6; }
4012
4013rm -f conftest.$ac_ext
4014EXEEXT=$ac_cv_exeext
4015ac_exeext=$EXEEXT
4016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018#include <stdio.h>
4019int
4020main ()
4021{
4022FILE *f = fopen ("conftest.out", "w");
4023 return ferror (f) || fclose (f) != 0;
4024
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029ac_clean_files="$ac_clean_files conftest.out"
4030# Check that the compiler produces executables we can run.  If not, either
4031# the compiler is broken, or we cross compile.
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4033$as_echo_n "checking whether we are cross compiling... " >&6; }
4034if test "$cross_compiling" != yes; then
4035  { { ac_try="$ac_link"
4036case "(($ac_try" in
4037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038  *) ac_try_echo=$ac_try;;
4039esac
4040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041$as_echo "$ac_try_echo"; } >&5
4042  (eval "$ac_link") 2>&5
4043  ac_status=$?
4044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045  test $ac_status = 0; }
4046  if { ac_try='./conftest$ac_cv_exeext'
4047  { { case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052$as_echo "$ac_try_echo"; } >&5
4053  (eval "$ac_try") 2>&5
4054  ac_status=$?
4055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056  test $ac_status = 0; }; }; then
4057    cross_compiling=no
4058  else
4059    if test "$cross_compiling" = maybe; then
4060	cross_compiling=yes
4061    else
4062	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064as_fn_error $? "cannot run C compiled programs.
4065If you meant to cross compile, use \`--host'.
4066See \`config.log' for more details" "$LINENO" 5; }
4067    fi
4068  fi
4069fi
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4071$as_echo "$cross_compiling" >&6; }
4072
4073rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4074ac_clean_files=$ac_clean_files_save
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4076$as_echo_n "checking for suffix of object files... " >&6; }
4077if ${ac_cv_objext+:} false; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082
4083int
4084main ()
4085{
4086
4087  ;
4088  return 0;
4089}
4090_ACEOF
4091rm -f conftest.o conftest.obj
4092if { { ac_try="$ac_compile"
4093case "(($ac_try" in
4094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095  *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098$as_echo "$ac_try_echo"; } >&5
4099  (eval "$ac_compile") 2>&5
4100  ac_status=$?
4101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102  test $ac_status = 0; }; then :
4103  for ac_file in conftest.o conftest.obj conftest.*; do
4104  test -f "$ac_file" || continue;
4105  case $ac_file in
4106    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4107    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4108       break;;
4109  esac
4110done
4111else
4112  $as_echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117as_fn_error $? "cannot compute suffix of object files: cannot compile
4118See \`config.log' for more details" "$LINENO" 5; }
4119fi
4120rm -f conftest.$ac_cv_objext conftest.$ac_ext
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4123$as_echo "$ac_cv_objext" >&6; }
4124OBJEXT=$ac_cv_objext
4125ac_objext=$OBJEXT
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4127$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4128if ${ac_cv_c_compiler_gnu+:} false; then :
4129  $as_echo_n "(cached) " >&6
4130else
4131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133
4134int
4135main ()
4136{
4137#ifndef __GNUC__
4138       choke me
4139#endif
4140
4141  ;
4142  return 0;
4143}
4144_ACEOF
4145if ac_fn_c_try_compile "$LINENO"; then :
4146  ac_compiler_gnu=yes
4147else
4148  ac_compiler_gnu=no
4149fi
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151ac_cv_c_compiler_gnu=$ac_compiler_gnu
4152
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4155$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4156if test $ac_compiler_gnu = yes; then
4157  GCC=yes
4158else
4159  GCC=
4160fi
4161ac_test_CFLAGS=${CFLAGS+set}
4162ac_save_CFLAGS=$CFLAGS
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4164$as_echo_n "checking whether $CC accepts -g... " >&6; }
4165if ${ac_cv_prog_cc_g+:} false; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168  ac_save_c_werror_flag=$ac_c_werror_flag
4169   ac_c_werror_flag=yes
4170   ac_cv_prog_cc_g=no
4171   CFLAGS="-g"
4172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h.  */
4174
4175int
4176main ()
4177{
4178
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183if ac_fn_c_try_compile "$LINENO"; then :
4184  ac_cv_prog_cc_g=yes
4185else
4186  CFLAGS=""
4187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189
4190int
4191main ()
4192{
4193
4194  ;
4195  return 0;
4196}
4197_ACEOF
4198if ac_fn_c_try_compile "$LINENO"; then :
4199
4200else
4201  ac_c_werror_flag=$ac_save_c_werror_flag
4202	 CFLAGS="-g"
4203	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205
4206int
4207main ()
4208{
4209
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214if ac_fn_c_try_compile "$LINENO"; then :
4215  ac_cv_prog_cc_g=yes
4216fi
4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220fi
4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222   ac_c_werror_flag=$ac_save_c_werror_flag
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4225$as_echo "$ac_cv_prog_cc_g" >&6; }
4226if test "$ac_test_CFLAGS" = set; then
4227  CFLAGS=$ac_save_CFLAGS
4228elif test $ac_cv_prog_cc_g = yes; then
4229  if test "$GCC" = yes; then
4230    CFLAGS="-g -O2"
4231  else
4232    CFLAGS="-g"
4233  fi
4234else
4235  if test "$GCC" = yes; then
4236    CFLAGS="-O2"
4237  else
4238    CFLAGS=
4239  fi
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4242$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4243if ${ac_cv_prog_cc_c89+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  ac_cv_prog_cc_c89=no
4247ac_save_CC=$CC
4248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250#include <stdarg.h>
4251#include <stdio.h>
4252struct stat;
4253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4254struct buf { int x; };
4255FILE * (*rcsopen) (struct buf *, struct stat *, int);
4256static char *e (p, i)
4257     char **p;
4258     int i;
4259{
4260  return p[i];
4261}
4262static char *f (char * (*g) (char **, int), char **p, ...)
4263{
4264  char *s;
4265  va_list v;
4266  va_start (v,p);
4267  s = g (p, va_arg (v,int));
4268  va_end (v);
4269  return s;
4270}
4271
4272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4273   function prototypes and stuff, but not '\xHH' hex character constants.
4274   These don't provoke an error unfortunately, instead are silently treated
4275   as 'x'.  The following induces an error, until -std is added to get
4276   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4277   array size at least.  It's necessary to write '\x00'==0 to get something
4278   that's true only with -std.  */
4279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4280
4281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4282   inside strings and character constants.  */
4283#define FOO(x) 'x'
4284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4285
4286int test (int i, double x);
4287struct s1 {int (*f) (int a);};
4288struct s2 {int (*f) (double a);};
4289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290int argc;
4291char **argv;
4292int
4293main ()
4294{
4295return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4301	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302do
4303  CC="$ac_save_CC $ac_arg"
4304  if ac_fn_c_try_compile "$LINENO"; then :
4305  ac_cv_prog_cc_c89=$ac_arg
4306fi
4307rm -f core conftest.err conftest.$ac_objext
4308  test "x$ac_cv_prog_cc_c89" != "xno" && break
4309done
4310rm -f conftest.$ac_ext
4311CC=$ac_save_CC
4312
4313fi
4314# AC_CACHE_VAL
4315case "x$ac_cv_prog_cc_c89" in
4316  x)
4317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318$as_echo "none needed" >&6; } ;;
4319  xno)
4320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321$as_echo "unsupported" >&6; } ;;
4322  *)
4323    CC="$CC $ac_cv_prog_cc_c89"
4324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4325$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4326esac
4327if test "x$ac_cv_prog_cc_c89" != xno; then :
4328
4329fi
4330
4331ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336
4337ac_ext=c
4338ac_cpp='$CPP $CPPFLAGS'
4339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4343$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4344if ${am_cv_prog_cc_c_o+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349
4350int
4351main ()
4352{
4353
4354  ;
4355  return 0;
4356}
4357_ACEOF
4358  # Make sure it works both with $CC and with simple cc.
4359  # Following AC_PROG_CC_C_O, we do the test twice because some
4360  # compilers refuse to overwrite an existing .o file with -o,
4361  # though they will create one.
4362  am_cv_prog_cc_c_o=yes
4363  for am_i in 1 2; do
4364    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4365   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } \
4369         && test -f conftest2.$ac_objext; then
4370      : OK
4371    else
4372      am_cv_prog_cc_c_o=no
4373      break
4374    fi
4375  done
4376  rm -f core conftest*
4377  unset am_i
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4380$as_echo "$am_cv_prog_cc_c_o" >&6; }
4381if test "$am_cv_prog_cc_c_o" != yes; then
4382   # Losing compiler, so override with the script.
4383   # FIXME: It is wrong to rewrite CC.
4384   # But if we don't then we get into trouble of one sort or another.
4385   # A longer-term fix would be to have automake use am__CC in this case,
4386   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387   CC="$am_aux_dir/compile $CC"
4388fi
4389ac_ext=c
4390ac_cpp='$CPP $CPPFLAGS'
4391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394
4395DEPDIR="${am__leading_dot}deps"
4396
4397ac_config_commands="$ac_config_commands depfiles"
4398
4399
4400am_make=${MAKE-make}
4401cat > confinc << 'END'
4402am__doit:
4403	@echo this is the am__doit target
4404.PHONY: am__doit
4405END
4406# If we don't find an include directive, just comment out the code.
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4408$as_echo_n "checking for style of include used by $am_make... " >&6; }
4409am__include="#"
4410am__quote=
4411_am_result=none
4412# First try GNU make style include.
4413echo "include confinc" > confmf
4414# Ignore all kinds of additional output from 'make'.
4415case `$am_make -s -f confmf 2> /dev/null` in #(
4416*the\ am__doit\ target*)
4417  am__include=include
4418  am__quote=
4419  _am_result=GNU
4420  ;;
4421esac
4422# Now try BSD make style include.
4423if test "$am__include" = "#"; then
4424   echo '.include "confinc"' > confmf
4425   case `$am_make -s -f confmf 2> /dev/null` in #(
4426   *the\ am__doit\ target*)
4427     am__include=.include
4428     am__quote="\""
4429     _am_result=BSD
4430     ;;
4431   esac
4432fi
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4436$as_echo "$_am_result" >&6; }
4437rm -f confinc confmf
4438
4439# Check whether --enable-dependency-tracking was given.
4440if test "${enable_dependency_tracking+set}" = set; then :
4441  enableval=$enable_dependency_tracking;
4442fi
4443
4444if test "x$enable_dependency_tracking" != xno; then
4445  am_depcomp="$ac_aux_dir/depcomp"
4446  AMDEPBACKSLASH='\'
4447  am__nodep='_no'
4448fi
4449 if test "x$enable_dependency_tracking" != xno; then
4450  AMDEP_TRUE=
4451  AMDEP_FALSE='#'
4452else
4453  AMDEP_TRUE='#'
4454  AMDEP_FALSE=
4455fi
4456
4457
4458
4459depcc="$CC"   am_compiler_list=
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462$as_echo_n "checking dependency style of $depcc... " >&6; }
4463if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4464  $as_echo_n "(cached) " >&6
4465else
4466  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467  # We make a subdir and do the tests there.  Otherwise we can end up
4468  # making bogus files that we don't know about and never remove.  For
4469  # instance it was reported that on HP-UX the gcc test will end up
4470  # making a dummy file named 'D' -- because '-MD' means "put the output
4471  # in D".
4472  rm -rf conftest.dir
4473  mkdir conftest.dir
4474  # Copy depcomp to subdir because otherwise we won't find it if we're
4475  # using a relative directory.
4476  cp "$am_depcomp" conftest.dir
4477  cd conftest.dir
4478  # We will build objects and dependencies in a subdirectory because
4479  # it helps to detect inapplicable dependency modes.  For instance
4480  # both Tru64's cc and ICC support -MD to output dependencies as a
4481  # side effect of compilation, but ICC will put the dependencies in
4482  # the current directory while Tru64 will put them in the object
4483  # directory.
4484  mkdir sub
4485
4486  am_cv_CC_dependencies_compiler_type=none
4487  if test "$am_compiler_list" = ""; then
4488     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489  fi
4490  am__universal=false
4491  case " $depcc " in #(
4492     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4493     esac
4494
4495  for depmode in $am_compiler_list; do
4496    # Setup a source with many dependencies, because some compilers
4497    # like to wrap large dependency lists on column 80 (with \), and
4498    # we should not choose a depcomp mode which is confused by this.
4499    #
4500    # We need to recreate these files for each test, as the compiler may
4501    # overwrite some of them when testing with obscure command lines.
4502    # This happens at least with the AIX C compiler.
4503    : > sub/conftest.c
4504    for i in 1 2 3 4 5 6; do
4505      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4506      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4507      # Solaris 10 /bin/sh.
4508      echo '/* dummy */' > sub/conftst$i.h
4509    done
4510    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4511
4512    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4513    # mode.  It turns out that the SunPro C++ compiler does not properly
4514    # handle '-M -o', and we need to detect this.  Also, some Intel
4515    # versions had trouble with output in subdirs.
4516    am__obj=sub/conftest.${OBJEXT-o}
4517    am__minus_obj="-o $am__obj"
4518    case $depmode in
4519    gcc)
4520      # This depmode causes a compiler race in universal mode.
4521      test "$am__universal" = false || continue
4522      ;;
4523    nosideeffect)
4524      # After this tag, mechanisms are not by side-effect, so they'll
4525      # only be used when explicitly requested.
4526      if test "x$enable_dependency_tracking" = xyes; then
4527	continue
4528      else
4529	break
4530      fi
4531      ;;
4532    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4533      # This compiler won't grok '-c -o', but also, the minuso test has
4534      # not run yet.  These depmodes are late enough in the game, and
4535      # so weak that their functioning should not be impacted.
4536      am__obj=conftest.${OBJEXT-o}
4537      am__minus_obj=
4538      ;;
4539    none) break ;;
4540    esac
4541    if depmode=$depmode \
4542       source=sub/conftest.c object=$am__obj \
4543       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4544       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4545         >/dev/null 2>conftest.err &&
4546       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4547       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4548       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4549       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4550      # icc doesn't choke on unknown options, it will just issue warnings
4551      # or remarks (even with -Werror).  So we grep stderr for any message
4552      # that says an option was ignored or not supported.
4553      # When given -MP, icc 7.0 and 7.1 complain thusly:
4554      #   icc: Command line warning: ignoring option '-M'; no argument required
4555      # The diagnosis changed in icc 8.0:
4556      #   icc: Command line remark: option '-MP' not supported
4557      if (grep 'ignoring option' conftest.err ||
4558          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4559        am_cv_CC_dependencies_compiler_type=$depmode
4560        break
4561      fi
4562    fi
4563  done
4564
4565  cd ..
4566  rm -rf conftest.dir
4567else
4568  am_cv_CC_dependencies_compiler_type=none
4569fi
4570
4571fi
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4573$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4574CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4575
4576 if
4577  test "x$enable_dependency_tracking" != xno \
4578  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4579  am__fastdepCC_TRUE=
4580  am__fastdepCC_FALSE='#'
4581else
4582  am__fastdepCC_TRUE='#'
4583  am__fastdepCC_FALSE=
4584fi
4585
4586
4587ac_ext=cpp
4588ac_cpp='$CXXCPP $CPPFLAGS'
4589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4592if test -z "$CXX"; then
4593  if test -n "$CCC"; then
4594    CXX=$CCC
4595  else
4596    if test -n "$ac_tool_prefix"; then
4597  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4598  do
4599    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602$as_echo_n "checking for $ac_word... " >&6; }
4603if ${ac_cv_prog_CXX+:} false; then :
4604  $as_echo_n "(cached) " >&6
4605else
4606  if test -n "$CXX"; then
4607  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612  IFS=$as_save_IFS
4613  test -z "$as_dir" && as_dir=.
4614    for ac_exec_ext in '' $ac_executable_extensions; do
4615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618    break 2
4619  fi
4620done
4621  done
4622IFS=$as_save_IFS
4623
4624fi
4625fi
4626CXX=$ac_cv_prog_CXX
4627if test -n "$CXX"; then
4628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4629$as_echo "$CXX" >&6; }
4630else
4631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632$as_echo "no" >&6; }
4633fi
4634
4635
4636    test -n "$CXX" && break
4637  done
4638fi
4639if test -z "$CXX"; then
4640  ac_ct_CXX=$CXX
4641  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4642do
4643  # Extract the first word of "$ac_prog", so it can be a program name with args.
4644set dummy $ac_prog; ac_word=$2
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  if test -n "$ac_ct_CXX"; then
4651  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656  IFS=$as_save_IFS
4657  test -z "$as_dir" && as_dir=.
4658    for ac_exec_ext in '' $ac_executable_extensions; do
4659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660    ac_cv_prog_ac_ct_CXX="$ac_prog"
4661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662    break 2
4663  fi
4664done
4665  done
4666IFS=$as_save_IFS
4667
4668fi
4669fi
4670ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4671if test -n "$ac_ct_CXX"; then
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4673$as_echo "$ac_ct_CXX" >&6; }
4674else
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676$as_echo "no" >&6; }
4677fi
4678
4679
4680  test -n "$ac_ct_CXX" && break
4681done
4682
4683  if test "x$ac_ct_CXX" = x; then
4684    CXX="g++"
4685  else
4686    case $cross_compiling:$ac_tool_warned in
4687yes:)
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690ac_tool_warned=yes ;;
4691esac
4692    CXX=$ac_ct_CXX
4693  fi
4694fi
4695
4696  fi
4697fi
4698# Provide some information about the compiler.
4699$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4700set X $ac_compile
4701ac_compiler=$2
4702for ac_option in --version -v -V -qversion; do
4703  { { ac_try="$ac_compiler $ac_option >&5"
4704case "(($ac_try" in
4705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706  *) ac_try_echo=$ac_try;;
4707esac
4708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709$as_echo "$ac_try_echo"; } >&5
4710  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4711  ac_status=$?
4712  if test -s conftest.err; then
4713    sed '10a\
4714... rest of stderr output deleted ...
4715         10q' conftest.err >conftest.er1
4716    cat conftest.er1 >&5
4717  fi
4718  rm -f conftest.er1 conftest.err
4719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720  test $ac_status = 0; }
4721done
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4724$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4725if ${ac_cv_cxx_compiler_gnu+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h.  */
4730
4731int
4732main ()
4733{
4734#ifndef __GNUC__
4735       choke me
4736#endif
4737
4738  ;
4739  return 0;
4740}
4741_ACEOF
4742if ac_fn_cxx_try_compile "$LINENO"; then :
4743  ac_compiler_gnu=yes
4744else
4745  ac_compiler_gnu=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4749
4750fi
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4752$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4753if test $ac_compiler_gnu = yes; then
4754  GXX=yes
4755else
4756  GXX=
4757fi
4758ac_test_CXXFLAGS=${CXXFLAGS+set}
4759ac_save_CXXFLAGS=$CXXFLAGS
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4761$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4762if ${ac_cv_prog_cxx_g+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4766   ac_cxx_werror_flag=yes
4767   ac_cv_prog_cxx_g=no
4768   CXXFLAGS="-g"
4769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h.  */
4771
4772int
4773main ()
4774{
4775
4776  ;
4777  return 0;
4778}
4779_ACEOF
4780if ac_fn_cxx_try_compile "$LINENO"; then :
4781  ac_cv_prog_cxx_g=yes
4782else
4783  CXXFLAGS=""
4784      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786
4787int
4788main ()
4789{
4790
4791  ;
4792  return 0;
4793}
4794_ACEOF
4795if ac_fn_cxx_try_compile "$LINENO"; then :
4796
4797else
4798  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4799	 CXXFLAGS="-g"
4800	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h.  */
4802
4803int
4804main ()
4805{
4806
4807  ;
4808  return 0;
4809}
4810_ACEOF
4811if ac_fn_cxx_try_compile "$LINENO"; then :
4812  ac_cv_prog_cxx_g=yes
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4822$as_echo "$ac_cv_prog_cxx_g" >&6; }
4823if test "$ac_test_CXXFLAGS" = set; then
4824  CXXFLAGS=$ac_save_CXXFLAGS
4825elif test $ac_cv_prog_cxx_g = yes; then
4826  if test "$GXX" = yes; then
4827    CXXFLAGS="-g -O2"
4828  else
4829    CXXFLAGS="-g"
4830  fi
4831else
4832  if test "$GXX" = yes; then
4833    CXXFLAGS="-O2"
4834  else
4835    CXXFLAGS=
4836  fi
4837fi
4838ac_ext=c
4839ac_cpp='$CPP $CPPFLAGS'
4840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844depcc="$CXX"  am_compiler_list=
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4847$as_echo_n "checking dependency style of $depcc... " >&6; }
4848if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4852  # We make a subdir and do the tests there.  Otherwise we can end up
4853  # making bogus files that we don't know about and never remove.  For
4854  # instance it was reported that on HP-UX the gcc test will end up
4855  # making a dummy file named 'D' -- because '-MD' means "put the output
4856  # in D".
4857  rm -rf conftest.dir
4858  mkdir conftest.dir
4859  # Copy depcomp to subdir because otherwise we won't find it if we're
4860  # using a relative directory.
4861  cp "$am_depcomp" conftest.dir
4862  cd conftest.dir
4863  # We will build objects and dependencies in a subdirectory because
4864  # it helps to detect inapplicable dependency modes.  For instance
4865  # both Tru64's cc and ICC support -MD to output dependencies as a
4866  # side effect of compilation, but ICC will put the dependencies in
4867  # the current directory while Tru64 will put them in the object
4868  # directory.
4869  mkdir sub
4870
4871  am_cv_CXX_dependencies_compiler_type=none
4872  if test "$am_compiler_list" = ""; then
4873     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4874  fi
4875  am__universal=false
4876  case " $depcc " in #(
4877     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4878     esac
4879
4880  for depmode in $am_compiler_list; do
4881    # Setup a source with many dependencies, because some compilers
4882    # like to wrap large dependency lists on column 80 (with \), and
4883    # we should not choose a depcomp mode which is confused by this.
4884    #
4885    # We need to recreate these files for each test, as the compiler may
4886    # overwrite some of them when testing with obscure command lines.
4887    # This happens at least with the AIX C compiler.
4888    : > sub/conftest.c
4889    for i in 1 2 3 4 5 6; do
4890      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4891      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4892      # Solaris 10 /bin/sh.
4893      echo '/* dummy */' > sub/conftst$i.h
4894    done
4895    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4896
4897    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4898    # mode.  It turns out that the SunPro C++ compiler does not properly
4899    # handle '-M -o', and we need to detect this.  Also, some Intel
4900    # versions had trouble with output in subdirs.
4901    am__obj=sub/conftest.${OBJEXT-o}
4902    am__minus_obj="-o $am__obj"
4903    case $depmode in
4904    gcc)
4905      # This depmode causes a compiler race in universal mode.
4906      test "$am__universal" = false || continue
4907      ;;
4908    nosideeffect)
4909      # After this tag, mechanisms are not by side-effect, so they'll
4910      # only be used when explicitly requested.
4911      if test "x$enable_dependency_tracking" = xyes; then
4912	continue
4913      else
4914	break
4915      fi
4916      ;;
4917    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4918      # This compiler won't grok '-c -o', but also, the minuso test has
4919      # not run yet.  These depmodes are late enough in the game, and
4920      # so weak that their functioning should not be impacted.
4921      am__obj=conftest.${OBJEXT-o}
4922      am__minus_obj=
4923      ;;
4924    none) break ;;
4925    esac
4926    if depmode=$depmode \
4927       source=sub/conftest.c object=$am__obj \
4928       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4929       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4930         >/dev/null 2>conftest.err &&
4931       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4932       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4933       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4934       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4935      # icc doesn't choke on unknown options, it will just issue warnings
4936      # or remarks (even with -Werror).  So we grep stderr for any message
4937      # that says an option was ignored or not supported.
4938      # When given -MP, icc 7.0 and 7.1 complain thusly:
4939      #   icc: Command line warning: ignoring option '-M'; no argument required
4940      # The diagnosis changed in icc 8.0:
4941      #   icc: Command line remark: option '-MP' not supported
4942      if (grep 'ignoring option' conftest.err ||
4943          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4944        am_cv_CXX_dependencies_compiler_type=$depmode
4945        break
4946      fi
4947    fi
4948  done
4949
4950  cd ..
4951  rm -rf conftest.dir
4952else
4953  am_cv_CXX_dependencies_compiler_type=none
4954fi
4955
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4958$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4959CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4960
4961 if
4962  test "x$enable_dependency_tracking" != xno \
4963  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4964  am__fastdepCXX_TRUE=
4965  am__fastdepCXX_FALSE='#'
4966else
4967  am__fastdepCXX_TRUE='#'
4968  am__fastdepCXX_FALSE=
4969fi
4970
4971
4972CFLAGS=$save_CFLAGS
4973
4974
4975
4976
4977
4978# By default we simply use the C compiler to build assembly code.
4979
4980test "${CCAS+set}" = set || CCAS=$CC
4981test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4982
4983
4984
4985depcc="$CCAS"   am_compiler_list=
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4988$as_echo_n "checking dependency style of $depcc... " >&6; }
4989if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4993  # We make a subdir and do the tests there.  Otherwise we can end up
4994  # making bogus files that we don't know about and never remove.  For
4995  # instance it was reported that on HP-UX the gcc test will end up
4996  # making a dummy file named 'D' -- because '-MD' means "put the output
4997  # in D".
4998  rm -rf conftest.dir
4999  mkdir conftest.dir
5000  # Copy depcomp to subdir because otherwise we won't find it if we're
5001  # using a relative directory.
5002  cp "$am_depcomp" conftest.dir
5003  cd conftest.dir
5004  # We will build objects and dependencies in a subdirectory because
5005  # it helps to detect inapplicable dependency modes.  For instance
5006  # both Tru64's cc and ICC support -MD to output dependencies as a
5007  # side effect of compilation, but ICC will put the dependencies in
5008  # the current directory while Tru64 will put them in the object
5009  # directory.
5010  mkdir sub
5011
5012  am_cv_CCAS_dependencies_compiler_type=none
5013  if test "$am_compiler_list" = ""; then
5014     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5015  fi
5016  am__universal=false
5017
5018
5019  for depmode in $am_compiler_list; do
5020    # Setup a source with many dependencies, because some compilers
5021    # like to wrap large dependency lists on column 80 (with \), and
5022    # we should not choose a depcomp mode which is confused by this.
5023    #
5024    # We need to recreate these files for each test, as the compiler may
5025    # overwrite some of them when testing with obscure command lines.
5026    # This happens at least with the AIX C compiler.
5027    : > sub/conftest.c
5028    for i in 1 2 3 4 5 6; do
5029      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5030      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5031      # Solaris 10 /bin/sh.
5032      echo '/* dummy */' > sub/conftst$i.h
5033    done
5034    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5035
5036    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5037    # mode.  It turns out that the SunPro C++ compiler does not properly
5038    # handle '-M -o', and we need to detect this.  Also, some Intel
5039    # versions had trouble with output in subdirs.
5040    am__obj=sub/conftest.${OBJEXT-o}
5041    am__minus_obj="-o $am__obj"
5042    case $depmode in
5043    gcc)
5044      # This depmode causes a compiler race in universal mode.
5045      test "$am__universal" = false || continue
5046      ;;
5047    nosideeffect)
5048      # After this tag, mechanisms are not by side-effect, so they'll
5049      # only be used when explicitly requested.
5050      if test "x$enable_dependency_tracking" = xyes; then
5051	continue
5052      else
5053	break
5054      fi
5055      ;;
5056    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5057      # This compiler won't grok '-c -o', but also, the minuso test has
5058      # not run yet.  These depmodes are late enough in the game, and
5059      # so weak that their functioning should not be impacted.
5060      am__obj=conftest.${OBJEXT-o}
5061      am__minus_obj=
5062      ;;
5063    none) break ;;
5064    esac
5065    if depmode=$depmode \
5066       source=sub/conftest.c object=$am__obj \
5067       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5068       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5069         >/dev/null 2>conftest.err &&
5070       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5071       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5072       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5073       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5074      # icc doesn't choke on unknown options, it will just issue warnings
5075      # or remarks (even with -Werror).  So we grep stderr for any message
5076      # that says an option was ignored or not supported.
5077      # When given -MP, icc 7.0 and 7.1 complain thusly:
5078      #   icc: Command line warning: ignoring option '-M'; no argument required
5079      # The diagnosis changed in icc 8.0:
5080      #   icc: Command line remark: option '-MP' not supported
5081      if (grep 'ignoring option' conftest.err ||
5082          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5083        am_cv_CCAS_dependencies_compiler_type=$depmode
5084        break
5085      fi
5086    fi
5087  done
5088
5089  cd ..
5090  rm -rf conftest.dir
5091else
5092  am_cv_CCAS_dependencies_compiler_type=none
5093fi
5094
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5097$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5098CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5099
5100 if
5101  test "x$enable_dependency_tracking" != xno \
5102  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5103  am__fastdepCCAS_TRUE=
5104  am__fastdepCCAS_FALSE='#'
5105else
5106  am__fastdepCCAS_TRUE='#'
5107  am__fastdepCCAS_FALSE=
5108fi
5109
5110
5111
5112case `pwd` in
5113  *\ * | *\	*)
5114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5115$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5116esac
5117
5118
5119
5120macro_version='2.4.2'
5121macro_revision='1.3337'
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135ltmain="$ac_aux_dir/ltmain.sh"
5136
5137# Backslashify metacharacters that are still active within
5138# double-quoted strings.
5139sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5140
5141# Same as above, but do not quote variable references.
5142double_quote_subst='s/\(["`\\]\)/\\\1/g'
5143
5144# Sed substitution to delay expansion of an escaped shell variable in a
5145# double_quote_subst'ed string.
5146delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5147
5148# Sed substitution to delay expansion of an escaped single quote.
5149delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5150
5151# Sed substitution to avoid accidental globbing in evaled expressions
5152no_glob_subst='s/\*/\\\*/g'
5153
5154ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5155ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5156ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5157
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5159$as_echo_n "checking how to print strings... " >&6; }
5160# Test print first, because it will be a builtin if present.
5161if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5162   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5163  ECHO='print -r --'
5164elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5165  ECHO='printf %s\n'
5166else
5167  # Use this function as a fallback that always works.
5168  func_fallback_echo ()
5169  {
5170    eval 'cat <<_LTECHO_EOF
5171$1
5172_LTECHO_EOF'
5173  }
5174  ECHO='func_fallback_echo'
5175fi
5176
5177# func_echo_all arg...
5178# Invoke $ECHO with all args, space-separated.
5179func_echo_all ()
5180{
5181    $ECHO ""
5182}
5183
5184case "$ECHO" in
5185  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5186$as_echo "printf" >&6; } ;;
5187  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5188$as_echo "print -r" >&6; } ;;
5189  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5190$as_echo "cat" >&6; } ;;
5191esac
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5207$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5208if ${ac_cv_path_SED+:} false; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5212     for ac_i in 1 2 3 4 5 6 7; do
5213       ac_script="$ac_script$as_nl$ac_script"
5214     done
5215     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5216     { ac_script=; unset ac_script;}
5217     if test -z "$SED"; then
5218  ac_path_SED_found=false
5219  # Loop through the user's path and test for each of PROGNAME-LIST
5220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225    for ac_prog in sed gsed; do
5226    for ac_exec_ext in '' $ac_executable_extensions; do
5227      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5228      as_fn_executable_p "$ac_path_SED" || continue
5229# Check for GNU ac_path_SED and select it if it is found.
5230  # Check for GNU $ac_path_SED
5231case `"$ac_path_SED" --version 2>&1` in
5232*GNU*)
5233  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5234*)
5235  ac_count=0
5236  $as_echo_n 0123456789 >"conftest.in"
5237  while :
5238  do
5239    cat "conftest.in" "conftest.in" >"conftest.tmp"
5240    mv "conftest.tmp" "conftest.in"
5241    cp "conftest.in" "conftest.nl"
5242    $as_echo '' >> "conftest.nl"
5243    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5244    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5245    as_fn_arith $ac_count + 1 && ac_count=$as_val
5246    if test $ac_count -gt ${ac_path_SED_max-0}; then
5247      # Best one so far, save it but keep looking for a better one
5248      ac_cv_path_SED="$ac_path_SED"
5249      ac_path_SED_max=$ac_count
5250    fi
5251    # 10*(2^10) chars as input seems more than enough
5252    test $ac_count -gt 10 && break
5253  done
5254  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5255esac
5256
5257      $ac_path_SED_found && break 3
5258    done
5259  done
5260  done
5261IFS=$as_save_IFS
5262  if test -z "$ac_cv_path_SED"; then
5263    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5264  fi
5265else
5266  ac_cv_path_SED=$SED
5267fi
5268
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5271$as_echo "$ac_cv_path_SED" >&6; }
5272 SED="$ac_cv_path_SED"
5273  rm -f conftest.sed
5274
5275test -z "$SED" && SED=sed
5276Xsed="$SED -e 1s/^X//"
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5289$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5290if ${ac_cv_path_GREP+:} false; then :
5291  $as_echo_n "(cached) " >&6
5292else
5293  if test -z "$GREP"; then
5294  ac_path_GREP_found=false
5295  # Loop through the user's path and test for each of PROGNAME-LIST
5296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5298do
5299  IFS=$as_save_IFS
5300  test -z "$as_dir" && as_dir=.
5301    for ac_prog in grep ggrep; do
5302    for ac_exec_ext in '' $ac_executable_extensions; do
5303      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5304      as_fn_executable_p "$ac_path_GREP" || continue
5305# Check for GNU ac_path_GREP and select it if it is found.
5306  # Check for GNU $ac_path_GREP
5307case `"$ac_path_GREP" --version 2>&1` in
5308*GNU*)
5309  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5310*)
5311  ac_count=0
5312  $as_echo_n 0123456789 >"conftest.in"
5313  while :
5314  do
5315    cat "conftest.in" "conftest.in" >"conftest.tmp"
5316    mv "conftest.tmp" "conftest.in"
5317    cp "conftest.in" "conftest.nl"
5318    $as_echo 'GREP' >> "conftest.nl"
5319    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321    as_fn_arith $ac_count + 1 && ac_count=$as_val
5322    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5323      # Best one so far, save it but keep looking for a better one
5324      ac_cv_path_GREP="$ac_path_GREP"
5325      ac_path_GREP_max=$ac_count
5326    fi
5327    # 10*(2^10) chars as input seems more than enough
5328    test $ac_count -gt 10 && break
5329  done
5330  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5331esac
5332
5333      $ac_path_GREP_found && break 3
5334    done
5335  done
5336  done
5337IFS=$as_save_IFS
5338  if test -z "$ac_cv_path_GREP"; then
5339    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5340  fi
5341else
5342  ac_cv_path_GREP=$GREP
5343fi
5344
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5347$as_echo "$ac_cv_path_GREP" >&6; }
5348 GREP="$ac_cv_path_GREP"
5349
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5352$as_echo_n "checking for egrep... " >&6; }
5353if ${ac_cv_path_EGREP+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5357   then ac_cv_path_EGREP="$GREP -E"
5358   else
5359     if test -z "$EGREP"; then
5360  ac_path_EGREP_found=false
5361  # Loop through the user's path and test for each of PROGNAME-LIST
5362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5364do
5365  IFS=$as_save_IFS
5366  test -z "$as_dir" && as_dir=.
5367    for ac_prog in egrep; do
5368    for ac_exec_ext in '' $ac_executable_extensions; do
5369      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5370      as_fn_executable_p "$ac_path_EGREP" || continue
5371# Check for GNU ac_path_EGREP and select it if it is found.
5372  # Check for GNU $ac_path_EGREP
5373case `"$ac_path_EGREP" --version 2>&1` in
5374*GNU*)
5375  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5376*)
5377  ac_count=0
5378  $as_echo_n 0123456789 >"conftest.in"
5379  while :
5380  do
5381    cat "conftest.in" "conftest.in" >"conftest.tmp"
5382    mv "conftest.tmp" "conftest.in"
5383    cp "conftest.in" "conftest.nl"
5384    $as_echo 'EGREP' >> "conftest.nl"
5385    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5386    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5387    as_fn_arith $ac_count + 1 && ac_count=$as_val
5388    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5389      # Best one so far, save it but keep looking for a better one
5390      ac_cv_path_EGREP="$ac_path_EGREP"
5391      ac_path_EGREP_max=$ac_count
5392    fi
5393    # 10*(2^10) chars as input seems more than enough
5394    test $ac_count -gt 10 && break
5395  done
5396  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397esac
5398
5399      $ac_path_EGREP_found && break 3
5400    done
5401  done
5402  done
5403IFS=$as_save_IFS
5404  if test -z "$ac_cv_path_EGREP"; then
5405    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5406  fi
5407else
5408  ac_cv_path_EGREP=$EGREP
5409fi
5410
5411   fi
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5414$as_echo "$ac_cv_path_EGREP" >&6; }
5415 EGREP="$ac_cv_path_EGREP"
5416
5417
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5419$as_echo_n "checking for fgrep... " >&6; }
5420if ${ac_cv_path_FGREP+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5424   then ac_cv_path_FGREP="$GREP -F"
5425   else
5426     if test -z "$FGREP"; then
5427  ac_path_FGREP_found=false
5428  # Loop through the user's path and test for each of PROGNAME-LIST
5429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5431do
5432  IFS=$as_save_IFS
5433  test -z "$as_dir" && as_dir=.
5434    for ac_prog in fgrep; do
5435    for ac_exec_ext in '' $ac_executable_extensions; do
5436      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5437      as_fn_executable_p "$ac_path_FGREP" || continue
5438# Check for GNU ac_path_FGREP and select it if it is found.
5439  # Check for GNU $ac_path_FGREP
5440case `"$ac_path_FGREP" --version 2>&1` in
5441*GNU*)
5442  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5443*)
5444  ac_count=0
5445  $as_echo_n 0123456789 >"conftest.in"
5446  while :
5447  do
5448    cat "conftest.in" "conftest.in" >"conftest.tmp"
5449    mv "conftest.tmp" "conftest.in"
5450    cp "conftest.in" "conftest.nl"
5451    $as_echo 'FGREP' >> "conftest.nl"
5452    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5453    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5454    as_fn_arith $ac_count + 1 && ac_count=$as_val
5455    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5456      # Best one so far, save it but keep looking for a better one
5457      ac_cv_path_FGREP="$ac_path_FGREP"
5458      ac_path_FGREP_max=$ac_count
5459    fi
5460    # 10*(2^10) chars as input seems more than enough
5461    test $ac_count -gt 10 && break
5462  done
5463  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5464esac
5465
5466      $ac_path_FGREP_found && break 3
5467    done
5468  done
5469  done
5470IFS=$as_save_IFS
5471  if test -z "$ac_cv_path_FGREP"; then
5472    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5473  fi
5474else
5475  ac_cv_path_FGREP=$FGREP
5476fi
5477
5478   fi
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5481$as_echo "$ac_cv_path_FGREP" >&6; }
5482 FGREP="$ac_cv_path_FGREP"
5483
5484
5485test -z "$GREP" && GREP=grep
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505# Check whether --with-gnu-ld was given.
5506if test "${with_gnu_ld+set}" = set; then :
5507  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5508else
5509  with_gnu_ld=no
5510fi
5511
5512ac_prog=ld
5513if test "$GCC" = yes; then
5514  # Check if gcc -print-prog-name=ld gives a path.
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5516$as_echo_n "checking for ld used by $CC... " >&6; }
5517  case $host in
5518  *-*-mingw*)
5519    # gcc leaves a trailing carriage return which upsets mingw
5520    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5521  *)
5522    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5523  esac
5524  case $ac_prog in
5525    # Accept absolute paths.
5526    [\\/]* | ?:[\\/]*)
5527      re_direlt='/[^/][^/]*/\.\./'
5528      # Canonicalize the pathname of ld
5529      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5530      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5531	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5532      done
5533      test -z "$LD" && LD="$ac_prog"
5534      ;;
5535  "")
5536    # If it fails, then pretend we aren't using GCC.
5537    ac_prog=ld
5538    ;;
5539  *)
5540    # If it is relative, then search for the first ld in PATH.
5541    with_gnu_ld=unknown
5542    ;;
5543  esac
5544elif test "$with_gnu_ld" = yes; then
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5546$as_echo_n "checking for GNU ld... " >&6; }
5547else
5548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5549$as_echo_n "checking for non-GNU ld... " >&6; }
5550fi
5551if ${lt_cv_path_LD+:} false; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554  if test -z "$LD"; then
5555  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556  for ac_dir in $PATH; do
5557    IFS="$lt_save_ifs"
5558    test -z "$ac_dir" && ac_dir=.
5559    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5560      lt_cv_path_LD="$ac_dir/$ac_prog"
5561      # Check to see if the program is GNU ld.  I'd rather use --version,
5562      # but apparently some variants of GNU ld only accept -v.
5563      # Break only if it was the GNU/non-GNU ld that we prefer.
5564      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5565      *GNU* | *'with BFD'*)
5566	test "$with_gnu_ld" != no && break
5567	;;
5568      *)
5569	test "$with_gnu_ld" != yes && break
5570	;;
5571      esac
5572    fi
5573  done
5574  IFS="$lt_save_ifs"
5575else
5576  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5577fi
5578fi
5579
5580LD="$lt_cv_path_LD"
5581if test -n "$LD"; then
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5583$as_echo "$LD" >&6; }
5584else
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586$as_echo "no" >&6; }
5587fi
5588test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5590$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5591if ${lt_cv_prog_gnu_ld+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5595case `$LD -v 2>&1 </dev/null` in
5596*GNU* | *'with BFD'*)
5597  lt_cv_prog_gnu_ld=yes
5598  ;;
5599*)
5600  lt_cv_prog_gnu_ld=no
5601  ;;
5602esac
5603fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5605$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5606with_gnu_ld=$lt_cv_prog_gnu_ld
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5617$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5618if ${lt_cv_path_NM+:} false; then :
5619  $as_echo_n "(cached) " >&6
5620else
5621  if test -n "$NM"; then
5622  # Let the user override the test.
5623  lt_cv_path_NM="$NM"
5624else
5625  lt_nm_to_check="${ac_tool_prefix}nm"
5626  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5627    lt_nm_to_check="$lt_nm_to_check nm"
5628  fi
5629  for lt_tmp_nm in $lt_nm_to_check; do
5630    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5631    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5632      IFS="$lt_save_ifs"
5633      test -z "$ac_dir" && ac_dir=.
5634      tmp_nm="$ac_dir/$lt_tmp_nm"
5635      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5636	# Check to see if the nm accepts a BSD-compat flag.
5637	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5638	#   nm: unknown option "B" ignored
5639	# Tru64's nm complains that /dev/null is an invalid object file
5640	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5641	*/dev/null* | *'Invalid file or object type'*)
5642	  lt_cv_path_NM="$tmp_nm -B"
5643	  break
5644	  ;;
5645	*)
5646	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5647	  */dev/null*)
5648	    lt_cv_path_NM="$tmp_nm -p"
5649	    break
5650	    ;;
5651	  *)
5652	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5653	    continue # so that we can try to find one that supports BSD flags
5654	    ;;
5655	  esac
5656	  ;;
5657	esac
5658      fi
5659    done
5660    IFS="$lt_save_ifs"
5661  done
5662  : ${lt_cv_path_NM=no}
5663fi
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5666$as_echo "$lt_cv_path_NM" >&6; }
5667if test "$lt_cv_path_NM" != "no"; then
5668  NM="$lt_cv_path_NM"
5669else
5670  # Didn't find any BSD compatible name lister, look for dumpbin.
5671  if test -n "$DUMPBIN"; then :
5672    # Let the user override the test.
5673  else
5674    if test -n "$ac_tool_prefix"; then
5675  for ac_prog in dumpbin "link -dump"
5676  do
5677    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
5681if ${ac_cv_prog_DUMPBIN+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  if test -n "$DUMPBIN"; then
5685  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690  IFS=$as_save_IFS
5691  test -z "$as_dir" && as_dir=.
5692    for ac_exec_ext in '' $ac_executable_extensions; do
5693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696    break 2
5697  fi
5698done
5699  done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704DUMPBIN=$ac_cv_prog_DUMPBIN
5705if test -n "$DUMPBIN"; then
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5707$as_echo "$DUMPBIN" >&6; }
5708else
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713
5714    test -n "$DUMPBIN" && break
5715  done
5716fi
5717if test -z "$DUMPBIN"; then
5718  ac_ct_DUMPBIN=$DUMPBIN
5719  for ac_prog in dumpbin "link -dump"
5720do
5721  # Extract the first word of "$ac_prog", so it can be a program name with args.
5722set dummy $ac_prog; ac_word=$2
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
5725if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  if test -n "$ac_ct_DUMPBIN"; then
5729  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736    for ac_exec_ext in '' $ac_executable_extensions; do
5737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740    break 2
5741  fi
5742done
5743  done
5744IFS=$as_save_IFS
5745
5746fi
5747fi
5748ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5749if test -n "$ac_ct_DUMPBIN"; then
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5751$as_echo "$ac_ct_DUMPBIN" >&6; }
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
5756
5757
5758  test -n "$ac_ct_DUMPBIN" && break
5759done
5760
5761  if test "x$ac_ct_DUMPBIN" = x; then
5762    DUMPBIN=":"
5763  else
5764    case $cross_compiling:$ac_tool_warned in
5765yes:)
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770    DUMPBIN=$ac_ct_DUMPBIN
5771  fi
5772fi
5773
5774    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5775    *COFF*)
5776      DUMPBIN="$DUMPBIN -symbols"
5777      ;;
5778    *)
5779      DUMPBIN=:
5780      ;;
5781    esac
5782  fi
5783
5784  if test "$DUMPBIN" != ":"; then
5785    NM="$DUMPBIN"
5786  fi
5787fi
5788test -z "$NM" && NM=nm
5789
5790
5791
5792
5793
5794
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5796$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5797if ${lt_cv_nm_interface+:} false; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  lt_cv_nm_interface="BSD nm"
5801  echo "int some_variable = 0;" > conftest.$ac_ext
5802  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5803  (eval "$ac_compile" 2>conftest.err)
5804  cat conftest.err >&5
5805  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5806  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5807  cat conftest.err >&5
5808  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5809  cat conftest.out >&5
5810  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5811    lt_cv_nm_interface="MS dumpbin"
5812  fi
5813  rm -f conftest*
5814fi
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5816$as_echo "$lt_cv_nm_interface" >&6; }
5817
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5819$as_echo_n "checking whether ln -s works... " >&6; }
5820LN_S=$as_ln_s
5821if test "$LN_S" = "ln -s"; then
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823$as_echo "yes" >&6; }
5824else
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5826$as_echo "no, using $LN_S" >&6; }
5827fi
5828
5829# find the maximum length of command line arguments
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5831$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5832if ${lt_cv_sys_max_cmd_len+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835    i=0
5836  teststring="ABCD"
5837
5838  case $build_os in
5839  msdosdjgpp*)
5840    # On DJGPP, this test can blow up pretty badly due to problems in libc
5841    # (any single argument exceeding 2000 bytes causes a buffer overrun
5842    # during glob expansion).  Even if it were fixed, the result of this
5843    # check would be larger than it should be.
5844    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5845    ;;
5846
5847  gnu*)
5848    # Under GNU Hurd, this test is not required because there is
5849    # no limit to the length of command line arguments.
5850    # Libtool will interpret -1 as no limit whatsoever
5851    lt_cv_sys_max_cmd_len=-1;
5852    ;;
5853
5854  cygwin* | mingw* | cegcc*)
5855    # On Win9x/ME, this test blows up -- it succeeds, but takes
5856    # about 5 minutes as the teststring grows exponentially.
5857    # Worse, since 9x/ME are not pre-emptively multitasking,
5858    # you end up with a "frozen" computer, even though with patience
5859    # the test eventually succeeds (with a max line length of 256k).
5860    # Instead, let's just punt: use the minimum linelength reported by
5861    # all of the supported platforms: 8192 (on NT/2K/XP).
5862    lt_cv_sys_max_cmd_len=8192;
5863    ;;
5864
5865  mint*)
5866    # On MiNT this can take a long time and run out of memory.
5867    lt_cv_sys_max_cmd_len=8192;
5868    ;;
5869
5870  amigaos*)
5871    # On AmigaOS with pdksh, this test takes hours, literally.
5872    # So we just punt and use a minimum line length of 8192.
5873    lt_cv_sys_max_cmd_len=8192;
5874    ;;
5875
5876  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5877    # This has been around since 386BSD, at least.  Likely further.
5878    if test -x /sbin/sysctl; then
5879      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5880    elif test -x /usr/sbin/sysctl; then
5881      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5882    else
5883      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5884    fi
5885    # And add a safety zone
5886    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5887    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5888    ;;
5889
5890  interix*)
5891    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5892    lt_cv_sys_max_cmd_len=196608
5893    ;;
5894
5895  os2*)
5896    # The test takes a long time on OS/2.
5897    lt_cv_sys_max_cmd_len=8192
5898    ;;
5899
5900  osf*)
5901    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5902    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5903    # nice to cause kernel panics so lets avoid the loop below.
5904    # First set a reasonable default.
5905    lt_cv_sys_max_cmd_len=16384
5906    #
5907    if test -x /sbin/sysconfig; then
5908      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5909        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5910      esac
5911    fi
5912    ;;
5913  sco3.2v5*)
5914    lt_cv_sys_max_cmd_len=102400
5915    ;;
5916  sysv5* | sco5v6* | sysv4.2uw2*)
5917    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5918    if test -n "$kargmax"; then
5919      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5920    else
5921      lt_cv_sys_max_cmd_len=32768
5922    fi
5923    ;;
5924  *)
5925    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5926    if test -n "$lt_cv_sys_max_cmd_len" && \
5927	test undefined != "$lt_cv_sys_max_cmd_len"; then
5928      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5929      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5930    else
5931      # Make teststring a little bigger before we do anything with it.
5932      # a 1K string should be a reasonable start.
5933      for i in 1 2 3 4 5 6 7 8 ; do
5934        teststring=$teststring$teststring
5935      done
5936      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5937      # If test is not a shell built-in, we'll probably end up computing a
5938      # maximum length that is only half of the actual maximum length, but
5939      # we can't tell.
5940      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5941	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5942	      test $i != 17 # 1/2 MB should be enough
5943      do
5944        i=`expr $i + 1`
5945        teststring=$teststring$teststring
5946      done
5947      # Only check the string length outside the loop.
5948      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5949      teststring=
5950      # Add a significant safety factor because C++ compilers can tack on
5951      # massive amounts of additional arguments before passing them to the
5952      # linker.  It appears as though 1/2 is a usable value.
5953      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5954    fi
5955    ;;
5956  esac
5957
5958fi
5959
5960if test -n $lt_cv_sys_max_cmd_len ; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5962$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5965$as_echo "none" >&6; }
5966fi
5967max_cmd_len=$lt_cv_sys_max_cmd_len
5968
5969
5970
5971
5972
5973
5974: ${CP="cp -f"}
5975: ${MV="mv -f"}
5976: ${RM="rm -f"}
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5979$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5980# Try some XSI features
5981xsi_shell=no
5982( _lt_dummy="a/b/c"
5983  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5984      = c,a/b,b/c, \
5985    && eval 'test $(( 1 + 1 )) -eq 2 \
5986    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5987  && xsi_shell=yes
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5989$as_echo "$xsi_shell" >&6; }
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5993$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5994lt_shell_append=no
5995( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5996    >/dev/null 2>&1 \
5997  && lt_shell_append=yes
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5999$as_echo "$lt_shell_append" >&6; }
6000
6001
6002if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6003  lt_unset=unset
6004else
6005  lt_unset=false
6006fi
6007
6008
6009
6010
6011
6012# test EBCDIC or ASCII
6013case `echo X|tr X '\101'` in
6014 A) # ASCII based system
6015    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6016  lt_SP2NL='tr \040 \012'
6017  lt_NL2SP='tr \015\012 \040\040'
6018  ;;
6019 *) # EBCDIC based system
6020  lt_SP2NL='tr \100 \n'
6021  lt_NL2SP='tr \r\n \100\100'
6022  ;;
6023esac
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6034$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6035if ${lt_cv_to_host_file_cmd+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  case $host in
6039  *-*-mingw* )
6040    case $build in
6041      *-*-mingw* ) # actually msys
6042        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6043        ;;
6044      *-*-cygwin* )
6045        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6046        ;;
6047      * ) # otherwise, assume *nix
6048        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6049        ;;
6050    esac
6051    ;;
6052  *-*-cygwin* )
6053    case $build in
6054      *-*-mingw* ) # actually msys
6055        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6056        ;;
6057      *-*-cygwin* )
6058        lt_cv_to_host_file_cmd=func_convert_file_noop
6059        ;;
6060      * ) # otherwise, assume *nix
6061        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6062        ;;
6063    esac
6064    ;;
6065  * ) # unhandled hosts (and "normal" native builds)
6066    lt_cv_to_host_file_cmd=func_convert_file_noop
6067    ;;
6068esac
6069
6070fi
6071
6072to_host_file_cmd=$lt_cv_to_host_file_cmd
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6074$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6075
6076
6077
6078
6079
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6081$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6082if ${lt_cv_to_tool_file_cmd+:} false; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085  #assume ordinary cross tools, or native build.
6086lt_cv_to_tool_file_cmd=func_convert_file_noop
6087case $host in
6088  *-*-mingw* )
6089    case $build in
6090      *-*-mingw* ) # actually msys
6091        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6092        ;;
6093    esac
6094    ;;
6095esac
6096
6097fi
6098
6099to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6101$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6102
6103
6104
6105
6106
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6108$as_echo_n "checking for $LD option to reload object files... " >&6; }
6109if ${lt_cv_ld_reload_flag+:} false; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112  lt_cv_ld_reload_flag='-r'
6113fi
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6115$as_echo "$lt_cv_ld_reload_flag" >&6; }
6116reload_flag=$lt_cv_ld_reload_flag
6117case $reload_flag in
6118"" | " "*) ;;
6119*) reload_flag=" $reload_flag" ;;
6120esac
6121reload_cmds='$LD$reload_flag -o $output$reload_objs'
6122case $host_os in
6123  cygwin* | mingw* | pw32* | cegcc*)
6124    if test "$GCC" != yes; then
6125      reload_cmds=false
6126    fi
6127    ;;
6128  darwin*)
6129    if test "$GCC" = yes; then
6130      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6131    else
6132      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6133    fi
6134    ;;
6135esac
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145if test -n "$ac_tool_prefix"; then
6146  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6147set dummy ${ac_tool_prefix}objdump; ac_word=$2
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149$as_echo_n "checking for $ac_word... " >&6; }
6150if ${ac_cv_prog_OBJDUMP+:} false; then :
6151  $as_echo_n "(cached) " >&6
6152else
6153  if test -n "$OBJDUMP"; then
6154  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6155else
6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159  IFS=$as_save_IFS
6160  test -z "$as_dir" && as_dir=.
6161    for ac_exec_ext in '' $ac_executable_extensions; do
6162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165    break 2
6166  fi
6167done
6168  done
6169IFS=$as_save_IFS
6170
6171fi
6172fi
6173OBJDUMP=$ac_cv_prog_OBJDUMP
6174if test -n "$OBJDUMP"; then
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6176$as_echo "$OBJDUMP" >&6; }
6177else
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180fi
6181
6182
6183fi
6184if test -z "$ac_cv_prog_OBJDUMP"; then
6185  ac_ct_OBJDUMP=$OBJDUMP
6186  # Extract the first word of "objdump", so it can be a program name with args.
6187set dummy objdump; ac_word=$2
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189$as_echo_n "checking for $ac_word... " >&6; }
6190if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  if test -n "$ac_ct_OBJDUMP"; then
6194  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199  IFS=$as_save_IFS
6200  test -z "$as_dir" && as_dir=.
6201    for ac_exec_ext in '' $ac_executable_extensions; do
6202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205    break 2
6206  fi
6207done
6208  done
6209IFS=$as_save_IFS
6210
6211fi
6212fi
6213ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6214if test -n "$ac_ct_OBJDUMP"; then
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6216$as_echo "$ac_ct_OBJDUMP" >&6; }
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219$as_echo "no" >&6; }
6220fi
6221
6222  if test "x$ac_ct_OBJDUMP" = x; then
6223    OBJDUMP="false"
6224  else
6225    case $cross_compiling:$ac_tool_warned in
6226yes:)
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6229ac_tool_warned=yes ;;
6230esac
6231    OBJDUMP=$ac_ct_OBJDUMP
6232  fi
6233else
6234  OBJDUMP="$ac_cv_prog_OBJDUMP"
6235fi
6236
6237test -z "$OBJDUMP" && OBJDUMP=objdump
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6248$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6249if ${lt_cv_deplibs_check_method+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  lt_cv_file_magic_cmd='$MAGIC_CMD'
6253lt_cv_file_magic_test_file=
6254lt_cv_deplibs_check_method='unknown'
6255# Need to set the preceding variable on all platforms that support
6256# interlibrary dependencies.
6257# 'none' -- dependencies not supported.
6258# `unknown' -- same as none, but documents that we really don't know.
6259# 'pass_all' -- all dependencies passed with no checks.
6260# 'test_compile' -- check by making test program.
6261# 'file_magic [[regex]]' -- check by looking for files in library path
6262# which responds to the $file_magic_cmd with a given extended regex.
6263# If you have `file' or equivalent on your system and you're not sure
6264# whether `pass_all' will *always* work, you probably want this one.
6265
6266case $host_os in
6267aix[4-9]*)
6268  lt_cv_deplibs_check_method=pass_all
6269  ;;
6270
6271beos*)
6272  lt_cv_deplibs_check_method=pass_all
6273  ;;
6274
6275bsdi[45]*)
6276  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6277  lt_cv_file_magic_cmd='/usr/bin/file -L'
6278  lt_cv_file_magic_test_file=/shlib/libc.so
6279  ;;
6280
6281cygwin*)
6282  # func_win32_libid is a shell function defined in ltmain.sh
6283  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6284  lt_cv_file_magic_cmd='func_win32_libid'
6285  ;;
6286
6287mingw* | pw32*)
6288  # Base MSYS/MinGW do not provide the 'file' command needed by
6289  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6290  # unless we find 'file', for example because we are cross-compiling.
6291  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6292  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6293    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6294    lt_cv_file_magic_cmd='func_win32_libid'
6295  else
6296    # Keep this pattern in sync with the one in func_win32_libid.
6297    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6298    lt_cv_file_magic_cmd='$OBJDUMP -f'
6299  fi
6300  ;;
6301
6302cegcc*)
6303  # use the weaker test based on 'objdump'. See mingw*.
6304  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6305  lt_cv_file_magic_cmd='$OBJDUMP -f'
6306  ;;
6307
6308darwin* | rhapsody*)
6309  lt_cv_deplibs_check_method=pass_all
6310  ;;
6311
6312freebsd* | dragonfly*)
6313  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6314    case $host_cpu in
6315    i*86 )
6316      # Not sure whether the presence of OpenBSD here was a mistake.
6317      # Let's accept both of them until this is cleared up.
6318      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6319      lt_cv_file_magic_cmd=/usr/bin/file
6320      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6321      ;;
6322    esac
6323  else
6324    lt_cv_deplibs_check_method=pass_all
6325  fi
6326  ;;
6327
6328haiku*)
6329  lt_cv_deplibs_check_method=pass_all
6330  ;;
6331
6332hpux10.20* | hpux11*)
6333  lt_cv_file_magic_cmd=/usr/bin/file
6334  case $host_cpu in
6335  ia64*)
6336    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6337    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6338    ;;
6339  hppa*64*)
6340    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]'
6341    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6342    ;;
6343  *)
6344    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6345    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6346    ;;
6347  esac
6348  ;;
6349
6350interix[3-9]*)
6351  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6352  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6353  ;;
6354
6355irix5* | irix6* | nonstopux*)
6356  case $LD in
6357  *-32|*"-32 ") libmagic=32-bit;;
6358  *-n32|*"-n32 ") libmagic=N32;;
6359  *-64|*"-64 ") libmagic=64-bit;;
6360  *) libmagic=never-match;;
6361  esac
6362  lt_cv_deplibs_check_method=pass_all
6363  ;;
6364
6365# This must be glibc/ELF.
6366linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6367  lt_cv_deplibs_check_method=pass_all
6368  ;;
6369
6370netbsd* | netbsdelf*-gnu)
6371  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6373  else
6374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6375  fi
6376  ;;
6377
6378newos6*)
6379  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6380  lt_cv_file_magic_cmd=/usr/bin/file
6381  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6382  ;;
6383
6384*nto* | *qnx*)
6385  lt_cv_deplibs_check_method=pass_all
6386  ;;
6387
6388openbsd*)
6389  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6390    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6391  else
6392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6393  fi
6394  ;;
6395
6396osf3* | osf4* | osf5*)
6397  lt_cv_deplibs_check_method=pass_all
6398  ;;
6399
6400rdos*)
6401  lt_cv_deplibs_check_method=pass_all
6402  ;;
6403
6404solaris*)
6405  lt_cv_deplibs_check_method=pass_all
6406  ;;
6407
6408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6409  lt_cv_deplibs_check_method=pass_all
6410  ;;
6411
6412sysv4 | sysv4.3*)
6413  case $host_vendor in
6414  motorola)
6415    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]'
6416    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6417    ;;
6418  ncr)
6419    lt_cv_deplibs_check_method=pass_all
6420    ;;
6421  sequent)
6422    lt_cv_file_magic_cmd='/bin/file'
6423    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6424    ;;
6425  sni)
6426    lt_cv_file_magic_cmd='/bin/file'
6427    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6428    lt_cv_file_magic_test_file=/lib/libc.so
6429    ;;
6430  siemens)
6431    lt_cv_deplibs_check_method=pass_all
6432    ;;
6433  pc)
6434    lt_cv_deplibs_check_method=pass_all
6435    ;;
6436  esac
6437  ;;
6438
6439tpf*)
6440  lt_cv_deplibs_check_method=pass_all
6441  ;;
6442esac
6443
6444fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6446$as_echo "$lt_cv_deplibs_check_method" >&6; }
6447
6448file_magic_glob=
6449want_nocaseglob=no
6450if test "$build" = "$host"; then
6451  case $host_os in
6452  mingw* | pw32*)
6453    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6454      want_nocaseglob=yes
6455    else
6456      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6457    fi
6458    ;;
6459  esac
6460fi
6461
6462file_magic_cmd=$lt_cv_file_magic_cmd
6463deplibs_check_method=$lt_cv_deplibs_check_method
6464test -z "$deplibs_check_method" && deplibs_check_method=unknown
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487if test -n "$ac_tool_prefix"; then
6488  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6489set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
6492if ${ac_cv_prog_DLLTOOL+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  if test -n "$DLLTOOL"; then
6496  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  test -z "$as_dir" && as_dir=.
6503    for ac_exec_ext in '' $ac_executable_extensions; do
6504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507    break 2
6508  fi
6509done
6510  done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515DLLTOOL=$ac_cv_prog_DLLTOOL
6516if test -n "$DLLTOOL"; then
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6518$as_echo "$DLLTOOL" >&6; }
6519else
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525fi
6526if test -z "$ac_cv_prog_DLLTOOL"; then
6527  ac_ct_DLLTOOL=$DLLTOOL
6528  # Extract the first word of "dlltool", so it can be a program name with args.
6529set dummy dlltool; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
6532if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  if test -n "$ac_ct_DLLTOOL"; then
6536  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6556if test -n "$ac_ct_DLLTOOL"; then
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6558$as_echo "$ac_ct_DLLTOOL" >&6; }
6559else
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564  if test "x$ac_ct_DLLTOOL" = x; then
6565    DLLTOOL="false"
6566  else
6567    case $cross_compiling:$ac_tool_warned in
6568yes:)
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571ac_tool_warned=yes ;;
6572esac
6573    DLLTOOL=$ac_ct_DLLTOOL
6574  fi
6575else
6576  DLLTOOL="$ac_cv_prog_DLLTOOL"
6577fi
6578
6579test -z "$DLLTOOL" && DLLTOOL=dlltool
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6591$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6592if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  lt_cv_sharedlib_from_linklib_cmd='unknown'
6596
6597case $host_os in
6598cygwin* | mingw* | pw32* | cegcc*)
6599  # two different shell functions defined in ltmain.sh
6600  # decide which to use based on capabilities of $DLLTOOL
6601  case `$DLLTOOL --help 2>&1` in
6602  *--identify-strict*)
6603    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6604    ;;
6605  *)
6606    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6607    ;;
6608  esac
6609  ;;
6610*)
6611  # fallback: assume linklib IS sharedlib
6612  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6613  ;;
6614esac
6615
6616fi
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6618$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6619sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6620test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6621
6622
6623
6624
6625
6626
6627
6628
6629if test -n "$ac_tool_prefix"; then
6630  for ac_prog in ar
6631  do
6632    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635$as_echo_n "checking for $ac_word... " >&6; }
6636if ${ac_cv_prog_AR+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  if test -n "$AR"; then
6640  ac_cv_prog_AR="$AR" # Let the user override the test.
6641else
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645  IFS=$as_save_IFS
6646  test -z "$as_dir" && as_dir=.
6647    for ac_exec_ext in '' $ac_executable_extensions; do
6648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651    break 2
6652  fi
6653done
6654  done
6655IFS=$as_save_IFS
6656
6657fi
6658fi
6659AR=$ac_cv_prog_AR
6660if test -n "$AR"; then
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6662$as_echo "$AR" >&6; }
6663else
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667
6668
6669    test -n "$AR" && break
6670  done
6671fi
6672if test -z "$AR"; then
6673  ac_ct_AR=$AR
6674  for ac_prog in ar
6675do
6676  # Extract the first word of "$ac_prog", so it can be a program name with args.
6677set dummy $ac_prog; ac_word=$2
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679$as_echo_n "checking for $ac_word... " >&6; }
6680if ${ac_cv_prog_ac_ct_AR+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  if test -n "$ac_ct_AR"; then
6684  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691    for ac_exec_ext in '' $ac_executable_extensions; do
6692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693    ac_cv_prog_ac_ct_AR="$ac_prog"
6694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695    break 2
6696  fi
6697done
6698  done
6699IFS=$as_save_IFS
6700
6701fi
6702fi
6703ac_ct_AR=$ac_cv_prog_ac_ct_AR
6704if test -n "$ac_ct_AR"; then
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6706$as_echo "$ac_ct_AR" >&6; }
6707else
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
6710fi
6711
6712
6713  test -n "$ac_ct_AR" && break
6714done
6715
6716  if test "x$ac_ct_AR" = x; then
6717    AR="false"
6718  else
6719    case $cross_compiling:$ac_tool_warned in
6720yes:)
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723ac_tool_warned=yes ;;
6724esac
6725    AR=$ac_ct_AR
6726  fi
6727fi
6728
6729: ${AR=ar}
6730: ${AR_FLAGS=cru}
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6743$as_echo_n "checking for archiver @FILE support... " >&6; }
6744if ${lt_cv_ar_at_file+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  lt_cv_ar_at_file=no
6748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750
6751int
6752main ()
6753{
6754
6755  ;
6756  return 0;
6757}
6758_ACEOF
6759if ac_fn_c_try_compile "$LINENO"; then :
6760  echo conftest.$ac_objext > conftest.lst
6761      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6762      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6763  (eval $lt_ar_try) 2>&5
6764  ac_status=$?
6765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766  test $ac_status = 0; }
6767      if test "$ac_status" -eq 0; then
6768	# Ensure the archiver fails upon bogus file names.
6769	rm -f conftest.$ac_objext libconftest.a
6770	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6771  (eval $lt_ar_try) 2>&5
6772  ac_status=$?
6773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774  test $ac_status = 0; }
6775	if test "$ac_status" -ne 0; then
6776          lt_cv_ar_at_file=@
6777        fi
6778      fi
6779      rm -f conftest.* libconftest.a
6780
6781fi
6782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6786$as_echo "$lt_cv_ar_at_file" >&6; }
6787
6788if test "x$lt_cv_ar_at_file" = xno; then
6789  archiver_list_spec=
6790else
6791  archiver_list_spec=$lt_cv_ar_at_file
6792fi
6793
6794
6795
6796
6797
6798
6799
6800if test -n "$ac_tool_prefix"; then
6801  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6802set dummy ${ac_tool_prefix}strip; ac_word=$2
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804$as_echo_n "checking for $ac_word... " >&6; }
6805if ${ac_cv_prog_STRIP+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  if test -n "$STRIP"; then
6809  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814  IFS=$as_save_IFS
6815  test -z "$as_dir" && as_dir=.
6816    for ac_exec_ext in '' $ac_executable_extensions; do
6817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820    break 2
6821  fi
6822done
6823  done
6824IFS=$as_save_IFS
6825
6826fi
6827fi
6828STRIP=$ac_cv_prog_STRIP
6829if test -n "$STRIP"; then
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6831$as_echo "$STRIP" >&6; }
6832else
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
6837
6838fi
6839if test -z "$ac_cv_prog_STRIP"; then
6840  ac_ct_STRIP=$STRIP
6841  # Extract the first word of "strip", so it can be a program name with args.
6842set dummy strip; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$ac_ct_STRIP"; then
6849  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_ac_ct_STRIP="strip"
6859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6869if test -n "$ac_ct_STRIP"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6871$as_echo "$ac_ct_STRIP" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877  if test "x$ac_ct_STRIP" = x; then
6878    STRIP=":"
6879  else
6880    case $cross_compiling:$ac_tool_warned in
6881yes:)
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884ac_tool_warned=yes ;;
6885esac
6886    STRIP=$ac_ct_STRIP
6887  fi
6888else
6889  STRIP="$ac_cv_prog_STRIP"
6890fi
6891
6892test -z "$STRIP" && STRIP=:
6893
6894
6895
6896
6897
6898
6899if test -n "$ac_tool_prefix"; then
6900  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if ${ac_cv_prog_RANLIB+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  if test -n "$RANLIB"; then
6908  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  test -z "$as_dir" && as_dir=.
6915    for ac_exec_ext in '' $ac_executable_extensions; do
6916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919    break 2
6920  fi
6921done
6922  done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927RANLIB=$ac_cv_prog_RANLIB
6928if test -n "$RANLIB"; then
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6930$as_echo "$RANLIB" >&6; }
6931else
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
6938if test -z "$ac_cv_prog_RANLIB"; then
6939  ac_ct_RANLIB=$RANLIB
6940  # Extract the first word of "ranlib", so it can be a program name with args.
6941set dummy ranlib; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$ac_ct_RANLIB"; then
6948  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_ac_ct_RANLIB="ranlib"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968if test -n "$ac_ct_RANLIB"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6970$as_echo "$ac_ct_RANLIB" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976  if test "x$ac_ct_RANLIB" = x; then
6977    RANLIB=":"
6978  else
6979    case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985    RANLIB=$ac_ct_RANLIB
6986  fi
6987else
6988  RANLIB="$ac_cv_prog_RANLIB"
6989fi
6990
6991test -z "$RANLIB" && RANLIB=:
6992
6993
6994
6995
6996
6997
6998# Determine commands to create old-style static archives.
6999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7000old_postinstall_cmds='chmod 644 $oldlib'
7001old_postuninstall_cmds=
7002
7003if test -n "$RANLIB"; then
7004  case $host_os in
7005  openbsd*)
7006    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7007    ;;
7008  *)
7009    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7010    ;;
7011  esac
7012  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7013fi
7014
7015case $host_os in
7016  darwin*)
7017    lock_old_archive_extraction=yes ;;
7018  *)
7019    lock_old_archive_extraction=no ;;
7020esac
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060# If no C compiler was specified, use CC.
7061LTCC=${LTCC-"$CC"}
7062
7063# If no C compiler flags were specified, use CFLAGS.
7064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7065
7066# Allow CC to be a program name with arguments.
7067compiler=$CC
7068
7069
7070# Check for command to grab the raw symbol name followed by C symbol from nm.
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7072$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7073if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076
7077# These are sane defaults that work on at least a few old systems.
7078# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7079
7080# Character class describing NM global symbol codes.
7081symcode='[BCDEGRST]'
7082
7083# Regexp to match symbols that can be accessed directly from C.
7084sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7085
7086# Define system-specific variables.
7087case $host_os in
7088aix*)
7089  symcode='[BCDT]'
7090  ;;
7091cygwin* | mingw* | pw32* | cegcc*)
7092  symcode='[ABCDGISTW]'
7093  ;;
7094hpux*)
7095  if test "$host_cpu" = ia64; then
7096    symcode='[ABCDEGRST]'
7097  fi
7098  ;;
7099irix* | nonstopux*)
7100  symcode='[BCDEGRST]'
7101  ;;
7102osf*)
7103  symcode='[BCDEGQRST]'
7104  ;;
7105solaris*)
7106  symcode='[BDRT]'
7107  ;;
7108sco3.2v5*)
7109  symcode='[DT]'
7110  ;;
7111sysv4.2uw2*)
7112  symcode='[DT]'
7113  ;;
7114sysv5* | sco5v6* | unixware* | OpenUNIX*)
7115  symcode='[ABDT]'
7116  ;;
7117sysv4)
7118  symcode='[DFNSTU]'
7119  ;;
7120esac
7121
7122# If we're using GNU nm, then use its standard symbol codes.
7123case `$NM -V 2>&1` in
7124*GNU* | *'with BFD'*)
7125  symcode='[ABCDGIRSTW]' ;;
7126esac
7127
7128# Transform an extracted symbol line into a proper C declaration.
7129# Some systems (esp. on ia64) link data and code symbols differently,
7130# so use this general approach.
7131lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7132
7133# Transform an extracted symbol line into symbol name and symbol address
7134lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7135lt_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'"
7136
7137# Handle CRLF in mingw tool chain
7138opt_cr=
7139case $build_os in
7140mingw*)
7141  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7142  ;;
7143esac
7144
7145# Try without a prefix underscore, then with it.
7146for ac_symprfx in "" "_"; do
7147
7148  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7149  symxfrm="\\1 $ac_symprfx\\2 \\2"
7150
7151  # Write the raw and C identifiers.
7152  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7153    # Fake it for dumpbin and say T for any non-static function
7154    # and D for any global variable.
7155    # Also find C++ and __fastcall symbols from MSVC++,
7156    # which start with @ or ?.
7157    lt_cv_sys_global_symbol_pipe="$AWK '"\
7158"     {last_section=section; section=\$ 3};"\
7159"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7160"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7161"     \$ 0!~/External *\|/{next};"\
7162"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7163"     {if(hide[section]) next};"\
7164"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7165"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7166"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7167"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7168"     ' prfx=^$ac_symprfx"
7169  else
7170    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7171  fi
7172  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7173
7174  # Check to see that the pipe works correctly.
7175  pipe_works=no
7176
7177  rm -f conftest*
7178  cat > conftest.$ac_ext <<_LT_EOF
7179#ifdef __cplusplus
7180extern "C" {
7181#endif
7182char nm_test_var;
7183void nm_test_func(void);
7184void nm_test_func(void){}
7185#ifdef __cplusplus
7186}
7187#endif
7188int main(){nm_test_var='a';nm_test_func();return(0);}
7189_LT_EOF
7190
7191  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7192  (eval $ac_compile) 2>&5
7193  ac_status=$?
7194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195  test $ac_status = 0; }; then
7196    # Now try to grab the symbols.
7197    nlist=conftest.nm
7198    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7199  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7200  ac_status=$?
7201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202  test $ac_status = 0; } && test -s "$nlist"; then
7203      # Try sorting and uniquifying the output.
7204      if sort "$nlist" | uniq > "$nlist"T; then
7205	mv -f "$nlist"T "$nlist"
7206      else
7207	rm -f "$nlist"T
7208      fi
7209
7210      # Make sure that we snagged all the symbols we need.
7211      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7212	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7213	  cat <<_LT_EOF > conftest.$ac_ext
7214/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7215#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7216/* DATA imports from DLLs on WIN32 con't be const, because runtime
7217   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7218# define LT_DLSYM_CONST
7219#elif defined(__osf__)
7220/* This system does not cope well with relocations in const data.  */
7221# define LT_DLSYM_CONST
7222#else
7223# define LT_DLSYM_CONST const
7224#endif
7225
7226#ifdef __cplusplus
7227extern "C" {
7228#endif
7229
7230_LT_EOF
7231	  # Now generate the symbol file.
7232	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7233
7234	  cat <<_LT_EOF >> conftest.$ac_ext
7235
7236/* The mapping between symbol names and symbols.  */
7237LT_DLSYM_CONST struct {
7238  const char *name;
7239  void       *address;
7240}
7241lt__PROGRAM__LTX_preloaded_symbols[] =
7242{
7243  { "@PROGRAM@", (void *) 0 },
7244_LT_EOF
7245	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7246	  cat <<\_LT_EOF >> conftest.$ac_ext
7247  {0, (void *) 0}
7248};
7249
7250/* This works around a problem in FreeBSD linker */
7251#ifdef FREEBSD_WORKAROUND
7252static const void *lt_preloaded_setup() {
7253  return lt__PROGRAM__LTX_preloaded_symbols;
7254}
7255#endif
7256
7257#ifdef __cplusplus
7258}
7259#endif
7260_LT_EOF
7261	  # Now try linking the two files.
7262	  mv conftest.$ac_objext conftstm.$ac_objext
7263	  lt_globsym_save_LIBS=$LIBS
7264	  lt_globsym_save_CFLAGS=$CFLAGS
7265	  LIBS="conftstm.$ac_objext"
7266	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7267	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7268  (eval $ac_link) 2>&5
7269  ac_status=$?
7270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7272	    pipe_works=yes
7273	  fi
7274	  LIBS=$lt_globsym_save_LIBS
7275	  CFLAGS=$lt_globsym_save_CFLAGS
7276	else
7277	  echo "cannot find nm_test_func in $nlist" >&5
7278	fi
7279      else
7280	echo "cannot find nm_test_var in $nlist" >&5
7281      fi
7282    else
7283      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7284    fi
7285  else
7286    echo "$progname: failed program was:" >&5
7287    cat conftest.$ac_ext >&5
7288  fi
7289  rm -rf conftest* conftst*
7290
7291  # Do not use the global_symbol_pipe unless it works.
7292  if test "$pipe_works" = yes; then
7293    break
7294  else
7295    lt_cv_sys_global_symbol_pipe=
7296  fi
7297done
7298
7299fi
7300
7301if test -z "$lt_cv_sys_global_symbol_pipe"; then
7302  lt_cv_sys_global_symbol_to_cdecl=
7303fi
7304if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7306$as_echo "failed" >&6; }
7307else
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7309$as_echo "ok" >&6; }
7310fi
7311
7312# Response file support.
7313if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7314  nm_file_list_spec='@'
7315elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7316  nm_file_list_spec='@'
7317fi
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7346$as_echo_n "checking for sysroot... " >&6; }
7347
7348# Check whether --with-sysroot was given.
7349if test "${with_sysroot+set}" = set; then :
7350  withval=$with_sysroot;
7351else
7352  with_sysroot=no
7353fi
7354
7355
7356lt_sysroot=
7357case ${with_sysroot} in #(
7358 yes)
7359   if test "$GCC" = yes; then
7360     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7361   fi
7362   ;; #(
7363 /*)
7364   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7365   ;; #(
7366 no|'')
7367   ;; #(
7368 *)
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7370$as_echo "${with_sysroot}" >&6; }
7371   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7372   ;;
7373esac
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7376$as_echo "${lt_sysroot:-no}" >&6; }
7377
7378
7379
7380
7381
7382# Check whether --enable-libtool-lock was given.
7383if test "${enable_libtool_lock+set}" = set; then :
7384  enableval=$enable_libtool_lock;
7385fi
7386
7387test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7388
7389# Some flags need to be propagated to the compiler or linker for good
7390# libtool support.
7391case $host in
7392ia64-*-hpux*)
7393  # Find out which ABI we are using.
7394  echo 'int i;' > conftest.$ac_ext
7395  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396  (eval $ac_compile) 2>&5
7397  ac_status=$?
7398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399  test $ac_status = 0; }; then
7400    case `/usr/bin/file conftest.$ac_objext` in
7401      *ELF-32*)
7402	HPUX_IA64_MODE="32"
7403	;;
7404      *ELF-64*)
7405	HPUX_IA64_MODE="64"
7406	;;
7407    esac
7408  fi
7409  rm -rf conftest*
7410  ;;
7411*-*-irix6*)
7412  # Find out which ABI we are using.
7413  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7414  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7415  (eval $ac_compile) 2>&5
7416  ac_status=$?
7417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418  test $ac_status = 0; }; then
7419    if test "$lt_cv_prog_gnu_ld" = yes; then
7420      case `/usr/bin/file conftest.$ac_objext` in
7421	*32-bit*)
7422	  LD="${LD-ld} -melf32bsmip"
7423	  ;;
7424	*N32*)
7425	  LD="${LD-ld} -melf32bmipn32"
7426	  ;;
7427	*64-bit*)
7428	  LD="${LD-ld} -melf64bmip"
7429	;;
7430      esac
7431    else
7432      case `/usr/bin/file conftest.$ac_objext` in
7433	*32-bit*)
7434	  LD="${LD-ld} -32"
7435	  ;;
7436	*N32*)
7437	  LD="${LD-ld} -n32"
7438	  ;;
7439	*64-bit*)
7440	  LD="${LD-ld} -64"
7441	  ;;
7442      esac
7443    fi
7444  fi
7445  rm -rf conftest*
7446  ;;
7447
7448x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7449s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7450  # Find out which ABI we are using.
7451  echo 'int i;' > conftest.$ac_ext
7452  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7453  (eval $ac_compile) 2>&5
7454  ac_status=$?
7455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7456  test $ac_status = 0; }; then
7457    case `/usr/bin/file conftest.o` in
7458      *32-bit*)
7459	case $host in
7460	  x86_64-*kfreebsd*-gnu)
7461	    LD="${LD-ld} -m elf_i386_fbsd"
7462	    ;;
7463	  x86_64-*linux*)
7464	    case `/usr/bin/file conftest.o` in
7465	      *x86-64*)
7466		LD="${LD-ld} -m elf32_x86_64"
7467		;;
7468	      *)
7469		LD="${LD-ld} -m elf_i386"
7470		;;
7471	    esac
7472	    ;;
7473	  powerpc64le-*)
7474	    LD="${LD-ld} -m elf32lppclinux"
7475	    ;;
7476	  powerpc64-*)
7477	    LD="${LD-ld} -m elf32ppclinux"
7478	    ;;
7479	  s390x-*linux*)
7480	    LD="${LD-ld} -m elf_s390"
7481	    ;;
7482	  sparc64-*linux*)
7483	    LD="${LD-ld} -m elf32_sparc"
7484	    ;;
7485	esac
7486	;;
7487      *64-bit*)
7488	case $host in
7489	  x86_64-*kfreebsd*-gnu)
7490	    LD="${LD-ld} -m elf_x86_64_fbsd"
7491	    ;;
7492	  x86_64-*linux*)
7493	    LD="${LD-ld} -m elf_x86_64"
7494	    ;;
7495	  powerpcle-*)
7496	    LD="${LD-ld} -m elf64lppc"
7497	    ;;
7498	  powerpc-*)
7499	    LD="${LD-ld} -m elf64ppc"
7500	    ;;
7501	  s390*-*linux*|s390*-*tpf*)
7502	    LD="${LD-ld} -m elf64_s390"
7503	    ;;
7504	  sparc*-*linux*)
7505	    LD="${LD-ld} -m elf64_sparc"
7506	    ;;
7507	esac
7508	;;
7509    esac
7510  fi
7511  rm -rf conftest*
7512  ;;
7513
7514*-*-sco3.2v5*)
7515  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7516  SAVE_CFLAGS="$CFLAGS"
7517  CFLAGS="$CFLAGS -belf"
7518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7519$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7520if ${lt_cv_cc_needs_belf+:} false; then :
7521  $as_echo_n "(cached) " >&6
7522else
7523  ac_ext=c
7524ac_cpp='$CPP $CPPFLAGS'
7525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528
7529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531
7532int
7533main ()
7534{
7535
7536  ;
7537  return 0;
7538}
7539_ACEOF
7540if ac_fn_c_try_link "$LINENO"; then :
7541  lt_cv_cc_needs_belf=yes
7542else
7543  lt_cv_cc_needs_belf=no
7544fi
7545rm -f core conftest.err conftest.$ac_objext \
7546    conftest$ac_exeext conftest.$ac_ext
7547     ac_ext=c
7548ac_cpp='$CPP $CPPFLAGS'
7549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7555$as_echo "$lt_cv_cc_needs_belf" >&6; }
7556  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7557    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7558    CFLAGS="$SAVE_CFLAGS"
7559  fi
7560  ;;
7561*-*solaris*)
7562  # Find out which ABI we are using.
7563  echo 'int i;' > conftest.$ac_ext
7564  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7565  (eval $ac_compile) 2>&5
7566  ac_status=$?
7567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568  test $ac_status = 0; }; then
7569    case `/usr/bin/file conftest.o` in
7570    *64-bit*)
7571      case $lt_cv_prog_gnu_ld in
7572      yes*)
7573        case $host in
7574        i?86-*-solaris*)
7575          LD="${LD-ld} -m elf_x86_64"
7576          ;;
7577        sparc*-*-solaris*)
7578          LD="${LD-ld} -m elf64_sparc"
7579          ;;
7580        esac
7581        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7582        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7583          LD="${LD-ld}_sol2"
7584        fi
7585        ;;
7586      *)
7587	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7588	  LD="${LD-ld} -64"
7589	fi
7590	;;
7591      esac
7592      ;;
7593    esac
7594  fi
7595  rm -rf conftest*
7596  ;;
7597esac
7598
7599need_locks="$enable_libtool_lock"
7600
7601if test -n "$ac_tool_prefix"; then
7602  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}mt; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  if test -n "$MANIFEST_TOOL"; then
7610  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617    for ac_exec_ext in '' $ac_executable_extensions; do
7618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624  done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7630if test -n "$MANIFEST_TOOL"; then
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7632$as_echo "$MANIFEST_TOOL" >&6; }
7633else
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638
7639fi
7640if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7641  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7642  # Extract the first word of "mt", so it can be a program name with args.
7643set dummy mt; ac_word=$2
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645$as_echo_n "checking for $ac_word... " >&6; }
7646if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  if test -n "$ac_ct_MANIFEST_TOOL"; then
7650  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655  IFS=$as_save_IFS
7656  test -z "$as_dir" && as_dir=.
7657    for ac_exec_ext in '' $ac_executable_extensions; do
7658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661    break 2
7662  fi
7663done
7664  done
7665IFS=$as_save_IFS
7666
7667fi
7668fi
7669ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7670if test -n "$ac_ct_MANIFEST_TOOL"; then
7671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7672$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7673else
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
7677
7678  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7679    MANIFEST_TOOL=":"
7680  else
7681    case $cross_compiling:$ac_tool_warned in
7682yes:)
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685ac_tool_warned=yes ;;
7686esac
7687    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7688  fi
7689else
7690  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7691fi
7692
7693test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7695$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7696if ${lt_cv_path_mainfest_tool+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  lt_cv_path_mainfest_tool=no
7700  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7701  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7702  cat conftest.err >&5
7703  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7704    lt_cv_path_mainfest_tool=yes
7705  fi
7706  rm -f conftest*
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7709$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7710if test "x$lt_cv_path_mainfest_tool" != xyes; then
7711  MANIFEST_TOOL=:
7712fi
7713
7714
7715
7716
7717
7718
7719  case $host_os in
7720    rhapsody* | darwin*)
7721    if test -n "$ac_tool_prefix"; then
7722  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7723set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
7726if ${ac_cv_prog_DSYMUTIL+:} false; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  if test -n "$DSYMUTIL"; then
7730  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7731else
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735  IFS=$as_save_IFS
7736  test -z "$as_dir" && as_dir=.
7737    for ac_exec_ext in '' $ac_executable_extensions; do
7738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741    break 2
7742  fi
7743done
7744  done
7745IFS=$as_save_IFS
7746
7747fi
7748fi
7749DSYMUTIL=$ac_cv_prog_DSYMUTIL
7750if test -n "$DSYMUTIL"; then
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7752$as_echo "$DSYMUTIL" >&6; }
7753else
7754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
7756fi
7757
7758
7759fi
7760if test -z "$ac_cv_prog_DSYMUTIL"; then
7761  ac_ct_DSYMUTIL=$DSYMUTIL
7762  # Extract the first word of "dsymutil", so it can be a program name with args.
7763set dummy dsymutil; ac_word=$2
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765$as_echo_n "checking for $ac_word... " >&6; }
7766if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  if test -n "$ac_ct_DSYMUTIL"; then
7770  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775  IFS=$as_save_IFS
7776  test -z "$as_dir" && as_dir=.
7777    for ac_exec_ext in '' $ac_executable_extensions; do
7778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781    break 2
7782  fi
7783done
7784  done
7785IFS=$as_save_IFS
7786
7787fi
7788fi
7789ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7790if test -n "$ac_ct_DSYMUTIL"; then
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7792$as_echo "$ac_ct_DSYMUTIL" >&6; }
7793else
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797
7798  if test "x$ac_ct_DSYMUTIL" = x; then
7799    DSYMUTIL=":"
7800  else
7801    case $cross_compiling:$ac_tool_warned in
7802yes:)
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805ac_tool_warned=yes ;;
7806esac
7807    DSYMUTIL=$ac_ct_DSYMUTIL
7808  fi
7809else
7810  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7811fi
7812
7813    if test -n "$ac_tool_prefix"; then
7814  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7815set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817$as_echo_n "checking for $ac_word... " >&6; }
7818if ${ac_cv_prog_NMEDIT+:} false; then :
7819  $as_echo_n "(cached) " >&6
7820else
7821  if test -n "$NMEDIT"; then
7822  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7823else
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827  IFS=$as_save_IFS
7828  test -z "$as_dir" && as_dir=.
7829    for ac_exec_ext in '' $ac_executable_extensions; do
7830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833    break 2
7834  fi
7835done
7836  done
7837IFS=$as_save_IFS
7838
7839fi
7840fi
7841NMEDIT=$ac_cv_prog_NMEDIT
7842if test -n "$NMEDIT"; then
7843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7844$as_echo "$NMEDIT" >&6; }
7845else
7846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
7848fi
7849
7850
7851fi
7852if test -z "$ac_cv_prog_NMEDIT"; then
7853  ac_ct_NMEDIT=$NMEDIT
7854  # Extract the first word of "nmedit", so it can be a program name with args.
7855set dummy nmedit; ac_word=$2
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857$as_echo_n "checking for $ac_word... " >&6; }
7858if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  if test -n "$ac_ct_NMEDIT"; then
7862  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7863else
7864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865for as_dir in $PATH
7866do
7867  IFS=$as_save_IFS
7868  test -z "$as_dir" && as_dir=.
7869    for ac_exec_ext in '' $ac_executable_extensions; do
7870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873    break 2
7874  fi
7875done
7876  done
7877IFS=$as_save_IFS
7878
7879fi
7880fi
7881ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7882if test -n "$ac_ct_NMEDIT"; then
7883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7884$as_echo "$ac_ct_NMEDIT" >&6; }
7885else
7886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888fi
7889
7890  if test "x$ac_ct_NMEDIT" = x; then
7891    NMEDIT=":"
7892  else
7893    case $cross_compiling:$ac_tool_warned in
7894yes:)
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897ac_tool_warned=yes ;;
7898esac
7899    NMEDIT=$ac_ct_NMEDIT
7900  fi
7901else
7902  NMEDIT="$ac_cv_prog_NMEDIT"
7903fi
7904
7905    if test -n "$ac_tool_prefix"; then
7906  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7907set dummy ${ac_tool_prefix}lipo; ac_word=$2
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
7910if ${ac_cv_prog_LIPO+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  if test -n "$LIPO"; then
7914  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7915else
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919  IFS=$as_save_IFS
7920  test -z "$as_dir" && as_dir=.
7921    for ac_exec_ext in '' $ac_executable_extensions; do
7922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925    break 2
7926  fi
7927done
7928  done
7929IFS=$as_save_IFS
7930
7931fi
7932fi
7933LIPO=$ac_cv_prog_LIPO
7934if test -n "$LIPO"; then
7935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7936$as_echo "$LIPO" >&6; }
7937else
7938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
7940fi
7941
7942
7943fi
7944if test -z "$ac_cv_prog_LIPO"; then
7945  ac_ct_LIPO=$LIPO
7946  # Extract the first word of "lipo", so it can be a program name with args.
7947set dummy lipo; ac_word=$2
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  if test -n "$ac_ct_LIPO"; then
7954  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959  IFS=$as_save_IFS
7960  test -z "$as_dir" && as_dir=.
7961    for ac_exec_ext in '' $ac_executable_extensions; do
7962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963    ac_cv_prog_ac_ct_LIPO="lipo"
7964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965    break 2
7966  fi
7967done
7968  done
7969IFS=$as_save_IFS
7970
7971fi
7972fi
7973ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7974if test -n "$ac_ct_LIPO"; then
7975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7976$as_echo "$ac_ct_LIPO" >&6; }
7977else
7978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980fi
7981
7982  if test "x$ac_ct_LIPO" = x; then
7983    LIPO=":"
7984  else
7985    case $cross_compiling:$ac_tool_warned in
7986yes:)
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989ac_tool_warned=yes ;;
7990esac
7991    LIPO=$ac_ct_LIPO
7992  fi
7993else
7994  LIPO="$ac_cv_prog_LIPO"
7995fi
7996
7997    if test -n "$ac_tool_prefix"; then
7998  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7999set dummy ${ac_tool_prefix}otool; ac_word=$2
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
8002if ${ac_cv_prog_OTOOL+:} false; then :
8003  $as_echo_n "(cached) " >&6
8004else
8005  if test -n "$OTOOL"; then
8006  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8007else
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011  IFS=$as_save_IFS
8012  test -z "$as_dir" && as_dir=.
8013    for ac_exec_ext in '' $ac_executable_extensions; do
8014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017    break 2
8018  fi
8019done
8020  done
8021IFS=$as_save_IFS
8022
8023fi
8024fi
8025OTOOL=$ac_cv_prog_OTOOL
8026if test -n "$OTOOL"; then
8027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8028$as_echo "$OTOOL" >&6; }
8029else
8030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
8032fi
8033
8034
8035fi
8036if test -z "$ac_cv_prog_OTOOL"; then
8037  ac_ct_OTOOL=$OTOOL
8038  # Extract the first word of "otool", so it can be a program name with args.
8039set dummy otool; ac_word=$2
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041$as_echo_n "checking for $ac_word... " >&6; }
8042if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  if test -n "$ac_ct_OTOOL"; then
8046  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8047else
8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049for as_dir in $PATH
8050do
8051  IFS=$as_save_IFS
8052  test -z "$as_dir" && as_dir=.
8053    for ac_exec_ext in '' $ac_executable_extensions; do
8054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055    ac_cv_prog_ac_ct_OTOOL="otool"
8056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057    break 2
8058  fi
8059done
8060  done
8061IFS=$as_save_IFS
8062
8063fi
8064fi
8065ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8066if test -n "$ac_ct_OTOOL"; then
8067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8068$as_echo "$ac_ct_OTOOL" >&6; }
8069else
8070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071$as_echo "no" >&6; }
8072fi
8073
8074  if test "x$ac_ct_OTOOL" = x; then
8075    OTOOL=":"
8076  else
8077    case $cross_compiling:$ac_tool_warned in
8078yes:)
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081ac_tool_warned=yes ;;
8082esac
8083    OTOOL=$ac_ct_OTOOL
8084  fi
8085else
8086  OTOOL="$ac_cv_prog_OTOOL"
8087fi
8088
8089    if test -n "$ac_tool_prefix"; then
8090  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8091set dummy ${ac_tool_prefix}otool64; ac_word=$2
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093$as_echo_n "checking for $ac_word... " >&6; }
8094if ${ac_cv_prog_OTOOL64+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097  if test -n "$OTOOL64"; then
8098  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103  IFS=$as_save_IFS
8104  test -z "$as_dir" && as_dir=.
8105    for ac_exec_ext in '' $ac_executable_extensions; do
8106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109    break 2
8110  fi
8111done
8112  done
8113IFS=$as_save_IFS
8114
8115fi
8116fi
8117OTOOL64=$ac_cv_prog_OTOOL64
8118if test -n "$OTOOL64"; then
8119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8120$as_echo "$OTOOL64" >&6; }
8121else
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127fi
8128if test -z "$ac_cv_prog_OTOOL64"; then
8129  ac_ct_OTOOL64=$OTOOL64
8130  # Extract the first word of "otool64", so it can be a program name with args.
8131set dummy otool64; ac_word=$2
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8135  $as_echo_n "(cached) " >&6
8136else
8137  if test -n "$ac_ct_OTOOL64"; then
8138  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143  IFS=$as_save_IFS
8144  test -z "$as_dir" && as_dir=.
8145    for ac_exec_ext in '' $ac_executable_extensions; do
8146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147    ac_cv_prog_ac_ct_OTOOL64="otool64"
8148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149    break 2
8150  fi
8151done
8152  done
8153IFS=$as_save_IFS
8154
8155fi
8156fi
8157ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8158if test -n "$ac_ct_OTOOL64"; then
8159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8160$as_echo "$ac_ct_OTOOL64" >&6; }
8161else
8162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
8164fi
8165
8166  if test "x$ac_ct_OTOOL64" = x; then
8167    OTOOL64=":"
8168  else
8169    case $cross_compiling:$ac_tool_warned in
8170yes:)
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173ac_tool_warned=yes ;;
8174esac
8175    OTOOL64=$ac_ct_OTOOL64
8176  fi
8177else
8178  OTOOL64="$ac_cv_prog_OTOOL64"
8179fi
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8208$as_echo_n "checking for -single_module linker flag... " >&6; }
8209if ${lt_cv_apple_cc_single_mod+:} false; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212  lt_cv_apple_cc_single_mod=no
8213      if test -z "${LT_MULTI_MODULE}"; then
8214	# By default we will add the -single_module flag. You can override
8215	# by either setting the environment variable LT_MULTI_MODULE
8216	# non-empty at configure time, or by adding -multi_module to the
8217	# link flags.
8218	rm -rf libconftest.dylib*
8219	echo "int foo(void){return 1;}" > conftest.c
8220	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8221-dynamiclib -Wl,-single_module conftest.c" >&5
8222	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8223	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8224        _lt_result=$?
8225	# If there is a non-empty error log, and "single_module"
8226	# appears in it, assume the flag caused a linker warning
8227        if test -s conftest.err && $GREP single_module conftest.err; then
8228	  cat conftest.err >&5
8229	# Otherwise, if the output was created with a 0 exit code from
8230	# the compiler, it worked.
8231	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8232	  lt_cv_apple_cc_single_mod=yes
8233	else
8234	  cat conftest.err >&5
8235	fi
8236	rm -rf libconftest.dylib*
8237	rm -f conftest.*
8238      fi
8239fi
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8241$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8242
8243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8244$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8245if ${lt_cv_ld_exported_symbols_list+:} false; then :
8246  $as_echo_n "(cached) " >&6
8247else
8248  lt_cv_ld_exported_symbols_list=no
8249      save_LDFLAGS=$LDFLAGS
8250      echo "_main" > conftest.sym
8251      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8252      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h.  */
8254
8255int
8256main ()
8257{
8258
8259  ;
8260  return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_link "$LINENO"; then :
8264  lt_cv_ld_exported_symbols_list=yes
8265else
8266  lt_cv_ld_exported_symbols_list=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext \
8269    conftest$ac_exeext conftest.$ac_ext
8270	LDFLAGS="$save_LDFLAGS"
8271
8272fi
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8274$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8275
8276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8277$as_echo_n "checking for -force_load linker flag... " >&6; }
8278if ${lt_cv_ld_force_load+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  lt_cv_ld_force_load=no
8282      cat > conftest.c << _LT_EOF
8283int forced_loaded() { return 2;}
8284_LT_EOF
8285      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8286      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8287      echo "$AR cru libconftest.a conftest.o" >&5
8288      $AR cru libconftest.a conftest.o 2>&5
8289      echo "$RANLIB libconftest.a" >&5
8290      $RANLIB libconftest.a 2>&5
8291      cat > conftest.c << _LT_EOF
8292int main() { return 0;}
8293_LT_EOF
8294      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8295      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8296      _lt_result=$?
8297      if test -s conftest.err && $GREP force_load conftest.err; then
8298	cat conftest.err >&5
8299      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8300	lt_cv_ld_force_load=yes
8301      else
8302	cat conftest.err >&5
8303      fi
8304        rm -f conftest.err libconftest.a conftest conftest.c
8305        rm -rf conftest.dSYM
8306
8307fi
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8309$as_echo "$lt_cv_ld_force_load" >&6; }
8310    case $host_os in
8311    rhapsody* | darwin1.[012])
8312      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8313    darwin1.*)
8314      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8315    darwin*) # darwin 5.x on
8316      # if running on 10.5 or later, the deployment target defaults
8317      # to the OS version, if on x86, and 10.4, the deployment
8318      # target defaults to 10.4. Don't you love it?
8319      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8320	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8321	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8322	10.[012]*)
8323	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8324	10.*)
8325	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8326      esac
8327    ;;
8328  esac
8329    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8330      _lt_dar_single_mod='$single_module'
8331    fi
8332    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8333      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8334    else
8335      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8336    fi
8337    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8338      _lt_dsymutil='~$DSYMUTIL $lib || :'
8339    else
8340      _lt_dsymutil=
8341    fi
8342    ;;
8343  esac
8344
8345ac_ext=c
8346ac_cpp='$CPP $CPPFLAGS'
8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8351$as_echo_n "checking how to run the C preprocessor... " >&6; }
8352# On Suns, sometimes $CPP names a directory.
8353if test -n "$CPP" && test -d "$CPP"; then
8354  CPP=
8355fi
8356if test -z "$CPP"; then
8357  if ${ac_cv_prog_CPP+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360      # Double quotes because CPP needs to be expanded
8361    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8362    do
8363      ac_preproc_ok=false
8364for ac_c_preproc_warn_flag in '' yes
8365do
8366  # Use a header file that comes with gcc, so configuring glibc
8367  # with a fresh cross-compiler works.
8368  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8369  # <limits.h> exists even on freestanding compilers.
8370  # On the NeXT, cc -E runs the code through the compiler's parser,
8371  # not just through cpp. "Syntax error" is here to catch this case.
8372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h.  */
8374#ifdef __STDC__
8375# include <limits.h>
8376#else
8377# include <assert.h>
8378#endif
8379		     Syntax error
8380_ACEOF
8381if ac_fn_c_try_cpp "$LINENO"; then :
8382
8383else
8384  # Broken: fails on valid input.
8385continue
8386fi
8387rm -f conftest.err conftest.i conftest.$ac_ext
8388
8389  # OK, works on sane cases.  Now check whether nonexistent headers
8390  # can be detected and how.
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393#include <ac_nonexistent.h>
8394_ACEOF
8395if ac_fn_c_try_cpp "$LINENO"; then :
8396  # Broken: success on invalid input.
8397continue
8398else
8399  # Passes both tests.
8400ac_preproc_ok=:
8401break
8402fi
8403rm -f conftest.err conftest.i conftest.$ac_ext
8404
8405done
8406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8407rm -f conftest.i conftest.err conftest.$ac_ext
8408if $ac_preproc_ok; then :
8409  break
8410fi
8411
8412    done
8413    ac_cv_prog_CPP=$CPP
8414
8415fi
8416  CPP=$ac_cv_prog_CPP
8417else
8418  ac_cv_prog_CPP=$CPP
8419fi
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8421$as_echo "$CPP" >&6; }
8422ac_preproc_ok=false
8423for ac_c_preproc_warn_flag in '' yes
8424do
8425  # Use a header file that comes with gcc, so configuring glibc
8426  # with a fresh cross-compiler works.
8427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8428  # <limits.h> exists even on freestanding compilers.
8429  # On the NeXT, cc -E runs the code through the compiler's parser,
8430  # not just through cpp. "Syntax error" is here to catch this case.
8431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h.  */
8433#ifdef __STDC__
8434# include <limits.h>
8435#else
8436# include <assert.h>
8437#endif
8438		     Syntax error
8439_ACEOF
8440if ac_fn_c_try_cpp "$LINENO"; then :
8441
8442else
8443  # Broken: fails on valid input.
8444continue
8445fi
8446rm -f conftest.err conftest.i conftest.$ac_ext
8447
8448  # OK, works on sane cases.  Now check whether nonexistent headers
8449  # can be detected and how.
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452#include <ac_nonexistent.h>
8453_ACEOF
8454if ac_fn_c_try_cpp "$LINENO"; then :
8455  # Broken: success on invalid input.
8456continue
8457else
8458  # Passes both tests.
8459ac_preproc_ok=:
8460break
8461fi
8462rm -f conftest.err conftest.i conftest.$ac_ext
8463
8464done
8465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8466rm -f conftest.i conftest.err conftest.$ac_ext
8467if $ac_preproc_ok; then :
8468
8469else
8470  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8472as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8473See \`config.log' for more details" "$LINENO" 5; }
8474fi
8475
8476ac_ext=c
8477ac_cpp='$CPP $CPPFLAGS'
8478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481
8482
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8484$as_echo_n "checking for ANSI C header files... " >&6; }
8485if ${ac_cv_header_stdc+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490#include <stdlib.h>
8491#include <stdarg.h>
8492#include <string.h>
8493#include <float.h>
8494
8495int
8496main ()
8497{
8498
8499  ;
8500  return 0;
8501}
8502_ACEOF
8503if ac_fn_c_try_compile "$LINENO"; then :
8504  ac_cv_header_stdc=yes
8505else
8506  ac_cv_header_stdc=no
8507fi
8508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509
8510if test $ac_cv_header_stdc = yes; then
8511  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514#include <string.h>
8515
8516_ACEOF
8517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518  $EGREP "memchr" >/dev/null 2>&1; then :
8519
8520else
8521  ac_cv_header_stdc=no
8522fi
8523rm -f conftest*
8524
8525fi
8526
8527if test $ac_cv_header_stdc = yes; then
8528  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h.  */
8531#include <stdlib.h>
8532
8533_ACEOF
8534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8535  $EGREP "free" >/dev/null 2>&1; then :
8536
8537else
8538  ac_cv_header_stdc=no
8539fi
8540rm -f conftest*
8541
8542fi
8543
8544if test $ac_cv_header_stdc = yes; then
8545  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8546  if test "$cross_compiling" = yes; then :
8547  :
8548else
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551#include <ctype.h>
8552#include <stdlib.h>
8553#if ((' ' & 0x0FF) == 0x020)
8554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8556#else
8557# define ISLOWER(c) \
8558		   (('a' <= (c) && (c) <= 'i') \
8559		     || ('j' <= (c) && (c) <= 'r') \
8560		     || ('s' <= (c) && (c) <= 'z'))
8561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8562#endif
8563
8564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8565int
8566main ()
8567{
8568  int i;
8569  for (i = 0; i < 256; i++)
8570    if (XOR (islower (i), ISLOWER (i))
8571	|| toupper (i) != TOUPPER (i))
8572      return 2;
8573  return 0;
8574}
8575_ACEOF
8576if ac_fn_c_try_run "$LINENO"; then :
8577
8578else
8579  ac_cv_header_stdc=no
8580fi
8581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8582  conftest.$ac_objext conftest.beam conftest.$ac_ext
8583fi
8584
8585fi
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8588$as_echo "$ac_cv_header_stdc" >&6; }
8589if test $ac_cv_header_stdc = yes; then
8590
8591$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8592
8593fi
8594
8595# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8596for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8597		  inttypes.h stdint.h unistd.h
8598do :
8599  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8600ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8601"
8602if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8603  cat >>confdefs.h <<_ACEOF
8604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605_ACEOF
8606
8607fi
8608
8609done
8610
8611
8612for ac_header in dlfcn.h
8613do :
8614  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8615"
8616if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8617  cat >>confdefs.h <<_ACEOF
8618#define HAVE_DLFCN_H 1
8619_ACEOF
8620
8621fi
8622
8623done
8624
8625
8626
8627
8628func_stripname_cnf ()
8629{
8630  case ${2} in
8631  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8632  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8633  esac
8634} # func_stripname_cnf
8635
8636
8637
8638
8639
8640# Set options
8641
8642
8643
8644        enable_dlopen=no
8645
8646
8647  enable_win32_dll=no
8648
8649
8650            # Check whether --enable-shared was given.
8651if test "${enable_shared+set}" = set; then :
8652  enableval=$enable_shared; p=${PACKAGE-default}
8653    case $enableval in
8654    yes) enable_shared=yes ;;
8655    no) enable_shared=no ;;
8656    *)
8657      enable_shared=no
8658      # Look at the argument we got.  We use all the common list separators.
8659      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8660      for pkg in $enableval; do
8661	IFS="$lt_save_ifs"
8662	if test "X$pkg" = "X$p"; then
8663	  enable_shared=yes
8664	fi
8665      done
8666      IFS="$lt_save_ifs"
8667      ;;
8668    esac
8669else
8670  enable_shared=yes
8671fi
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681  # Check whether --enable-static was given.
8682if test "${enable_static+set}" = set; then :
8683  enableval=$enable_static; p=${PACKAGE-default}
8684    case $enableval in
8685    yes) enable_static=yes ;;
8686    no) enable_static=no ;;
8687    *)
8688     enable_static=no
8689      # Look at the argument we got.  We use all the common list separators.
8690      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8691      for pkg in $enableval; do
8692	IFS="$lt_save_ifs"
8693	if test "X$pkg" = "X$p"; then
8694	  enable_static=yes
8695	fi
8696      done
8697      IFS="$lt_save_ifs"
8698      ;;
8699    esac
8700else
8701  enable_static=yes
8702fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713# Check whether --with-pic was given.
8714if test "${with_pic+set}" = set; then :
8715  withval=$with_pic; lt_p=${PACKAGE-default}
8716    case $withval in
8717    yes|no) pic_mode=$withval ;;
8718    *)
8719      pic_mode=default
8720      # Look at the argument we got.  We use all the common list separators.
8721      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8722      for lt_pkg in $withval; do
8723	IFS="$lt_save_ifs"
8724	if test "X$lt_pkg" = "X$lt_p"; then
8725	  pic_mode=yes
8726	fi
8727      done
8728      IFS="$lt_save_ifs"
8729      ;;
8730    esac
8731else
8732  pic_mode=default
8733fi
8734
8735
8736test -z "$pic_mode" && pic_mode=default
8737
8738
8739
8740
8741
8742
8743
8744  # Check whether --enable-fast-install was given.
8745if test "${enable_fast_install+set}" = set; then :
8746  enableval=$enable_fast_install; p=${PACKAGE-default}
8747    case $enableval in
8748    yes) enable_fast_install=yes ;;
8749    no) enable_fast_install=no ;;
8750    *)
8751      enable_fast_install=no
8752      # Look at the argument we got.  We use all the common list separators.
8753      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8754      for pkg in $enableval; do
8755	IFS="$lt_save_ifs"
8756	if test "X$pkg" = "X$p"; then
8757	  enable_fast_install=yes
8758	fi
8759      done
8760      IFS="$lt_save_ifs"
8761      ;;
8762    esac
8763else
8764  enable_fast_install=yes
8765fi
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777# This can be used to rebuild libtool when needed
8778LIBTOOL_DEPS="$ltmain"
8779
8780# Always use our own libtool.
8781LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812test -z "$LN_S" && LN_S="ln -s"
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827if test -n "${ZSH_VERSION+set}" ; then
8828   setopt NO_GLOB_SUBST
8829fi
8830
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8832$as_echo_n "checking for objdir... " >&6; }
8833if ${lt_cv_objdir+:} false; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  rm -f .libs 2>/dev/null
8837mkdir .libs 2>/dev/null
8838if test -d .libs; then
8839  lt_cv_objdir=.libs
8840else
8841  # MS-DOS does not allow filenames that begin with a dot.
8842  lt_cv_objdir=_libs
8843fi
8844rmdir .libs 2>/dev/null
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8847$as_echo "$lt_cv_objdir" >&6; }
8848objdir=$lt_cv_objdir
8849
8850
8851
8852
8853
8854cat >>confdefs.h <<_ACEOF
8855#define LT_OBJDIR "$lt_cv_objdir/"
8856_ACEOF
8857
8858
8859
8860
8861case $host_os in
8862aix3*)
8863  # AIX sometimes has problems with the GCC collect2 program.  For some
8864  # reason, if we set the COLLECT_NAMES environment variable, the problems
8865  # vanish in a puff of smoke.
8866  if test "X${COLLECT_NAMES+set}" != Xset; then
8867    COLLECT_NAMES=
8868    export COLLECT_NAMES
8869  fi
8870  ;;
8871esac
8872
8873# Global variables:
8874ofile=libtool
8875can_build_shared=yes
8876
8877# All known linkers require a `.a' archive for static linking (except MSVC,
8878# which needs '.lib').
8879libext=a
8880
8881with_gnu_ld="$lt_cv_prog_gnu_ld"
8882
8883old_CC="$CC"
8884old_CFLAGS="$CFLAGS"
8885
8886# Set sane defaults for various variables
8887test -z "$CC" && CC=cc
8888test -z "$LTCC" && LTCC=$CC
8889test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8890test -z "$LD" && LD=ld
8891test -z "$ac_objext" && ac_objext=o
8892
8893for cc_temp in $compiler""; do
8894  case $cc_temp in
8895    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8896    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8897    \-*) ;;
8898    *) break;;
8899  esac
8900done
8901cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8902
8903
8904# Only perform the check for file, if the check method requires it
8905test -z "$MAGIC_CMD" && MAGIC_CMD=file
8906case $deplibs_check_method in
8907file_magic*)
8908  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8910$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8911if ${lt_cv_path_MAGIC_CMD+:} false; then :
8912  $as_echo_n "(cached) " >&6
8913else
8914  case $MAGIC_CMD in
8915[\\/*] |  ?:[\\/]*)
8916  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8917  ;;
8918*)
8919  lt_save_MAGIC_CMD="$MAGIC_CMD"
8920  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8921  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8922  for ac_dir in $ac_dummy; do
8923    IFS="$lt_save_ifs"
8924    test -z "$ac_dir" && ac_dir=.
8925    if test -f $ac_dir/${ac_tool_prefix}file; then
8926      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8927      if test -n "$file_magic_test_file"; then
8928	case $deplibs_check_method in
8929	"file_magic "*)
8930	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8931	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8932	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8933	    $EGREP "$file_magic_regex" > /dev/null; then
8934	    :
8935	  else
8936	    cat <<_LT_EOF 1>&2
8937
8938*** Warning: the command libtool uses to detect shared libraries,
8939*** $file_magic_cmd, produces output that libtool cannot recognize.
8940*** The result is that libtool may fail to recognize shared libraries
8941*** as such.  This will affect the creation of libtool libraries that
8942*** depend on shared libraries, but programs linked with such libtool
8943*** libraries will work regardless of this problem.  Nevertheless, you
8944*** may want to report the problem to your system manager and/or to
8945*** bug-libtool@gnu.org
8946
8947_LT_EOF
8948	  fi ;;
8949	esac
8950      fi
8951      break
8952    fi
8953  done
8954  IFS="$lt_save_ifs"
8955  MAGIC_CMD="$lt_save_MAGIC_CMD"
8956  ;;
8957esac
8958fi
8959
8960MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8961if test -n "$MAGIC_CMD"; then
8962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8963$as_echo "$MAGIC_CMD" >&6; }
8964else
8965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966$as_echo "no" >&6; }
8967fi
8968
8969
8970
8971
8972
8973if test -z "$lt_cv_path_MAGIC_CMD"; then
8974  if test -n "$ac_tool_prefix"; then
8975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8976$as_echo_n "checking for file... " >&6; }
8977if ${lt_cv_path_MAGIC_CMD+:} false; then :
8978  $as_echo_n "(cached) " >&6
8979else
8980  case $MAGIC_CMD in
8981[\\/*] |  ?:[\\/]*)
8982  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8983  ;;
8984*)
8985  lt_save_MAGIC_CMD="$MAGIC_CMD"
8986  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8987  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8988  for ac_dir in $ac_dummy; do
8989    IFS="$lt_save_ifs"
8990    test -z "$ac_dir" && ac_dir=.
8991    if test -f $ac_dir/file; then
8992      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8993      if test -n "$file_magic_test_file"; then
8994	case $deplibs_check_method in
8995	"file_magic "*)
8996	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8997	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8998	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8999	    $EGREP "$file_magic_regex" > /dev/null; then
9000	    :
9001	  else
9002	    cat <<_LT_EOF 1>&2
9003
9004*** Warning: the command libtool uses to detect shared libraries,
9005*** $file_magic_cmd, produces output that libtool cannot recognize.
9006*** The result is that libtool may fail to recognize shared libraries
9007*** as such.  This will affect the creation of libtool libraries that
9008*** depend on shared libraries, but programs linked with such libtool
9009*** libraries will work regardless of this problem.  Nevertheless, you
9010*** may want to report the problem to your system manager and/or to
9011*** bug-libtool@gnu.org
9012
9013_LT_EOF
9014	  fi ;;
9015	esac
9016      fi
9017      break
9018    fi
9019  done
9020  IFS="$lt_save_ifs"
9021  MAGIC_CMD="$lt_save_MAGIC_CMD"
9022  ;;
9023esac
9024fi
9025
9026MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9027if test -n "$MAGIC_CMD"; then
9028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9029$as_echo "$MAGIC_CMD" >&6; }
9030else
9031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032$as_echo "no" >&6; }
9033fi
9034
9035
9036  else
9037    MAGIC_CMD=:
9038  fi
9039fi
9040
9041  fi
9042  ;;
9043esac
9044
9045# Use C for the default configuration in the libtool script
9046
9047lt_save_CC="$CC"
9048ac_ext=c
9049ac_cpp='$CPP $CPPFLAGS'
9050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053
9054
9055# Source file extension for C test sources.
9056ac_ext=c
9057
9058# Object file extension for compiled C test sources.
9059objext=o
9060objext=$objext
9061
9062# Code to be used in simple compile tests
9063lt_simple_compile_test_code="int some_variable = 0;"
9064
9065# Code to be used in simple link tests
9066lt_simple_link_test_code='int main(){return(0);}'
9067
9068
9069
9070
9071
9072
9073
9074# If no C compiler was specified, use CC.
9075LTCC=${LTCC-"$CC"}
9076
9077# If no C compiler flags were specified, use CFLAGS.
9078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9079
9080# Allow CC to be a program name with arguments.
9081compiler=$CC
9082
9083# Save the default compiler, since it gets overwritten when the other
9084# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9085compiler_DEFAULT=$CC
9086
9087# save warnings/boilerplate of simple test code
9088ac_outfile=conftest.$ac_objext
9089echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9090eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9091_lt_compiler_boilerplate=`cat conftest.err`
9092$RM conftest*
9093
9094ac_outfile=conftest.$ac_objext
9095echo "$lt_simple_link_test_code" >conftest.$ac_ext
9096eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9097_lt_linker_boilerplate=`cat conftest.err`
9098$RM -r conftest*
9099
9100
9101## CAVEAT EMPTOR:
9102## There is no encapsulation within the following macros, do not change
9103## the running order or otherwise move them around unless you know exactly
9104## what you are doing...
9105if test -n "$compiler"; then
9106
9107lt_prog_compiler_no_builtin_flag=
9108
9109if test "$GCC" = yes; then
9110  case $cc_basename in
9111  nvcc*)
9112    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9113  *)
9114    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9115  esac
9116
9117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9118$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9119if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  lt_cv_prog_compiler_rtti_exceptions=no
9123   ac_outfile=conftest.$ac_objext
9124   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9125   lt_compiler_flag="-fno-rtti -fno-exceptions"
9126   # Insert the option either (1) after the last *FLAGS variable, or
9127   # (2) before a word containing "conftest.", or (3) at the end.
9128   # Note that $ac_compile itself does not contain backslashes and begins
9129   # with a dollar sign (not a hyphen), so the echo should work correctly.
9130   # The option is referenced via a variable to avoid confusing sed.
9131   lt_compile=`echo "$ac_compile" | $SED \
9132   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9133   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9134   -e 's:$: $lt_compiler_flag:'`
9135   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9136   (eval "$lt_compile" 2>conftest.err)
9137   ac_status=$?
9138   cat conftest.err >&5
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   if (exit $ac_status) && test -s "$ac_outfile"; then
9141     # The compiler can only warn and ignore the option if not recognized
9142     # So say no if there are warnings other than the usual output.
9143     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9144     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9146       lt_cv_prog_compiler_rtti_exceptions=yes
9147     fi
9148   fi
9149   $RM conftest*
9150
9151fi
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9153$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9154
9155if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9156    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9157else
9158    :
9159fi
9160
9161fi
9162
9163
9164
9165
9166
9167
9168  lt_prog_compiler_wl=
9169lt_prog_compiler_pic=
9170lt_prog_compiler_static=
9171
9172
9173  if test "$GCC" = yes; then
9174    lt_prog_compiler_wl='-Wl,'
9175    lt_prog_compiler_static='-static'
9176
9177    case $host_os in
9178      aix*)
9179      # All AIX code is PIC.
9180      if test "$host_cpu" = ia64; then
9181	# AIX 5 now supports IA64 processor
9182	lt_prog_compiler_static='-Bstatic'
9183      fi
9184      ;;
9185
9186    amigaos*)
9187      case $host_cpu in
9188      powerpc)
9189            # see comment about AmigaOS4 .so support
9190            lt_prog_compiler_pic='-fPIC'
9191        ;;
9192      m68k)
9193            # FIXME: we need at least 68020 code to build shared libraries, but
9194            # adding the `-m68020' flag to GCC prevents building anything better,
9195            # like `-m68040'.
9196            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9197        ;;
9198      esac
9199      ;;
9200
9201    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9202      # PIC is the default for these OSes.
9203      ;;
9204
9205    mingw* | cygwin* | pw32* | os2* | cegcc*)
9206      # This hack is so that the source file can tell whether it is being
9207      # built for inclusion in a dll (and should export symbols for example).
9208      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9209      # (--disable-auto-import) libraries
9210      lt_prog_compiler_pic='-DDLL_EXPORT'
9211      ;;
9212
9213    darwin* | rhapsody*)
9214      # PIC is the default on this platform
9215      # Common symbols not allowed in MH_DYLIB files
9216      lt_prog_compiler_pic='-fno-common'
9217      ;;
9218
9219    haiku*)
9220      # PIC is the default for Haiku.
9221      # The "-static" flag exists, but is broken.
9222      lt_prog_compiler_static=
9223      ;;
9224
9225    hpux*)
9226      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9227      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9228      # sets the default TLS model and affects inlining.
9229      case $host_cpu in
9230      hppa*64*)
9231	# +Z the default
9232	;;
9233      *)
9234	lt_prog_compiler_pic='-fPIC'
9235	;;
9236      esac
9237      ;;
9238
9239    interix[3-9]*)
9240      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9241      # Instead, we relocate shared libraries at runtime.
9242      ;;
9243
9244    msdosdjgpp*)
9245      # Just because we use GCC doesn't mean we suddenly get shared libraries
9246      # on systems that don't support them.
9247      lt_prog_compiler_can_build_shared=no
9248      enable_shared=no
9249      ;;
9250
9251    *nto* | *qnx*)
9252      # QNX uses GNU C++, but need to define -shared option too, otherwise
9253      # it will coredump.
9254      lt_prog_compiler_pic='-fPIC -shared'
9255      ;;
9256
9257    sysv4*MP*)
9258      if test -d /usr/nec; then
9259	lt_prog_compiler_pic=-Kconform_pic
9260      fi
9261      ;;
9262
9263    *)
9264      lt_prog_compiler_pic='-fPIC'
9265      ;;
9266    esac
9267
9268    case $cc_basename in
9269    nvcc*) # Cuda Compiler Driver 2.2
9270      lt_prog_compiler_wl='-Xlinker '
9271      if test -n "$lt_prog_compiler_pic"; then
9272        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9273      fi
9274      ;;
9275    esac
9276  else
9277    # PORTME Check for flag to pass linker flags through the system compiler.
9278    case $host_os in
9279    aix*)
9280      lt_prog_compiler_wl='-Wl,'
9281      if test "$host_cpu" = ia64; then
9282	# AIX 5 now supports IA64 processor
9283	lt_prog_compiler_static='-Bstatic'
9284      else
9285	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9286      fi
9287      ;;
9288
9289    mingw* | cygwin* | pw32* | os2* | cegcc*)
9290      # This hack is so that the source file can tell whether it is being
9291      # built for inclusion in a dll (and should export symbols for example).
9292      lt_prog_compiler_pic='-DDLL_EXPORT'
9293      ;;
9294
9295    hpux9* | hpux10* | hpux11*)
9296      lt_prog_compiler_wl='-Wl,'
9297      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9298      # not for PA HP-UX.
9299      case $host_cpu in
9300      hppa*64*|ia64*)
9301	# +Z the default
9302	;;
9303      *)
9304	lt_prog_compiler_pic='+Z'
9305	;;
9306      esac
9307      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9308      lt_prog_compiler_static='${wl}-a ${wl}archive'
9309      ;;
9310
9311    irix5* | irix6* | nonstopux*)
9312      lt_prog_compiler_wl='-Wl,'
9313      # PIC (with -KPIC) is the default.
9314      lt_prog_compiler_static='-non_shared'
9315      ;;
9316
9317    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9318      case $cc_basename in
9319      # old Intel for x86_64 which still supported -KPIC.
9320      ecc*)
9321	lt_prog_compiler_wl='-Wl,'
9322	lt_prog_compiler_pic='-KPIC'
9323	lt_prog_compiler_static='-static'
9324        ;;
9325      # icc used to be incompatible with GCC.
9326      # ICC 10 doesn't accept -KPIC any more.
9327      icc* | ifort*)
9328	lt_prog_compiler_wl='-Wl,'
9329	lt_prog_compiler_pic='-fPIC'
9330	lt_prog_compiler_static='-static'
9331        ;;
9332      # Lahey Fortran 8.1.
9333      lf95*)
9334	lt_prog_compiler_wl='-Wl,'
9335	lt_prog_compiler_pic='--shared'
9336	lt_prog_compiler_static='--static'
9337	;;
9338      nagfor*)
9339	# NAG Fortran compiler
9340	lt_prog_compiler_wl='-Wl,-Wl,,'
9341	lt_prog_compiler_pic='-PIC'
9342	lt_prog_compiler_static='-Bstatic'
9343	;;
9344      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9345        # Portland Group compilers (*not* the Pentium gcc compiler,
9346	# which looks to be a dead project)
9347	lt_prog_compiler_wl='-Wl,'
9348	lt_prog_compiler_pic='-fpic'
9349	lt_prog_compiler_static='-Bstatic'
9350        ;;
9351      ccc*)
9352        lt_prog_compiler_wl='-Wl,'
9353        # All Alpha code is PIC.
9354        lt_prog_compiler_static='-non_shared'
9355        ;;
9356      xl* | bgxl* | bgf* | mpixl*)
9357	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9358	lt_prog_compiler_wl='-Wl,'
9359	lt_prog_compiler_pic='-qpic'
9360	lt_prog_compiler_static='-qstaticlink'
9361	;;
9362      *)
9363	case `$CC -V 2>&1 | sed 5q` in
9364	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9365	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9366	  lt_prog_compiler_pic='-KPIC'
9367	  lt_prog_compiler_static='-Bstatic'
9368	  lt_prog_compiler_wl=''
9369	  ;;
9370	*Sun\ F* | *Sun*Fortran*)
9371	  lt_prog_compiler_pic='-KPIC'
9372	  lt_prog_compiler_static='-Bstatic'
9373	  lt_prog_compiler_wl='-Qoption ld '
9374	  ;;
9375	*Sun\ C*)
9376	  # Sun C 5.9
9377	  lt_prog_compiler_pic='-KPIC'
9378	  lt_prog_compiler_static='-Bstatic'
9379	  lt_prog_compiler_wl='-Wl,'
9380	  ;;
9381        *Intel*\ [CF]*Compiler*)
9382	  lt_prog_compiler_wl='-Wl,'
9383	  lt_prog_compiler_pic='-fPIC'
9384	  lt_prog_compiler_static='-static'
9385	  ;;
9386	*Portland\ Group*)
9387	  lt_prog_compiler_wl='-Wl,'
9388	  lt_prog_compiler_pic='-fpic'
9389	  lt_prog_compiler_static='-Bstatic'
9390	  ;;
9391	esac
9392	;;
9393      esac
9394      ;;
9395
9396    newsos6)
9397      lt_prog_compiler_pic='-KPIC'
9398      lt_prog_compiler_static='-Bstatic'
9399      ;;
9400
9401    *nto* | *qnx*)
9402      # QNX uses GNU C++, but need to define -shared option too, otherwise
9403      # it will coredump.
9404      lt_prog_compiler_pic='-fPIC -shared'
9405      ;;
9406
9407    osf3* | osf4* | osf5*)
9408      lt_prog_compiler_wl='-Wl,'
9409      # All OSF/1 code is PIC.
9410      lt_prog_compiler_static='-non_shared'
9411      ;;
9412
9413    rdos*)
9414      lt_prog_compiler_static='-non_shared'
9415      ;;
9416
9417    solaris*)
9418      lt_prog_compiler_pic='-KPIC'
9419      lt_prog_compiler_static='-Bstatic'
9420      case $cc_basename in
9421      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9422	lt_prog_compiler_wl='-Qoption ld ';;
9423      *)
9424	lt_prog_compiler_wl='-Wl,';;
9425      esac
9426      ;;
9427
9428    sunos4*)
9429      lt_prog_compiler_wl='-Qoption ld '
9430      lt_prog_compiler_pic='-PIC'
9431      lt_prog_compiler_static='-Bstatic'
9432      ;;
9433
9434    sysv4 | sysv4.2uw2* | sysv4.3*)
9435      lt_prog_compiler_wl='-Wl,'
9436      lt_prog_compiler_pic='-KPIC'
9437      lt_prog_compiler_static='-Bstatic'
9438      ;;
9439
9440    sysv4*MP*)
9441      if test -d /usr/nec ;then
9442	lt_prog_compiler_pic='-Kconform_pic'
9443	lt_prog_compiler_static='-Bstatic'
9444      fi
9445      ;;
9446
9447    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9448      lt_prog_compiler_wl='-Wl,'
9449      lt_prog_compiler_pic='-KPIC'
9450      lt_prog_compiler_static='-Bstatic'
9451      ;;
9452
9453    unicos*)
9454      lt_prog_compiler_wl='-Wl,'
9455      lt_prog_compiler_can_build_shared=no
9456      ;;
9457
9458    uts4*)
9459      lt_prog_compiler_pic='-pic'
9460      lt_prog_compiler_static='-Bstatic'
9461      ;;
9462
9463    *)
9464      lt_prog_compiler_can_build_shared=no
9465      ;;
9466    esac
9467  fi
9468
9469case $host_os in
9470  # For platforms which do not support PIC, -DPIC is meaningless:
9471  *djgpp*)
9472    lt_prog_compiler_pic=
9473    ;;
9474  *)
9475    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9476    ;;
9477esac
9478
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9480$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9481if ${lt_cv_prog_compiler_pic+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9487$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9488lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9489
9490#
9491# Check to make sure the PIC flag actually works.
9492#
9493if test -n "$lt_prog_compiler_pic"; then
9494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9495$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9496if ${lt_cv_prog_compiler_pic_works+:} false; then :
9497  $as_echo_n "(cached) " >&6
9498else
9499  lt_cv_prog_compiler_pic_works=no
9500   ac_outfile=conftest.$ac_objext
9501   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9503   # Insert the option either (1) after the last *FLAGS variable, or
9504   # (2) before a word containing "conftest.", or (3) at the end.
9505   # Note that $ac_compile itself does not contain backslashes and begins
9506   # with a dollar sign (not a hyphen), so the echo should work correctly.
9507   # The option is referenced via a variable to avoid confusing sed.
9508   lt_compile=`echo "$ac_compile" | $SED \
9509   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511   -e 's:$: $lt_compiler_flag:'`
9512   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9513   (eval "$lt_compile" 2>conftest.err)
9514   ac_status=$?
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   if (exit $ac_status) && test -s "$ac_outfile"; then
9518     # The compiler can only warn and ignore the option if not recognized
9519     # So say no if there are warnings other than the usual output.
9520     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9521     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9522     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9523       lt_cv_prog_compiler_pic_works=yes
9524     fi
9525   fi
9526   $RM conftest*
9527
9528fi
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9530$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9531
9532if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9533    case $lt_prog_compiler_pic in
9534     "" | " "*) ;;
9535     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9536     esac
9537else
9538    lt_prog_compiler_pic=
9539     lt_prog_compiler_can_build_shared=no
9540fi
9541
9542fi
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554#
9555# Check to make sure the static flag actually works.
9556#
9557wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9559$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9560if ${lt_cv_prog_compiler_static_works+:} false; then :
9561  $as_echo_n "(cached) " >&6
9562else
9563  lt_cv_prog_compiler_static_works=no
9564   save_LDFLAGS="$LDFLAGS"
9565   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9566   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9567   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9568     # The linker can only warn and ignore the option if not recognized
9569     # So say no if there are warnings
9570     if test -s conftest.err; then
9571       # Append any errors to the config.log.
9572       cat conftest.err 1>&5
9573       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9574       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9575       if diff conftest.exp conftest.er2 >/dev/null; then
9576         lt_cv_prog_compiler_static_works=yes
9577       fi
9578     else
9579       lt_cv_prog_compiler_static_works=yes
9580     fi
9581   fi
9582   $RM -r conftest*
9583   LDFLAGS="$save_LDFLAGS"
9584
9585fi
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9587$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9588
9589if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9590    :
9591else
9592    lt_prog_compiler_static=
9593fi
9594
9595
9596
9597
9598
9599
9600
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9602$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9603if ${lt_cv_prog_compiler_c_o+:} false; then :
9604  $as_echo_n "(cached) " >&6
9605else
9606  lt_cv_prog_compiler_c_o=no
9607   $RM -r conftest 2>/dev/null
9608   mkdir conftest
9609   cd conftest
9610   mkdir out
9611   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9612
9613   lt_compiler_flag="-o out/conftest2.$ac_objext"
9614   # Insert the option either (1) after the last *FLAGS variable, or
9615   # (2) before a word containing "conftest.", or (3) at the end.
9616   # Note that $ac_compile itself does not contain backslashes and begins
9617   # with a dollar sign (not a hyphen), so the echo should work correctly.
9618   lt_compile=`echo "$ac_compile" | $SED \
9619   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9620   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9621   -e 's:$: $lt_compiler_flag:'`
9622   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9623   (eval "$lt_compile" 2>out/conftest.err)
9624   ac_status=$?
9625   cat out/conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9628   then
9629     # The compiler can only warn and ignore the option if not recognized
9630     # So say no if there are warnings
9631     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9632     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9633     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9634       lt_cv_prog_compiler_c_o=yes
9635     fi
9636   fi
9637   chmod u+w . 2>&5
9638   $RM conftest*
9639   # SGI C++ compiler will create directory out/ii_files/ for
9640   # template instantiation
9641   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9642   $RM out/* && rmdir out
9643   cd ..
9644   $RM -r conftest
9645   $RM conftest*
9646
9647fi
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9649$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9650
9651
9652
9653
9654
9655
9656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9657$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9658if ${lt_cv_prog_compiler_c_o+:} false; then :
9659  $as_echo_n "(cached) " >&6
9660else
9661  lt_cv_prog_compiler_c_o=no
9662   $RM -r conftest 2>/dev/null
9663   mkdir conftest
9664   cd conftest
9665   mkdir out
9666   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9667
9668   lt_compiler_flag="-o out/conftest2.$ac_objext"
9669   # Insert the option either (1) after the last *FLAGS variable, or
9670   # (2) before a word containing "conftest.", or (3) at the end.
9671   # Note that $ac_compile itself does not contain backslashes and begins
9672   # with a dollar sign (not a hyphen), so the echo should work correctly.
9673   lt_compile=`echo "$ac_compile" | $SED \
9674   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9675   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9676   -e 's:$: $lt_compiler_flag:'`
9677   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9678   (eval "$lt_compile" 2>out/conftest.err)
9679   ac_status=$?
9680   cat out/conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9683   then
9684     # The compiler can only warn and ignore the option if not recognized
9685     # So say no if there are warnings
9686     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9687     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9688     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9689       lt_cv_prog_compiler_c_o=yes
9690     fi
9691   fi
9692   chmod u+w . 2>&5
9693   $RM conftest*
9694   # SGI C++ compiler will create directory out/ii_files/ for
9695   # template instantiation
9696   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9697   $RM out/* && rmdir out
9698   cd ..
9699   $RM -r conftest
9700   $RM conftest*
9701
9702fi
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9704$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9705
9706
9707
9708
9709hard_links="nottested"
9710if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9711  # do not overwrite the value of need_locks provided by the user
9712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9713$as_echo_n "checking if we can lock with hard links... " >&6; }
9714  hard_links=yes
9715  $RM conftest*
9716  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9717  touch conftest.a
9718  ln conftest.a conftest.b 2>&5 || hard_links=no
9719  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9721$as_echo "$hard_links" >&6; }
9722  if test "$hard_links" = no; then
9723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9724$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9725    need_locks=warn
9726  fi
9727else
9728  need_locks=no
9729fi
9730
9731
9732
9733
9734
9735
9736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9737$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9738
9739  runpath_var=
9740  allow_undefined_flag=
9741  always_export_symbols=no
9742  archive_cmds=
9743  archive_expsym_cmds=
9744  compiler_needs_object=no
9745  enable_shared_with_static_runtimes=no
9746  export_dynamic_flag_spec=
9747  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9748  hardcode_automatic=no
9749  hardcode_direct=no
9750  hardcode_direct_absolute=no
9751  hardcode_libdir_flag_spec=
9752  hardcode_libdir_separator=
9753  hardcode_minus_L=no
9754  hardcode_shlibpath_var=unsupported
9755  inherit_rpath=no
9756  link_all_deplibs=unknown
9757  module_cmds=
9758  module_expsym_cmds=
9759  old_archive_from_new_cmds=
9760  old_archive_from_expsyms_cmds=
9761  thread_safe_flag_spec=
9762  whole_archive_flag_spec=
9763  # include_expsyms should be a list of space-separated symbols to be *always*
9764  # included in the symbol list
9765  include_expsyms=
9766  # exclude_expsyms can be an extended regexp of symbols to exclude
9767  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9768  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9769  # as well as any symbol that contains `d'.
9770  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9771  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9772  # platforms (ab)use it in PIC code, but their linkers get confused if
9773  # the symbol is explicitly referenced.  Since portable code cannot
9774  # rely on this symbol name, it's probably fine to never include it in
9775  # preloaded symbol tables.
9776  # Exclude shared library initialization/finalization symbols.
9777  extract_expsyms_cmds=
9778
9779  case $host_os in
9780  cygwin* | mingw* | pw32* | cegcc*)
9781    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9782    # When not using gcc, we currently assume that we are using
9783    # Microsoft Visual C++.
9784    if test "$GCC" != yes; then
9785      with_gnu_ld=no
9786    fi
9787    ;;
9788  interix*)
9789    # we just hope/assume this is gcc and not c89 (= MSVC++)
9790    with_gnu_ld=yes
9791    ;;
9792  openbsd*)
9793    with_gnu_ld=no
9794    ;;
9795  linux* | k*bsd*-gnu | gnu*)
9796    link_all_deplibs=no
9797    ;;
9798  esac
9799
9800  ld_shlibs=yes
9801
9802  # On some targets, GNU ld is compatible enough with the native linker
9803  # that we're better off using the native interface for both.
9804  lt_use_gnu_ld_interface=no
9805  if test "$with_gnu_ld" = yes; then
9806    case $host_os in
9807      aix*)
9808	# The AIX port of GNU ld has always aspired to compatibility
9809	# with the native linker.  However, as the warning in the GNU ld
9810	# block says, versions before 2.19.5* couldn't really create working
9811	# shared libraries, regardless of the interface used.
9812	case `$LD -v 2>&1` in
9813	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9814	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9815	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9816	  *)
9817	    lt_use_gnu_ld_interface=yes
9818	    ;;
9819	esac
9820	;;
9821      *)
9822	lt_use_gnu_ld_interface=yes
9823	;;
9824    esac
9825  fi
9826
9827  if test "$lt_use_gnu_ld_interface" = yes; then
9828    # If archive_cmds runs LD, not CC, wlarc should be empty
9829    wlarc='${wl}'
9830
9831    # Set some defaults for GNU ld with shared library support. These
9832    # are reset later if shared libraries are not supported. Putting them
9833    # here allows them to be overridden if necessary.
9834    runpath_var=LD_RUN_PATH
9835    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836    export_dynamic_flag_spec='${wl}--export-dynamic'
9837    # ancient GNU ld didn't support --whole-archive et. al.
9838    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9839      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9840    else
9841      whole_archive_flag_spec=
9842    fi
9843    supports_anon_versioning=no
9844    case `$LD -v 2>&1` in
9845      *GNU\ gold*) supports_anon_versioning=yes ;;
9846      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9847      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9848      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9849      *\ 2.11.*) ;; # other 2.11 versions
9850      *) supports_anon_versioning=yes ;;
9851    esac
9852
9853    # See if GNU ld supports shared libraries.
9854    case $host_os in
9855    aix[3-9]*)
9856      # On AIX/PPC, the GNU linker is very broken
9857      if test "$host_cpu" != ia64; then
9858	ld_shlibs=no
9859	cat <<_LT_EOF 1>&2
9860
9861*** Warning: the GNU linker, at least up to release 2.19, is reported
9862*** to be unable to reliably create shared libraries on AIX.
9863*** Therefore, libtool is disabling shared libraries support.  If you
9864*** really care for shared libraries, you may want to install binutils
9865*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9866*** You will then need to restart the configuration process.
9867
9868_LT_EOF
9869      fi
9870      ;;
9871
9872    amigaos*)
9873      case $host_cpu in
9874      powerpc)
9875            # see comment about AmigaOS4 .so support
9876            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877            archive_expsym_cmds=''
9878        ;;
9879      m68k)
9880            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)'
9881            hardcode_libdir_flag_spec='-L$libdir'
9882            hardcode_minus_L=yes
9883        ;;
9884      esac
9885      ;;
9886
9887    beos*)
9888      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9889	allow_undefined_flag=unsupported
9890	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9891	# support --undefined.  This deserves some investigation.  FIXME
9892	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893      else
9894	ld_shlibs=no
9895      fi
9896      ;;
9897
9898    cygwin* | mingw* | pw32* | cegcc*)
9899      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9900      # as there is no search path for DLLs.
9901      hardcode_libdir_flag_spec='-L$libdir'
9902      export_dynamic_flag_spec='${wl}--export-all-symbols'
9903      allow_undefined_flag=unsupported
9904      always_export_symbols=no
9905      enable_shared_with_static_runtimes=yes
9906      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9907      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9908
9909      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9910        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9911	# If the export-symbols file already is a .def file (1st line
9912	# is EXPORTS), use it as is; otherwise, prepend...
9913	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9914	  cp $export_symbols $output_objdir/$soname.def;
9915	else
9916	  echo EXPORTS > $output_objdir/$soname.def;
9917	  cat $export_symbols >> $output_objdir/$soname.def;
9918	fi~
9919	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9920      else
9921	ld_shlibs=no
9922      fi
9923      ;;
9924
9925    haiku*)
9926      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9927      link_all_deplibs=yes
9928      ;;
9929
9930    interix[3-9]*)
9931      hardcode_direct=no
9932      hardcode_shlibpath_var=no
9933      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9934      export_dynamic_flag_spec='${wl}-E'
9935      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9936      # Instead, shared libraries are loaded at an image base (0x10000000 by
9937      # default) and relocated if they conflict, which is a slow very memory
9938      # consuming and fragmenting process.  To avoid this, we pick a random,
9939      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9940      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9941      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9942      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'
9943      ;;
9944
9945    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9946      tmp_diet=no
9947      if test "$host_os" = linux-dietlibc; then
9948	case $cc_basename in
9949	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9950	esac
9951      fi
9952      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9953	 && test "$tmp_diet" = no
9954      then
9955	tmp_addflag=' $pic_flag'
9956	tmp_sharedflag='-shared'
9957	case $cc_basename,$host_cpu in
9958        pgcc*)				# Portland Group C compiler
9959	  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'
9960	  tmp_addflag=' $pic_flag'
9961	  ;;
9962	pgf77* | pgf90* | pgf95* | pgfortran*)
9963					# Portland Group f77 and f90 compilers
9964	  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'
9965	  tmp_addflag=' $pic_flag -Mnomain' ;;
9966	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9967	  tmp_addflag=' -i_dynamic' ;;
9968	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9969	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9970	ifc* | ifort*)			# Intel Fortran compiler
9971	  tmp_addflag=' -nofor_main' ;;
9972	lf95*)				# Lahey Fortran 8.1
9973	  whole_archive_flag_spec=
9974	  tmp_sharedflag='--shared' ;;
9975	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9976	  tmp_sharedflag='-qmkshrobj'
9977	  tmp_addflag= ;;
9978	nvcc*)	# Cuda Compiler Driver 2.2
9979	  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'
9980	  compiler_needs_object=yes
9981	  ;;
9982	esac
9983	case `$CC -V 2>&1 | sed 5q` in
9984	*Sun\ C*)			# Sun C 5.9
9985	  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'
9986	  compiler_needs_object=yes
9987	  tmp_sharedflag='-G' ;;
9988	*Sun\ F*)			# Sun Fortran 8.3
9989	  tmp_sharedflag='-G' ;;
9990	esac
9991	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992
9993        if test "x$supports_anon_versioning" = xyes; then
9994          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9995	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9996	    echo "local: *; };" >> $output_objdir/$libname.ver~
9997	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9998        fi
9999
10000	case $cc_basename in
10001	xlf* | bgf* | bgxlf* | mpixlf*)
10002	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10003	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10004	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10006	  if test "x$supports_anon_versioning" = xyes; then
10007	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10008	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10009	      echo "local: *; };" >> $output_objdir/$libname.ver~
10010	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10011	  fi
10012	  ;;
10013	esac
10014      else
10015        ld_shlibs=no
10016      fi
10017      ;;
10018
10019    netbsd* | netbsdelf*-gnu)
10020      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10021	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10022	wlarc=
10023      else
10024	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10025	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10026      fi
10027      ;;
10028
10029    solaris*)
10030      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10031	ld_shlibs=no
10032	cat <<_LT_EOF 1>&2
10033
10034*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10035*** create shared libraries on Solaris systems.  Therefore, libtool
10036*** is disabling shared libraries support.  We urge you to upgrade GNU
10037*** binutils to release 2.9.1 or newer.  Another option is to modify
10038*** your PATH or compiler configuration so that the native linker is
10039*** used, and then restart.
10040
10041_LT_EOF
10042      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10043	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10044	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10045      else
10046	ld_shlibs=no
10047      fi
10048      ;;
10049
10050    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10051      case `$LD -v 2>&1` in
10052        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10053	ld_shlibs=no
10054	cat <<_LT_EOF 1>&2
10055
10056*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10057*** reliably create shared libraries on SCO systems.  Therefore, libtool
10058*** is disabling shared libraries support.  We urge you to upgrade GNU
10059*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10060*** your PATH or compiler configuration so that the native linker is
10061*** used, and then restart.
10062
10063_LT_EOF
10064	;;
10065	*)
10066	  # For security reasons, it is highly recommended that you always
10067	  # use absolute paths for naming shared libraries, and exclude the
10068	  # DT_RUNPATH tag from executables and libraries.  But doing so
10069	  # requires that you compile everything twice, which is a pain.
10070	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10071	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10072	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10074	  else
10075	    ld_shlibs=no
10076	  fi
10077	;;
10078      esac
10079      ;;
10080
10081    sunos4*)
10082      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10083      wlarc=
10084      hardcode_direct=yes
10085      hardcode_shlibpath_var=no
10086      ;;
10087
10088    *)
10089      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10090	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10092      else
10093	ld_shlibs=no
10094      fi
10095      ;;
10096    esac
10097
10098    if test "$ld_shlibs" = no; then
10099      runpath_var=
10100      hardcode_libdir_flag_spec=
10101      export_dynamic_flag_spec=
10102      whole_archive_flag_spec=
10103    fi
10104  else
10105    # PORTME fill in a description of your system's linker (not GNU ld)
10106    case $host_os in
10107    aix3*)
10108      allow_undefined_flag=unsupported
10109      always_export_symbols=yes
10110      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'
10111      # Note: this linker hardcodes the directories in LIBPATH if there
10112      # are no directories specified by -L.
10113      hardcode_minus_L=yes
10114      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10115	# Neither direct hardcoding nor static linking is supported with a
10116	# broken collect2.
10117	hardcode_direct=unsupported
10118      fi
10119      ;;
10120
10121    aix[4-9]*)
10122      if test "$host_cpu" = ia64; then
10123	# On IA64, the linker does run time linking by default, so we don't
10124	# have to do anything special.
10125	aix_use_runtimelinking=no
10126	exp_sym_flag='-Bexport'
10127	no_entry_flag=""
10128      else
10129	# If we're using GNU nm, then we don't want the "-C" option.
10130	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10131	# Also, AIX nm treats weak defined symbols like other global
10132	# defined symbols, whereas GNU nm marks them as "W".
10133	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10134	  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'
10135	else
10136	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10137	fi
10138	aix_use_runtimelinking=no
10139
10140	# Test if we are trying to use run time linking or normal
10141	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10142	# need to do runtime linking.
10143	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10144	  for ld_flag in $LDFLAGS; do
10145	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10146	    aix_use_runtimelinking=yes
10147	    break
10148	  fi
10149	  done
10150	  ;;
10151	esac
10152
10153	exp_sym_flag='-bexport'
10154	no_entry_flag='-bnoentry'
10155      fi
10156
10157      # When large executables or shared objects are built, AIX ld can
10158      # have problems creating the table of contents.  If linking a library
10159      # or program results in "error TOC overflow" add -mminimal-toc to
10160      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10161      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10162
10163      archive_cmds=''
10164      hardcode_direct=yes
10165      hardcode_direct_absolute=yes
10166      hardcode_libdir_separator=':'
10167      link_all_deplibs=yes
10168      file_list_spec='${wl}-f,'
10169
10170      if test "$GCC" = yes; then
10171	case $host_os in aix4.[012]|aix4.[012].*)
10172	# We only want to do this on AIX 4.2 and lower, the check
10173	# below for broken collect2 doesn't work under 4.3+
10174	  collect2name=`${CC} -print-prog-name=collect2`
10175	  if test -f "$collect2name" &&
10176	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10177	  then
10178	  # We have reworked collect2
10179	  :
10180	  else
10181	  # We have old collect2
10182	  hardcode_direct=unsupported
10183	  # It fails to find uninstalled libraries when the uninstalled
10184	  # path is not listed in the libpath.  Setting hardcode_minus_L
10185	  # to unsupported forces relinking
10186	  hardcode_minus_L=yes
10187	  hardcode_libdir_flag_spec='-L$libdir'
10188	  hardcode_libdir_separator=
10189	  fi
10190	  ;;
10191	esac
10192	shared_flag='-shared'
10193	if test "$aix_use_runtimelinking" = yes; then
10194	  shared_flag="$shared_flag "'${wl}-G'
10195	fi
10196	link_all_deplibs=no
10197      else
10198	# not using gcc
10199	if test "$host_cpu" = ia64; then
10200	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10201	# chokes on -Wl,-G. The following line is correct:
10202	  shared_flag='-G'
10203	else
10204	  if test "$aix_use_runtimelinking" = yes; then
10205	    shared_flag='${wl}-G'
10206	  else
10207	    shared_flag='${wl}-bM:SRE'
10208	  fi
10209	fi
10210      fi
10211
10212      export_dynamic_flag_spec='${wl}-bexpall'
10213      # It seems that -bexpall does not export symbols beginning with
10214      # underscore (_), so it is better to generate a list of symbols to export.
10215      always_export_symbols=yes
10216      if test "$aix_use_runtimelinking" = yes; then
10217	# Warning - without using the other runtime loading flags (-brtl),
10218	# -berok will link without error, but may produce a broken library.
10219	allow_undefined_flag='-berok'
10220        # Determine the default libpath from the value encoded in an
10221        # empty executable.
10222        if test "${lt_cv_aix_libpath+set}" = set; then
10223  aix_libpath=$lt_cv_aix_libpath
10224else
10225  if ${lt_cv_aix_libpath_+:} false; then :
10226  $as_echo_n "(cached) " >&6
10227else
10228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229/* end confdefs.h.  */
10230
10231int
10232main ()
10233{
10234
10235  ;
10236  return 0;
10237}
10238_ACEOF
10239if ac_fn_c_try_link "$LINENO"; then :
10240
10241  lt_aix_libpath_sed='
10242      /Import File Strings/,/^$/ {
10243	  /^0/ {
10244	      s/^0  *\([^ ]*\) *$/\1/
10245	      p
10246	  }
10247      }'
10248  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10249  # Check for a 64-bit object if we didn't find anything.
10250  if test -z "$lt_cv_aix_libpath_"; then
10251    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10252  fi
10253fi
10254rm -f core conftest.err conftest.$ac_objext \
10255    conftest$ac_exeext conftest.$ac_ext
10256  if test -z "$lt_cv_aix_libpath_"; then
10257    lt_cv_aix_libpath_="/usr/lib:/lib"
10258  fi
10259
10260fi
10261
10262  aix_libpath=$lt_cv_aix_libpath_
10263fi
10264
10265        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10266        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"
10267      else
10268	if test "$host_cpu" = ia64; then
10269	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10270	  allow_undefined_flag="-z nodefs"
10271	  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"
10272	else
10273	 # Determine the default libpath from the value encoded in an
10274	 # empty executable.
10275	 if test "${lt_cv_aix_libpath+set}" = set; then
10276  aix_libpath=$lt_cv_aix_libpath
10277else
10278  if ${lt_cv_aix_libpath_+:} false; then :
10279  $as_echo_n "(cached) " >&6
10280else
10281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283
10284int
10285main ()
10286{
10287
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292if ac_fn_c_try_link "$LINENO"; then :
10293
10294  lt_aix_libpath_sed='
10295      /Import File Strings/,/^$/ {
10296	  /^0/ {
10297	      s/^0  *\([^ ]*\) *$/\1/
10298	      p
10299	  }
10300      }'
10301  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10302  # Check for a 64-bit object if we didn't find anything.
10303  if test -z "$lt_cv_aix_libpath_"; then
10304    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10305  fi
10306fi
10307rm -f core conftest.err conftest.$ac_objext \
10308    conftest$ac_exeext conftest.$ac_ext
10309  if test -z "$lt_cv_aix_libpath_"; then
10310    lt_cv_aix_libpath_="/usr/lib:/lib"
10311  fi
10312
10313fi
10314
10315  aix_libpath=$lt_cv_aix_libpath_
10316fi
10317
10318	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10319	  # Warning - without using the other run time loading flags,
10320	  # -berok will link without error, but may produce a broken library.
10321	  no_undefined_flag=' ${wl}-bernotok'
10322	  allow_undefined_flag=' ${wl}-berok'
10323	  if test "$with_gnu_ld" = yes; then
10324	    # We only use this code for GNU lds that support --whole-archive.
10325	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10326	  else
10327	    # Exported symbols can be pulled into shared objects from archives
10328	    whole_archive_flag_spec='$convenience'
10329	  fi
10330	  archive_cmds_need_lc=yes
10331	  # This is similar to how AIX traditionally builds its shared libraries.
10332	  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'
10333	fi
10334      fi
10335      ;;
10336
10337    amigaos*)
10338      case $host_cpu in
10339      powerpc)
10340            # see comment about AmigaOS4 .so support
10341            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10342            archive_expsym_cmds=''
10343        ;;
10344      m68k)
10345            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)'
10346            hardcode_libdir_flag_spec='-L$libdir'
10347            hardcode_minus_L=yes
10348        ;;
10349      esac
10350      ;;
10351
10352    bsdi[45]*)
10353      export_dynamic_flag_spec=-rdynamic
10354      ;;
10355
10356    cygwin* | mingw* | pw32* | cegcc*)
10357      # When not using gcc, we currently assume that we are using
10358      # Microsoft Visual C++.
10359      # hardcode_libdir_flag_spec is actually meaningless, as there is
10360      # no search path for DLLs.
10361      case $cc_basename in
10362      cl*)
10363	# Native MSVC
10364	hardcode_libdir_flag_spec=' '
10365	allow_undefined_flag=unsupported
10366	always_export_symbols=yes
10367	file_list_spec='@'
10368	# Tell ltmain to make .lib files, not .a files.
10369	libext=lib
10370	# Tell ltmain to make .dll files, not .so files.
10371	shrext_cmds=".dll"
10372	# FIXME: Setting linknames here is a bad hack.
10373	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10374	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10375	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10376	  else
10377	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10378	  fi~
10379	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10380	  linknames='
10381	# The linker will not automatically build a static lib if we build a DLL.
10382	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10383	enable_shared_with_static_runtimes=yes
10384	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10385	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10386	# Don't use ranlib
10387	old_postinstall_cmds='chmod 644 $oldlib'
10388	postlink_cmds='lt_outputfile="@OUTPUT@"~
10389	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10390	  case $lt_outputfile in
10391	    *.exe|*.EXE) ;;
10392	    *)
10393	      lt_outputfile="$lt_outputfile.exe"
10394	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10395	      ;;
10396	  esac~
10397	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10398	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10399	    $RM "$lt_outputfile.manifest";
10400	  fi'
10401	;;
10402      *)
10403	# Assume MSVC wrapper
10404	hardcode_libdir_flag_spec=' '
10405	allow_undefined_flag=unsupported
10406	# Tell ltmain to make .lib files, not .a files.
10407	libext=lib
10408	# Tell ltmain to make .dll files, not .so files.
10409	shrext_cmds=".dll"
10410	# FIXME: Setting linknames here is a bad hack.
10411	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10412	# The linker will automatically build a .lib file if we build a DLL.
10413	old_archive_from_new_cmds='true'
10414	# FIXME: Should let the user specify the lib program.
10415	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10416	enable_shared_with_static_runtimes=yes
10417	;;
10418      esac
10419      ;;
10420
10421    darwin* | rhapsody*)
10422
10423
10424  archive_cmds_need_lc=no
10425  hardcode_direct=no
10426  hardcode_automatic=yes
10427  hardcode_shlibpath_var=unsupported
10428  if test "$lt_cv_ld_force_load" = "yes"; then
10429    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\"`'
10430
10431  else
10432    whole_archive_flag_spec=''
10433  fi
10434  link_all_deplibs=yes
10435  allow_undefined_flag="$_lt_dar_allow_undefined"
10436  case $cc_basename in
10437     ifort*) _lt_dar_can_shared=yes ;;
10438     *) _lt_dar_can_shared=$GCC ;;
10439  esac
10440  if test "$_lt_dar_can_shared" = "yes"; then
10441    output_verbose_link_cmd=func_echo_all
10442    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10443    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10444    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}"
10445    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}"
10446
10447  else
10448  ld_shlibs=no
10449  fi
10450
10451      ;;
10452
10453    dgux*)
10454      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455      hardcode_libdir_flag_spec='-L$libdir'
10456      hardcode_shlibpath_var=no
10457      ;;
10458
10459    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10460    # support.  Future versions do this automatically, but an explicit c++rt0.o
10461    # does not break anything, and helps significantly (at the cost of a little
10462    # extra space).
10463    freebsd2.2*)
10464      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10465      hardcode_libdir_flag_spec='-R$libdir'
10466      hardcode_direct=yes
10467      hardcode_shlibpath_var=no
10468      ;;
10469
10470    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10471    freebsd2.*)
10472      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10473      hardcode_direct=yes
10474      hardcode_minus_L=yes
10475      hardcode_shlibpath_var=no
10476      ;;
10477
10478    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10479    freebsd* | dragonfly*)
10480      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10481      hardcode_libdir_flag_spec='-R$libdir'
10482      hardcode_direct=yes
10483      hardcode_shlibpath_var=no
10484      ;;
10485
10486    hpux9*)
10487      if test "$GCC" = yes; then
10488	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10489      else
10490	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'
10491      fi
10492      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10493      hardcode_libdir_separator=:
10494      hardcode_direct=yes
10495
10496      # hardcode_minus_L: Not really in the search PATH,
10497      # but as the default location of the library.
10498      hardcode_minus_L=yes
10499      export_dynamic_flag_spec='${wl}-E'
10500      ;;
10501
10502    hpux10*)
10503      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10504	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10505      else
10506	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10507      fi
10508      if test "$with_gnu_ld" = no; then
10509	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10510	hardcode_libdir_separator=:
10511	hardcode_direct=yes
10512	hardcode_direct_absolute=yes
10513	export_dynamic_flag_spec='${wl}-E'
10514	# hardcode_minus_L: Not really in the search PATH,
10515	# but as the default location of the library.
10516	hardcode_minus_L=yes
10517      fi
10518      ;;
10519
10520    hpux11*)
10521      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10522	case $host_cpu in
10523	hppa*64*)
10524	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10525	  ;;
10526	ia64*)
10527	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10528	  ;;
10529	*)
10530	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10531	  ;;
10532	esac
10533      else
10534	case $host_cpu in
10535	hppa*64*)
10536	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10537	  ;;
10538	ia64*)
10539	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10540	  ;;
10541	*)
10542
10543	  # Older versions of the 11.00 compiler do not understand -b yet
10544	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10545	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10546$as_echo_n "checking if $CC understands -b... " >&6; }
10547if ${lt_cv_prog_compiler__b+:} false; then :
10548  $as_echo_n "(cached) " >&6
10549else
10550  lt_cv_prog_compiler__b=no
10551   save_LDFLAGS="$LDFLAGS"
10552   LDFLAGS="$LDFLAGS -b"
10553   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10554   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10555     # The linker can only warn and ignore the option if not recognized
10556     # So say no if there are warnings
10557     if test -s conftest.err; then
10558       # Append any errors to the config.log.
10559       cat conftest.err 1>&5
10560       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10561       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10562       if diff conftest.exp conftest.er2 >/dev/null; then
10563         lt_cv_prog_compiler__b=yes
10564       fi
10565     else
10566       lt_cv_prog_compiler__b=yes
10567     fi
10568   fi
10569   $RM -r conftest*
10570   LDFLAGS="$save_LDFLAGS"
10571
10572fi
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10574$as_echo "$lt_cv_prog_compiler__b" >&6; }
10575
10576if test x"$lt_cv_prog_compiler__b" = xyes; then
10577    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10578else
10579    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10580fi
10581
10582	  ;;
10583	esac
10584      fi
10585      if test "$with_gnu_ld" = no; then
10586	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10587	hardcode_libdir_separator=:
10588
10589	case $host_cpu in
10590	hppa*64*|ia64*)
10591	  hardcode_direct=no
10592	  hardcode_shlibpath_var=no
10593	  ;;
10594	*)
10595	  hardcode_direct=yes
10596	  hardcode_direct_absolute=yes
10597	  export_dynamic_flag_spec='${wl}-E'
10598
10599	  # hardcode_minus_L: Not really in the search PATH,
10600	  # but as the default location of the library.
10601	  hardcode_minus_L=yes
10602	  ;;
10603	esac
10604      fi
10605      ;;
10606
10607    irix5* | irix6* | nonstopux*)
10608      if test "$GCC" = yes; then
10609	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10610	# Try to use the -exported_symbol ld option, if it does not
10611	# work, assume that -exports_file does not work either and
10612	# implicitly export all symbols.
10613	# This should be the same for all languages, so no per-tag cache variable.
10614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10615$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10616if ${lt_cv_irix_exported_symbol+:} false; then :
10617  $as_echo_n "(cached) " >&6
10618else
10619  save_LDFLAGS="$LDFLAGS"
10620	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10621	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h.  */
10623int foo (void) { return 0; }
10624_ACEOF
10625if ac_fn_c_try_link "$LINENO"; then :
10626  lt_cv_irix_exported_symbol=yes
10627else
10628  lt_cv_irix_exported_symbol=no
10629fi
10630rm -f core conftest.err conftest.$ac_objext \
10631    conftest$ac_exeext conftest.$ac_ext
10632           LDFLAGS="$save_LDFLAGS"
10633fi
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10635$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10636	if test "$lt_cv_irix_exported_symbol" = yes; then
10637          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10638	fi
10639      else
10640	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'
10641	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'
10642      fi
10643      archive_cmds_need_lc='no'
10644      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10645      hardcode_libdir_separator=:
10646      inherit_rpath=yes
10647      link_all_deplibs=yes
10648      ;;
10649
10650    netbsd* | netbsdelf*-gnu)
10651      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10652	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10653      else
10654	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10655      fi
10656      hardcode_libdir_flag_spec='-R$libdir'
10657      hardcode_direct=yes
10658      hardcode_shlibpath_var=no
10659      ;;
10660
10661    newsos6)
10662      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663      hardcode_direct=yes
10664      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10665      hardcode_libdir_separator=:
10666      hardcode_shlibpath_var=no
10667      ;;
10668
10669    *nto* | *qnx*)
10670      ;;
10671
10672    openbsd*)
10673      if test -f /usr/libexec/ld.so; then
10674	hardcode_direct=yes
10675	hardcode_shlibpath_var=no
10676	hardcode_direct_absolute=yes
10677	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10678	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10679	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10680	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10681	  export_dynamic_flag_spec='${wl}-E'
10682	else
10683	  case $host_os in
10684	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10685	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10686	     hardcode_libdir_flag_spec='-R$libdir'
10687	     ;;
10688	   *)
10689	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10690	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10691	     ;;
10692	  esac
10693	fi
10694      else
10695	ld_shlibs=no
10696      fi
10697      ;;
10698
10699    os2*)
10700      hardcode_libdir_flag_spec='-L$libdir'
10701      hardcode_minus_L=yes
10702      allow_undefined_flag=unsupported
10703      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'
10704      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10705      ;;
10706
10707    osf3*)
10708      if test "$GCC" = yes; then
10709	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10710	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'
10711      else
10712	allow_undefined_flag=' -expect_unresolved \*'
10713	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'
10714      fi
10715      archive_cmds_need_lc='no'
10716      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10717      hardcode_libdir_separator=:
10718      ;;
10719
10720    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10721      if test "$GCC" = yes; then
10722	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10723	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10724	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10725      else
10726	allow_undefined_flag=' -expect_unresolved \*'
10727	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'
10728	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~
10729	$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'
10730
10731	# Both c and cxx compiler support -rpath directly
10732	hardcode_libdir_flag_spec='-rpath $libdir'
10733      fi
10734      archive_cmds_need_lc='no'
10735      hardcode_libdir_separator=:
10736      ;;
10737
10738    solaris*)
10739      no_undefined_flag=' -z defs'
10740      if test "$GCC" = yes; then
10741	wlarc='${wl}'
10742	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10743	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10744	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10745      else
10746	case `$CC -V 2>&1` in
10747	*"Compilers 5.0"*)
10748	  wlarc=''
10749	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10751	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10752	  ;;
10753	*)
10754	  wlarc='${wl}'
10755	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10756	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10757	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10758	  ;;
10759	esac
10760      fi
10761      hardcode_libdir_flag_spec='-R$libdir'
10762      hardcode_shlibpath_var=no
10763      case $host_os in
10764      solaris2.[0-5] | solaris2.[0-5].*) ;;
10765      *)
10766	# The compiler driver will combine and reorder linker options,
10767	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10768	# but is careful enough not to reorder.
10769	# Supported since Solaris 2.6 (maybe 2.5.1?)
10770	if test "$GCC" = yes; then
10771	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10772	else
10773	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10774	fi
10775	;;
10776      esac
10777      link_all_deplibs=yes
10778      ;;
10779
10780    sunos4*)
10781      if test "x$host_vendor" = xsequent; then
10782	# Use $CC to link under sequent, because it throws in some extra .o
10783	# files that make .init and .fini sections work.
10784	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10785      else
10786	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10787      fi
10788      hardcode_libdir_flag_spec='-L$libdir'
10789      hardcode_direct=yes
10790      hardcode_minus_L=yes
10791      hardcode_shlibpath_var=no
10792      ;;
10793
10794    sysv4)
10795      case $host_vendor in
10796	sni)
10797	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798	  hardcode_direct=yes # is this really true???
10799	;;
10800	siemens)
10801	  ## LD is ld it makes a PLAMLIB
10802	  ## CC just makes a GrossModule.
10803	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10804	  reload_cmds='$CC -r -o $output$reload_objs'
10805	  hardcode_direct=no
10806        ;;
10807	motorola)
10808	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10809	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10810	;;
10811      esac
10812      runpath_var='LD_RUN_PATH'
10813      hardcode_shlibpath_var=no
10814      ;;
10815
10816    sysv4.3*)
10817      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818      hardcode_shlibpath_var=no
10819      export_dynamic_flag_spec='-Bexport'
10820      ;;
10821
10822    sysv4*MP*)
10823      if test -d /usr/nec; then
10824	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825	hardcode_shlibpath_var=no
10826	runpath_var=LD_RUN_PATH
10827	hardcode_runpath_var=yes
10828	ld_shlibs=yes
10829      fi
10830      ;;
10831
10832    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10833      no_undefined_flag='${wl}-z,text'
10834      archive_cmds_need_lc=no
10835      hardcode_shlibpath_var=no
10836      runpath_var='LD_RUN_PATH'
10837
10838      if test "$GCC" = yes; then
10839	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10840	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10841      else
10842	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10843	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844      fi
10845      ;;
10846
10847    sysv5* | sco3.2v5* | sco5v6*)
10848      # Note: We can NOT use -z defs as we might desire, because we do not
10849      # link with -lc, and that would cause any symbols used from libc to
10850      # always be unresolved, which means just about no library would
10851      # ever link correctly.  If we're not using GNU ld we use -z text
10852      # though, which does catch some bad symbols but isn't as heavy-handed
10853      # as -z defs.
10854      no_undefined_flag='${wl}-z,text'
10855      allow_undefined_flag='${wl}-z,nodefs'
10856      archive_cmds_need_lc=no
10857      hardcode_shlibpath_var=no
10858      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10859      hardcode_libdir_separator=':'
10860      link_all_deplibs=yes
10861      export_dynamic_flag_spec='${wl}-Bexport'
10862      runpath_var='LD_RUN_PATH'
10863
10864      if test "$GCC" = yes; then
10865	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10866	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10867      else
10868	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870      fi
10871      ;;
10872
10873    uts4*)
10874      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10875      hardcode_libdir_flag_spec='-L$libdir'
10876      hardcode_shlibpath_var=no
10877      ;;
10878
10879    *)
10880      ld_shlibs=no
10881      ;;
10882    esac
10883
10884    if test x$host_vendor = xsni; then
10885      case $host in
10886      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10887	export_dynamic_flag_spec='${wl}-Blargedynsym'
10888	;;
10889      esac
10890    fi
10891  fi
10892
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10894$as_echo "$ld_shlibs" >&6; }
10895test "$ld_shlibs" = no && can_build_shared=no
10896
10897with_gnu_ld=$with_gnu_ld
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913#
10914# Do we need to explicitly link libc?
10915#
10916case "x$archive_cmds_need_lc" in
10917x|xyes)
10918  # Assume -lc should be added
10919  archive_cmds_need_lc=yes
10920
10921  if test "$enable_shared" = yes && test "$GCC" = yes; then
10922    case $archive_cmds in
10923    *'~'*)
10924      # FIXME: we may have to deal with multi-command sequences.
10925      ;;
10926    '$CC '*)
10927      # Test whether the compiler implicitly links with -lc since on some
10928      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10929      # to ld, don't add -lc before -lgcc.
10930      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10931$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10932if ${lt_cv_archive_cmds_need_lc+:} false; then :
10933  $as_echo_n "(cached) " >&6
10934else
10935  $RM conftest*
10936	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10937
10938	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10939  (eval $ac_compile) 2>&5
10940  ac_status=$?
10941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942  test $ac_status = 0; } 2>conftest.err; then
10943	  soname=conftest
10944	  lib=conftest
10945	  libobjs=conftest.$ac_objext
10946	  deplibs=
10947	  wl=$lt_prog_compiler_wl
10948	  pic_flag=$lt_prog_compiler_pic
10949	  compiler_flags=-v
10950	  linker_flags=-v
10951	  verstring=
10952	  output_objdir=.
10953	  libname=conftest
10954	  lt_save_allow_undefined_flag=$allow_undefined_flag
10955	  allow_undefined_flag=
10956	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10957  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10958  ac_status=$?
10959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960  test $ac_status = 0; }
10961	  then
10962	    lt_cv_archive_cmds_need_lc=no
10963	  else
10964	    lt_cv_archive_cmds_need_lc=yes
10965	  fi
10966	  allow_undefined_flag=$lt_save_allow_undefined_flag
10967	else
10968	  cat conftest.err 1>&5
10969	fi
10970	$RM conftest*
10971
10972fi
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10974$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10975      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10976      ;;
10977    esac
10978  fi
10979  ;;
10980esac
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11134$as_echo_n "checking dynamic linker characteristics... " >&6; }
11135
11136if test "$GCC" = yes; then
11137  case $host_os in
11138    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11139    *) lt_awk_arg="/^libraries:/" ;;
11140  esac
11141  case $host_os in
11142    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11143    *) lt_sed_strip_eq="s,=/,/,g" ;;
11144  esac
11145  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11146  case $lt_search_path_spec in
11147  *\;*)
11148    # if the path contains ";" then we assume it to be the separator
11149    # otherwise default to the standard path separator (i.e. ":") - it is
11150    # assumed that no part of a normal pathname contains ";" but that should
11151    # okay in the real world where ";" in dirpaths is itself problematic.
11152    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11153    ;;
11154  *)
11155    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11156    ;;
11157  esac
11158  # Ok, now we have the path, separated by spaces, we can step through it
11159  # and add multilib dir if necessary.
11160  lt_tmp_lt_search_path_spec=
11161  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11162  for lt_sys_path in $lt_search_path_spec; do
11163    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11164      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11165    else
11166      test -d "$lt_sys_path" && \
11167	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11168    fi
11169  done
11170  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11171BEGIN {RS=" "; FS="/|\n";} {
11172  lt_foo="";
11173  lt_count=0;
11174  for (lt_i = NF; lt_i > 0; lt_i--) {
11175    if ($lt_i != "" && $lt_i != ".") {
11176      if ($lt_i == "..") {
11177        lt_count++;
11178      } else {
11179        if (lt_count == 0) {
11180          lt_foo="/" $lt_i lt_foo;
11181        } else {
11182          lt_count--;
11183        }
11184      }
11185    }
11186  }
11187  if (lt_foo != "") { lt_freq[lt_foo]++; }
11188  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11189}'`
11190  # AWK program above erroneously prepends '/' to C:/dos/paths
11191  # for these hosts.
11192  case $host_os in
11193    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11194      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11195  esac
11196  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11197else
11198  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11199fi
11200library_names_spec=
11201libname_spec='lib$name'
11202soname_spec=
11203shrext_cmds=".so"
11204postinstall_cmds=
11205postuninstall_cmds=
11206finish_cmds=
11207finish_eval=
11208shlibpath_var=
11209shlibpath_overrides_runpath=unknown
11210version_type=none
11211dynamic_linker="$host_os ld.so"
11212sys_lib_dlsearch_path_spec="/lib /usr/lib"
11213need_lib_prefix=unknown
11214hardcode_into_libs=no
11215
11216# when you set need_version to no, make sure it does not cause -set_version
11217# flags to be left without arguments
11218need_version=unknown
11219
11220case $host_os in
11221aix3*)
11222  version_type=linux # correct to gnu/linux during the next big refactor
11223  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11224  shlibpath_var=LIBPATH
11225
11226  # AIX 3 has no versioning support, so we append a major version to the name.
11227  soname_spec='${libname}${release}${shared_ext}$major'
11228  ;;
11229
11230aix[4-9]*)
11231  version_type=linux # correct to gnu/linux during the next big refactor
11232  need_lib_prefix=no
11233  need_version=no
11234  hardcode_into_libs=yes
11235  if test "$host_cpu" = ia64; then
11236    # AIX 5 supports IA64
11237    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11238    shlibpath_var=LD_LIBRARY_PATH
11239  else
11240    # With GCC up to 2.95.x, collect2 would create an import file
11241    # for dependence libraries.  The import file would start with
11242    # the line `#! .'.  This would cause the generated library to
11243    # depend on `.', always an invalid library.  This was fixed in
11244    # development snapshots of GCC prior to 3.0.
11245    case $host_os in
11246      aix4 | aix4.[01] | aix4.[01].*)
11247      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11248	   echo ' yes '
11249	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11250	:
11251      else
11252	can_build_shared=no
11253      fi
11254      ;;
11255    esac
11256    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11257    # soname into executable. Probably we can add versioning support to
11258    # collect2, so additional links can be useful in future.
11259    if test "$aix_use_runtimelinking" = yes; then
11260      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11261      # instead of lib<name>.a to let people know that these are not
11262      # typical AIX shared libraries.
11263      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264    else
11265      # We preserve .a as extension for shared libraries through AIX4.2
11266      # and later when we are not doing run time linking.
11267      library_names_spec='${libname}${release}.a $libname.a'
11268      soname_spec='${libname}${release}${shared_ext}$major'
11269    fi
11270    shlibpath_var=LIBPATH
11271  fi
11272  ;;
11273
11274amigaos*)
11275  case $host_cpu in
11276  powerpc)
11277    # Since July 2007 AmigaOS4 officially supports .so libraries.
11278    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11279    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280    ;;
11281  m68k)
11282    library_names_spec='$libname.ixlibrary $libname.a'
11283    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11284    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'
11285    ;;
11286  esac
11287  ;;
11288
11289beos*)
11290  library_names_spec='${libname}${shared_ext}'
11291  dynamic_linker="$host_os ld.so"
11292  shlibpath_var=LIBRARY_PATH
11293  ;;
11294
11295bsdi[45]*)
11296  version_type=linux # correct to gnu/linux during the next big refactor
11297  need_version=no
11298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299  soname_spec='${libname}${release}${shared_ext}$major'
11300  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11301  shlibpath_var=LD_LIBRARY_PATH
11302  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11303  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11304  # the default ld.so.conf also contains /usr/contrib/lib and
11305  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11306  # libtool to hard-code these into programs
11307  ;;
11308
11309cygwin* | mingw* | pw32* | cegcc*)
11310  version_type=windows
11311  shrext_cmds=".dll"
11312  need_version=no
11313  need_lib_prefix=no
11314
11315  case $GCC,$cc_basename in
11316  yes,*)
11317    # gcc
11318    library_names_spec='$libname.dll.a'
11319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11320    postinstall_cmds='base_file=`basename \${file}`~
11321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11322      dldir=$destdir/`dirname \$dlpath`~
11323      test -d \$dldir || mkdir -p \$dldir~
11324      $install_prog $dir/$dlname \$dldir/$dlname~
11325      chmod a+x \$dldir/$dlname~
11326      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11327        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11328      fi'
11329    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11330      dlpath=$dir/\$dldll~
11331       $RM \$dlpath'
11332    shlibpath_overrides_runpath=yes
11333
11334    case $host_os in
11335    cygwin*)
11336      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11337      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11338
11339      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11340      ;;
11341    mingw* | cegcc*)
11342      # MinGW DLLs use traditional 'lib' prefix
11343      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11344      ;;
11345    pw32*)
11346      # pw32 DLLs use 'pw' prefix rather than 'lib'
11347      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11348      ;;
11349    esac
11350    dynamic_linker='Win32 ld.exe'
11351    ;;
11352
11353  *,cl*)
11354    # Native MSVC
11355    libname_spec='$name'
11356    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11357    library_names_spec='${libname}.dll.lib'
11358
11359    case $build_os in
11360    mingw*)
11361      sys_lib_search_path_spec=
11362      lt_save_ifs=$IFS
11363      IFS=';'
11364      for lt_path in $LIB
11365      do
11366        IFS=$lt_save_ifs
11367        # Let DOS variable expansion print the short 8.3 style file name.
11368        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11369        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11370      done
11371      IFS=$lt_save_ifs
11372      # Convert to MSYS style.
11373      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11374      ;;
11375    cygwin*)
11376      # Convert to unix form, then to dos form, then back to unix form
11377      # but this time dos style (no spaces!) so that the unix form looks
11378      # like /cygdrive/c/PROGRA~1:/cygdr...
11379      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11380      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11381      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11382      ;;
11383    *)
11384      sys_lib_search_path_spec="$LIB"
11385      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11386        # It is most probably a Windows format PATH.
11387        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11388      else
11389        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11390      fi
11391      # FIXME: find the short name or the path components, as spaces are
11392      # common. (e.g. "Program Files" -> "PROGRA~1")
11393      ;;
11394    esac
11395
11396    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11397    postinstall_cmds='base_file=`basename \${file}`~
11398      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11399      dldir=$destdir/`dirname \$dlpath`~
11400      test -d \$dldir || mkdir -p \$dldir~
11401      $install_prog $dir/$dlname \$dldir/$dlname'
11402    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11403      dlpath=$dir/\$dldll~
11404       $RM \$dlpath'
11405    shlibpath_overrides_runpath=yes
11406    dynamic_linker='Win32 link.exe'
11407    ;;
11408
11409  *)
11410    # Assume MSVC wrapper
11411    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11412    dynamic_linker='Win32 ld.exe'
11413    ;;
11414  esac
11415  # FIXME: first we should search . and the directory the executable is in
11416  shlibpath_var=PATH
11417  ;;
11418
11419darwin* | rhapsody*)
11420  dynamic_linker="$host_os dyld"
11421  version_type=darwin
11422  need_lib_prefix=no
11423  need_version=no
11424  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11425  soname_spec='${libname}${release}${major}$shared_ext'
11426  shlibpath_overrides_runpath=yes
11427  shlibpath_var=DYLD_LIBRARY_PATH
11428  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11429
11430  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11431  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11432  ;;
11433
11434dgux*)
11435  version_type=linux # correct to gnu/linux during the next big refactor
11436  need_lib_prefix=no
11437  need_version=no
11438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11439  soname_spec='${libname}${release}${shared_ext}$major'
11440  shlibpath_var=LD_LIBRARY_PATH
11441  ;;
11442
11443freebsd* | dragonfly*)
11444  # DragonFly does not have aout.  When/if they implement a new
11445  # versioning mechanism, adjust this.
11446  if test -x /usr/bin/objformat; then
11447    objformat=`/usr/bin/objformat`
11448  else
11449    case $host_os in
11450    freebsd[23].*) objformat=aout ;;
11451    *) objformat=elf ;;
11452    esac
11453  fi
11454  version_type=freebsd-$objformat
11455  case $version_type in
11456    freebsd-elf*)
11457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11458      need_version=no
11459      need_lib_prefix=no
11460      ;;
11461    freebsd-*)
11462      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11463      need_version=yes
11464      ;;
11465  esac
11466  shlibpath_var=LD_LIBRARY_PATH
11467  case $host_os in
11468  freebsd2.*)
11469    shlibpath_overrides_runpath=yes
11470    ;;
11471  freebsd3.[01]* | freebsdelf3.[01]*)
11472    shlibpath_overrides_runpath=yes
11473    hardcode_into_libs=yes
11474    ;;
11475  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11476  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11477    shlibpath_overrides_runpath=no
11478    hardcode_into_libs=yes
11479    ;;
11480  *) # from 4.6 on, and DragonFly
11481    shlibpath_overrides_runpath=yes
11482    hardcode_into_libs=yes
11483    ;;
11484  esac
11485  ;;
11486
11487haiku*)
11488  version_type=linux # correct to gnu/linux during the next big refactor
11489  need_lib_prefix=no
11490  need_version=no
11491  dynamic_linker="$host_os runtime_loader"
11492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11493  soname_spec='${libname}${release}${shared_ext}$major'
11494  shlibpath_var=LIBRARY_PATH
11495  shlibpath_overrides_runpath=yes
11496  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11497  hardcode_into_libs=yes
11498  ;;
11499
11500hpux9* | hpux10* | hpux11*)
11501  # Give a soname corresponding to the major version so that dld.sl refuses to
11502  # link against other versions.
11503  version_type=sunos
11504  need_lib_prefix=no
11505  need_version=no
11506  case $host_cpu in
11507  ia64*)
11508    shrext_cmds='.so'
11509    hardcode_into_libs=yes
11510    dynamic_linker="$host_os dld.so"
11511    shlibpath_var=LD_LIBRARY_PATH
11512    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11513    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514    soname_spec='${libname}${release}${shared_ext}$major'
11515    if test "X$HPUX_IA64_MODE" = X32; then
11516      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11517    else
11518      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11519    fi
11520    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11521    ;;
11522  hppa*64*)
11523    shrext_cmds='.sl'
11524    hardcode_into_libs=yes
11525    dynamic_linker="$host_os dld.sl"
11526    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11527    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529    soname_spec='${libname}${release}${shared_ext}$major'
11530    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11531    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11532    ;;
11533  *)
11534    shrext_cmds='.sl'
11535    dynamic_linker="$host_os dld.sl"
11536    shlibpath_var=SHLIB_PATH
11537    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11538    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539    soname_spec='${libname}${release}${shared_ext}$major'
11540    ;;
11541  esac
11542  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11543  postinstall_cmds='chmod 555 $lib'
11544  # or fails outright, so override atomically:
11545  install_override_mode=555
11546  ;;
11547
11548interix[3-9]*)
11549  version_type=linux # correct to gnu/linux during the next big refactor
11550  need_lib_prefix=no
11551  need_version=no
11552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11553  soname_spec='${libname}${release}${shared_ext}$major'
11554  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11555  shlibpath_var=LD_LIBRARY_PATH
11556  shlibpath_overrides_runpath=no
11557  hardcode_into_libs=yes
11558  ;;
11559
11560irix5* | irix6* | nonstopux*)
11561  case $host_os in
11562    nonstopux*) version_type=nonstopux ;;
11563    *)
11564	if test "$lt_cv_prog_gnu_ld" = yes; then
11565		version_type=linux # correct to gnu/linux during the next big refactor
11566	else
11567		version_type=irix
11568	fi ;;
11569  esac
11570  need_lib_prefix=no
11571  need_version=no
11572  soname_spec='${libname}${release}${shared_ext}$major'
11573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11574  case $host_os in
11575  irix5* | nonstopux*)
11576    libsuff= shlibsuff=
11577    ;;
11578  *)
11579    case $LD in # libtool.m4 will add one of these switches to LD
11580    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11581      libsuff= shlibsuff= libmagic=32-bit;;
11582    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11583      libsuff=32 shlibsuff=N32 libmagic=N32;;
11584    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11585      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11586    *) libsuff= shlibsuff= libmagic=never-match;;
11587    esac
11588    ;;
11589  esac
11590  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11591  shlibpath_overrides_runpath=no
11592  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11593  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11594  hardcode_into_libs=yes
11595  ;;
11596
11597# No shared lib support for Linux oldld, aout, or coff.
11598linux*oldld* | linux*aout* | linux*coff*)
11599  dynamic_linker=no
11600  ;;
11601
11602# This must be glibc/ELF.
11603linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11604  version_type=linux # correct to gnu/linux during the next big refactor
11605  need_lib_prefix=no
11606  need_version=no
11607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608  soname_spec='${libname}${release}${shared_ext}$major'
11609  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11610  shlibpath_var=LD_LIBRARY_PATH
11611  shlibpath_overrides_runpath=no
11612
11613  # Some binutils ld are patched to set DT_RUNPATH
11614  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11615  $as_echo_n "(cached) " >&6
11616else
11617  lt_cv_shlibpath_overrides_runpath=no
11618    save_LDFLAGS=$LDFLAGS
11619    save_libdir=$libdir
11620    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11621	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11622    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623/* end confdefs.h.  */
11624
11625int
11626main ()
11627{
11628
11629  ;
11630  return 0;
11631}
11632_ACEOF
11633if ac_fn_c_try_link "$LINENO"; then :
11634  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11635  lt_cv_shlibpath_overrides_runpath=yes
11636fi
11637fi
11638rm -f core conftest.err conftest.$ac_objext \
11639    conftest$ac_exeext conftest.$ac_ext
11640    LDFLAGS=$save_LDFLAGS
11641    libdir=$save_libdir
11642
11643fi
11644
11645  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11646
11647  # This implies no fast_install, which is unacceptable.
11648  # Some rework will be needed to allow for fast_install
11649  # before this can be enabled.
11650  hardcode_into_libs=yes
11651
11652  # Append ld.so.conf contents to the search path
11653  if test -f /etc/ld.so.conf; then
11654    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' ' '`
11655    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11656  fi
11657
11658  # We used to test for /lib/ld.so.1 and disable shared libraries on
11659  # powerpc, because MkLinux only supported shared libraries with the
11660  # GNU dynamic linker.  Since this was broken with cross compilers,
11661  # most powerpc-linux boxes support dynamic linking these days and
11662  # people can always --disable-shared, the test was removed, and we
11663  # assume the GNU/Linux dynamic linker is in use.
11664  dynamic_linker='GNU/Linux ld.so'
11665  ;;
11666
11667netbsdelf*-gnu)
11668  version_type=linux
11669  need_lib_prefix=no
11670  need_version=no
11671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11672  soname_spec='${libname}${release}${shared_ext}$major'
11673  shlibpath_var=LD_LIBRARY_PATH
11674  shlibpath_overrides_runpath=no
11675  hardcode_into_libs=yes
11676  dynamic_linker='NetBSD ld.elf_so'
11677  ;;
11678
11679netbsd*)
11680  version_type=sunos
11681  need_lib_prefix=no
11682  need_version=no
11683  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11684    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11685    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11686    dynamic_linker='NetBSD (a.out) ld.so'
11687  else
11688    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11689    soname_spec='${libname}${release}${shared_ext}$major'
11690    dynamic_linker='NetBSD ld.elf_so'
11691  fi
11692  shlibpath_var=LD_LIBRARY_PATH
11693  shlibpath_overrides_runpath=yes
11694  hardcode_into_libs=yes
11695  ;;
11696
11697newsos6)
11698  version_type=linux # correct to gnu/linux during the next big refactor
11699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700  shlibpath_var=LD_LIBRARY_PATH
11701  shlibpath_overrides_runpath=yes
11702  ;;
11703
11704*nto* | *qnx*)
11705  version_type=qnx
11706  need_lib_prefix=no
11707  need_version=no
11708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709  soname_spec='${libname}${release}${shared_ext}$major'
11710  shlibpath_var=LD_LIBRARY_PATH
11711  shlibpath_overrides_runpath=no
11712  hardcode_into_libs=yes
11713  dynamic_linker='ldqnx.so'
11714  ;;
11715
11716openbsd*)
11717  version_type=sunos
11718  sys_lib_dlsearch_path_spec="/usr/lib"
11719  need_lib_prefix=no
11720  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11721  case $host_os in
11722    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11723    *)				need_version=no  ;;
11724  esac
11725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11726  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11727  shlibpath_var=LD_LIBRARY_PATH
11728  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11729    case $host_os in
11730      openbsd2.[89] | openbsd2.[89].*)
11731	shlibpath_overrides_runpath=no
11732	;;
11733      *)
11734	shlibpath_overrides_runpath=yes
11735	;;
11736      esac
11737  else
11738    shlibpath_overrides_runpath=yes
11739  fi
11740  ;;
11741
11742os2*)
11743  libname_spec='$name'
11744  shrext_cmds=".dll"
11745  need_lib_prefix=no
11746  library_names_spec='$libname${shared_ext} $libname.a'
11747  dynamic_linker='OS/2 ld.exe'
11748  shlibpath_var=LIBPATH
11749  ;;
11750
11751osf3* | osf4* | osf5*)
11752  version_type=osf
11753  need_lib_prefix=no
11754  need_version=no
11755  soname_spec='${libname}${release}${shared_ext}$major'
11756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757  shlibpath_var=LD_LIBRARY_PATH
11758  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11759  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11760  ;;
11761
11762rdos*)
11763  dynamic_linker=no
11764  ;;
11765
11766solaris*)
11767  version_type=linux # correct to gnu/linux during the next big refactor
11768  need_lib_prefix=no
11769  need_version=no
11770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771  soname_spec='${libname}${release}${shared_ext}$major'
11772  shlibpath_var=LD_LIBRARY_PATH
11773  shlibpath_overrides_runpath=yes
11774  hardcode_into_libs=yes
11775  # ldd complains unless libraries are executable
11776  postinstall_cmds='chmod +x $lib'
11777  ;;
11778
11779sunos4*)
11780  version_type=sunos
11781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11782  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11783  shlibpath_var=LD_LIBRARY_PATH
11784  shlibpath_overrides_runpath=yes
11785  if test "$with_gnu_ld" = yes; then
11786    need_lib_prefix=no
11787  fi
11788  need_version=yes
11789  ;;
11790
11791sysv4 | sysv4.3*)
11792  version_type=linux # correct to gnu/linux during the next big refactor
11793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794  soname_spec='${libname}${release}${shared_ext}$major'
11795  shlibpath_var=LD_LIBRARY_PATH
11796  case $host_vendor in
11797    sni)
11798      shlibpath_overrides_runpath=no
11799      need_lib_prefix=no
11800      runpath_var=LD_RUN_PATH
11801      ;;
11802    siemens)
11803      need_lib_prefix=no
11804      ;;
11805    motorola)
11806      need_lib_prefix=no
11807      need_version=no
11808      shlibpath_overrides_runpath=no
11809      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11810      ;;
11811  esac
11812  ;;
11813
11814sysv4*MP*)
11815  if test -d /usr/nec ;then
11816    version_type=linux # correct to gnu/linux during the next big refactor
11817    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11818    soname_spec='$libname${shared_ext}.$major'
11819    shlibpath_var=LD_LIBRARY_PATH
11820  fi
11821  ;;
11822
11823sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11824  version_type=freebsd-elf
11825  need_lib_prefix=no
11826  need_version=no
11827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11828  soname_spec='${libname}${release}${shared_ext}$major'
11829  shlibpath_var=LD_LIBRARY_PATH
11830  shlibpath_overrides_runpath=yes
11831  hardcode_into_libs=yes
11832  if test "$with_gnu_ld" = yes; then
11833    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11834  else
11835    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11836    case $host_os in
11837      sco3.2v5*)
11838        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11839	;;
11840    esac
11841  fi
11842  sys_lib_dlsearch_path_spec='/usr/lib'
11843  ;;
11844
11845tpf*)
11846  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11847  version_type=linux # correct to gnu/linux during the next big refactor
11848  need_lib_prefix=no
11849  need_version=no
11850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851  shlibpath_var=LD_LIBRARY_PATH
11852  shlibpath_overrides_runpath=no
11853  hardcode_into_libs=yes
11854  ;;
11855
11856uts4*)
11857  version_type=linux # correct to gnu/linux during the next big refactor
11858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859  soname_spec='${libname}${release}${shared_ext}$major'
11860  shlibpath_var=LD_LIBRARY_PATH
11861  ;;
11862
11863*)
11864  dynamic_linker=no
11865  ;;
11866esac
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11868$as_echo "$dynamic_linker" >&6; }
11869test "$dynamic_linker" = no && can_build_shared=no
11870
11871variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11872if test "$GCC" = yes; then
11873  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11874fi
11875
11876if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11877  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11878fi
11879if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11880  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11881fi
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11975$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11976hardcode_action=
11977if test -n "$hardcode_libdir_flag_spec" ||
11978   test -n "$runpath_var" ||
11979   test "X$hardcode_automatic" = "Xyes" ; then
11980
11981  # We can hardcode non-existent directories.
11982  if test "$hardcode_direct" != no &&
11983     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11984     # have to relink, otherwise we might link with an installed library
11985     # when we should be linking with a yet-to-be-installed one
11986     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11987     test "$hardcode_minus_L" != no; then
11988    # Linking always hardcodes the temporary library directory.
11989    hardcode_action=relink
11990  else
11991    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11992    hardcode_action=immediate
11993  fi
11994else
11995  # We cannot hardcode anything, or else we can only hardcode existing
11996  # directories.
11997  hardcode_action=unsupported
11998fi
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12000$as_echo "$hardcode_action" >&6; }
12001
12002if test "$hardcode_action" = relink ||
12003   test "$inherit_rpath" = yes; then
12004  # Fast installation is not supported
12005  enable_fast_install=no
12006elif test "$shlibpath_overrides_runpath" = yes ||
12007     test "$enable_shared" = no; then
12008  # Fast installation is not necessary
12009  enable_fast_install=needless
12010fi
12011
12012
12013
12014
12015
12016
12017  if test "x$enable_dlopen" != xyes; then
12018  enable_dlopen=unknown
12019  enable_dlopen_self=unknown
12020  enable_dlopen_self_static=unknown
12021else
12022  lt_cv_dlopen=no
12023  lt_cv_dlopen_libs=
12024
12025  case $host_os in
12026  beos*)
12027    lt_cv_dlopen="load_add_on"
12028    lt_cv_dlopen_libs=
12029    lt_cv_dlopen_self=yes
12030    ;;
12031
12032  mingw* | pw32* | cegcc*)
12033    lt_cv_dlopen="LoadLibrary"
12034    lt_cv_dlopen_libs=
12035    ;;
12036
12037  cygwin*)
12038    lt_cv_dlopen="dlopen"
12039    lt_cv_dlopen_libs=
12040    ;;
12041
12042  darwin*)
12043  # if libdl is installed we need to link against it
12044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12045$as_echo_n "checking for dlopen in -ldl... " >&6; }
12046if ${ac_cv_lib_dl_dlopen+:} false; then :
12047  $as_echo_n "(cached) " >&6
12048else
12049  ac_check_lib_save_LIBS=$LIBS
12050LIBS="-ldl  $LIBS"
12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h.  */
12053
12054/* Override any GCC internal prototype to avoid an error.
12055   Use char because int might match the return type of a GCC
12056   builtin and then its argument prototype would still apply.  */
12057#ifdef __cplusplus
12058extern "C"
12059#endif
12060char dlopen ();
12061int
12062main ()
12063{
12064return dlopen ();
12065  ;
12066  return 0;
12067}
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070  ac_cv_lib_dl_dlopen=yes
12071else
12072  ac_cv_lib_dl_dlopen=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075    conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12079$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12080if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12081  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12082else
12083
12084    lt_cv_dlopen="dyld"
12085    lt_cv_dlopen_libs=
12086    lt_cv_dlopen_self=yes
12087
12088fi
12089
12090    ;;
12091
12092  *)
12093    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12094if test "x$ac_cv_func_shl_load" = xyes; then :
12095  lt_cv_dlopen="shl_load"
12096else
12097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12098$as_echo_n "checking for shl_load in -ldld... " >&6; }
12099if ${ac_cv_lib_dld_shl_load+:} false; then :
12100  $as_echo_n "(cached) " >&6
12101else
12102  ac_check_lib_save_LIBS=$LIBS
12103LIBS="-ldld  $LIBS"
12104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105/* end confdefs.h.  */
12106
12107/* Override any GCC internal prototype to avoid an error.
12108   Use char because int might match the return type of a GCC
12109   builtin and then its argument prototype would still apply.  */
12110#ifdef __cplusplus
12111extern "C"
12112#endif
12113char shl_load ();
12114int
12115main ()
12116{
12117return shl_load ();
12118  ;
12119  return 0;
12120}
12121_ACEOF
12122if ac_fn_c_try_link "$LINENO"; then :
12123  ac_cv_lib_dld_shl_load=yes
12124else
12125  ac_cv_lib_dld_shl_load=no
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128    conftest$ac_exeext conftest.$ac_ext
12129LIBS=$ac_check_lib_save_LIBS
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12132$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12133if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12134  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12135else
12136  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12137if test "x$ac_cv_func_dlopen" = xyes; then :
12138  lt_cv_dlopen="dlopen"
12139else
12140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12141$as_echo_n "checking for dlopen in -ldl... " >&6; }
12142if ${ac_cv_lib_dl_dlopen+:} false; then :
12143  $as_echo_n "(cached) " >&6
12144else
12145  ac_check_lib_save_LIBS=$LIBS
12146LIBS="-ldl  $LIBS"
12147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148/* end confdefs.h.  */
12149
12150/* Override any GCC internal prototype to avoid an error.
12151   Use char because int might match the return type of a GCC
12152   builtin and then its argument prototype would still apply.  */
12153#ifdef __cplusplus
12154extern "C"
12155#endif
12156char dlopen ();
12157int
12158main ()
12159{
12160return dlopen ();
12161  ;
12162  return 0;
12163}
12164_ACEOF
12165if ac_fn_c_try_link "$LINENO"; then :
12166  ac_cv_lib_dl_dlopen=yes
12167else
12168  ac_cv_lib_dl_dlopen=no
12169fi
12170rm -f core conftest.err conftest.$ac_objext \
12171    conftest$ac_exeext conftest.$ac_ext
12172LIBS=$ac_check_lib_save_LIBS
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12175$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12176if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12177  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12178else
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12180$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12181if ${ac_cv_lib_svld_dlopen+:} false; then :
12182  $as_echo_n "(cached) " >&6
12183else
12184  ac_check_lib_save_LIBS=$LIBS
12185LIBS="-lsvld  $LIBS"
12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188
12189/* Override any GCC internal prototype to avoid an error.
12190   Use char because int might match the return type of a GCC
12191   builtin and then its argument prototype would still apply.  */
12192#ifdef __cplusplus
12193extern "C"
12194#endif
12195char dlopen ();
12196int
12197main ()
12198{
12199return dlopen ();
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204if ac_fn_c_try_link "$LINENO"; then :
12205  ac_cv_lib_svld_dlopen=yes
12206else
12207  ac_cv_lib_svld_dlopen=no
12208fi
12209rm -f core conftest.err conftest.$ac_objext \
12210    conftest$ac_exeext conftest.$ac_ext
12211LIBS=$ac_check_lib_save_LIBS
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12214$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12215if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12216  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12217else
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12219$as_echo_n "checking for dld_link in -ldld... " >&6; }
12220if ${ac_cv_lib_dld_dld_link+:} false; then :
12221  $as_echo_n "(cached) " >&6
12222else
12223  ac_check_lib_save_LIBS=$LIBS
12224LIBS="-ldld  $LIBS"
12225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226/* end confdefs.h.  */
12227
12228/* Override any GCC internal prototype to avoid an error.
12229   Use char because int might match the return type of a GCC
12230   builtin and then its argument prototype would still apply.  */
12231#ifdef __cplusplus
12232extern "C"
12233#endif
12234char dld_link ();
12235int
12236main ()
12237{
12238return dld_link ();
12239  ;
12240  return 0;
12241}
12242_ACEOF
12243if ac_fn_c_try_link "$LINENO"; then :
12244  ac_cv_lib_dld_dld_link=yes
12245else
12246  ac_cv_lib_dld_dld_link=no
12247fi
12248rm -f core conftest.err conftest.$ac_objext \
12249    conftest$ac_exeext conftest.$ac_ext
12250LIBS=$ac_check_lib_save_LIBS
12251fi
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12253$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12254if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12255  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12256fi
12257
12258
12259fi
12260
12261
12262fi
12263
12264
12265fi
12266
12267
12268fi
12269
12270
12271fi
12272
12273    ;;
12274  esac
12275
12276  if test "x$lt_cv_dlopen" != xno; then
12277    enable_dlopen=yes
12278  else
12279    enable_dlopen=no
12280  fi
12281
12282  case $lt_cv_dlopen in
12283  dlopen)
12284    save_CPPFLAGS="$CPPFLAGS"
12285    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12286
12287    save_LDFLAGS="$LDFLAGS"
12288    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12289
12290    save_LIBS="$LIBS"
12291    LIBS="$lt_cv_dlopen_libs $LIBS"
12292
12293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12294$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12295if ${lt_cv_dlopen_self+:} false; then :
12296  $as_echo_n "(cached) " >&6
12297else
12298  	  if test "$cross_compiling" = yes; then :
12299  lt_cv_dlopen_self=cross
12300else
12301  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12302  lt_status=$lt_dlunknown
12303  cat > conftest.$ac_ext <<_LT_EOF
12304#line $LINENO "configure"
12305#include "confdefs.h"
12306
12307#if HAVE_DLFCN_H
12308#include <dlfcn.h>
12309#endif
12310
12311#include <stdio.h>
12312
12313#ifdef RTLD_GLOBAL
12314#  define LT_DLGLOBAL		RTLD_GLOBAL
12315#else
12316#  ifdef DL_GLOBAL
12317#    define LT_DLGLOBAL		DL_GLOBAL
12318#  else
12319#    define LT_DLGLOBAL		0
12320#  endif
12321#endif
12322
12323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12324   find out it does not work in some platform. */
12325#ifndef LT_DLLAZY_OR_NOW
12326#  ifdef RTLD_LAZY
12327#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12328#  else
12329#    ifdef DL_LAZY
12330#      define LT_DLLAZY_OR_NOW		DL_LAZY
12331#    else
12332#      ifdef RTLD_NOW
12333#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12334#      else
12335#        ifdef DL_NOW
12336#          define LT_DLLAZY_OR_NOW	DL_NOW
12337#        else
12338#          define LT_DLLAZY_OR_NOW	0
12339#        endif
12340#      endif
12341#    endif
12342#  endif
12343#endif
12344
12345/* When -fvisbility=hidden is used, assume the code has been annotated
12346   correspondingly for the symbols needed.  */
12347#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12348int fnord () __attribute__((visibility("default")));
12349#endif
12350
12351int fnord () { return 42; }
12352int main ()
12353{
12354  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12355  int status = $lt_dlunknown;
12356
12357  if (self)
12358    {
12359      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12360      else
12361        {
12362	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12363          else puts (dlerror ());
12364	}
12365      /* dlclose (self); */
12366    }
12367  else
12368    puts (dlerror ());
12369
12370  return status;
12371}
12372_LT_EOF
12373  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12374  (eval $ac_link) 2>&5
12375  ac_status=$?
12376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12378    (./conftest; exit; ) >&5 2>/dev/null
12379    lt_status=$?
12380    case x$lt_status in
12381      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12382      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12383      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12384    esac
12385  else :
12386    # compilation failed
12387    lt_cv_dlopen_self=no
12388  fi
12389fi
12390rm -fr conftest*
12391
12392
12393fi
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12395$as_echo "$lt_cv_dlopen_self" >&6; }
12396
12397    if test "x$lt_cv_dlopen_self" = xyes; then
12398      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12399      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12400$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12401if ${lt_cv_dlopen_self_static+:} false; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  	  if test "$cross_compiling" = yes; then :
12405  lt_cv_dlopen_self_static=cross
12406else
12407  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12408  lt_status=$lt_dlunknown
12409  cat > conftest.$ac_ext <<_LT_EOF
12410#line $LINENO "configure"
12411#include "confdefs.h"
12412
12413#if HAVE_DLFCN_H
12414#include <dlfcn.h>
12415#endif
12416
12417#include <stdio.h>
12418
12419#ifdef RTLD_GLOBAL
12420#  define LT_DLGLOBAL		RTLD_GLOBAL
12421#else
12422#  ifdef DL_GLOBAL
12423#    define LT_DLGLOBAL		DL_GLOBAL
12424#  else
12425#    define LT_DLGLOBAL		0
12426#  endif
12427#endif
12428
12429/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12430   find out it does not work in some platform. */
12431#ifndef LT_DLLAZY_OR_NOW
12432#  ifdef RTLD_LAZY
12433#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12434#  else
12435#    ifdef DL_LAZY
12436#      define LT_DLLAZY_OR_NOW		DL_LAZY
12437#    else
12438#      ifdef RTLD_NOW
12439#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12440#      else
12441#        ifdef DL_NOW
12442#          define LT_DLLAZY_OR_NOW	DL_NOW
12443#        else
12444#          define LT_DLLAZY_OR_NOW	0
12445#        endif
12446#      endif
12447#    endif
12448#  endif
12449#endif
12450
12451/* When -fvisbility=hidden is used, assume the code has been annotated
12452   correspondingly for the symbols needed.  */
12453#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12454int fnord () __attribute__((visibility("default")));
12455#endif
12456
12457int fnord () { return 42; }
12458int main ()
12459{
12460  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12461  int status = $lt_dlunknown;
12462
12463  if (self)
12464    {
12465      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12466      else
12467        {
12468	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12469          else puts (dlerror ());
12470	}
12471      /* dlclose (self); */
12472    }
12473  else
12474    puts (dlerror ());
12475
12476  return status;
12477}
12478_LT_EOF
12479  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12480  (eval $ac_link) 2>&5
12481  ac_status=$?
12482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12484    (./conftest; exit; ) >&5 2>/dev/null
12485    lt_status=$?
12486    case x$lt_status in
12487      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12488      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12489      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12490    esac
12491  else :
12492    # compilation failed
12493    lt_cv_dlopen_self_static=no
12494  fi
12495fi
12496rm -fr conftest*
12497
12498
12499fi
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12501$as_echo "$lt_cv_dlopen_self_static" >&6; }
12502    fi
12503
12504    CPPFLAGS="$save_CPPFLAGS"
12505    LDFLAGS="$save_LDFLAGS"
12506    LIBS="$save_LIBS"
12507    ;;
12508  esac
12509
12510  case $lt_cv_dlopen_self in
12511  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12512  *) enable_dlopen_self=unknown ;;
12513  esac
12514
12515  case $lt_cv_dlopen_self_static in
12516  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12517  *) enable_dlopen_self_static=unknown ;;
12518  esac
12519fi
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537striplib=
12538old_striplib=
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12540$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12541if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12542  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12543  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545$as_echo "yes" >&6; }
12546else
12547# FIXME - insert some real tests, host_os isn't really good enough
12548  case $host_os in
12549  darwin*)
12550    if test -n "$STRIP" ; then
12551      striplib="$STRIP -x"
12552      old_striplib="$STRIP -S"
12553      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12554$as_echo "yes" >&6; }
12555    else
12556      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
12558    fi
12559    ;;
12560  *)
12561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562$as_echo "no" >&6; }
12563    ;;
12564  esac
12565fi
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578  # Report which library types will actually be built
12579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12580$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12582$as_echo "$can_build_shared" >&6; }
12583
12584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12585$as_echo_n "checking whether to build shared libraries... " >&6; }
12586  test "$can_build_shared" = "no" && enable_shared=no
12587
12588  # On AIX, shared libraries and static libraries use the same namespace, and
12589  # are all built from PIC.
12590  case $host_os in
12591  aix3*)
12592    test "$enable_shared" = yes && enable_static=no
12593    if test -n "$RANLIB"; then
12594      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12595      postinstall_cmds='$RANLIB $lib'
12596    fi
12597    ;;
12598
12599  aix[4-9]*)
12600    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12601      test "$enable_shared" = yes && enable_static=no
12602    fi
12603    ;;
12604  esac
12605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12606$as_echo "$enable_shared" >&6; }
12607
12608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12609$as_echo_n "checking whether to build static libraries... " >&6; }
12610  # Make sure either enable_shared or enable_static is yes.
12611  test "$enable_shared" = yes || enable_static=yes
12612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12613$as_echo "$enable_static" >&6; }
12614
12615
12616
12617
12618fi
12619ac_ext=c
12620ac_cpp='$CPP $CPPFLAGS'
12621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623ac_compiler_gnu=$ac_cv_c_compiler_gnu
12624
12625CC="$lt_save_CC"
12626
12627      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12628    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12629    (test "X$CXX" != "Xg++"))) ; then
12630  ac_ext=cpp
12631ac_cpp='$CXXCPP $CPPFLAGS'
12632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12636$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12637if test -z "$CXXCPP"; then
12638  if ${ac_cv_prog_CXXCPP+:} false; then :
12639  $as_echo_n "(cached) " >&6
12640else
12641      # Double quotes because CXXCPP needs to be expanded
12642    for CXXCPP in "$CXX -E" "/lib/cpp"
12643    do
12644      ac_preproc_ok=false
12645for ac_cxx_preproc_warn_flag in '' yes
12646do
12647  # Use a header file that comes with gcc, so configuring glibc
12648  # with a fresh cross-compiler works.
12649  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650  # <limits.h> exists even on freestanding compilers.
12651  # On the NeXT, cc -E runs the code through the compiler's parser,
12652  # not just through cpp. "Syntax error" is here to catch this case.
12653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654/* end confdefs.h.  */
12655#ifdef __STDC__
12656# include <limits.h>
12657#else
12658# include <assert.h>
12659#endif
12660		     Syntax error
12661_ACEOF
12662if ac_fn_cxx_try_cpp "$LINENO"; then :
12663
12664else
12665  # Broken: fails on valid input.
12666continue
12667fi
12668rm -f conftest.err conftest.i conftest.$ac_ext
12669
12670  # OK, works on sane cases.  Now check whether nonexistent headers
12671  # can be detected and how.
12672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h.  */
12674#include <ac_nonexistent.h>
12675_ACEOF
12676if ac_fn_cxx_try_cpp "$LINENO"; then :
12677  # Broken: success on invalid input.
12678continue
12679else
12680  # Passes both tests.
12681ac_preproc_ok=:
12682break
12683fi
12684rm -f conftest.err conftest.i conftest.$ac_ext
12685
12686done
12687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12688rm -f conftest.i conftest.err conftest.$ac_ext
12689if $ac_preproc_ok; then :
12690  break
12691fi
12692
12693    done
12694    ac_cv_prog_CXXCPP=$CXXCPP
12695
12696fi
12697  CXXCPP=$ac_cv_prog_CXXCPP
12698else
12699  ac_cv_prog_CXXCPP=$CXXCPP
12700fi
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12702$as_echo "$CXXCPP" >&6; }
12703ac_preproc_ok=false
12704for ac_cxx_preproc_warn_flag in '' yes
12705do
12706  # Use a header file that comes with gcc, so configuring glibc
12707  # with a fresh cross-compiler works.
12708  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709  # <limits.h> exists even on freestanding compilers.
12710  # On the NeXT, cc -E runs the code through the compiler's parser,
12711  # not just through cpp. "Syntax error" is here to catch this case.
12712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h.  */
12714#ifdef __STDC__
12715# include <limits.h>
12716#else
12717# include <assert.h>
12718#endif
12719		     Syntax error
12720_ACEOF
12721if ac_fn_cxx_try_cpp "$LINENO"; then :
12722
12723else
12724  # Broken: fails on valid input.
12725continue
12726fi
12727rm -f conftest.err conftest.i conftest.$ac_ext
12728
12729  # OK, works on sane cases.  Now check whether nonexistent headers
12730  # can be detected and how.
12731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733#include <ac_nonexistent.h>
12734_ACEOF
12735if ac_fn_cxx_try_cpp "$LINENO"; then :
12736  # Broken: success on invalid input.
12737continue
12738else
12739  # Passes both tests.
12740ac_preproc_ok=:
12741break
12742fi
12743rm -f conftest.err conftest.i conftest.$ac_ext
12744
12745done
12746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12747rm -f conftest.i conftest.err conftest.$ac_ext
12748if $ac_preproc_ok; then :
12749
12750else
12751  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12753as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12754See \`config.log' for more details" "$LINENO" 5; }
12755fi
12756
12757ac_ext=c
12758ac_cpp='$CPP $CPPFLAGS'
12759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762
12763else
12764  _lt_caught_CXX_error=yes
12765fi
12766
12767ac_ext=cpp
12768ac_cpp='$CXXCPP $CPPFLAGS'
12769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12772
12773archive_cmds_need_lc_CXX=no
12774allow_undefined_flag_CXX=
12775always_export_symbols_CXX=no
12776archive_expsym_cmds_CXX=
12777compiler_needs_object_CXX=no
12778export_dynamic_flag_spec_CXX=
12779hardcode_direct_CXX=no
12780hardcode_direct_absolute_CXX=no
12781hardcode_libdir_flag_spec_CXX=
12782hardcode_libdir_separator_CXX=
12783hardcode_minus_L_CXX=no
12784hardcode_shlibpath_var_CXX=unsupported
12785hardcode_automatic_CXX=no
12786inherit_rpath_CXX=no
12787module_cmds_CXX=
12788module_expsym_cmds_CXX=
12789link_all_deplibs_CXX=unknown
12790old_archive_cmds_CXX=$old_archive_cmds
12791reload_flag_CXX=$reload_flag
12792reload_cmds_CXX=$reload_cmds
12793no_undefined_flag_CXX=
12794whole_archive_flag_spec_CXX=
12795enable_shared_with_static_runtimes_CXX=no
12796
12797# Source file extension for C++ test sources.
12798ac_ext=cpp
12799
12800# Object file extension for compiled C++ test sources.
12801objext=o
12802objext_CXX=$objext
12803
12804# No sense in running all these tests if we already determined that
12805# the CXX compiler isn't working.  Some variables (like enable_shared)
12806# are currently assumed to apply to all compilers on this platform,
12807# and will be corrupted by setting them based on a non-working compiler.
12808if test "$_lt_caught_CXX_error" != yes; then
12809  # Code to be used in simple compile tests
12810  lt_simple_compile_test_code="int some_variable = 0;"
12811
12812  # Code to be used in simple link tests
12813  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12814
12815  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12816
12817
12818
12819
12820
12821
12822# If no C compiler was specified, use CC.
12823LTCC=${LTCC-"$CC"}
12824
12825# If no C compiler flags were specified, use CFLAGS.
12826LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12827
12828# Allow CC to be a program name with arguments.
12829compiler=$CC
12830
12831
12832  # save warnings/boilerplate of simple test code
12833  ac_outfile=conftest.$ac_objext
12834echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12835eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12836_lt_compiler_boilerplate=`cat conftest.err`
12837$RM conftest*
12838
12839  ac_outfile=conftest.$ac_objext
12840echo "$lt_simple_link_test_code" >conftest.$ac_ext
12841eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12842_lt_linker_boilerplate=`cat conftest.err`
12843$RM -r conftest*
12844
12845
12846  # Allow CC to be a program name with arguments.
12847  lt_save_CC=$CC
12848  lt_save_CFLAGS=$CFLAGS
12849  lt_save_LD=$LD
12850  lt_save_GCC=$GCC
12851  GCC=$GXX
12852  lt_save_with_gnu_ld=$with_gnu_ld
12853  lt_save_path_LD=$lt_cv_path_LD
12854  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12855    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12856  else
12857    $as_unset lt_cv_prog_gnu_ld
12858  fi
12859  if test -n "${lt_cv_path_LDCXX+set}"; then
12860    lt_cv_path_LD=$lt_cv_path_LDCXX
12861  else
12862    $as_unset lt_cv_path_LD
12863  fi
12864  test -z "${LDCXX+set}" || LD=$LDCXX
12865  CC=${CXX-"c++"}
12866  CFLAGS=$CXXFLAGS
12867  compiler=$CC
12868  compiler_CXX=$CC
12869  for cc_temp in $compiler""; do
12870  case $cc_temp in
12871    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12872    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12873    \-*) ;;
12874    *) break;;
12875  esac
12876done
12877cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12878
12879
12880  if test -n "$compiler"; then
12881    # We don't want -fno-exception when compiling C++ code, so set the
12882    # no_builtin_flag separately
12883    if test "$GXX" = yes; then
12884      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12885    else
12886      lt_prog_compiler_no_builtin_flag_CXX=
12887    fi
12888
12889    if test "$GXX" = yes; then
12890      # Set up default GNU C++ configuration
12891
12892
12893
12894# Check whether --with-gnu-ld was given.
12895if test "${with_gnu_ld+set}" = set; then :
12896  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12897else
12898  with_gnu_ld=no
12899fi
12900
12901ac_prog=ld
12902if test "$GCC" = yes; then
12903  # Check if gcc -print-prog-name=ld gives a path.
12904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12905$as_echo_n "checking for ld used by $CC... " >&6; }
12906  case $host in
12907  *-*-mingw*)
12908    # gcc leaves a trailing carriage return which upsets mingw
12909    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12910  *)
12911    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12912  esac
12913  case $ac_prog in
12914    # Accept absolute paths.
12915    [\\/]* | ?:[\\/]*)
12916      re_direlt='/[^/][^/]*/\.\./'
12917      # Canonicalize the pathname of ld
12918      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12919      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12920	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12921      done
12922      test -z "$LD" && LD="$ac_prog"
12923      ;;
12924  "")
12925    # If it fails, then pretend we aren't using GCC.
12926    ac_prog=ld
12927    ;;
12928  *)
12929    # If it is relative, then search for the first ld in PATH.
12930    with_gnu_ld=unknown
12931    ;;
12932  esac
12933elif test "$with_gnu_ld" = yes; then
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12935$as_echo_n "checking for GNU ld... " >&6; }
12936else
12937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12938$as_echo_n "checking for non-GNU ld... " >&6; }
12939fi
12940if ${lt_cv_path_LD+:} false; then :
12941  $as_echo_n "(cached) " >&6
12942else
12943  if test -z "$LD"; then
12944  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12945  for ac_dir in $PATH; do
12946    IFS="$lt_save_ifs"
12947    test -z "$ac_dir" && ac_dir=.
12948    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12949      lt_cv_path_LD="$ac_dir/$ac_prog"
12950      # Check to see if the program is GNU ld.  I'd rather use --version,
12951      # but apparently some variants of GNU ld only accept -v.
12952      # Break only if it was the GNU/non-GNU ld that we prefer.
12953      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12954      *GNU* | *'with BFD'*)
12955	test "$with_gnu_ld" != no && break
12956	;;
12957      *)
12958	test "$with_gnu_ld" != yes && break
12959	;;
12960      esac
12961    fi
12962  done
12963  IFS="$lt_save_ifs"
12964else
12965  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12966fi
12967fi
12968
12969LD="$lt_cv_path_LD"
12970if test -n "$LD"; then
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12972$as_echo "$LD" >&6; }
12973else
12974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
12976fi
12977test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12979$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12980if ${lt_cv_prog_gnu_ld+:} false; then :
12981  $as_echo_n "(cached) " >&6
12982else
12983  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12984case `$LD -v 2>&1 </dev/null` in
12985*GNU* | *'with BFD'*)
12986  lt_cv_prog_gnu_ld=yes
12987  ;;
12988*)
12989  lt_cv_prog_gnu_ld=no
12990  ;;
12991esac
12992fi
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12994$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12995with_gnu_ld=$lt_cv_prog_gnu_ld
12996
12997
12998
12999
13000
13001
13002
13003      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13004      # archiving commands below assume that GNU ld is being used.
13005      if test "$with_gnu_ld" = yes; then
13006        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13007        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'
13008
13009        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13010        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13011
13012        # If archive_cmds runs LD, not CC, wlarc should be empty
13013        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13014        #     investigate it a little bit more. (MM)
13015        wlarc='${wl}'
13016
13017        # ancient GNU ld didn't support --whole-archive et. al.
13018        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13019	  $GREP 'no-whole-archive' > /dev/null; then
13020          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13021        else
13022          whole_archive_flag_spec_CXX=
13023        fi
13024      else
13025        with_gnu_ld=no
13026        wlarc=
13027
13028        # A generic and very simple default shared library creation
13029        # command for GNU C++ for the case where it uses the native
13030        # linker, instead of GNU ld.  If possible, this setting should
13031        # overridden to take advantage of the native linker features on
13032        # the platform it is being used on.
13033        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13034      fi
13035
13036      # Commands to make compiler produce verbose output that lists
13037      # what "hidden" libraries, object files and flags are used when
13038      # linking a shared library.
13039      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13040
13041    else
13042      GXX=no
13043      with_gnu_ld=no
13044      wlarc=
13045    fi
13046
13047    # PORTME: fill in a description of your system's C++ link characteristics
13048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13049$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13050    ld_shlibs_CXX=yes
13051    case $host_os in
13052      aix3*)
13053        # FIXME: insert proper C++ library support
13054        ld_shlibs_CXX=no
13055        ;;
13056      aix[4-9]*)
13057        if test "$host_cpu" = ia64; then
13058          # On IA64, the linker does run time linking by default, so we don't
13059          # have to do anything special.
13060          aix_use_runtimelinking=no
13061          exp_sym_flag='-Bexport'
13062          no_entry_flag=""
13063        else
13064          aix_use_runtimelinking=no
13065
13066          # Test if we are trying to use run time linking or normal
13067          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13068          # need to do runtime linking.
13069          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13070	    for ld_flag in $LDFLAGS; do
13071	      case $ld_flag in
13072	      *-brtl*)
13073	        aix_use_runtimelinking=yes
13074	        break
13075	        ;;
13076	      esac
13077	    done
13078	    ;;
13079          esac
13080
13081          exp_sym_flag='-bexport'
13082          no_entry_flag='-bnoentry'
13083        fi
13084
13085        # When large executables or shared objects are built, AIX ld can
13086        # have problems creating the table of contents.  If linking a library
13087        # or program results in "error TOC overflow" add -mminimal-toc to
13088        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13089        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13090
13091        archive_cmds_CXX=''
13092        hardcode_direct_CXX=yes
13093        hardcode_direct_absolute_CXX=yes
13094        hardcode_libdir_separator_CXX=':'
13095        link_all_deplibs_CXX=yes
13096        file_list_spec_CXX='${wl}-f,'
13097
13098        if test "$GXX" = yes; then
13099          case $host_os in aix4.[012]|aix4.[012].*)
13100          # We only want to do this on AIX 4.2 and lower, the check
13101          # below for broken collect2 doesn't work under 4.3+
13102	  collect2name=`${CC} -print-prog-name=collect2`
13103	  if test -f "$collect2name" &&
13104	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13105	  then
13106	    # We have reworked collect2
13107	    :
13108	  else
13109	    # We have old collect2
13110	    hardcode_direct_CXX=unsupported
13111	    # It fails to find uninstalled libraries when the uninstalled
13112	    # path is not listed in the libpath.  Setting hardcode_minus_L
13113	    # to unsupported forces relinking
13114	    hardcode_minus_L_CXX=yes
13115	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13116	    hardcode_libdir_separator_CXX=
13117	  fi
13118          esac
13119          shared_flag='-shared'
13120	  if test "$aix_use_runtimelinking" = yes; then
13121	    shared_flag="$shared_flag "'${wl}-G'
13122	  fi
13123        else
13124          # not using gcc
13125          if test "$host_cpu" = ia64; then
13126	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13127	  # chokes on -Wl,-G. The following line is correct:
13128	  shared_flag='-G'
13129          else
13130	    if test "$aix_use_runtimelinking" = yes; then
13131	      shared_flag='${wl}-G'
13132	    else
13133	      shared_flag='${wl}-bM:SRE'
13134	    fi
13135          fi
13136        fi
13137
13138        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13139        # It seems that -bexpall does not export symbols beginning with
13140        # underscore (_), so it is better to generate a list of symbols to
13141	# export.
13142        always_export_symbols_CXX=yes
13143        if test "$aix_use_runtimelinking" = yes; then
13144          # Warning - without using the other runtime loading flags (-brtl),
13145          # -berok will link without error, but may produce a broken library.
13146          allow_undefined_flag_CXX='-berok'
13147          # Determine the default libpath from the value encoded in an empty
13148          # executable.
13149          if test "${lt_cv_aix_libpath+set}" = set; then
13150  aix_libpath=$lt_cv_aix_libpath
13151else
13152  if ${lt_cv_aix_libpath__CXX+:} false; then :
13153  $as_echo_n "(cached) " >&6
13154else
13155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157
13158int
13159main ()
13160{
13161
13162  ;
13163  return 0;
13164}
13165_ACEOF
13166if ac_fn_cxx_try_link "$LINENO"; then :
13167
13168  lt_aix_libpath_sed='
13169      /Import File Strings/,/^$/ {
13170	  /^0/ {
13171	      s/^0  *\([^ ]*\) *$/\1/
13172	      p
13173	  }
13174      }'
13175  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13176  # Check for a 64-bit object if we didn't find anything.
13177  if test -z "$lt_cv_aix_libpath__CXX"; then
13178    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13179  fi
13180fi
13181rm -f core conftest.err conftest.$ac_objext \
13182    conftest$ac_exeext conftest.$ac_ext
13183  if test -z "$lt_cv_aix_libpath__CXX"; then
13184    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13185  fi
13186
13187fi
13188
13189  aix_libpath=$lt_cv_aix_libpath__CXX
13190fi
13191
13192          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13193
13194          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"
13195        else
13196          if test "$host_cpu" = ia64; then
13197	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13198	    allow_undefined_flag_CXX="-z nodefs"
13199	    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"
13200          else
13201	    # Determine the default libpath from the value encoded in an
13202	    # empty executable.
13203	    if test "${lt_cv_aix_libpath+set}" = set; then
13204  aix_libpath=$lt_cv_aix_libpath
13205else
13206  if ${lt_cv_aix_libpath__CXX+:} false; then :
13207  $as_echo_n "(cached) " >&6
13208else
13209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h.  */
13211
13212int
13213main ()
13214{
13215
13216  ;
13217  return 0;
13218}
13219_ACEOF
13220if ac_fn_cxx_try_link "$LINENO"; then :
13221
13222  lt_aix_libpath_sed='
13223      /Import File Strings/,/^$/ {
13224	  /^0/ {
13225	      s/^0  *\([^ ]*\) *$/\1/
13226	      p
13227	  }
13228      }'
13229  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13230  # Check for a 64-bit object if we didn't find anything.
13231  if test -z "$lt_cv_aix_libpath__CXX"; then
13232    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13233  fi
13234fi
13235rm -f core conftest.err conftest.$ac_objext \
13236    conftest$ac_exeext conftest.$ac_ext
13237  if test -z "$lt_cv_aix_libpath__CXX"; then
13238    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13239  fi
13240
13241fi
13242
13243  aix_libpath=$lt_cv_aix_libpath__CXX
13244fi
13245
13246	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13247	    # Warning - without using the other run time loading flags,
13248	    # -berok will link without error, but may produce a broken library.
13249	    no_undefined_flag_CXX=' ${wl}-bernotok'
13250	    allow_undefined_flag_CXX=' ${wl}-berok'
13251	    if test "$with_gnu_ld" = yes; then
13252	      # We only use this code for GNU lds that support --whole-archive.
13253	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13254	    else
13255	      # Exported symbols can be pulled into shared objects from archives
13256	      whole_archive_flag_spec_CXX='$convenience'
13257	    fi
13258	    archive_cmds_need_lc_CXX=yes
13259	    # This is similar to how AIX traditionally builds its shared
13260	    # libraries.
13261	    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'
13262          fi
13263        fi
13264        ;;
13265
13266      beos*)
13267	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13268	  allow_undefined_flag_CXX=unsupported
13269	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13270	  # support --undefined.  This deserves some investigation.  FIXME
13271	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13272	else
13273	  ld_shlibs_CXX=no
13274	fi
13275	;;
13276
13277      chorus*)
13278        case $cc_basename in
13279          *)
13280	  # FIXME: insert proper C++ library support
13281	  ld_shlibs_CXX=no
13282	  ;;
13283        esac
13284        ;;
13285
13286      cygwin* | mingw* | pw32* | cegcc*)
13287	case $GXX,$cc_basename in
13288	,cl* | no,cl*)
13289	  # Native MSVC
13290	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13291	  # no search path for DLLs.
13292	  hardcode_libdir_flag_spec_CXX=' '
13293	  allow_undefined_flag_CXX=unsupported
13294	  always_export_symbols_CXX=yes
13295	  file_list_spec_CXX='@'
13296	  # Tell ltmain to make .lib files, not .a files.
13297	  libext=lib
13298	  # Tell ltmain to make .dll files, not .so files.
13299	  shrext_cmds=".dll"
13300	  # FIXME: Setting linknames here is a bad hack.
13301	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13302	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13303	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13304	    else
13305	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13306	    fi~
13307	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13308	    linknames='
13309	  # The linker will not automatically build a static lib if we build a DLL.
13310	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13311	  enable_shared_with_static_runtimes_CXX=yes
13312	  # Don't use ranlib
13313	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13314	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13315	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13316	    case $lt_outputfile in
13317	      *.exe|*.EXE) ;;
13318	      *)
13319		lt_outputfile="$lt_outputfile.exe"
13320		lt_tool_outputfile="$lt_tool_outputfile.exe"
13321		;;
13322	    esac~
13323	    func_to_tool_file "$lt_outputfile"~
13324	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13325	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13326	      $RM "$lt_outputfile.manifest";
13327	    fi'
13328	  ;;
13329	*)
13330	  # g++
13331	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13332	  # as there is no search path for DLLs.
13333	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13334	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13335	  allow_undefined_flag_CXX=unsupported
13336	  always_export_symbols_CXX=no
13337	  enable_shared_with_static_runtimes_CXX=yes
13338
13339	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13340	    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'
13341	    # If the export-symbols file already is a .def file (1st line
13342	    # is EXPORTS), use it as is; otherwise, prepend...
13343	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13344	      cp $export_symbols $output_objdir/$soname.def;
13345	    else
13346	      echo EXPORTS > $output_objdir/$soname.def;
13347	      cat $export_symbols >> $output_objdir/$soname.def;
13348	    fi~
13349	    $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'
13350	  else
13351	    ld_shlibs_CXX=no
13352	  fi
13353	  ;;
13354	esac
13355	;;
13356      darwin* | rhapsody*)
13357
13358
13359  archive_cmds_need_lc_CXX=no
13360  hardcode_direct_CXX=no
13361  hardcode_automatic_CXX=yes
13362  hardcode_shlibpath_var_CXX=unsupported
13363  if test "$lt_cv_ld_force_load" = "yes"; then
13364    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\"`'
13365
13366  else
13367    whole_archive_flag_spec_CXX=''
13368  fi
13369  link_all_deplibs_CXX=yes
13370  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13371  case $cc_basename in
13372     ifort*) _lt_dar_can_shared=yes ;;
13373     *) _lt_dar_can_shared=$GCC ;;
13374  esac
13375  if test "$_lt_dar_can_shared" = "yes"; then
13376    output_verbose_link_cmd=func_echo_all
13377    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}"
13378    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13379    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}"
13380    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}"
13381       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13382      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}"
13383      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}"
13384    fi
13385
13386  else
13387  ld_shlibs_CXX=no
13388  fi
13389
13390	;;
13391
13392      dgux*)
13393        case $cc_basename in
13394          ec++*)
13395	    # FIXME: insert proper C++ library support
13396	    ld_shlibs_CXX=no
13397	    ;;
13398          ghcx*)
13399	    # Green Hills C++ Compiler
13400	    # FIXME: insert proper C++ library support
13401	    ld_shlibs_CXX=no
13402	    ;;
13403          *)
13404	    # FIXME: insert proper C++ library support
13405	    ld_shlibs_CXX=no
13406	    ;;
13407        esac
13408        ;;
13409
13410      freebsd2.*)
13411        # C++ shared libraries reported to be fairly broken before
13412	# switch to ELF
13413        ld_shlibs_CXX=no
13414        ;;
13415
13416      freebsd-elf*)
13417        archive_cmds_need_lc_CXX=no
13418        ;;
13419
13420      freebsd* | dragonfly*)
13421        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13422        # conventions
13423        ld_shlibs_CXX=yes
13424        ;;
13425
13426      haiku*)
13427        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13428        link_all_deplibs_CXX=yes
13429        ;;
13430
13431      hpux9*)
13432        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13433        hardcode_libdir_separator_CXX=:
13434        export_dynamic_flag_spec_CXX='${wl}-E'
13435        hardcode_direct_CXX=yes
13436        hardcode_minus_L_CXX=yes # Not in the search PATH,
13437				             # but as the default
13438				             # location of the library.
13439
13440        case $cc_basename in
13441          CC*)
13442            # FIXME: insert proper C++ library support
13443            ld_shlibs_CXX=no
13444            ;;
13445          aCC*)
13446            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'
13447            # Commands to make compiler produce verbose output that lists
13448            # what "hidden" libraries, object files and flags are used when
13449            # linking a shared library.
13450            #
13451            # There doesn't appear to be a way to prevent this compiler from
13452            # explicitly linking system object files so we need to strip them
13453            # from the output so that they don't get included in the library
13454            # dependencies.
13455            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"'
13456            ;;
13457          *)
13458            if test "$GXX" = yes; then
13459              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13460            else
13461              # FIXME: insert proper C++ library support
13462              ld_shlibs_CXX=no
13463            fi
13464            ;;
13465        esac
13466        ;;
13467
13468      hpux10*|hpux11*)
13469        if test $with_gnu_ld = no; then
13470	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13471	  hardcode_libdir_separator_CXX=:
13472
13473          case $host_cpu in
13474            hppa*64*|ia64*)
13475              ;;
13476            *)
13477	      export_dynamic_flag_spec_CXX='${wl}-E'
13478              ;;
13479          esac
13480        fi
13481        case $host_cpu in
13482          hppa*64*|ia64*)
13483            hardcode_direct_CXX=no
13484            hardcode_shlibpath_var_CXX=no
13485            ;;
13486          *)
13487            hardcode_direct_CXX=yes
13488            hardcode_direct_absolute_CXX=yes
13489            hardcode_minus_L_CXX=yes # Not in the search PATH,
13490					         # but as the default
13491					         # location of the library.
13492            ;;
13493        esac
13494
13495        case $cc_basename in
13496          CC*)
13497	    # FIXME: insert proper C++ library support
13498	    ld_shlibs_CXX=no
13499	    ;;
13500          aCC*)
13501	    case $host_cpu in
13502	      hppa*64*)
13503	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13504	        ;;
13505	      ia64*)
13506	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13507	        ;;
13508	      *)
13509	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13510	        ;;
13511	    esac
13512	    # Commands to make compiler produce verbose output that lists
13513	    # what "hidden" libraries, object files and flags are used when
13514	    # linking a shared library.
13515	    #
13516	    # There doesn't appear to be a way to prevent this compiler from
13517	    # explicitly linking system object files so we need to strip them
13518	    # from the output so that they don't get included in the library
13519	    # dependencies.
13520	    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"'
13521	    ;;
13522          *)
13523	    if test "$GXX" = yes; then
13524	      if test $with_gnu_ld = no; then
13525	        case $host_cpu in
13526	          hppa*64*)
13527	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13528	            ;;
13529	          ia64*)
13530	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13531	            ;;
13532	          *)
13533	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13534	            ;;
13535	        esac
13536	      fi
13537	    else
13538	      # FIXME: insert proper C++ library support
13539	      ld_shlibs_CXX=no
13540	    fi
13541	    ;;
13542        esac
13543        ;;
13544
13545      interix[3-9]*)
13546	hardcode_direct_CXX=no
13547	hardcode_shlibpath_var_CXX=no
13548	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13549	export_dynamic_flag_spec_CXX='${wl}-E'
13550	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13551	# Instead, shared libraries are loaded at an image base (0x10000000 by
13552	# default) and relocated if they conflict, which is a slow very memory
13553	# consuming and fragmenting process.  To avoid this, we pick a random,
13554	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13555	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13556	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'
13557	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'
13558	;;
13559      irix5* | irix6*)
13560        case $cc_basename in
13561          CC*)
13562	    # SGI C++
13563	    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'
13564
13565	    # Archives containing C++ object files must be created using
13566	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13567	    # necessary to make sure instantiated templates are included
13568	    # in the archive.
13569	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13570	    ;;
13571          *)
13572	    if test "$GXX" = yes; then
13573	      if test "$with_gnu_ld" = no; then
13574	        archive_cmds_CXX='$CC -shared $pic_flag -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'
13575	      else
13576	        archive_cmds_CXX='$CC -shared $pic_flag -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'
13577	      fi
13578	    fi
13579	    link_all_deplibs_CXX=yes
13580	    ;;
13581        esac
13582        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13583        hardcode_libdir_separator_CXX=:
13584        inherit_rpath_CXX=yes
13585        ;;
13586
13587      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13588        case $cc_basename in
13589          KCC*)
13590	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13591
13592	    # KCC will only create a shared library if the output file
13593	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13594	    # to its proper name (with version) after linking.
13595	    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'
13596	    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'
13597	    # Commands to make compiler produce verbose output that lists
13598	    # what "hidden" libraries, object files and flags are used when
13599	    # linking a shared library.
13600	    #
13601	    # There doesn't appear to be a way to prevent this compiler from
13602	    # explicitly linking system object files so we need to strip them
13603	    # from the output so that they don't get included in the library
13604	    # dependencies.
13605	    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"'
13606
13607	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13608	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13609
13610	    # Archives containing C++ object files must be created using
13611	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13612	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13613	    ;;
13614	  icpc* | ecpc* )
13615	    # Intel C++
13616	    with_gnu_ld=yes
13617	    # version 8.0 and above of icpc choke on multiply defined symbols
13618	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13619	    # earlier do not add the objects themselves.
13620	    case `$CC -V 2>&1` in
13621	      *"Version 7."*)
13622	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623		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'
13624		;;
13625	      *)  # Version 8.0 or newer
13626	        tmp_idyn=
13627	        case $host_cpu in
13628		  ia64*) tmp_idyn=' -i_dynamic';;
13629		esac
13630	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631		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'
13632		;;
13633	    esac
13634	    archive_cmds_need_lc_CXX=no
13635	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13636	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13637	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13638	    ;;
13639          pgCC* | pgcpp*)
13640            # Portland Group C++ compiler
13641	    case `$CC -V` in
13642	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13643	      prelink_cmds_CXX='tpldir=Template.dir~
13644		rm -rf $tpldir~
13645		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13646		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13647	      old_archive_cmds_CXX='tpldir=Template.dir~
13648		rm -rf $tpldir~
13649		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13650		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13651		$RANLIB $oldlib'
13652	      archive_cmds_CXX='tpldir=Template.dir~
13653		rm -rf $tpldir~
13654		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13655		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13656	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13657		rm -rf $tpldir~
13658		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13659		$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'
13660	      ;;
13661	    *) # Version 6 and above use weak symbols
13662	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13663	      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'
13664	      ;;
13665	    esac
13666
13667	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13668	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13669	    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'
13670            ;;
13671	  cxx*)
13672	    # Compaq C++
13673	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13674	    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'
13675
13676	    runpath_var=LD_RUN_PATH
13677	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13678	    hardcode_libdir_separator_CXX=:
13679
13680	    # Commands to make compiler produce verbose output that lists
13681	    # what "hidden" libraries, object files and flags are used when
13682	    # linking a shared library.
13683	    #
13684	    # There doesn't appear to be a way to prevent this compiler from
13685	    # explicitly linking system object files so we need to strip them
13686	    # from the output so that they don't get included in the library
13687	    # dependencies.
13688	    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'
13689	    ;;
13690	  xl* | mpixl* | bgxl*)
13691	    # IBM XL 8.0 on PPC, with GNU ld
13692	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13693	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13694	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13695	    if test "x$supports_anon_versioning" = xyes; then
13696	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13697		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13698		echo "local: *; };" >> $output_objdir/$libname.ver~
13699		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13700	    fi
13701	    ;;
13702	  *)
13703	    case `$CC -V 2>&1 | sed 5q` in
13704	    *Sun\ C*)
13705	      # Sun C++ 5.9
13706	      no_undefined_flag_CXX=' -zdefs'
13707	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13708	      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'
13709	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13710	      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'
13711	      compiler_needs_object_CXX=yes
13712
13713	      # Not sure whether something based on
13714	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13715	      # would be better.
13716	      output_verbose_link_cmd='func_echo_all'
13717
13718	      # Archives containing C++ object files must be created using
13719	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13720	      # necessary to make sure instantiated templates are included
13721	      # in the archive.
13722	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13723	      ;;
13724	    esac
13725	    ;;
13726	esac
13727	;;
13728
13729      lynxos*)
13730        # FIXME: insert proper C++ library support
13731	ld_shlibs_CXX=no
13732	;;
13733
13734      m88k*)
13735        # FIXME: insert proper C++ library support
13736        ld_shlibs_CXX=no
13737	;;
13738
13739      mvs*)
13740        case $cc_basename in
13741          cxx*)
13742	    # FIXME: insert proper C++ library support
13743	    ld_shlibs_CXX=no
13744	    ;;
13745	  *)
13746	    # FIXME: insert proper C++ library support
13747	    ld_shlibs_CXX=no
13748	    ;;
13749	esac
13750	;;
13751
13752      netbsd*)
13753        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13754	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13755	  wlarc=
13756	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13757	  hardcode_direct_CXX=yes
13758	  hardcode_shlibpath_var_CXX=no
13759	fi
13760	# Workaround some broken pre-1.5 toolchains
13761	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13762	;;
13763
13764      *nto* | *qnx*)
13765        ld_shlibs_CXX=yes
13766	;;
13767
13768      openbsd2*)
13769        # C++ shared libraries are fairly broken
13770	ld_shlibs_CXX=no
13771	;;
13772
13773      openbsd*)
13774	if test -f /usr/libexec/ld.so; then
13775	  hardcode_direct_CXX=yes
13776	  hardcode_shlibpath_var_CXX=no
13777	  hardcode_direct_absolute_CXX=yes
13778	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13779	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13780	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13781	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13782	    export_dynamic_flag_spec_CXX='${wl}-E'
13783	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13784	  fi
13785	  output_verbose_link_cmd=func_echo_all
13786	else
13787	  ld_shlibs_CXX=no
13788	fi
13789	;;
13790
13791      osf3* | osf4* | osf5*)
13792        case $cc_basename in
13793          KCC*)
13794	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13795
13796	    # KCC will only create a shared library if the output file
13797	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13798	    # to its proper name (with version) after linking.
13799	    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'
13800
13801	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13802	    hardcode_libdir_separator_CXX=:
13803
13804	    # Archives containing C++ object files must be created using
13805	    # the KAI C++ compiler.
13806	    case $host in
13807	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13808	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13809	    esac
13810	    ;;
13811          RCC*)
13812	    # Rational C++ 2.4.1
13813	    # FIXME: insert proper C++ library support
13814	    ld_shlibs_CXX=no
13815	    ;;
13816          cxx*)
13817	    case $host in
13818	      osf3*)
13819	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13820	        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'
13821	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13822		;;
13823	      *)
13824	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13825	        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'
13826	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13827	          echo "-hidden">> $lib.exp~
13828	          $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~
13829	          $RM $lib.exp'
13830	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13831		;;
13832	    esac
13833
13834	    hardcode_libdir_separator_CXX=:
13835
13836	    # Commands to make compiler produce verbose output that lists
13837	    # what "hidden" libraries, object files and flags are used when
13838	    # linking a shared library.
13839	    #
13840	    # There doesn't appear to be a way to prevent this compiler from
13841	    # explicitly linking system object files so we need to strip them
13842	    # from the output so that they don't get included in the library
13843	    # dependencies.
13844	    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"'
13845	    ;;
13846	  *)
13847	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13848	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13849	      case $host in
13850	        osf3*)
13851	          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'
13852		  ;;
13853	        *)
13854	          archive_cmds_CXX='$CC -shared $pic_flag -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'
13855		  ;;
13856	      esac
13857
13858	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13859	      hardcode_libdir_separator_CXX=:
13860
13861	      # Commands to make compiler produce verbose output that lists
13862	      # what "hidden" libraries, object files and flags are used when
13863	      # linking a shared library.
13864	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13865
13866	    else
13867	      # FIXME: insert proper C++ library support
13868	      ld_shlibs_CXX=no
13869	    fi
13870	    ;;
13871        esac
13872        ;;
13873
13874      psos*)
13875        # FIXME: insert proper C++ library support
13876        ld_shlibs_CXX=no
13877        ;;
13878
13879      sunos4*)
13880        case $cc_basename in
13881          CC*)
13882	    # Sun C++ 4.x
13883	    # FIXME: insert proper C++ library support
13884	    ld_shlibs_CXX=no
13885	    ;;
13886          lcc*)
13887	    # Lucid
13888	    # FIXME: insert proper C++ library support
13889	    ld_shlibs_CXX=no
13890	    ;;
13891          *)
13892	    # FIXME: insert proper C++ library support
13893	    ld_shlibs_CXX=no
13894	    ;;
13895        esac
13896        ;;
13897
13898      solaris*)
13899        case $cc_basename in
13900          CC* | sunCC*)
13901	    # Sun C++ 4.2, 5.x and Centerline C++
13902            archive_cmds_need_lc_CXX=yes
13903	    no_undefined_flag_CXX=' -zdefs'
13904	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13906	      $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'
13907
13908	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13909	    hardcode_shlibpath_var_CXX=no
13910	    case $host_os in
13911	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13912	      *)
13913		# The compiler driver will combine and reorder linker options,
13914		# but understands `-z linker_flag'.
13915	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13916		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13917	        ;;
13918	    esac
13919	    link_all_deplibs_CXX=yes
13920
13921	    output_verbose_link_cmd='func_echo_all'
13922
13923	    # Archives containing C++ object files must be created using
13924	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13925	    # necessary to make sure instantiated templates are included
13926	    # in the archive.
13927	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13928	    ;;
13929          gcx*)
13930	    # Green Hills C++ Compiler
13931	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13932
13933	    # The C++ compiler must be used to create the archive.
13934	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13935	    ;;
13936          *)
13937	    # GNU C++ compiler with Solaris linker
13938	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13939	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13940	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13941	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13942	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13943		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13944
13945	        # Commands to make compiler produce verbose output that lists
13946	        # what "hidden" libraries, object files and flags are used when
13947	        # linking a shared library.
13948	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13949	      else
13950	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13951	        # platform.
13952	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13953	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13954		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13955
13956	        # Commands to make compiler produce verbose output that lists
13957	        # what "hidden" libraries, object files and flags are used when
13958	        # linking a shared library.
13959	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13960	      fi
13961
13962	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13963	      case $host_os in
13964		solaris2.[0-5] | solaris2.[0-5].*) ;;
13965		*)
13966		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13967		  ;;
13968	      esac
13969	    fi
13970	    ;;
13971        esac
13972        ;;
13973
13974    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13975      no_undefined_flag_CXX='${wl}-z,text'
13976      archive_cmds_need_lc_CXX=no
13977      hardcode_shlibpath_var_CXX=no
13978      runpath_var='LD_RUN_PATH'
13979
13980      case $cc_basename in
13981        CC*)
13982	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13984	  ;;
13985	*)
13986	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13987	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13988	  ;;
13989      esac
13990      ;;
13991
13992      sysv5* | sco3.2v5* | sco5v6*)
13993	# Note: We can NOT use -z defs as we might desire, because we do not
13994	# link with -lc, and that would cause any symbols used from libc to
13995	# always be unresolved, which means just about no library would
13996	# ever link correctly.  If we're not using GNU ld we use -z text
13997	# though, which does catch some bad symbols but isn't as heavy-handed
13998	# as -z defs.
13999	no_undefined_flag_CXX='${wl}-z,text'
14000	allow_undefined_flag_CXX='${wl}-z,nodefs'
14001	archive_cmds_need_lc_CXX=no
14002	hardcode_shlibpath_var_CXX=no
14003	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14004	hardcode_libdir_separator_CXX=':'
14005	link_all_deplibs_CXX=yes
14006	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14007	runpath_var='LD_RUN_PATH'
14008
14009	case $cc_basename in
14010          CC*)
14011	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14012	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14013	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14014	      '"$old_archive_cmds_CXX"
14015	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14016	      '"$reload_cmds_CXX"
14017	    ;;
14018	  *)
14019	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14020	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14021	    ;;
14022	esac
14023      ;;
14024
14025      tandem*)
14026        case $cc_basename in
14027          NCC*)
14028	    # NonStop-UX NCC 3.20
14029	    # FIXME: insert proper C++ library support
14030	    ld_shlibs_CXX=no
14031	    ;;
14032          *)
14033	    # FIXME: insert proper C++ library support
14034	    ld_shlibs_CXX=no
14035	    ;;
14036        esac
14037        ;;
14038
14039      vxworks*)
14040        # FIXME: insert proper C++ library support
14041        ld_shlibs_CXX=no
14042        ;;
14043
14044      *)
14045        # FIXME: insert proper C++ library support
14046        ld_shlibs_CXX=no
14047        ;;
14048    esac
14049
14050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14051$as_echo "$ld_shlibs_CXX" >&6; }
14052    test "$ld_shlibs_CXX" = no && can_build_shared=no
14053
14054    GCC_CXX="$GXX"
14055    LD_CXX="$LD"
14056
14057    ## CAVEAT EMPTOR:
14058    ## There is no encapsulation within the following macros, do not change
14059    ## the running order or otherwise move them around unless you know exactly
14060    ## what you are doing...
14061    # Dependencies to place before and after the object being linked:
14062predep_objects_CXX=
14063postdep_objects_CXX=
14064predeps_CXX=
14065postdeps_CXX=
14066compiler_lib_search_path_CXX=
14067
14068cat > conftest.$ac_ext <<_LT_EOF
14069class Foo
14070{
14071public:
14072  Foo (void) { a = 0; }
14073private:
14074  int a;
14075};
14076_LT_EOF
14077
14078
14079_lt_libdeps_save_CFLAGS=$CFLAGS
14080case "$CC $CFLAGS " in #(
14081*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14082*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14083*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14084esac
14085
14086if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14087  (eval $ac_compile) 2>&5
14088  ac_status=$?
14089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14090  test $ac_status = 0; }; then
14091  # Parse the compiler output and extract the necessary
14092  # objects, libraries and library flags.
14093
14094  # Sentinel used to keep track of whether or not we are before
14095  # the conftest object file.
14096  pre_test_object_deps_done=no
14097
14098  for p in `eval "$output_verbose_link_cmd"`; do
14099    case ${prev}${p} in
14100
14101    -L* | -R* | -l*)
14102       # Some compilers place space between "-{L,R}" and the path.
14103       # Remove the space.
14104       if test $p = "-L" ||
14105          test $p = "-R"; then
14106	 prev=$p
14107	 continue
14108       fi
14109
14110       # Expand the sysroot to ease extracting the directories later.
14111       if test -z "$prev"; then
14112         case $p in
14113         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14114         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14115         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14116         esac
14117       fi
14118       case $p in
14119       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14120       esac
14121       if test "$pre_test_object_deps_done" = no; then
14122	 case ${prev} in
14123	 -L | -R)
14124	   # Internal compiler library paths should come after those
14125	   # provided the user.  The postdeps already come after the
14126	   # user supplied libs so there is no need to process them.
14127	   if test -z "$compiler_lib_search_path_CXX"; then
14128	     compiler_lib_search_path_CXX="${prev}${p}"
14129	   else
14130	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14131	   fi
14132	   ;;
14133	 # The "-l" case would never come before the object being
14134	 # linked, so don't bother handling this case.
14135	 esac
14136       else
14137	 if test -z "$postdeps_CXX"; then
14138	   postdeps_CXX="${prev}${p}"
14139	 else
14140	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14141	 fi
14142       fi
14143       prev=
14144       ;;
14145
14146    *.lto.$objext) ;; # Ignore GCC LTO objects
14147    *.$objext)
14148       # This assumes that the test object file only shows up
14149       # once in the compiler output.
14150       if test "$p" = "conftest.$objext"; then
14151	 pre_test_object_deps_done=yes
14152	 continue
14153       fi
14154
14155       if test "$pre_test_object_deps_done" = no; then
14156	 if test -z "$predep_objects_CXX"; then
14157	   predep_objects_CXX="$p"
14158	 else
14159	   predep_objects_CXX="$predep_objects_CXX $p"
14160	 fi
14161       else
14162	 if test -z "$postdep_objects_CXX"; then
14163	   postdep_objects_CXX="$p"
14164	 else
14165	   postdep_objects_CXX="$postdep_objects_CXX $p"
14166	 fi
14167       fi
14168       ;;
14169
14170    *) ;; # Ignore the rest.
14171
14172    esac
14173  done
14174
14175  # Clean up.
14176  rm -f a.out a.exe
14177else
14178  echo "libtool.m4: error: problem compiling CXX test program"
14179fi
14180
14181$RM -f confest.$objext
14182CFLAGS=$_lt_libdeps_save_CFLAGS
14183
14184# PORTME: override above test on systems where it is broken
14185case $host_os in
14186interix[3-9]*)
14187  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14188  # hack all around it, let's just trust "g++" to DTRT.
14189  predep_objects_CXX=
14190  postdep_objects_CXX=
14191  postdeps_CXX=
14192  ;;
14193
14194linux*)
14195  case `$CC -V 2>&1 | sed 5q` in
14196  *Sun\ C*)
14197    # Sun C++ 5.9
14198
14199    # The more standards-conforming stlport4 library is
14200    # incompatible with the Cstd library. Avoid specifying
14201    # it if it's in CXXFLAGS. Ignore libCrun as
14202    # -library=stlport4 depends on it.
14203    case " $CXX $CXXFLAGS " in
14204    *" -library=stlport4 "*)
14205      solaris_use_stlport4=yes
14206      ;;
14207    esac
14208
14209    if test "$solaris_use_stlport4" != yes; then
14210      postdeps_CXX='-library=Cstd -library=Crun'
14211    fi
14212    ;;
14213  esac
14214  ;;
14215
14216solaris*)
14217  case $cc_basename in
14218  CC* | sunCC*)
14219    # The more standards-conforming stlport4 library is
14220    # incompatible with the Cstd library. Avoid specifying
14221    # it if it's in CXXFLAGS. Ignore libCrun as
14222    # -library=stlport4 depends on it.
14223    case " $CXX $CXXFLAGS " in
14224    *" -library=stlport4 "*)
14225      solaris_use_stlport4=yes
14226      ;;
14227    esac
14228
14229    # Adding this requires a known-good setup of shared libraries for
14230    # Sun compiler versions before 5.6, else PIC objects from an old
14231    # archive will be linked into the output, leading to subtle bugs.
14232    if test "$solaris_use_stlport4" != yes; then
14233      postdeps_CXX='-library=Cstd -library=Crun'
14234    fi
14235    ;;
14236  esac
14237  ;;
14238esac
14239
14240
14241case " $postdeps_CXX " in
14242*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14243esac
14244 compiler_lib_search_dirs_CXX=
14245if test -n "${compiler_lib_search_path_CXX}"; then
14246 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14247fi
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279    lt_prog_compiler_wl_CXX=
14280lt_prog_compiler_pic_CXX=
14281lt_prog_compiler_static_CXX=
14282
14283
14284  # C++ specific cases for pic, static, wl, etc.
14285  if test "$GXX" = yes; then
14286    lt_prog_compiler_wl_CXX='-Wl,'
14287    lt_prog_compiler_static_CXX='-static'
14288
14289    case $host_os in
14290    aix*)
14291      # All AIX code is PIC.
14292      if test "$host_cpu" = ia64; then
14293	# AIX 5 now supports IA64 processor
14294	lt_prog_compiler_static_CXX='-Bstatic'
14295      fi
14296      ;;
14297
14298    amigaos*)
14299      case $host_cpu in
14300      powerpc)
14301            # see comment about AmigaOS4 .so support
14302            lt_prog_compiler_pic_CXX='-fPIC'
14303        ;;
14304      m68k)
14305            # FIXME: we need at least 68020 code to build shared libraries, but
14306            # adding the `-m68020' flag to GCC prevents building anything better,
14307            # like `-m68040'.
14308            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14309        ;;
14310      esac
14311      ;;
14312
14313    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14314      # PIC is the default for these OSes.
14315      ;;
14316    mingw* | cygwin* | os2* | pw32* | cegcc*)
14317      # This hack is so that the source file can tell whether it is being
14318      # built for inclusion in a dll (and should export symbols for example).
14319      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14320      # (--disable-auto-import) libraries
14321      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14322      ;;
14323    darwin* | rhapsody*)
14324      # PIC is the default on this platform
14325      # Common symbols not allowed in MH_DYLIB files
14326      lt_prog_compiler_pic_CXX='-fno-common'
14327      ;;
14328    *djgpp*)
14329      # DJGPP does not support shared libraries at all
14330      lt_prog_compiler_pic_CXX=
14331      ;;
14332    haiku*)
14333      # PIC is the default for Haiku.
14334      # The "-static" flag exists, but is broken.
14335      lt_prog_compiler_static_CXX=
14336      ;;
14337    interix[3-9]*)
14338      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14339      # Instead, we relocate shared libraries at runtime.
14340      ;;
14341    sysv4*MP*)
14342      if test -d /usr/nec; then
14343	lt_prog_compiler_pic_CXX=-Kconform_pic
14344      fi
14345      ;;
14346    hpux*)
14347      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14348      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14349      # sets the default TLS model and affects inlining.
14350      case $host_cpu in
14351      hppa*64*)
14352	;;
14353      *)
14354	lt_prog_compiler_pic_CXX='-fPIC'
14355	;;
14356      esac
14357      ;;
14358    *qnx* | *nto*)
14359      # QNX uses GNU C++, but need to define -shared option too, otherwise
14360      # it will coredump.
14361      lt_prog_compiler_pic_CXX='-fPIC -shared'
14362      ;;
14363    *)
14364      lt_prog_compiler_pic_CXX='-fPIC'
14365      ;;
14366    esac
14367  else
14368    case $host_os in
14369      aix[4-9]*)
14370	# All AIX code is PIC.
14371	if test "$host_cpu" = ia64; then
14372	  # AIX 5 now supports IA64 processor
14373	  lt_prog_compiler_static_CXX='-Bstatic'
14374	else
14375	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14376	fi
14377	;;
14378      chorus*)
14379	case $cc_basename in
14380	cxch68*)
14381	  # Green Hills C++ Compiler
14382	  # _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"
14383	  ;;
14384	esac
14385	;;
14386      mingw* | cygwin* | os2* | pw32* | cegcc*)
14387	# This hack is so that the source file can tell whether it is being
14388	# built for inclusion in a dll (and should export symbols for example).
14389	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14390	;;
14391      dgux*)
14392	case $cc_basename in
14393	  ec++*)
14394	    lt_prog_compiler_pic_CXX='-KPIC'
14395	    ;;
14396	  ghcx*)
14397	    # Green Hills C++ Compiler
14398	    lt_prog_compiler_pic_CXX='-pic'
14399	    ;;
14400	  *)
14401	    ;;
14402	esac
14403	;;
14404      freebsd* | dragonfly*)
14405	# FreeBSD uses GNU C++
14406	;;
14407      hpux9* | hpux10* | hpux11*)
14408	case $cc_basename in
14409	  CC*)
14410	    lt_prog_compiler_wl_CXX='-Wl,'
14411	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14412	    if test "$host_cpu" != ia64; then
14413	      lt_prog_compiler_pic_CXX='+Z'
14414	    fi
14415	    ;;
14416	  aCC*)
14417	    lt_prog_compiler_wl_CXX='-Wl,'
14418	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14419	    case $host_cpu in
14420	    hppa*64*|ia64*)
14421	      # +Z the default
14422	      ;;
14423	    *)
14424	      lt_prog_compiler_pic_CXX='+Z'
14425	      ;;
14426	    esac
14427	    ;;
14428	  *)
14429	    ;;
14430	esac
14431	;;
14432      interix*)
14433	# This is c89, which is MS Visual C++ (no shared libs)
14434	# Anyone wants to do a port?
14435	;;
14436      irix5* | irix6* | nonstopux*)
14437	case $cc_basename in
14438	  CC*)
14439	    lt_prog_compiler_wl_CXX='-Wl,'
14440	    lt_prog_compiler_static_CXX='-non_shared'
14441	    # CC pic flag -KPIC is the default.
14442	    ;;
14443	  *)
14444	    ;;
14445	esac
14446	;;
14447      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14448	case $cc_basename in
14449	  KCC*)
14450	    # KAI C++ Compiler
14451	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14452	    lt_prog_compiler_pic_CXX='-fPIC'
14453	    ;;
14454	  ecpc* )
14455	    # old Intel C++ for x86_64 which still supported -KPIC.
14456	    lt_prog_compiler_wl_CXX='-Wl,'
14457	    lt_prog_compiler_pic_CXX='-KPIC'
14458	    lt_prog_compiler_static_CXX='-static'
14459	    ;;
14460	  icpc* )
14461	    # Intel C++, used to be incompatible with GCC.
14462	    # ICC 10 doesn't accept -KPIC any more.
14463	    lt_prog_compiler_wl_CXX='-Wl,'
14464	    lt_prog_compiler_pic_CXX='-fPIC'
14465	    lt_prog_compiler_static_CXX='-static'
14466	    ;;
14467	  pgCC* | pgcpp*)
14468	    # Portland Group C++ compiler
14469	    lt_prog_compiler_wl_CXX='-Wl,'
14470	    lt_prog_compiler_pic_CXX='-fpic'
14471	    lt_prog_compiler_static_CXX='-Bstatic'
14472	    ;;
14473	  cxx*)
14474	    # Compaq C++
14475	    # Make sure the PIC flag is empty.  It appears that all Alpha
14476	    # Linux and Compaq Tru64 Unix objects are PIC.
14477	    lt_prog_compiler_pic_CXX=
14478	    lt_prog_compiler_static_CXX='-non_shared'
14479	    ;;
14480	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14481	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14482	    lt_prog_compiler_wl_CXX='-Wl,'
14483	    lt_prog_compiler_pic_CXX='-qpic'
14484	    lt_prog_compiler_static_CXX='-qstaticlink'
14485	    ;;
14486	  *)
14487	    case `$CC -V 2>&1 | sed 5q` in
14488	    *Sun\ C*)
14489	      # Sun C++ 5.9
14490	      lt_prog_compiler_pic_CXX='-KPIC'
14491	      lt_prog_compiler_static_CXX='-Bstatic'
14492	      lt_prog_compiler_wl_CXX='-Qoption ld '
14493	      ;;
14494	    esac
14495	    ;;
14496	esac
14497	;;
14498      lynxos*)
14499	;;
14500      m88k*)
14501	;;
14502      mvs*)
14503	case $cc_basename in
14504	  cxx*)
14505	    lt_prog_compiler_pic_CXX='-W c,exportall'
14506	    ;;
14507	  *)
14508	    ;;
14509	esac
14510	;;
14511      netbsd* | netbsdelf*-gnu)
14512	;;
14513      *qnx* | *nto*)
14514        # QNX uses GNU C++, but need to define -shared option too, otherwise
14515        # it will coredump.
14516        lt_prog_compiler_pic_CXX='-fPIC -shared'
14517        ;;
14518      osf3* | osf4* | osf5*)
14519	case $cc_basename in
14520	  KCC*)
14521	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14522	    ;;
14523	  RCC*)
14524	    # Rational C++ 2.4.1
14525	    lt_prog_compiler_pic_CXX='-pic'
14526	    ;;
14527	  cxx*)
14528	    # Digital/Compaq C++
14529	    lt_prog_compiler_wl_CXX='-Wl,'
14530	    # Make sure the PIC flag is empty.  It appears that all Alpha
14531	    # Linux and Compaq Tru64 Unix objects are PIC.
14532	    lt_prog_compiler_pic_CXX=
14533	    lt_prog_compiler_static_CXX='-non_shared'
14534	    ;;
14535	  *)
14536	    ;;
14537	esac
14538	;;
14539      psos*)
14540	;;
14541      solaris*)
14542	case $cc_basename in
14543	  CC* | sunCC*)
14544	    # Sun C++ 4.2, 5.x and Centerline C++
14545	    lt_prog_compiler_pic_CXX='-KPIC'
14546	    lt_prog_compiler_static_CXX='-Bstatic'
14547	    lt_prog_compiler_wl_CXX='-Qoption ld '
14548	    ;;
14549	  gcx*)
14550	    # Green Hills C++ Compiler
14551	    lt_prog_compiler_pic_CXX='-PIC'
14552	    ;;
14553	  *)
14554	    ;;
14555	esac
14556	;;
14557      sunos4*)
14558	case $cc_basename in
14559	  CC*)
14560	    # Sun C++ 4.x
14561	    lt_prog_compiler_pic_CXX='-pic'
14562	    lt_prog_compiler_static_CXX='-Bstatic'
14563	    ;;
14564	  lcc*)
14565	    # Lucid
14566	    lt_prog_compiler_pic_CXX='-pic'
14567	    ;;
14568	  *)
14569	    ;;
14570	esac
14571	;;
14572      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14573	case $cc_basename in
14574	  CC*)
14575	    lt_prog_compiler_wl_CXX='-Wl,'
14576	    lt_prog_compiler_pic_CXX='-KPIC'
14577	    lt_prog_compiler_static_CXX='-Bstatic'
14578	    ;;
14579	esac
14580	;;
14581      tandem*)
14582	case $cc_basename in
14583	  NCC*)
14584	    # NonStop-UX NCC 3.20
14585	    lt_prog_compiler_pic_CXX='-KPIC'
14586	    ;;
14587	  *)
14588	    ;;
14589	esac
14590	;;
14591      vxworks*)
14592	;;
14593      *)
14594	lt_prog_compiler_can_build_shared_CXX=no
14595	;;
14596    esac
14597  fi
14598
14599case $host_os in
14600  # For platforms which do not support PIC, -DPIC is meaningless:
14601  *djgpp*)
14602    lt_prog_compiler_pic_CXX=
14603    ;;
14604  *)
14605    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14606    ;;
14607esac
14608
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14610$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14611if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14612  $as_echo_n "(cached) " >&6
14613else
14614  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14615fi
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14617$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14618lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14619
14620#
14621# Check to make sure the PIC flag actually works.
14622#
14623if test -n "$lt_prog_compiler_pic_CXX"; then
14624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14625$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14626if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14627  $as_echo_n "(cached) " >&6
14628else
14629  lt_cv_prog_compiler_pic_works_CXX=no
14630   ac_outfile=conftest.$ac_objext
14631   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14632   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14633   # Insert the option either (1) after the last *FLAGS variable, or
14634   # (2) before a word containing "conftest.", or (3) at the end.
14635   # Note that $ac_compile itself does not contain backslashes and begins
14636   # with a dollar sign (not a hyphen), so the echo should work correctly.
14637   # The option is referenced via a variable to avoid confusing sed.
14638   lt_compile=`echo "$ac_compile" | $SED \
14639   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641   -e 's:$: $lt_compiler_flag:'`
14642   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14643   (eval "$lt_compile" 2>conftest.err)
14644   ac_status=$?
14645   cat conftest.err >&5
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   if (exit $ac_status) && test -s "$ac_outfile"; then
14648     # The compiler can only warn and ignore the option if not recognized
14649     # So say no if there are warnings other than the usual output.
14650     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14651     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14653       lt_cv_prog_compiler_pic_works_CXX=yes
14654     fi
14655   fi
14656   $RM conftest*
14657
14658fi
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14660$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14661
14662if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14663    case $lt_prog_compiler_pic_CXX in
14664     "" | " "*) ;;
14665     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14666     esac
14667else
14668    lt_prog_compiler_pic_CXX=
14669     lt_prog_compiler_can_build_shared_CXX=no
14670fi
14671
14672fi
14673
14674
14675
14676
14677
14678#
14679# Check to make sure the static flag actually works.
14680#
14681wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14683$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14684if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14685  $as_echo_n "(cached) " >&6
14686else
14687  lt_cv_prog_compiler_static_works_CXX=no
14688   save_LDFLAGS="$LDFLAGS"
14689   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14690   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14691   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14692     # The linker can only warn and ignore the option if not recognized
14693     # So say no if there are warnings
14694     if test -s conftest.err; then
14695       # Append any errors to the config.log.
14696       cat conftest.err 1>&5
14697       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14698       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14699       if diff conftest.exp conftest.er2 >/dev/null; then
14700         lt_cv_prog_compiler_static_works_CXX=yes
14701       fi
14702     else
14703       lt_cv_prog_compiler_static_works_CXX=yes
14704     fi
14705   fi
14706   $RM -r conftest*
14707   LDFLAGS="$save_LDFLAGS"
14708
14709fi
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14711$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14712
14713if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14714    :
14715else
14716    lt_prog_compiler_static_CXX=
14717fi
14718
14719
14720
14721
14722    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14723$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14724if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14725  $as_echo_n "(cached) " >&6
14726else
14727  lt_cv_prog_compiler_c_o_CXX=no
14728   $RM -r conftest 2>/dev/null
14729   mkdir conftest
14730   cd conftest
14731   mkdir out
14732   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733
14734   lt_compiler_flag="-o out/conftest2.$ac_objext"
14735   # Insert the option either (1) after the last *FLAGS variable, or
14736   # (2) before a word containing "conftest.", or (3) at the end.
14737   # Note that $ac_compile itself does not contain backslashes and begins
14738   # with a dollar sign (not a hyphen), so the echo should work correctly.
14739   lt_compile=`echo "$ac_compile" | $SED \
14740   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742   -e 's:$: $lt_compiler_flag:'`
14743   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14744   (eval "$lt_compile" 2>out/conftest.err)
14745   ac_status=$?
14746   cat out/conftest.err >&5
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14749   then
14750     # The compiler can only warn and ignore the option if not recognized
14751     # So say no if there are warnings
14752     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14753     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14754     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14755       lt_cv_prog_compiler_c_o_CXX=yes
14756     fi
14757   fi
14758   chmod u+w . 2>&5
14759   $RM conftest*
14760   # SGI C++ compiler will create directory out/ii_files/ for
14761   # template instantiation
14762   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14763   $RM out/* && rmdir out
14764   cd ..
14765   $RM -r conftest
14766   $RM conftest*
14767
14768fi
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14770$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14771
14772
14773
14774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14775$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14776if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14777  $as_echo_n "(cached) " >&6
14778else
14779  lt_cv_prog_compiler_c_o_CXX=no
14780   $RM -r conftest 2>/dev/null
14781   mkdir conftest
14782   cd conftest
14783   mkdir out
14784   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14785
14786   lt_compiler_flag="-o out/conftest2.$ac_objext"
14787   # Insert the option either (1) after the last *FLAGS variable, or
14788   # (2) before a word containing "conftest.", or (3) at the end.
14789   # Note that $ac_compile itself does not contain backslashes and begins
14790   # with a dollar sign (not a hyphen), so the echo should work correctly.
14791   lt_compile=`echo "$ac_compile" | $SED \
14792   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14794   -e 's:$: $lt_compiler_flag:'`
14795   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14796   (eval "$lt_compile" 2>out/conftest.err)
14797   ac_status=$?
14798   cat out/conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14801   then
14802     # The compiler can only warn and ignore the option if not recognized
14803     # So say no if there are warnings
14804     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14805     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14806     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14807       lt_cv_prog_compiler_c_o_CXX=yes
14808     fi
14809   fi
14810   chmod u+w . 2>&5
14811   $RM conftest*
14812   # SGI C++ compiler will create directory out/ii_files/ for
14813   # template instantiation
14814   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14815   $RM out/* && rmdir out
14816   cd ..
14817   $RM -r conftest
14818   $RM conftest*
14819
14820fi
14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14822$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14823
14824
14825
14826
14827hard_links="nottested"
14828if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14829  # do not overwrite the value of need_locks provided by the user
14830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14831$as_echo_n "checking if we can lock with hard links... " >&6; }
14832  hard_links=yes
14833  $RM conftest*
14834  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14835  touch conftest.a
14836  ln conftest.a conftest.b 2>&5 || hard_links=no
14837  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14839$as_echo "$hard_links" >&6; }
14840  if test "$hard_links" = no; then
14841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14842$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14843    need_locks=warn
14844  fi
14845else
14846  need_locks=no
14847fi
14848
14849
14850
14851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14853
14854  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14855  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14856  case $host_os in
14857  aix[4-9]*)
14858    # If we're using GNU nm, then we don't want the "-C" option.
14859    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14860    # Also, AIX nm treats weak defined symbols like other global defined
14861    # symbols, whereas GNU nm marks them as "W".
14862    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14863      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'
14864    else
14865      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14866    fi
14867    ;;
14868  pw32*)
14869    export_symbols_cmds_CXX="$ltdll_cmds"
14870    ;;
14871  cygwin* | mingw* | cegcc*)
14872    case $cc_basename in
14873    cl*)
14874      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14875      ;;
14876    *)
14877      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14878      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14879      ;;
14880    esac
14881    ;;
14882  linux* | k*bsd*-gnu | gnu*)
14883    link_all_deplibs_CXX=no
14884    ;;
14885  *)
14886    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14887    ;;
14888  esac
14889
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14891$as_echo "$ld_shlibs_CXX" >&6; }
14892test "$ld_shlibs_CXX" = no && can_build_shared=no
14893
14894with_gnu_ld_CXX=$with_gnu_ld
14895
14896
14897
14898
14899
14900
14901#
14902# Do we need to explicitly link libc?
14903#
14904case "x$archive_cmds_need_lc_CXX" in
14905x|xyes)
14906  # Assume -lc should be added
14907  archive_cmds_need_lc_CXX=yes
14908
14909  if test "$enable_shared" = yes && test "$GCC" = yes; then
14910    case $archive_cmds_CXX in
14911    *'~'*)
14912      # FIXME: we may have to deal with multi-command sequences.
14913      ;;
14914    '$CC '*)
14915      # Test whether the compiler implicitly links with -lc since on some
14916      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14917      # to ld, don't add -lc before -lgcc.
14918      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14919$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14920if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14921  $as_echo_n "(cached) " >&6
14922else
14923  $RM conftest*
14924	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14925
14926	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14927  (eval $ac_compile) 2>&5
14928  ac_status=$?
14929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14930  test $ac_status = 0; } 2>conftest.err; then
14931	  soname=conftest
14932	  lib=conftest
14933	  libobjs=conftest.$ac_objext
14934	  deplibs=
14935	  wl=$lt_prog_compiler_wl_CXX
14936	  pic_flag=$lt_prog_compiler_pic_CXX
14937	  compiler_flags=-v
14938	  linker_flags=-v
14939	  verstring=
14940	  output_objdir=.
14941	  libname=conftest
14942	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14943	  allow_undefined_flag_CXX=
14944	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14945  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14946  ac_status=$?
14947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14948  test $ac_status = 0; }
14949	  then
14950	    lt_cv_archive_cmds_need_lc_CXX=no
14951	  else
14952	    lt_cv_archive_cmds_need_lc_CXX=yes
14953	  fi
14954	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14955	else
14956	  cat conftest.err 1>&5
14957	fi
14958	$RM conftest*
14959
14960fi
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14962$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14963      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14964      ;;
14965    esac
14966  fi
14967  ;;
14968esac
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15032$as_echo_n "checking dynamic linker characteristics... " >&6; }
15033
15034library_names_spec=
15035libname_spec='lib$name'
15036soname_spec=
15037shrext_cmds=".so"
15038postinstall_cmds=
15039postuninstall_cmds=
15040finish_cmds=
15041finish_eval=
15042shlibpath_var=
15043shlibpath_overrides_runpath=unknown
15044version_type=none
15045dynamic_linker="$host_os ld.so"
15046sys_lib_dlsearch_path_spec="/lib /usr/lib"
15047need_lib_prefix=unknown
15048hardcode_into_libs=no
15049
15050# when you set need_version to no, make sure it does not cause -set_version
15051# flags to be left without arguments
15052need_version=unknown
15053
15054case $host_os in
15055aix3*)
15056  version_type=linux # correct to gnu/linux during the next big refactor
15057  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15058  shlibpath_var=LIBPATH
15059
15060  # AIX 3 has no versioning support, so we append a major version to the name.
15061  soname_spec='${libname}${release}${shared_ext}$major'
15062  ;;
15063
15064aix[4-9]*)
15065  version_type=linux # correct to gnu/linux during the next big refactor
15066  need_lib_prefix=no
15067  need_version=no
15068  hardcode_into_libs=yes
15069  if test "$host_cpu" = ia64; then
15070    # AIX 5 supports IA64
15071    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15072    shlibpath_var=LD_LIBRARY_PATH
15073  else
15074    # With GCC up to 2.95.x, collect2 would create an import file
15075    # for dependence libraries.  The import file would start with
15076    # the line `#! .'.  This would cause the generated library to
15077    # depend on `.', always an invalid library.  This was fixed in
15078    # development snapshots of GCC prior to 3.0.
15079    case $host_os in
15080      aix4 | aix4.[01] | aix4.[01].*)
15081      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15082	   echo ' yes '
15083	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15084	:
15085      else
15086	can_build_shared=no
15087      fi
15088      ;;
15089    esac
15090    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15091    # soname into executable. Probably we can add versioning support to
15092    # collect2, so additional links can be useful in future.
15093    if test "$aix_use_runtimelinking" = yes; then
15094      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15095      # instead of lib<name>.a to let people know that these are not
15096      # typical AIX shared libraries.
15097      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098    else
15099      # We preserve .a as extension for shared libraries through AIX4.2
15100      # and later when we are not doing run time linking.
15101      library_names_spec='${libname}${release}.a $libname.a'
15102      soname_spec='${libname}${release}${shared_ext}$major'
15103    fi
15104    shlibpath_var=LIBPATH
15105  fi
15106  ;;
15107
15108amigaos*)
15109  case $host_cpu in
15110  powerpc)
15111    # Since July 2007 AmigaOS4 officially supports .so libraries.
15112    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114    ;;
15115  m68k)
15116    library_names_spec='$libname.ixlibrary $libname.a'
15117    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15118    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'
15119    ;;
15120  esac
15121  ;;
15122
15123beos*)
15124  library_names_spec='${libname}${shared_ext}'
15125  dynamic_linker="$host_os ld.so"
15126  shlibpath_var=LIBRARY_PATH
15127  ;;
15128
15129bsdi[45]*)
15130  version_type=linux # correct to gnu/linux during the next big refactor
15131  need_version=no
15132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133  soname_spec='${libname}${release}${shared_ext}$major'
15134  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15135  shlibpath_var=LD_LIBRARY_PATH
15136  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15137  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15138  # the default ld.so.conf also contains /usr/contrib/lib and
15139  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15140  # libtool to hard-code these into programs
15141  ;;
15142
15143cygwin* | mingw* | pw32* | cegcc*)
15144  version_type=windows
15145  shrext_cmds=".dll"
15146  need_version=no
15147  need_lib_prefix=no
15148
15149  case $GCC,$cc_basename in
15150  yes,*)
15151    # gcc
15152    library_names_spec='$libname.dll.a'
15153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15154    postinstall_cmds='base_file=`basename \${file}`~
15155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15156      dldir=$destdir/`dirname \$dlpath`~
15157      test -d \$dldir || mkdir -p \$dldir~
15158      $install_prog $dir/$dlname \$dldir/$dlname~
15159      chmod a+x \$dldir/$dlname~
15160      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15161        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15162      fi'
15163    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15164      dlpath=$dir/\$dldll~
15165       $RM \$dlpath'
15166    shlibpath_overrides_runpath=yes
15167
15168    case $host_os in
15169    cygwin*)
15170      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15171      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15172
15173      ;;
15174    mingw* | cegcc*)
15175      # MinGW DLLs use traditional 'lib' prefix
15176      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15177      ;;
15178    pw32*)
15179      # pw32 DLLs use 'pw' prefix rather than 'lib'
15180      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15181      ;;
15182    esac
15183    dynamic_linker='Win32 ld.exe'
15184    ;;
15185
15186  *,cl*)
15187    # Native MSVC
15188    libname_spec='$name'
15189    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15190    library_names_spec='${libname}.dll.lib'
15191
15192    case $build_os in
15193    mingw*)
15194      sys_lib_search_path_spec=
15195      lt_save_ifs=$IFS
15196      IFS=';'
15197      for lt_path in $LIB
15198      do
15199        IFS=$lt_save_ifs
15200        # Let DOS variable expansion print the short 8.3 style file name.
15201        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15202        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15203      done
15204      IFS=$lt_save_ifs
15205      # Convert to MSYS style.
15206      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15207      ;;
15208    cygwin*)
15209      # Convert to unix form, then to dos form, then back to unix form
15210      # but this time dos style (no spaces!) so that the unix form looks
15211      # like /cygdrive/c/PROGRA~1:/cygdr...
15212      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15213      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15214      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15215      ;;
15216    *)
15217      sys_lib_search_path_spec="$LIB"
15218      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15219        # It is most probably a Windows format PATH.
15220        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15221      else
15222        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15223      fi
15224      # FIXME: find the short name or the path components, as spaces are
15225      # common. (e.g. "Program Files" -> "PROGRA~1")
15226      ;;
15227    esac
15228
15229    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15230    postinstall_cmds='base_file=`basename \${file}`~
15231      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15232      dldir=$destdir/`dirname \$dlpath`~
15233      test -d \$dldir || mkdir -p \$dldir~
15234      $install_prog $dir/$dlname \$dldir/$dlname'
15235    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15236      dlpath=$dir/\$dldll~
15237       $RM \$dlpath'
15238    shlibpath_overrides_runpath=yes
15239    dynamic_linker='Win32 link.exe'
15240    ;;
15241
15242  *)
15243    # Assume MSVC wrapper
15244    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15245    dynamic_linker='Win32 ld.exe'
15246    ;;
15247  esac
15248  # FIXME: first we should search . and the directory the executable is in
15249  shlibpath_var=PATH
15250  ;;
15251
15252darwin* | rhapsody*)
15253  dynamic_linker="$host_os dyld"
15254  version_type=darwin
15255  need_lib_prefix=no
15256  need_version=no
15257  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15258  soname_spec='${libname}${release}${major}$shared_ext'
15259  shlibpath_overrides_runpath=yes
15260  shlibpath_var=DYLD_LIBRARY_PATH
15261  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15262
15263  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15264  ;;
15265
15266dgux*)
15267  version_type=linux # correct to gnu/linux during the next big refactor
15268  need_lib_prefix=no
15269  need_version=no
15270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15271  soname_spec='${libname}${release}${shared_ext}$major'
15272  shlibpath_var=LD_LIBRARY_PATH
15273  ;;
15274
15275freebsd* | dragonfly*)
15276  # DragonFly does not have aout.  When/if they implement a new
15277  # versioning mechanism, adjust this.
15278  if test -x /usr/bin/objformat; then
15279    objformat=`/usr/bin/objformat`
15280  else
15281    case $host_os in
15282    freebsd[23].*) objformat=aout ;;
15283    *) objformat=elf ;;
15284    esac
15285  fi
15286  version_type=freebsd-$objformat
15287  case $version_type in
15288    freebsd-elf*)
15289      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15290      need_version=no
15291      need_lib_prefix=no
15292      ;;
15293    freebsd-*)
15294      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15295      need_version=yes
15296      ;;
15297  esac
15298  shlibpath_var=LD_LIBRARY_PATH
15299  case $host_os in
15300  freebsd2.*)
15301    shlibpath_overrides_runpath=yes
15302    ;;
15303  freebsd3.[01]* | freebsdelf3.[01]*)
15304    shlibpath_overrides_runpath=yes
15305    hardcode_into_libs=yes
15306    ;;
15307  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15308  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15309    shlibpath_overrides_runpath=no
15310    hardcode_into_libs=yes
15311    ;;
15312  *) # from 4.6 on, and DragonFly
15313    shlibpath_overrides_runpath=yes
15314    hardcode_into_libs=yes
15315    ;;
15316  esac
15317  ;;
15318
15319haiku*)
15320  version_type=linux # correct to gnu/linux during the next big refactor
15321  need_lib_prefix=no
15322  need_version=no
15323  dynamic_linker="$host_os runtime_loader"
15324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15325  soname_spec='${libname}${release}${shared_ext}$major'
15326  shlibpath_var=LIBRARY_PATH
15327  shlibpath_overrides_runpath=yes
15328  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15329  hardcode_into_libs=yes
15330  ;;
15331
15332hpux9* | hpux10* | hpux11*)
15333  # Give a soname corresponding to the major version so that dld.sl refuses to
15334  # link against other versions.
15335  version_type=sunos
15336  need_lib_prefix=no
15337  need_version=no
15338  case $host_cpu in
15339  ia64*)
15340    shrext_cmds='.so'
15341    hardcode_into_libs=yes
15342    dynamic_linker="$host_os dld.so"
15343    shlibpath_var=LD_LIBRARY_PATH
15344    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15345    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346    soname_spec='${libname}${release}${shared_ext}$major'
15347    if test "X$HPUX_IA64_MODE" = X32; then
15348      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15349    else
15350      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15351    fi
15352    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15353    ;;
15354  hppa*64*)
15355    shrext_cmds='.sl'
15356    hardcode_into_libs=yes
15357    dynamic_linker="$host_os dld.sl"
15358    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15359    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15360    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361    soname_spec='${libname}${release}${shared_ext}$major'
15362    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15363    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15364    ;;
15365  *)
15366    shrext_cmds='.sl'
15367    dynamic_linker="$host_os dld.sl"
15368    shlibpath_var=SHLIB_PATH
15369    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371    soname_spec='${libname}${release}${shared_ext}$major'
15372    ;;
15373  esac
15374  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15375  postinstall_cmds='chmod 555 $lib'
15376  # or fails outright, so override atomically:
15377  install_override_mode=555
15378  ;;
15379
15380interix[3-9]*)
15381  version_type=linux # correct to gnu/linux during the next big refactor
15382  need_lib_prefix=no
15383  need_version=no
15384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15385  soname_spec='${libname}${release}${shared_ext}$major'
15386  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15387  shlibpath_var=LD_LIBRARY_PATH
15388  shlibpath_overrides_runpath=no
15389  hardcode_into_libs=yes
15390  ;;
15391
15392irix5* | irix6* | nonstopux*)
15393  case $host_os in
15394    nonstopux*) version_type=nonstopux ;;
15395    *)
15396	if test "$lt_cv_prog_gnu_ld" = yes; then
15397		version_type=linux # correct to gnu/linux during the next big refactor
15398	else
15399		version_type=irix
15400	fi ;;
15401  esac
15402  need_lib_prefix=no
15403  need_version=no
15404  soname_spec='${libname}${release}${shared_ext}$major'
15405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15406  case $host_os in
15407  irix5* | nonstopux*)
15408    libsuff= shlibsuff=
15409    ;;
15410  *)
15411    case $LD in # libtool.m4 will add one of these switches to LD
15412    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15413      libsuff= shlibsuff= libmagic=32-bit;;
15414    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15415      libsuff=32 shlibsuff=N32 libmagic=N32;;
15416    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15417      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15418    *) libsuff= shlibsuff= libmagic=never-match;;
15419    esac
15420    ;;
15421  esac
15422  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15423  shlibpath_overrides_runpath=no
15424  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15425  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15426  hardcode_into_libs=yes
15427  ;;
15428
15429# No shared lib support for Linux oldld, aout, or coff.
15430linux*oldld* | linux*aout* | linux*coff*)
15431  dynamic_linker=no
15432  ;;
15433
15434# This must be glibc/ELF.
15435linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15436  version_type=linux # correct to gnu/linux during the next big refactor
15437  need_lib_prefix=no
15438  need_version=no
15439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440  soname_spec='${libname}${release}${shared_ext}$major'
15441  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15442  shlibpath_var=LD_LIBRARY_PATH
15443  shlibpath_overrides_runpath=no
15444
15445  # Some binutils ld are patched to set DT_RUNPATH
15446  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15447  $as_echo_n "(cached) " >&6
15448else
15449  lt_cv_shlibpath_overrides_runpath=no
15450    save_LDFLAGS=$LDFLAGS
15451    save_libdir=$libdir
15452    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15453	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15454    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455/* end confdefs.h.  */
15456
15457int
15458main ()
15459{
15460
15461  ;
15462  return 0;
15463}
15464_ACEOF
15465if ac_fn_cxx_try_link "$LINENO"; then :
15466  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15467  lt_cv_shlibpath_overrides_runpath=yes
15468fi
15469fi
15470rm -f core conftest.err conftest.$ac_objext \
15471    conftest$ac_exeext conftest.$ac_ext
15472    LDFLAGS=$save_LDFLAGS
15473    libdir=$save_libdir
15474
15475fi
15476
15477  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15478
15479  # This implies no fast_install, which is unacceptable.
15480  # Some rework will be needed to allow for fast_install
15481  # before this can be enabled.
15482  hardcode_into_libs=yes
15483
15484  # Append ld.so.conf contents to the search path
15485  if test -f /etc/ld.so.conf; then
15486    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' ' '`
15487    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15488  fi
15489
15490  # We used to test for /lib/ld.so.1 and disable shared libraries on
15491  # powerpc, because MkLinux only supported shared libraries with the
15492  # GNU dynamic linker.  Since this was broken with cross compilers,
15493  # most powerpc-linux boxes support dynamic linking these days and
15494  # people can always --disable-shared, the test was removed, and we
15495  # assume the GNU/Linux dynamic linker is in use.
15496  dynamic_linker='GNU/Linux ld.so'
15497  ;;
15498
15499netbsdelf*-gnu)
15500  version_type=linux
15501  need_lib_prefix=no
15502  need_version=no
15503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15504  soname_spec='${libname}${release}${shared_ext}$major'
15505  shlibpath_var=LD_LIBRARY_PATH
15506  shlibpath_overrides_runpath=no
15507  hardcode_into_libs=yes
15508  dynamic_linker='NetBSD ld.elf_so'
15509  ;;
15510
15511netbsd*)
15512  version_type=sunos
15513  need_lib_prefix=no
15514  need_version=no
15515  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15516    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15517    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15518    dynamic_linker='NetBSD (a.out) ld.so'
15519  else
15520    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15521    soname_spec='${libname}${release}${shared_ext}$major'
15522    dynamic_linker='NetBSD ld.elf_so'
15523  fi
15524  shlibpath_var=LD_LIBRARY_PATH
15525  shlibpath_overrides_runpath=yes
15526  hardcode_into_libs=yes
15527  ;;
15528
15529newsos6)
15530  version_type=linux # correct to gnu/linux during the next big refactor
15531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532  shlibpath_var=LD_LIBRARY_PATH
15533  shlibpath_overrides_runpath=yes
15534  ;;
15535
15536*nto* | *qnx*)
15537  version_type=qnx
15538  need_lib_prefix=no
15539  need_version=no
15540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541  soname_spec='${libname}${release}${shared_ext}$major'
15542  shlibpath_var=LD_LIBRARY_PATH
15543  shlibpath_overrides_runpath=no
15544  hardcode_into_libs=yes
15545  dynamic_linker='ldqnx.so'
15546  ;;
15547
15548openbsd*)
15549  version_type=sunos
15550  sys_lib_dlsearch_path_spec="/usr/lib"
15551  need_lib_prefix=no
15552  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15553  case $host_os in
15554    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15555    *)				need_version=no  ;;
15556  esac
15557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559  shlibpath_var=LD_LIBRARY_PATH
15560  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15561    case $host_os in
15562      openbsd2.[89] | openbsd2.[89].*)
15563	shlibpath_overrides_runpath=no
15564	;;
15565      *)
15566	shlibpath_overrides_runpath=yes
15567	;;
15568      esac
15569  else
15570    shlibpath_overrides_runpath=yes
15571  fi
15572  ;;
15573
15574os2*)
15575  libname_spec='$name'
15576  shrext_cmds=".dll"
15577  need_lib_prefix=no
15578  library_names_spec='$libname${shared_ext} $libname.a'
15579  dynamic_linker='OS/2 ld.exe'
15580  shlibpath_var=LIBPATH
15581  ;;
15582
15583osf3* | osf4* | osf5*)
15584  version_type=osf
15585  need_lib_prefix=no
15586  need_version=no
15587  soname_spec='${libname}${release}${shared_ext}$major'
15588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589  shlibpath_var=LD_LIBRARY_PATH
15590  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15591  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15592  ;;
15593
15594rdos*)
15595  dynamic_linker=no
15596  ;;
15597
15598solaris*)
15599  version_type=linux # correct to gnu/linux during the next big refactor
15600  need_lib_prefix=no
15601  need_version=no
15602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603  soname_spec='${libname}${release}${shared_ext}$major'
15604  shlibpath_var=LD_LIBRARY_PATH
15605  shlibpath_overrides_runpath=yes
15606  hardcode_into_libs=yes
15607  # ldd complains unless libraries are executable
15608  postinstall_cmds='chmod +x $lib'
15609  ;;
15610
15611sunos4*)
15612  version_type=sunos
15613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15614  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15615  shlibpath_var=LD_LIBRARY_PATH
15616  shlibpath_overrides_runpath=yes
15617  if test "$with_gnu_ld" = yes; then
15618    need_lib_prefix=no
15619  fi
15620  need_version=yes
15621  ;;
15622
15623sysv4 | sysv4.3*)
15624  version_type=linux # correct to gnu/linux during the next big refactor
15625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626  soname_spec='${libname}${release}${shared_ext}$major'
15627  shlibpath_var=LD_LIBRARY_PATH
15628  case $host_vendor in
15629    sni)
15630      shlibpath_overrides_runpath=no
15631      need_lib_prefix=no
15632      runpath_var=LD_RUN_PATH
15633      ;;
15634    siemens)
15635      need_lib_prefix=no
15636      ;;
15637    motorola)
15638      need_lib_prefix=no
15639      need_version=no
15640      shlibpath_overrides_runpath=no
15641      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15642      ;;
15643  esac
15644  ;;
15645
15646sysv4*MP*)
15647  if test -d /usr/nec ;then
15648    version_type=linux # correct to gnu/linux during the next big refactor
15649    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15650    soname_spec='$libname${shared_ext}.$major'
15651    shlibpath_var=LD_LIBRARY_PATH
15652  fi
15653  ;;
15654
15655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15656  version_type=freebsd-elf
15657  need_lib_prefix=no
15658  need_version=no
15659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15660  soname_spec='${libname}${release}${shared_ext}$major'
15661  shlibpath_var=LD_LIBRARY_PATH
15662  shlibpath_overrides_runpath=yes
15663  hardcode_into_libs=yes
15664  if test "$with_gnu_ld" = yes; then
15665    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15666  else
15667    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15668    case $host_os in
15669      sco3.2v5*)
15670        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15671	;;
15672    esac
15673  fi
15674  sys_lib_dlsearch_path_spec='/usr/lib'
15675  ;;
15676
15677tpf*)
15678  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15679  version_type=linux # correct to gnu/linux during the next big refactor
15680  need_lib_prefix=no
15681  need_version=no
15682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683  shlibpath_var=LD_LIBRARY_PATH
15684  shlibpath_overrides_runpath=no
15685  hardcode_into_libs=yes
15686  ;;
15687
15688uts4*)
15689  version_type=linux # correct to gnu/linux during the next big refactor
15690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691  soname_spec='${libname}${release}${shared_ext}$major'
15692  shlibpath_var=LD_LIBRARY_PATH
15693  ;;
15694
15695*)
15696  dynamic_linker=no
15697  ;;
15698esac
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15700$as_echo "$dynamic_linker" >&6; }
15701test "$dynamic_linker" = no && can_build_shared=no
15702
15703variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15704if test "$GCC" = yes; then
15705  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15706fi
15707
15708if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15709  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15710fi
15711if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15712  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15713fi
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15753$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15754hardcode_action_CXX=
15755if test -n "$hardcode_libdir_flag_spec_CXX" ||
15756   test -n "$runpath_var_CXX" ||
15757   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15758
15759  # We can hardcode non-existent directories.
15760  if test "$hardcode_direct_CXX" != no &&
15761     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15762     # have to relink, otherwise we might link with an installed library
15763     # when we should be linking with a yet-to-be-installed one
15764     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15765     test "$hardcode_minus_L_CXX" != no; then
15766    # Linking always hardcodes the temporary library directory.
15767    hardcode_action_CXX=relink
15768  else
15769    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15770    hardcode_action_CXX=immediate
15771  fi
15772else
15773  # We cannot hardcode anything, or else we can only hardcode existing
15774  # directories.
15775  hardcode_action_CXX=unsupported
15776fi
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15778$as_echo "$hardcode_action_CXX" >&6; }
15779
15780if test "$hardcode_action_CXX" = relink ||
15781   test "$inherit_rpath_CXX" = yes; then
15782  # Fast installation is not supported
15783  enable_fast_install=no
15784elif test "$shlibpath_overrides_runpath" = yes ||
15785     test "$enable_shared" = no; then
15786  # Fast installation is not necessary
15787  enable_fast_install=needless
15788fi
15789
15790
15791
15792
15793
15794
15795
15796  fi # test -n "$compiler"
15797
15798  CC=$lt_save_CC
15799  CFLAGS=$lt_save_CFLAGS
15800  LDCXX=$LD
15801  LD=$lt_save_LD
15802  GCC=$lt_save_GCC
15803  with_gnu_ld=$lt_save_with_gnu_ld
15804  lt_cv_path_LDCXX=$lt_cv_path_LD
15805  lt_cv_path_LD=$lt_save_path_LD
15806  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15807  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15808fi # test "$_lt_caught_CXX_error" != yes
15809
15810ac_ext=c
15811ac_cpp='$CPP $CPPFLAGS'
15812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15814ac_compiler_gnu=$ac_cv_c_compiler_gnu
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830        ac_config_commands="$ac_config_commands libtool"
15831
15832
15833
15834
15835# Only expand once:
15836
15837
15838
15839
15840# Test for 64-bit build.
15841# The cast to long int works around a bug in the HP C Compiler
15842# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15843# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15844# This bug is HP SR number 8606223364.
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15846$as_echo_n "checking size of size_t... " >&6; }
15847if ${ac_cv_sizeof_size_t+:} false; then :
15848  $as_echo_n "(cached) " >&6
15849else
15850  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15851
15852else
15853  if test "$ac_cv_type_size_t" = yes; then
15854     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15856as_fn_error 77 "cannot compute sizeof (size_t)
15857See \`config.log' for more details" "$LINENO" 5; }
15858   else
15859     ac_cv_sizeof_size_t=0
15860   fi
15861fi
15862
15863fi
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15865$as_echo "$ac_cv_sizeof_size_t" >&6; }
15866
15867
15868
15869cat >>confdefs.h <<_ACEOF
15870#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15871_ACEOF
15872
15873
15874
15875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
15876$as_echo_n "checking for C compiler vendor... " >&6; }
15877if ${ax_cv_c_compiler_vendor+:} false; then :
15878  $as_echo_n "(cached) " >&6
15879else
15880  # note: don't check for gcc first since some other compilers define __GNUC__
15881  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
15882           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
15883           pathscale: __PATHCC__,__PATHSCALE__
15884           clang:     __clang__
15885           gnu:       __GNUC__
15886           sun:       __SUNPRO_C,__SUNPRO_CC
15887           hp:        __HP_cc,__HP_aCC
15888           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
15889           borland:   __BORLANDC__,__TURBOC__
15890           comeau:    __COMO__
15891           cray:      _CRAYC
15892           kai:       __KCC
15893           lcc:       __LCC__
15894           sgi:       __sgi,sgi
15895           microsoft: _MSC_VER
15896           metrowerks: __MWERKS__
15897           watcom:    __WATCOMC__
15898           portland:  __PGI
15899           unknown:   UNKNOWN"
15900  for ventest in $vendors; do
15901    case $ventest in
15902      *:) vendor=$ventest; continue ;;
15903      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
15904    esac
15905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906/* end confdefs.h.  */
15907
15908int
15909main ()
15910{
15911
15912      #if !($vencpp)
15913        thisisanerror;
15914      #endif
15915
15916  ;
15917  return 0;
15918}
15919_ACEOF
15920if ac_fn_c_try_compile "$LINENO"; then :
15921  break
15922fi
15923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924  done
15925  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
15926
15927fi
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
15929$as_echo "$ax_cv_c_compiler_vendor" >&6; }
15930
15931
15932
15933
15934
15935
15936# Check whether --enable-portable-binary was given.
15937if test "${enable_portable_binary+set}" = set; then :
15938  enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
15939else
15940  acx_maxopt_portable=no
15941fi
15942
15943
15944# Try to determine "good" native compiler flags if none specified via CFLAGS
15945if test "$ac_test_CFLAGS" != "set"; then
15946  CFLAGS=""
15947  case $ax_cv_c_compiler_vendor in
15948    dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
15949	 if test "x$acx_maxopt_portable" = xno; then
15950           CFLAGS="$CFLAGS -arch host"
15951         fi;;
15952
15953    sun) CFLAGS="-native -fast -xO5 -dalign"
15954	 if test "x$acx_maxopt_portable" = xyes; then
15955	   CFLAGS="$CFLAGS -xarch=generic"
15956         fi;;
15957
15958    hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
15959	 if test "x$acx_maxopt_portable" = xyes; then
15960	   CFLAGS="$CFLAGS +DAportable"
15961	 fi;;
15962
15963    ibm) if test "x$acx_maxopt_portable" = xno; then
15964           xlc_opt="-qarch=auto -qtune=auto"
15965	 else
15966           xlc_opt="-qtune=auto"
15967	 fi
15968         as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
15969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
15970$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
15971if eval \${$as_CACHEVAR+:} false; then :
15972  $as_echo_n "(cached) " >&6
15973else
15974
15975  ax_check_save_flags=$CFLAGS
15976  CFLAGS="$CFLAGS  $xlc_opt"
15977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978/* end confdefs.h.  */
15979
15980int
15981main ()
15982{
15983
15984  ;
15985  return 0;
15986}
15987_ACEOF
15988if ac_fn_c_try_compile "$LINENO"; then :
15989  eval "$as_CACHEVAR=yes"
15990else
15991  eval "$as_CACHEVAR=no"
15992fi
15993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994  CFLAGS=$ax_check_save_flags
15995fi
15996eval ac_res=\$$as_CACHEVAR
15997	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15998$as_echo "$ac_res" >&6; }
15999if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16000  CFLAGS="-O3 -qansialias -w $xlc_opt"
16001else
16002  CFLAGS="-O3 -qansialias -w"
16003                echo "******************************************************"
16004                echo "*  You seem to have the IBM  C compiler.  It is      *"
16005                echo "*  recommended for best performance that you use:    *"
16006                echo "*                                                    *"
16007                echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
16008                echo "*                      ^^^        ^^^                *"
16009                echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
16010                echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
16011                echo "*  and re-run configure.)  For more info, man cc.    *"
16012                echo "******************************************************"
16013fi
16014
16015         ;;
16016
16017    intel) CFLAGS="-O3 -ansi_alias"
16018	if test "x$acx_maxopt_portable" = xno; then
16019	  icc_archflag=unknown
16020	  icc_flags=""
16021	  case $host_cpu in
16022	    i686*|x86_64*)
16023              # icc accepts gcc assembly syntax, so these should work:
16024
16025ac_ext=c
16026ac_cpp='$CPP $CPPFLAGS'
16027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16029ac_compiler_gnu=$ac_cv_c_compiler_gnu
16030
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16032$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16033if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16034  $as_echo_n "(cached) " >&6
16035else
16036  if test "$cross_compiling" = yes; then :
16037  ax_cv_gcc_x86_cpuid_0=unknown
16038else
16039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h.  */
16041#include <stdio.h>
16042int
16043main ()
16044{
16045
16046     int op = 0, eax, ebx, ecx, edx;
16047     FILE *f;
16048      __asm__("cpuid"
16049        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16050        : "a" (op));
16051     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16052     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16053     fclose(f);
16054     return 0;
16055
16056  ;
16057  return 0;
16058}
16059_ACEOF
16060if ac_fn_c_try_run "$LINENO"; then :
16061  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16062else
16063  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16064fi
16065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16066  conftest.$ac_objext conftest.beam conftest.$ac_ext
16067fi
16068
16069fi
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16071$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16072ac_ext=c
16073ac_cpp='$CPP $CPPFLAGS'
16074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16076ac_compiler_gnu=$ac_cv_c_compiler_gnu
16077
16078
16079
16080ac_ext=c
16081ac_cpp='$CPP $CPPFLAGS'
16082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084ac_compiler_gnu=$ac_cv_c_compiler_gnu
16085
16086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
16087$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
16088if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
16089  $as_echo_n "(cached) " >&6
16090else
16091  if test "$cross_compiling" = yes; then :
16092  ax_cv_gcc_x86_cpuid_1=unknown
16093else
16094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095/* end confdefs.h.  */
16096#include <stdio.h>
16097int
16098main ()
16099{
16100
16101     int op = 1, eax, ebx, ecx, edx;
16102     FILE *f;
16103      __asm__("cpuid"
16104        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16105        : "a" (op));
16106     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16107     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16108     fclose(f);
16109     return 0;
16110
16111  ;
16112  return 0;
16113}
16114_ACEOF
16115if ac_fn_c_try_run "$LINENO"; then :
16116  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
16117else
16118  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
16119fi
16120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16121  conftest.$ac_objext conftest.beam conftest.$ac_ext
16122fi
16123
16124fi
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
16126$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
16127ac_ext=c
16128ac_cpp='$CPP $CPPFLAGS'
16129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16131ac_compiler_gnu=$ac_cv_c_compiler_gnu
16132
16133
16134	      case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
16135                *:756e6547:*:*) # Intel
16136                  case $ax_cv_gcc_x86_cpuid_1 in
16137                    *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
16138                    *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
16139                    *f??:*:*:*) icc_flags="-xN -xW -xK";;
16140                  esac ;;
16141              esac ;;
16142          esac
16143          if test "x$icc_flags" != x; then
16144            for flag in $icc_flags; do
16145              as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16147$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16148if eval \${$as_CACHEVAR+:} false; then :
16149  $as_echo_n "(cached) " >&6
16150else
16151
16152  ax_check_save_flags=$CFLAGS
16153  CFLAGS="$CFLAGS  $flag"
16154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155/* end confdefs.h.  */
16156
16157int
16158main ()
16159{
16160
16161  ;
16162  return 0;
16163}
16164_ACEOF
16165if ac_fn_c_try_compile "$LINENO"; then :
16166  eval "$as_CACHEVAR=yes"
16167else
16168  eval "$as_CACHEVAR=no"
16169fi
16170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171  CFLAGS=$ax_check_save_flags
16172fi
16173eval ac_res=\$$as_CACHEVAR
16174	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16175$as_echo "$ac_res" >&6; }
16176if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16177  icc_archflag=$flag; break
16178else
16179  :
16180fi
16181
16182            done
16183          fi
16184          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
16185$as_echo_n "checking for icc architecture flag... " >&6; }
16186	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
16187$as_echo "$icc_archflag" >&6; }
16188          if test "x$icc_archflag" != xunknown; then
16189            CFLAGS="$CFLAGS $icc_archflag"
16190          fi
16191        fi
16192	;;
16193
16194    gnu)
16195     # default optimization flags for gcc on all systems
16196     CFLAGS="-O3 -fomit-frame-pointer"
16197
16198     # -malign-double for x86 systems
16199     # LIBFFI -- DON'T DO THIS - CHANGES ABI
16200     # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
16201
16202     #  -fstrict-aliasing for gcc-2.95+
16203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
16204$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
16205if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
16206  $as_echo_n "(cached) " >&6
16207else
16208
16209  ax_check_save_flags=$CFLAGS
16210  CFLAGS="$CFLAGS  -fstrict-aliasing"
16211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212/* end confdefs.h.  */
16213
16214int
16215main ()
16216{
16217
16218  ;
16219  return 0;
16220}
16221_ACEOF
16222if ac_fn_c_try_compile "$LINENO"; then :
16223  ax_cv_check_cflags___fstrict_aliasing=yes
16224else
16225  ax_cv_check_cflags___fstrict_aliasing=no
16226fi
16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228  CFLAGS=$ax_check_save_flags
16229fi
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
16231$as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
16232if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
16233  CFLAGS="$CFLAGS -fstrict-aliasing"
16234else
16235  :
16236fi
16237
16238
16239     # note that we enable "unsafe" fp optimization with other compilers, too
16240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
16241$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
16242if ${ax_cv_check_cflags___ffast_math+:} false; then :
16243  $as_echo_n "(cached) " >&6
16244else
16245
16246  ax_check_save_flags=$CFLAGS
16247  CFLAGS="$CFLAGS  -ffast-math"
16248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h.  */
16250
16251int
16252main ()
16253{
16254
16255  ;
16256  return 0;
16257}
16258_ACEOF
16259if ac_fn_c_try_compile "$LINENO"; then :
16260  ax_cv_check_cflags___ffast_math=yes
16261else
16262  ax_cv_check_cflags___ffast_math=no
16263fi
16264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265  CFLAGS=$ax_check_save_flags
16266fi
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
16268$as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
16269if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
16270  CFLAGS="$CFLAGS -ffast-math"
16271else
16272  :
16273fi
16274
16275
16276
16277
16278
16279
16280# Check whether --with-gcc-arch was given.
16281if test "${with_gcc_arch+set}" = set; then :
16282  withval=$with_gcc_arch; ax_gcc_arch=$withval
16283else
16284  ax_gcc_arch=yes
16285fi
16286
16287
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
16289$as_echo_n "checking for gcc architecture flag... " >&6; }
16290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16291$as_echo "" >&6; }
16292if ${ax_cv_gcc_archflag+:} false; then :
16293  $as_echo_n "(cached) " >&6
16294else
16295
16296ax_cv_gcc_archflag="unknown"
16297
16298if test "$GCC" = yes; then
16299
16300if test "x$ax_gcc_arch" = xyes; then
16301ax_gcc_arch=""
16302if test "$cross_compiling" = no; then
16303case $host_cpu in
16304  i[3456]86*|x86_64*) # use cpuid codes
16305
16306ac_ext=c
16307ac_cpp='$CPP $CPPFLAGS'
16308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16310ac_compiler_gnu=$ac_cv_c_compiler_gnu
16311
16312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16313$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16314if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16315  $as_echo_n "(cached) " >&6
16316else
16317  if test "$cross_compiling" = yes; then :
16318  ax_cv_gcc_x86_cpuid_0=unknown
16319else
16320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h.  */
16322#include <stdio.h>
16323int
16324main ()
16325{
16326
16327     int op = 0, eax, ebx, ecx, edx;
16328     FILE *f;
16329      __asm__("cpuid"
16330        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16331        : "a" (op));
16332     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16333     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16334     fclose(f);
16335     return 0;
16336
16337  ;
16338  return 0;
16339}
16340_ACEOF
16341if ac_fn_c_try_run "$LINENO"; then :
16342  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16343else
16344  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16345fi
16346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16347  conftest.$ac_objext conftest.beam conftest.$ac_ext
16348fi
16349
16350fi
16351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16352$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16353ac_ext=c
16354ac_cpp='$CPP $CPPFLAGS'
16355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16357ac_compiler_gnu=$ac_cv_c_compiler_gnu
16358
16359
16360
16361ac_ext=c
16362ac_cpp='$CPP $CPPFLAGS'
16363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16365ac_compiler_gnu=$ac_cv_c_compiler_gnu
16366
16367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
16368$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
16369if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
16370  $as_echo_n "(cached) " >&6
16371else
16372  if test "$cross_compiling" = yes; then :
16373  ax_cv_gcc_x86_cpuid_1=unknown
16374else
16375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376/* end confdefs.h.  */
16377#include <stdio.h>
16378int
16379main ()
16380{
16381
16382     int op = 1, eax, ebx, ecx, edx;
16383     FILE *f;
16384      __asm__("cpuid"
16385        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16386        : "a" (op));
16387     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16388     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16389     fclose(f);
16390     return 0;
16391
16392  ;
16393  return 0;
16394}
16395_ACEOF
16396if ac_fn_c_try_run "$LINENO"; then :
16397  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
16398else
16399  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
16400fi
16401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16402  conftest.$ac_objext conftest.beam conftest.$ac_ext
16403fi
16404
16405fi
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
16407$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
16408ac_ext=c
16409ac_cpp='$CPP $CPPFLAGS'
16410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412ac_compiler_gnu=$ac_cv_c_compiler_gnu
16413
16414
16415     case $ax_cv_gcc_x86_cpuid_0 in
16416       *:756e6547:*:*) # Intel
16417          case $ax_cv_gcc_x86_cpuid_1 in
16418	    *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
16419	    *5??:*:*:*) ax_gcc_arch=pentium ;;
16420	    *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
16421	    *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
16422	    *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
16423	    *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
16424	    *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
16425	    *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
16426	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
16427	    *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
16428	    *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
16429	    *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
16430	    *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
16431	    *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
16432	    ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
16433		case $host_cpu in
16434	          x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
16435	          *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
16436	        esac ;;
16437	    ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
16438          esac ;;
16439       *:68747541:*:*) # AMD
16440          case $ax_cv_gcc_x86_cpuid_1 in
16441	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
16442	    *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
16443	    *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
16444	    *60?:*:*:*) ax_gcc_arch=k7 ;;
16445	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
16446	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
16447	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
16448	    *6[68a]?:*:*:*)
16449
16450ac_ext=c
16451ac_cpp='$CPP $CPPFLAGS'
16452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16454ac_compiler_gnu=$ac_cv_c_compiler_gnu
16455
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
16457$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
16458if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
16459  $as_echo_n "(cached) " >&6
16460else
16461  if test "$cross_compiling" = yes; then :
16462  ax_cv_gcc_x86_cpuid_0x80000006=unknown
16463else
16464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465/* end confdefs.h.  */
16466#include <stdio.h>
16467int
16468main ()
16469{
16470
16471     int op = 0x80000006, eax, ebx, ecx, edx;
16472     FILE *f;
16473      __asm__("cpuid"
16474        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16475        : "a" (op));
16476     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16477     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16478     fclose(f);
16479     return 0;
16480
16481  ;
16482  return 0;
16483}
16484_ACEOF
16485if ac_fn_c_try_run "$LINENO"; then :
16486  ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
16487else
16488  ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
16489fi
16490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16491  conftest.$ac_objext conftest.beam conftest.$ac_ext
16492fi
16493
16494fi
16495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
16496$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
16497ac_ext=c
16498ac_cpp='$CPP $CPPFLAGS'
16499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16501ac_compiler_gnu=$ac_cv_c_compiler_gnu
16502
16503 # L2 cache size
16504	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
16505                 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
16506			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
16507                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
16508	       esac ;;
16509	    ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
16510	    ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
16511	    ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
16512	    ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
16513	    ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
16514	    ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
16515	    *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
16516          esac ;;
16517	*:746e6543:*:*) # IDT
16518	   case $ax_cv_gcc_x86_cpuid_1 in
16519	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
16520	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
16521	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
16522	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
16523	   esac ;;
16524     esac
16525     if test x"$ax_gcc_arch" = x; then # fallback
16526	case $host_cpu in
16527	  i586*) ax_gcc_arch=pentium ;;
16528	  i686*) ax_gcc_arch=pentiumpro ;;
16529        esac
16530     fi
16531     ;;
16532
16533  sparc*)
16534     # Extract the first word of "prtdiag", so it can be a program name with args.
16535set dummy prtdiag; ac_word=$2
16536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16537$as_echo_n "checking for $ac_word... " >&6; }
16538if ${ac_cv_path_PRTDIAG+:} false; then :
16539  $as_echo_n "(cached) " >&6
16540else
16541  case $PRTDIAG in
16542  [\\/]* | ?:[\\/]*)
16543  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
16544  ;;
16545  *)
16546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
16548for as_dir in $as_dummy
16549do
16550  IFS=$as_save_IFS
16551  test -z "$as_dir" && as_dir=.
16552    for ac_exec_ext in '' $ac_executable_extensions; do
16553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16554    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
16555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16556    break 2
16557  fi
16558done
16559  done
16560IFS=$as_save_IFS
16561
16562  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
16563  ;;
16564esac
16565fi
16566PRTDIAG=$ac_cv_path_PRTDIAG
16567if test -n "$PRTDIAG"; then
16568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
16569$as_echo "$PRTDIAG" >&6; }
16570else
16571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572$as_echo "no" >&6; }
16573fi
16574
16575
16576     cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
16577     cputype=`echo "$cputype" | tr -d ' -' | sed 's/SPARCIIi/SPARCII/' | tr $as_cr_LETTERS $as_cr_letters`
16578     case $cputype in
16579         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
16580         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
16581         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
16582         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
16583         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
16584         *cypress*) ax_gcc_arch=cypress ;;
16585     esac ;;
16586
16587  alphaev5) ax_gcc_arch=ev5 ;;
16588  alphaev56) ax_gcc_arch=ev56 ;;
16589  alphapca56) ax_gcc_arch="pca56 ev56" ;;
16590  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
16591  alphaev6) ax_gcc_arch=ev6 ;;
16592  alphaev67) ax_gcc_arch=ev67 ;;
16593  alphaev68) ax_gcc_arch="ev68 ev67" ;;
16594  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
16595  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
16596  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
16597
16598  powerpc*)
16599     cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
16600     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
16601     case $cputype in
16602       *750*) ax_gcc_arch="750 G3" ;;
16603       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
16604       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
16605       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
16606       *970*) ax_gcc_arch="970 G5 power4";;
16607       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
16608       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
16609       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
16610       *) ax_gcc_arch=$cputype ;;
16611     esac
16612     ax_gcc_arch="$ax_gcc_arch powerpc"
16613     ;;
16614esac
16615fi # not cross-compiling
16616fi # guess arch
16617
16618if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
16619for arch in $ax_gcc_arch; do
16620  if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
16621    flags="-mtune=$arch"
16622    # -mcpu=$arch and m$arch generate nonportable code on every arch except
16623    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
16624    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
16625  else
16626    flags="-march=$arch -mcpu=$arch -m$arch"
16627  fi
16628  for flag in $flags; do
16629    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16631$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16632if eval \${$as_CACHEVAR+:} false; then :
16633  $as_echo_n "(cached) " >&6
16634else
16635
16636  ax_check_save_flags=$CFLAGS
16637  CFLAGS="$CFLAGS  $flag"
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640
16641int
16642main ()
16643{
16644
16645  ;
16646  return 0;
16647}
16648_ACEOF
16649if ac_fn_c_try_compile "$LINENO"; then :
16650  eval "$as_CACHEVAR=yes"
16651else
16652  eval "$as_CACHEVAR=no"
16653fi
16654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16655  CFLAGS=$ax_check_save_flags
16656fi
16657eval ac_res=\$$as_CACHEVAR
16658	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16659$as_echo "$ac_res" >&6; }
16660if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16661  ax_cv_gcc_archflag=$flag; break
16662else
16663  :
16664fi
16665
16666  done
16667  test "x$ax_cv_gcc_archflag" = xunknown || break
16668done
16669fi
16670
16671fi # $GCC=yes
16672
16673fi
16674
16675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
16676$as_echo_n "checking for gcc architecture flag... " >&6; }
16677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
16678$as_echo "$ax_cv_gcc_archflag" >&6; }
16679if test "x$ax_cv_gcc_archflag" = xunknown; then
16680  :
16681else
16682  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
16683fi
16684
16685     ;;
16686  esac
16687
16688  if test -z "$CFLAGS"; then
16689	echo ""
16690	echo "********************************************************"
16691        echo "* WARNING: Don't know the best CFLAGS for this system  *"
16692        echo "* Use ./configure CFLAGS=... to specify your own flags *"
16693	echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
16694	echo "********************************************************"
16695	echo ""
16696        CFLAGS="-O3"
16697  fi
16698
16699  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
16700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
16701$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
16702if eval \${$as_CACHEVAR+:} false; then :
16703  $as_echo_n "(cached) " >&6
16704else
16705
16706  ax_check_save_flags=$CFLAGS
16707  CFLAGS="$CFLAGS  $CFLAGS"
16708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709/* end confdefs.h.  */
16710
16711int
16712main ()
16713{
16714
16715  ;
16716  return 0;
16717}
16718_ACEOF
16719if ac_fn_c_try_compile "$LINENO"; then :
16720  eval "$as_CACHEVAR=yes"
16721else
16722  eval "$as_CACHEVAR=no"
16723fi
16724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725  CFLAGS=$ax_check_save_flags
16726fi
16727eval ac_res=\$$as_CACHEVAR
16728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16729$as_echo "$ac_res" >&6; }
16730if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16731  :
16732else
16733
16734	echo ""
16735        echo "********************************************************"
16736        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
16737        echo "* your compiler.                                       *"
16738        echo "* Use ./configure CFLAGS=... to specify your own flags *"
16739        echo "********************************************************"
16740        echo ""
16741        CFLAGS=""
16742
16743fi
16744
16745
16746fi
16747
16748# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
16749# compiler.
16750if test "$ax_cv_c_compiler_vendor" != "sun"; then
16751  if ${CFLAGS+:} false; then :
16752  case " $CFLAGS " in
16753    *"  "*)
16754      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16755  (: CFLAGS already contains ) 2>&5
16756  ac_status=$?
16757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16758  test $ac_status = 0; }
16759      ;;
16760    *)
16761      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16762  (: CFLAGS="$CFLAGS ") 2>&5
16763  ac_status=$?
16764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765  test $ac_status = 0; }
16766      CFLAGS="$CFLAGS "
16767      ;;
16768   esac
16769else
16770  CFLAGS=""
16771fi
16772
16773ac_ext=c
16774ac_cpp='$CPP $CPPFLAGS'
16775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16777ac_compiler_gnu=$ac_cv_c_compiler_gnu
16778
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16780$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16781if ${ac_cv_cflags_warn_all+:} false; then :
16782  $as_echo_n "(cached) " >&6
16783else
16784  ac_cv_cflags_warn_all="no, unknown"
16785ac_save_CFLAGS="$CFLAGS"
16786for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
16787do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789/* end confdefs.h.  */
16790
16791int
16792main ()
16793{
16794
16795  ;
16796  return 0;
16797}
16798_ACEOF
16799if ac_fn_c_try_compile "$LINENO"; then :
16800  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16801fi
16802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803done
16804CFLAGS="$ac_save_CFLAGS"
16805
16806fi
16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16808$as_echo "$ac_cv_cflags_warn_all" >&6; }
16809
16810case ".$ac_cv_cflags_warn_all" in
16811     .ok|.ok,*)  ;;
16812   .|.no|.no,*)  ;;
16813   *) if ${CFLAGS+:} false; then :
16814  case " $CFLAGS " in
16815    *" $ac_cv_cflags_warn_all "*)
16816      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16817  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16818  ac_status=$?
16819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16820  test $ac_status = 0; }
16821      ;;
16822    *)
16823      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16824  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16825  ac_status=$?
16826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16827  test $ac_status = 0; }
16828      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16829      ;;
16830   esac
16831else
16832  CFLAGS="$ac_cv_cflags_warn_all"
16833fi
16834 ;;
16835esac
16836
16837ac_ext=c
16838ac_cpp='$CPP $CPPFLAGS'
16839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841ac_compiler_gnu=$ac_cv_c_compiler_gnu
16842
16843
16844fi
16845
16846if test "x$GCC" = "xyes"; then
16847  CFLAGS="$CFLAGS -fexceptions"
16848fi
16849
16850cat > local.exp <<EOF
16851set CC_FOR_TARGET "$CC"
16852set CXX_FOR_TARGET "$CXX"
16853EOF
16854
16855
16856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16857$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16858    # Check whether --enable-maintainer-mode was given.
16859if test "${enable_maintainer_mode+set}" = set; then :
16860  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16861else
16862  USE_MAINTAINER_MODE=no
16863fi
16864
16865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16866$as_echo "$USE_MAINTAINER_MODE" >&6; }
16867   if test $USE_MAINTAINER_MODE = yes; then
16868  MAINTAINER_MODE_TRUE=
16869  MAINTAINER_MODE_FALSE='#'
16870else
16871  MAINTAINER_MODE_TRUE='#'
16872  MAINTAINER_MODE_FALSE=
16873fi
16874
16875  MAINT=$MAINTAINER_MODE_TRUE
16876
16877
16878
16879for ac_header in sys/mman.h
16880do :
16881  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16882if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16883  cat >>confdefs.h <<_ACEOF
16884#define HAVE_SYS_MMAN_H 1
16885_ACEOF
16886
16887fi
16888
16889done
16890
16891for ac_func in mmap
16892do :
16893  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16894if test "x$ac_cv_func_mmap" = xyes; then :
16895  cat >>confdefs.h <<_ACEOF
16896#define HAVE_MMAP 1
16897_ACEOF
16898
16899fi
16900done
16901
16902
16903ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16904if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16905  libffi_header_sys_mman_h=yes
16906else
16907  libffi_header_sys_mman_h=no
16908fi
16909
16910
16911ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16912if test "x$ac_cv_func_mmap" = xyes; then :
16913  libffi_func_mmap=yes
16914else
16915  libffi_func_mmap=no
16916fi
16917
16918if test "$libffi_header_sys_mman_h" != yes \
16919 || test "$libffi_func_mmap" != yes; then
16920   ac_cv_func_mmap_file=no
16921   ac_cv_func_mmap_dev_zero=no
16922   ac_cv_func_mmap_anon=no
16923else
16924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16925$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16926if ${ac_cv_func_mmap_file+:} false; then :
16927  $as_echo_n "(cached) " >&6
16928else
16929  # Add a system to this blacklist if
16930   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16931   # memory area containing the same data that you'd get if you applied
16932   # read() to the same fd.  The only system known to have a problem here
16933   # is VMS, where text files have record structure.
16934   case "$host_os" in
16935     vms* | ultrix*)
16936	ac_cv_func_mmap_file=no ;;
16937     *)
16938	ac_cv_func_mmap_file=yes;;
16939   esac
16940fi
16941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
16942$as_echo "$ac_cv_func_mmap_file" >&6; }
16943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16944$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16945if ${ac_cv_func_mmap_dev_zero+:} false; then :
16946  $as_echo_n "(cached) " >&6
16947else
16948  # Add a system to this blacklist if it has mmap() but /dev/zero
16949   # does not exist, or if mmapping /dev/zero does not give anonymous
16950   # zeroed pages with both the following properties:
16951   # 1. If you map N consecutive pages in with one call, and then
16952   #    unmap any subset of those pages, the pages that were not
16953   #    explicitly unmapped remain accessible.
16954   # 2. If you map two adjacent blocks of memory and then unmap them
16955   #    both at once, they must both go away.
16956   # Systems known to be in this category are Windows (all variants),
16957   # VMS, and Darwin.
16958   case "$host_os" in
16959     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16960	ac_cv_func_mmap_dev_zero=no ;;
16961     *)
16962	ac_cv_func_mmap_dev_zero=yes;;
16963   esac
16964fi
16965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
16966$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
16967
16968   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16970$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16971if ${ac_cv_decl_map_anon+:} false; then :
16972  $as_echo_n "(cached) " >&6
16973else
16974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975/* end confdefs.h.  */
16976#include <sys/types.h>
16977#include <sys/mman.h>
16978#include <unistd.h>
16979
16980#ifndef MAP_ANONYMOUS
16981#define MAP_ANONYMOUS MAP_ANON
16982#endif
16983
16984int
16985main ()
16986{
16987int n = MAP_ANONYMOUS;
16988  ;
16989  return 0;
16990}
16991_ACEOF
16992if ac_fn_c_try_compile "$LINENO"; then :
16993  ac_cv_decl_map_anon=yes
16994else
16995  ac_cv_decl_map_anon=no
16996fi
16997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998fi
16999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
17000$as_echo "$ac_cv_decl_map_anon" >&6; }
17001
17002   if test $ac_cv_decl_map_anon = no; then
17003     ac_cv_func_mmap_anon=no
17004   else
17005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
17006$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
17007if ${ac_cv_func_mmap_anon+:} false; then :
17008  $as_echo_n "(cached) " >&6
17009else
17010  # Add a system to this blacklist if it has mmap() and MAP_ANON or
17011   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
17012   # doesn't give anonymous zeroed pages with the same properties listed
17013   # above for use of /dev/zero.
17014   # Systems known to be in this category are Windows, VMS, and SCO Unix.
17015   case "$host_os" in
17016     vms* | cygwin* | pe | mingw* | sco* | udk* )
17017	ac_cv_func_mmap_anon=no ;;
17018     *)
17019	ac_cv_func_mmap_anon=yes;;
17020   esac
17021fi
17022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
17023$as_echo "$ac_cv_func_mmap_anon" >&6; }
17024   fi
17025fi
17026
17027if test $ac_cv_func_mmap_file = yes; then
17028
17029$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
17030
17031fi
17032if test $ac_cv_func_mmap_dev_zero = yes; then
17033
17034$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
17035
17036fi
17037if test $ac_cv_func_mmap_anon = yes; then
17038
17039$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
17040
17041fi
17042
17043
17044 if test -d $srcdir/testsuite; then
17045  TESTSUBDIR_TRUE=
17046  TESTSUBDIR_FALSE='#'
17047else
17048  TESTSUBDIR_TRUE='#'
17049  TESTSUBDIR_FALSE=
17050fi
17051
17052
17053TARGETDIR="unknown"
17054HAVE_LONG_DOUBLE_VARIANT=0
17055case "$host" in
17056  aarch64*-*-*)
17057	TARGET=AARCH64; TARGETDIR=aarch64
17058	;;
17059
17060  alpha*-*-*)
17061	TARGET=ALPHA; TARGETDIR=alpha;
17062	# Support 128-bit long double, changeable via command-line switch.
17063	HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
17064	;;
17065
17066  arc*-*-*)
17067	TARGET=ARC; TARGETDIR=arc
17068	;;
17069
17070  arm*-*-*)
17071	TARGET=ARM; TARGETDIR=arm
17072	;;
17073
17074  amd64-*-freebsd* | amd64-*-openbsd*)
17075	TARGET=X86_64; TARGETDIR=x86
17076  	;;
17077
17078  amd64-*-freebsd*)
17079	TARGET=X86_64; TARGETDIR=x86
17080  	;;
17081
17082  amd64-*-freebsd*)
17083	TARGET=X86_64; TARGETDIR=x86
17084	;;
17085
17086  avr32*-*-*)
17087	TARGET=AVR32; TARGETDIR=avr32
17088	;;
17089
17090  bfin*)
17091  	TARGET=BFIN; TARGETDIR=bfin
17092  	;;
17093
17094  cris-*-*)
17095	TARGET=LIBFFI_CRIS; TARGETDIR=cris
17096	;;
17097
17098  frv-*-*)
17099	TARGET=FRV; TARGETDIR=frv
17100	;;
17101
17102  hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
17103	TARGET=PA_LINUX; TARGETDIR=pa
17104	;;
17105  hppa*64-*-hpux*)
17106	TARGET=PA64_HPUX; TARGETDIR=pa
17107	;;
17108  hppa*-*-hpux*)
17109	TARGET=PA_HPUX; TARGETDIR=pa
17110	;;
17111
17112  i?86-*-freebsd* | i?86-*-openbsd*)
17113	TARGET=X86_FREEBSD; TARGETDIR=x86
17114	;;
17115  i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
17116	TARGET=X86_WIN32; TARGETDIR=x86
17117	# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
17118	# We must also check with_cross_host to decide if this is a native
17119	# or cross-build and select where to install dlls appropriately.
17120	if test -n "$with_cross_host" &&
17121	   test x"$with_cross_host" != x"no"; then
17122	  AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
17123	else
17124	  AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
17125	fi
17126	;;
17127  i?86-*-darwin*)
17128	TARGET=X86_DARWIN; TARGETDIR=x86
17129	;;
17130  i?86-*-solaris2.1[0-9]*)
17131	TARGETDIR=x86
17132	if test $ac_cv_sizeof_size_t = 4; then
17133	  TARGET=X86;
17134	else
17135	  TARGET=X86_64;
17136	fi
17137	;;
17138
17139  x86_64-*-darwin*)
17140	TARGET=X86_DARWIN; TARGETDIR=x86
17141	;;
17142
17143  x86_64-*-cygwin* | x86_64-*-mingw*)
17144	TARGET=X86_WIN64; TARGETDIR=x86
17145	# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
17146	# We must also check with_cross_host to decide if this is a native
17147	# or cross-build and select where to install dlls appropriately.
17148	if test -n "$with_cross_host" &&
17149	   test x"$with_cross_host" != x"no"; then
17150	  AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
17151	else
17152	  AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
17153	fi
17154	;;
17155
17156  i?86-*-* | x86_64-*-*)
17157	TARGETDIR=x86
17158	if test $ac_cv_sizeof_size_t = 4; then
17159	  case "$host" in
17160	    *-gnux32)
17161	      TARGET=X86_64
17162	      ;;
17163	    *)
17164	      TARGET=X86
17165	      ;;
17166          esac
17167	else
17168	  TARGET=X86_64;
17169	fi
17170	;;
17171
17172  ia64*-*-*)
17173	TARGET=IA64; TARGETDIR=ia64
17174	;;
17175
17176  m32r*-*-*)
17177	TARGET=M32R; TARGETDIR=m32r
17178	;;
17179
17180  m68k-*-*)
17181	TARGET=M68K; TARGETDIR=m68k
17182	;;
17183
17184  m88k-*-*)
17185	TARGET=M88K; TARGETDIR=m88k
17186	;;
17187
17188  microblaze*-*-*)
17189	TARGET=MICROBLAZE; TARGETDIR=microblaze
17190	;;
17191
17192  moxie-*-*)
17193	TARGET=MOXIE; TARGETDIR=moxie
17194	;;
17195
17196  metag-*-*)
17197	TARGET=METAG; TARGETDIR=metag
17198	;;
17199
17200  mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
17201	TARGET=MIPS; TARGETDIR=mips
17202	;;
17203  mips*-*linux* | mips*-*-openbsd*)
17204	# Support 128-bit long double for NewABI.
17205	HAVE_LONG_DOUBLE='defined(__mips64)'
17206	TARGET=MIPS; TARGETDIR=mips
17207	;;
17208
17209  nios2*-linux*)
17210	TARGET=NIOS2; TARGETDIR=nios2
17211	;;
17212
17213  powerpc*-*-linux* | powerpc-*-sysv*)
17214	TARGET=POWERPC; TARGETDIR=powerpc
17215	HAVE_LONG_DOUBLE_VARIANT=1
17216	;;
17217  powerpc-*-amigaos*)
17218	TARGET=POWERPC; TARGETDIR=powerpc
17219	;;
17220  powerpc-*-beos*)
17221	TARGET=POWERPC; TARGETDIR=powerpc
17222	;;
17223  powerpc-*-darwin* | powerpc64-*-darwin*)
17224	TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
17225	;;
17226  powerpc-*-aix* | rs6000-*-aix*)
17227	TARGET=POWERPC_AIX; TARGETDIR=powerpc
17228	;;
17229  powerpc-*-freebsd* | powerpc-*-openbsd* | powerpc-*-netbsd*)
17230	TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
17231	HAVE_LONG_DOUBLE_VARIANT=1
17232	;;
17233  powerpc64-*-freebsd*)
17234	TARGET=POWERPC; TARGETDIR=powerpc
17235	;;
17236  powerpc*-*-rtems*)
17237	TARGET=POWERPC; TARGETDIR=powerpc
17238	;;
17239
17240  s390-*-* | s390x-*-*)
17241	TARGET=S390; TARGETDIR=s390
17242	;;
17243
17244  sh-*-* | sh[34]*-*-*)
17245	TARGET=SH; TARGETDIR=sh
17246	;;
17247  sh64-*-* | sh5*-*-*)
17248	TARGET=SH64; TARGETDIR=sh64
17249	;;
17250
17251  sparc*-*-*)
17252	TARGET=SPARC; TARGETDIR=sparc
17253	;;
17254
17255  tile*-*)
17256        TARGET=TILE; TARGETDIR=tile
17257        ;;
17258
17259  vax-*-*)
17260	TARGET=VAX; TARGETDIR=vax
17261	;;
17262
17263  xtensa*-*)
17264	TARGET=XTENSA; TARGETDIR=xtensa
17265	;;
17266
17267esac
17268
17269
17270
17271
17272if test $TARGETDIR = unknown; then
17273  as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
17274fi
17275
17276 if test x$TARGET = xMIPS; then
17277  MIPS_TRUE=
17278  MIPS_FALSE='#'
17279else
17280  MIPS_TRUE='#'
17281  MIPS_FALSE=
17282fi
17283
17284 if test x$TARGET = xBFIN; then
17285  BFIN_TRUE=
17286  BFIN_FALSE='#'
17287else
17288  BFIN_TRUE='#'
17289  BFIN_FALSE=
17290fi
17291
17292 if test x$TARGET = xSPARC; then
17293  SPARC_TRUE=
17294  SPARC_FALSE='#'
17295else
17296  SPARC_TRUE='#'
17297  SPARC_FALSE=
17298fi
17299
17300 if test x$TARGET = xX86; then
17301  X86_TRUE=
17302  X86_FALSE='#'
17303else
17304  X86_TRUE='#'
17305  X86_FALSE=
17306fi
17307
17308 if test x$TARGET = xX86_FREEBSD; then
17309  X86_FREEBSD_TRUE=
17310  X86_FREEBSD_FALSE='#'
17311else
17312  X86_FREEBSD_TRUE='#'
17313  X86_FREEBSD_FALSE=
17314fi
17315
17316 if test x$TARGET = xX86_WIN32; then
17317  X86_WIN32_TRUE=
17318  X86_WIN32_FALSE='#'
17319else
17320  X86_WIN32_TRUE='#'
17321  X86_WIN32_FALSE=
17322fi
17323
17324 if test x$TARGET = xX86_WIN64; then
17325  X86_WIN64_TRUE=
17326  X86_WIN64_FALSE='#'
17327else
17328  X86_WIN64_TRUE='#'
17329  X86_WIN64_FALSE=
17330fi
17331
17332 if test x$TARGET = xX86_DARWIN; then
17333  X86_DARWIN_TRUE=
17334  X86_DARWIN_FALSE='#'
17335else
17336  X86_DARWIN_TRUE='#'
17337  X86_DARWIN_FALSE=
17338fi
17339
17340 if test x$TARGET = xX86_DARWIN && test $ac_cv_sizeof_size_t = 4; then
17341  X86_DARWIN32_TRUE=
17342  X86_DARWIN32_FALSE='#'
17343else
17344  X86_DARWIN32_TRUE='#'
17345  X86_DARWIN32_FALSE=
17346fi
17347
17348 if test x$TARGET = xX86_DARWIN && test $ac_cv_sizeof_size_t = 8; then
17349  X86_DARWIN64_TRUE=
17350  X86_DARWIN64_FALSE='#'
17351else
17352  X86_DARWIN64_TRUE='#'
17353  X86_DARWIN64_FALSE=
17354fi
17355
17356 if test x$TARGET = xALPHA; then
17357  ALPHA_TRUE=
17358  ALPHA_FALSE='#'
17359else
17360  ALPHA_TRUE='#'
17361  ALPHA_FALSE=
17362fi
17363
17364 if test x$TARGET = xIA64; then
17365  IA64_TRUE=
17366  IA64_FALSE='#'
17367else
17368  IA64_TRUE='#'
17369  IA64_FALSE=
17370fi
17371
17372 if test x$TARGET = xM32R; then
17373  M32R_TRUE=
17374  M32R_FALSE='#'
17375else
17376  M32R_TRUE='#'
17377  M32R_FALSE=
17378fi
17379
17380 if test x$TARGET = xM68K; then
17381  M68K_TRUE=
17382  M68K_FALSE='#'
17383else
17384  M68K_TRUE='#'
17385  M68K_FALSE=
17386fi
17387
17388 if test x$TARGET = xM88K; then
17389  M88K_TRUE=
17390  M88K_FALSE='#'
17391else
17392  M88K_TRUE='#'
17393  M88K_FALSE=
17394fi
17395
17396 if test x$TARGET = xMICROBLAZE; then
17397  MICROBLAZE_TRUE=
17398  MICROBLAZE_FALSE='#'
17399else
17400  MICROBLAZE_TRUE='#'
17401  MICROBLAZE_FALSE=
17402fi
17403
17404 if test x$TARGET = xMETAG; then
17405  METAG_TRUE=
17406  METAG_FALSE='#'
17407else
17408  METAG_TRUE='#'
17409  METAG_FALSE=
17410fi
17411
17412 if test x$TARGET = xMOXIE; then
17413  MOXIE_TRUE=
17414  MOXIE_FALSE='#'
17415else
17416  MOXIE_TRUE='#'
17417  MOXIE_FALSE=
17418fi
17419
17420 if test x$TARGET = xNIOS2; then
17421  NIOS2_TRUE=
17422  NIOS2_FALSE='#'
17423else
17424  NIOS2_TRUE='#'
17425  NIOS2_FALSE=
17426fi
17427
17428 if test x$TARGET = xPOWERPC; then
17429  POWERPC_TRUE=
17430  POWERPC_FALSE='#'
17431else
17432  POWERPC_TRUE='#'
17433  POWERPC_FALSE=
17434fi
17435
17436 if test x$TARGET = xPOWERPC_AIX; then
17437  POWERPC_AIX_TRUE=
17438  POWERPC_AIX_FALSE='#'
17439else
17440  POWERPC_AIX_TRUE='#'
17441  POWERPC_AIX_FALSE=
17442fi
17443
17444 if test x$TARGET = xPOWERPC_DARWIN; then
17445  POWERPC_DARWIN_TRUE=
17446  POWERPC_DARWIN_FALSE='#'
17447else
17448  POWERPC_DARWIN_TRUE='#'
17449  POWERPC_DARWIN_FALSE=
17450fi
17451
17452 if test x$TARGET = xPOWERPC_FREEBSD; then
17453  POWERPC_FREEBSD_TRUE=
17454  POWERPC_FREEBSD_FALSE='#'
17455else
17456  POWERPC_FREEBSD_TRUE='#'
17457  POWERPC_FREEBSD_FALSE=
17458fi
17459
17460 if test x$TARGET = xAARCH64; then
17461  AARCH64_TRUE=
17462  AARCH64_FALSE='#'
17463else
17464  AARCH64_TRUE='#'
17465  AARCH64_FALSE=
17466fi
17467
17468 if test x$TARGET = xARC; then
17469  ARC_TRUE=
17470  ARC_FALSE='#'
17471else
17472  ARC_TRUE='#'
17473  ARC_FALSE=
17474fi
17475
17476 if test x$TARGET = xARM; then
17477  ARM_TRUE=
17478  ARM_FALSE='#'
17479else
17480  ARM_TRUE='#'
17481  ARM_FALSE=
17482fi
17483
17484 if test x$TARGET = xAVR32; then
17485  AVR32_TRUE=
17486  AVR32_FALSE='#'
17487else
17488  AVR32_TRUE='#'
17489  AVR32_FALSE=
17490fi
17491
17492 if test x$TARGET = xLIBFFI_CRIS; then
17493  LIBFFI_CRIS_TRUE=
17494  LIBFFI_CRIS_FALSE='#'
17495else
17496  LIBFFI_CRIS_TRUE='#'
17497  LIBFFI_CRIS_FALSE=
17498fi
17499
17500 if test x$TARGET = xFRV; then
17501  FRV_TRUE=
17502  FRV_FALSE='#'
17503else
17504  FRV_TRUE='#'
17505  FRV_FALSE=
17506fi
17507
17508 if test x$TARGET = xS390; then
17509  S390_TRUE=
17510  S390_FALSE='#'
17511else
17512  S390_TRUE='#'
17513  S390_FALSE=
17514fi
17515
17516 if test x$TARGET = xX86_64; then
17517  X86_64_TRUE=
17518  X86_64_FALSE='#'
17519else
17520  X86_64_TRUE='#'
17521  X86_64_FALSE=
17522fi
17523
17524 if test x$TARGET = xSH; then
17525  SH_TRUE=
17526  SH_FALSE='#'
17527else
17528  SH_TRUE='#'
17529  SH_FALSE=
17530fi
17531
17532 if test x$TARGET = xSH64; then
17533  SH64_TRUE=
17534  SH64_FALSE='#'
17535else
17536  SH64_TRUE='#'
17537  SH64_FALSE=
17538fi
17539
17540 if test x$TARGET = xPA_LINUX; then
17541  PA_LINUX_TRUE=
17542  PA_LINUX_FALSE='#'
17543else
17544  PA_LINUX_TRUE='#'
17545  PA_LINUX_FALSE=
17546fi
17547
17548 if test x$TARGET = xPA_HPUX; then
17549  PA_HPUX_TRUE=
17550  PA_HPUX_FALSE='#'
17551else
17552  PA_HPUX_TRUE='#'
17553  PA_HPUX_FALSE=
17554fi
17555
17556 if test x$TARGET = xPA64_HPUX; then
17557  PA64_HPUX_TRUE=
17558  PA64_HPUX_FALSE='#'
17559else
17560  PA64_HPUX_TRUE='#'
17561  PA64_HPUX_FALSE=
17562fi
17563
17564 if test x$TARGET = xTILE; then
17565  TILE_TRUE=
17566  TILE_FALSE='#'
17567else
17568  TILE_TRUE='#'
17569  TILE_FALSE=
17570fi
17571
17572 if test x$TARGET = xVAX; then
17573  VAX_TRUE=
17574  VAX_FALSE='#'
17575else
17576  VAX_TRUE='#'
17577  VAX_FALSE=
17578fi
17579
17580 if test x$TARGET = xXTENSA; then
17581  XTENSA_TRUE=
17582  XTENSA_FALSE='#'
17583else
17584  XTENSA_TRUE='#'
17585  XTENSA_FALSE=
17586fi
17587
17588
17589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17590$as_echo_n "checking for ANSI C header files... " >&6; }
17591if ${ac_cv_header_stdc+:} false; then :
17592  $as_echo_n "(cached) " >&6
17593else
17594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595/* end confdefs.h.  */
17596#include <stdlib.h>
17597#include <stdarg.h>
17598#include <string.h>
17599#include <float.h>
17600
17601int
17602main ()
17603{
17604
17605  ;
17606  return 0;
17607}
17608_ACEOF
17609if ac_fn_c_try_compile "$LINENO"; then :
17610  ac_cv_header_stdc=yes
17611else
17612  ac_cv_header_stdc=no
17613fi
17614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615
17616if test $ac_cv_header_stdc = yes; then
17617  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619/* end confdefs.h.  */
17620#include <string.h>
17621
17622_ACEOF
17623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17624  $EGREP "memchr" >/dev/null 2>&1; then :
17625
17626else
17627  ac_cv_header_stdc=no
17628fi
17629rm -f conftest*
17630
17631fi
17632
17633if test $ac_cv_header_stdc = yes; then
17634  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636/* end confdefs.h.  */
17637#include <stdlib.h>
17638
17639_ACEOF
17640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17641  $EGREP "free" >/dev/null 2>&1; then :
17642
17643else
17644  ac_cv_header_stdc=no
17645fi
17646rm -f conftest*
17647
17648fi
17649
17650if test $ac_cv_header_stdc = yes; then
17651  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17652  if test "$cross_compiling" = yes; then :
17653  :
17654else
17655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656/* end confdefs.h.  */
17657#include <ctype.h>
17658#include <stdlib.h>
17659#if ((' ' & 0x0FF) == 0x020)
17660# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17661# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17662#else
17663# define ISLOWER(c) \
17664		   (('a' <= (c) && (c) <= 'i') \
17665		     || ('j' <= (c) && (c) <= 'r') \
17666		     || ('s' <= (c) && (c) <= 'z'))
17667# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17668#endif
17669
17670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17671int
17672main ()
17673{
17674  int i;
17675  for (i = 0; i < 256; i++)
17676    if (XOR (islower (i), ISLOWER (i))
17677	|| toupper (i) != TOUPPER (i))
17678      return 2;
17679  return 0;
17680}
17681_ACEOF
17682if ac_fn_c_try_run "$LINENO"; then :
17683
17684else
17685  ac_cv_header_stdc=no
17686fi
17687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17688  conftest.$ac_objext conftest.beam conftest.$ac_ext
17689fi
17690
17691fi
17692fi
17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17694$as_echo "$ac_cv_header_stdc" >&6; }
17695if test $ac_cv_header_stdc = yes; then
17696
17697$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17698
17699fi
17700
17701for ac_func in memcpy
17702do :
17703  ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
17704if test "x$ac_cv_func_memcpy" = xyes; then :
17705  cat >>confdefs.h <<_ACEOF
17706#define HAVE_MEMCPY 1
17707_ACEOF
17708
17709fi
17710done
17711
17712ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17713if test "x$ac_cv_type_size_t" = xyes; then :
17714
17715else
17716
17717cat >>confdefs.h <<_ACEOF
17718#define size_t unsigned int
17719_ACEOF
17720
17721fi
17722
17723# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17724# for constant arguments.  Useless!
17725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17726$as_echo_n "checking for working alloca.h... " >&6; }
17727if ${ac_cv_working_alloca_h+:} false; then :
17728  $as_echo_n "(cached) " >&6
17729else
17730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731/* end confdefs.h.  */
17732#include <alloca.h>
17733int
17734main ()
17735{
17736char *p = (char *) alloca (2 * sizeof (int));
17737			  if (p) return 0;
17738  ;
17739  return 0;
17740}
17741_ACEOF
17742if ac_fn_c_try_link "$LINENO"; then :
17743  ac_cv_working_alloca_h=yes
17744else
17745  ac_cv_working_alloca_h=no
17746fi
17747rm -f core conftest.err conftest.$ac_objext \
17748    conftest$ac_exeext conftest.$ac_ext
17749fi
17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17751$as_echo "$ac_cv_working_alloca_h" >&6; }
17752if test $ac_cv_working_alloca_h = yes; then
17753
17754$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17755
17756fi
17757
17758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17759$as_echo_n "checking for alloca... " >&6; }
17760if ${ac_cv_func_alloca_works+:} false; then :
17761  $as_echo_n "(cached) " >&6
17762else
17763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764/* end confdefs.h.  */
17765#ifdef __GNUC__
17766# define alloca __builtin_alloca
17767#else
17768# ifdef _MSC_VER
17769#  include <malloc.h>
17770#  define alloca _alloca
17771# else
17772#  ifdef HAVE_ALLOCA_H
17773#   include <alloca.h>
17774#  else
17775#   ifdef _AIX
17776 #pragma alloca
17777#   else
17778#    ifndef alloca /* predefined by HP cc +Olibcalls */
17779void *alloca (size_t);
17780#    endif
17781#   endif
17782#  endif
17783# endif
17784#endif
17785
17786int
17787main ()
17788{
17789char *p = (char *) alloca (1);
17790				    if (p) return 0;
17791  ;
17792  return 0;
17793}
17794_ACEOF
17795if ac_fn_c_try_link "$LINENO"; then :
17796  ac_cv_func_alloca_works=yes
17797else
17798  ac_cv_func_alloca_works=no
17799fi
17800rm -f core conftest.err conftest.$ac_objext \
17801    conftest$ac_exeext conftest.$ac_ext
17802fi
17803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17804$as_echo "$ac_cv_func_alloca_works" >&6; }
17805
17806if test $ac_cv_func_alloca_works = yes; then
17807
17808$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17809
17810else
17811  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17812# that cause trouble.  Some versions do not even contain alloca or
17813# contain a buggy version.  If you still want to use their alloca,
17814# use ar to extract alloca.o from them instead of compiling alloca.c.
17815
17816ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17817
17818$as_echo "#define C_ALLOCA 1" >>confdefs.h
17819
17820
17821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17822$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17823if ${ac_cv_os_cray+:} false; then :
17824  $as_echo_n "(cached) " >&6
17825else
17826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827/* end confdefs.h.  */
17828#if defined CRAY && ! defined CRAY2
17829webecray
17830#else
17831wenotbecray
17832#endif
17833
17834_ACEOF
17835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17836  $EGREP "webecray" >/dev/null 2>&1; then :
17837  ac_cv_os_cray=yes
17838else
17839  ac_cv_os_cray=no
17840fi
17841rm -f conftest*
17842
17843fi
17844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17845$as_echo "$ac_cv_os_cray" >&6; }
17846if test $ac_cv_os_cray = yes; then
17847  for ac_func in _getb67 GETB67 getb67; do
17848    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17849ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17850if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17851
17852cat >>confdefs.h <<_ACEOF
17853#define CRAY_STACKSEG_END $ac_func
17854_ACEOF
17855
17856    break
17857fi
17858
17859  done
17860fi
17861
17862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17863$as_echo_n "checking stack direction for C alloca... " >&6; }
17864if ${ac_cv_c_stack_direction+:} false; then :
17865  $as_echo_n "(cached) " >&6
17866else
17867  if test "$cross_compiling" = yes; then :
17868  ac_cv_c_stack_direction=0
17869else
17870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871/* end confdefs.h.  */
17872$ac_includes_default
17873int
17874find_stack_direction (int *addr, int depth)
17875{
17876  int dir, dummy = 0;
17877  if (! addr)
17878    addr = &dummy;
17879  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17880  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17881  return dir + dummy;
17882}
17883
17884int
17885main (int argc, char **argv)
17886{
17887  return find_stack_direction (0, argc + !argv + 20) < 0;
17888}
17889_ACEOF
17890if ac_fn_c_try_run "$LINENO"; then :
17891  ac_cv_c_stack_direction=1
17892else
17893  ac_cv_c_stack_direction=-1
17894fi
17895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17896  conftest.$ac_objext conftest.beam conftest.$ac_ext
17897fi
17898
17899fi
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17901$as_echo "$ac_cv_c_stack_direction" >&6; }
17902cat >>confdefs.h <<_ACEOF
17903#define STACK_DIRECTION $ac_cv_c_stack_direction
17904_ACEOF
17905
17906
17907fi
17908
17909
17910# The cast to long int works around a bug in the HP C Compiler
17911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17913# This bug is HP SR number 8606223364.
17914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
17915$as_echo_n "checking size of double... " >&6; }
17916if ${ac_cv_sizeof_double+:} false; then :
17917  $as_echo_n "(cached) " >&6
17918else
17919  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
17920
17921else
17922  if test "$ac_cv_type_double" = yes; then
17923     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17925as_fn_error 77 "cannot compute sizeof (double)
17926See \`config.log' for more details" "$LINENO" 5; }
17927   else
17928     ac_cv_sizeof_double=0
17929   fi
17930fi
17931
17932fi
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
17934$as_echo "$ac_cv_sizeof_double" >&6; }
17935
17936
17937
17938cat >>confdefs.h <<_ACEOF
17939#define SIZEOF_DOUBLE $ac_cv_sizeof_double
17940_ACEOF
17941
17942
17943# The cast to long int works around a bug in the HP C Compiler
17944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17946# This bug is HP SR number 8606223364.
17947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
17948$as_echo_n "checking size of long double... " >&6; }
17949if ${ac_cv_sizeof_long_double+:} false; then :
17950  $as_echo_n "(cached) " >&6
17951else
17952  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
17953
17954else
17955  if test "$ac_cv_type_long_double" = yes; then
17956     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17958as_fn_error 77 "cannot compute sizeof (long double)
17959See \`config.log' for more details" "$LINENO" 5; }
17960   else
17961     ac_cv_sizeof_long_double=0
17962   fi
17963fi
17964
17965fi
17966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
17967$as_echo "$ac_cv_sizeof_long_double" >&6; }
17968
17969
17970
17971cat >>confdefs.h <<_ACEOF
17972#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
17973_ACEOF
17974
17975
17976
17977# Also AC_SUBST this variable for ffi.h.
17978if test -z "$HAVE_LONG_DOUBLE"; then
17979  HAVE_LONG_DOUBLE=0
17980  if test $ac_cv_sizeof_long_double != 0; then
17981    if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
17982
17983$as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
17984
17985      HAVE_LONG_DOUBLE=1
17986    else
17987      if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
17988        HAVE_LONG_DOUBLE=1
17989
17990$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
17991
17992      fi
17993    fi
17994  fi
17995fi
17996
17997
17998
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18000$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18001if ${ac_cv_c_bigendian+:} false; then :
18002  $as_echo_n "(cached) " >&6
18003else
18004  ac_cv_c_bigendian=unknown
18005    # See if we're dealing with a universal compiler.
18006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007/* end confdefs.h.  */
18008#ifndef __APPLE_CC__
18009	       not a universal capable compiler
18010	     #endif
18011	     typedef int dummy;
18012
18013_ACEOF
18014if ac_fn_c_try_compile "$LINENO"; then :
18015
18016	# Check for potential -arch flags.  It is not universal unless
18017	# there are at least two -arch flags with different values.
18018	ac_arch=
18019	ac_prev=
18020	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18021	 if test -n "$ac_prev"; then
18022	   case $ac_word in
18023	     i?86 | x86_64 | ppc | ppc64)
18024	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18025		 ac_arch=$ac_word
18026	       else
18027		 ac_cv_c_bigendian=universal
18028		 break
18029	       fi
18030	       ;;
18031	   esac
18032	   ac_prev=
18033	 elif test "x$ac_word" = "x-arch"; then
18034	   ac_prev=arch
18035	 fi
18036       done
18037fi
18038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039    if test $ac_cv_c_bigendian = unknown; then
18040      # See if sys/param.h defines the BYTE_ORDER macro.
18041      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042/* end confdefs.h.  */
18043#include <sys/types.h>
18044	     #include <sys/param.h>
18045
18046int
18047main ()
18048{
18049#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18050		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18051		     && LITTLE_ENDIAN)
18052	      bogus endian macros
18053	     #endif
18054
18055  ;
18056  return 0;
18057}
18058_ACEOF
18059if ac_fn_c_try_compile "$LINENO"; then :
18060  # It does; now see whether it defined to BIG_ENDIAN or not.
18061	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062/* end confdefs.h.  */
18063#include <sys/types.h>
18064		#include <sys/param.h>
18065
18066int
18067main ()
18068{
18069#if BYTE_ORDER != BIG_ENDIAN
18070		 not big endian
18071		#endif
18072
18073  ;
18074  return 0;
18075}
18076_ACEOF
18077if ac_fn_c_try_compile "$LINENO"; then :
18078  ac_cv_c_bigendian=yes
18079else
18080  ac_cv_c_bigendian=no
18081fi
18082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18083fi
18084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085    fi
18086    if test $ac_cv_c_bigendian = unknown; then
18087      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18088      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089/* end confdefs.h.  */
18090#include <limits.h>
18091
18092int
18093main ()
18094{
18095#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18096	      bogus endian macros
18097	     #endif
18098
18099  ;
18100  return 0;
18101}
18102_ACEOF
18103if ac_fn_c_try_compile "$LINENO"; then :
18104  # It does; now see whether it defined to _BIG_ENDIAN or not.
18105	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106/* end confdefs.h.  */
18107#include <limits.h>
18108
18109int
18110main ()
18111{
18112#ifndef _BIG_ENDIAN
18113		 not big endian
18114		#endif
18115
18116  ;
18117  return 0;
18118}
18119_ACEOF
18120if ac_fn_c_try_compile "$LINENO"; then :
18121  ac_cv_c_bigendian=yes
18122else
18123  ac_cv_c_bigendian=no
18124fi
18125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126fi
18127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128    fi
18129    if test $ac_cv_c_bigendian = unknown; then
18130      # Compile a test program.
18131      if test "$cross_compiling" = yes; then :
18132  # Try to guess by grepping values from an object file.
18133	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134/* end confdefs.h.  */
18135short int ascii_mm[] =
18136		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18137		short int ascii_ii[] =
18138		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18139		int use_ascii (int i) {
18140		  return ascii_mm[i] + ascii_ii[i];
18141		}
18142		short int ebcdic_ii[] =
18143		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18144		short int ebcdic_mm[] =
18145		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18146		int use_ebcdic (int i) {
18147		  return ebcdic_mm[i] + ebcdic_ii[i];
18148		}
18149		extern int foo;
18150
18151int
18152main ()
18153{
18154return use_ascii (foo) == use_ebcdic (foo);
18155  ;
18156  return 0;
18157}
18158_ACEOF
18159if ac_fn_c_try_compile "$LINENO"; then :
18160  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18161	      ac_cv_c_bigendian=yes
18162	    fi
18163	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18164	      if test "$ac_cv_c_bigendian" = unknown; then
18165		ac_cv_c_bigendian=no
18166	      else
18167		# finding both strings is unlikely to happen, but who knows?
18168		ac_cv_c_bigendian=unknown
18169	      fi
18170	    fi
18171fi
18172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173else
18174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175/* end confdefs.h.  */
18176$ac_includes_default
18177int
18178main ()
18179{
18180
18181	     /* Are we little or big endian?  From Harbison&Steele.  */
18182	     union
18183	     {
18184	       long int l;
18185	       char c[sizeof (long int)];
18186	     } u;
18187	     u.l = 1;
18188	     return u.c[sizeof (long int) - 1] == 1;
18189
18190  ;
18191  return 0;
18192}
18193_ACEOF
18194if ac_fn_c_try_run "$LINENO"; then :
18195  ac_cv_c_bigendian=no
18196else
18197  ac_cv_c_bigendian=yes
18198fi
18199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18200  conftest.$ac_objext conftest.beam conftest.$ac_ext
18201fi
18202
18203    fi
18204fi
18205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18206$as_echo "$ac_cv_c_bigendian" >&6; }
18207 case $ac_cv_c_bigendian in #(
18208   yes)
18209     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18210;; #(
18211   no)
18212      ;; #(
18213   universal)
18214
18215$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18216
18217     ;; #(
18218   *)
18219     as_fn_error $? "unknown endianness
18220 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18221 esac
18222
18223
18224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
18225$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
18226if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
18227  $as_echo_n "(cached) " >&6
18228else
18229
18230    gcc_cv_as_cfi_pseudo_op=unknown
18231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232/* end confdefs.h.  */
18233asm (".cfi_startproc\n\t.cfi_endproc");
18234int
18235main ()
18236{
18237
18238  ;
18239  return 0;
18240}
18241_ACEOF
18242if ac_fn_c_try_compile "$LINENO"; then :
18243  gcc_cv_as_cfi_pseudo_op=yes
18244else
18245  gcc_cv_as_cfi_pseudo_op=no
18246fi
18247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248
18249fi
18250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
18251$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
18252 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
18253
18254$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
18255
18256 fi
18257
18258
18259if test x$TARGET = xSPARC; then
18260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
18261$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
18262if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
18263  $as_echo_n "(cached) " >&6
18264else
18265
18266	save_CFLAGS="$CFLAGS"
18267	save_LDFLAGS="$LDFLAGS"
18268	CFLAGS="$CFLAGS -fpic"
18269	LDFLAGS="$LDFLAGS -shared"
18270	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271/* end confdefs.h.  */
18272asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
18273int
18274main ()
18275{
18276
18277  ;
18278  return 0;
18279}
18280_ACEOF
18281if ac_fn_c_try_link "$LINENO"; then :
18282  libffi_cv_as_sparc_ua_pcrel=yes
18283else
18284  libffi_cv_as_sparc_ua_pcrel=no
18285fi
18286rm -f core conftest.err conftest.$ac_objext \
18287    conftest$ac_exeext conftest.$ac_ext
18288	CFLAGS="$save_CFLAGS"
18289	LDFLAGS="$save_LDFLAGS"
18290fi
18291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
18292$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
18293    if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
18294
18295$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
18296
18297    fi
18298
18299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
18300$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
18301if ${libffi_cv_as_register_pseudo_op+:} false; then :
18302  $as_echo_n "(cached) " >&6
18303else
18304
18305       libffi_cv_as_register_pseudo_op=unknown
18306       # Check if we have .register
18307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308/* end confdefs.h.  */
18309
18310int
18311main ()
18312{
18313asm (".register %g2, #scratch");
18314  ;
18315  return 0;
18316}
18317_ACEOF
18318if ac_fn_c_try_compile "$LINENO"; then :
18319  libffi_cv_as_register_pseudo_op=yes
18320else
18321  libffi_cv_as_register_pseudo_op=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324
18325fi
18326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
18327$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
18328    if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
18329
18330$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
18331
18332    fi
18333fi
18334
18335if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
18336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
18337$as_echo_n "checking assembler supports pc related relocs... " >&6; }
18338if ${libffi_cv_as_x86_pcrel+:} false; then :
18339  $as_echo_n "(cached) " >&6
18340else
18341
18342	libffi_cv_as_x86_pcrel=no
18343	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
18344	if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
18345	    libffi_cv_as_x86_pcrel=yes
18346	fi
18347
18348fi
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
18350$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
18351    if test "x$libffi_cv_as_x86_pcrel" = xyes; then
18352
18353$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
18354
18355    fi
18356
18357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
18358$as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
18359if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
18360  $as_echo_n "(cached) " >&6
18361else
18362
18363       libffi_cv_as_ascii_pseudo_op=unknown
18364       # Check if we have .ascii
18365       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366/* end confdefs.h.  */
18367
18368int
18369main ()
18370{
18371asm (".ascii \\"string\\"");
18372  ;
18373  return 0;
18374}
18375_ACEOF
18376if ac_fn_c_try_compile "$LINENO"; then :
18377  libffi_cv_as_ascii_pseudo_op=yes
18378else
18379  libffi_cv_as_ascii_pseudo_op=no
18380fi
18381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382
18383fi
18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
18385$as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
18386    if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
18387
18388$as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
18389
18390    fi
18391
18392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
18393$as_echo_n "checking assembler .string pseudo-op support... " >&6; }
18394if ${libffi_cv_as_string_pseudo_op+:} false; then :
18395  $as_echo_n "(cached) " >&6
18396else
18397
18398       libffi_cv_as_string_pseudo_op=unknown
18399       # Check if we have .string
18400       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401/* end confdefs.h.  */
18402
18403int
18404main ()
18405{
18406asm (".string \\"string\\"");
18407  ;
18408  return 0;
18409}
18410_ACEOF
18411if ac_fn_c_try_compile "$LINENO"; then :
18412  libffi_cv_as_string_pseudo_op=yes
18413else
18414  libffi_cv_as_string_pseudo_op=no
18415fi
18416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417
18418fi
18419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
18420$as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
18421    if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
18422
18423$as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
18424
18425    fi
18426fi
18427
18428# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
18429# Check whether --enable-pax_emutramp was given.
18430if test "${enable_pax_emutramp+set}" = set; then :
18431  enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
18432
18433$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
18434
18435  fi
18436fi
18437
18438
18439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18440$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
18441if ${lt_cv_sys_symbol_underscore+:} false; then :
18442  $as_echo_n "(cached) " >&6
18443else
18444  lt_cv_sys_symbol_underscore=no
18445  cat > conftest.$ac_ext <<_LT_EOF
18446void nm_test_func(){}
18447int main(){nm_test_func;return 0;}
18448_LT_EOF
18449  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18450  (eval $ac_compile) 2>&5
18451  ac_status=$?
18452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18453  test $ac_status = 0; }; then
18454    # Now try to grab the symbols.
18455    ac_nlist=conftest.nm
18456    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18457  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18458  ac_status=$?
18459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18460  test $ac_status = 0; } && test -s "$ac_nlist"; then
18461      # See whether the symbols have a leading underscore.
18462      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18463        lt_cv_sys_symbol_underscore=yes
18464      else
18465        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18466	  :
18467        else
18468	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18469        fi
18470      fi
18471    else
18472      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18473    fi
18474  else
18475    echo "configure: failed program was:" >&5
18476    cat conftest.c >&5
18477  fi
18478  rm -rf conftest*
18479
18480fi
18481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18482$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18483  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18484
18485
18486if test "x$sys_symbol_underscore" = xyes; then
18487
18488$as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
18489
18490fi
18491
18492FFI_EXEC_TRAMPOLINE_TABLE=0
18493case "$target" in
18494     *arm*-apple-darwin*)
18495       FFI_EXEC_TRAMPOLINE_TABLE=1
18496
18497$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
18498
18499     ;;
18500     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
18501
18502$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
18503
18504     ;;
18505esac
18506 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
18507  FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
18508  FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
18509else
18510  FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
18511  FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
18512fi
18513
18514
18515
18516if test x$TARGET = xX86_64; then
18517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
18518$as_echo_n "checking toolchain supports unwind section type... " >&6; }
18519if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
18520  $as_echo_n "(cached) " >&6
18521else
18522
18523        cat  > conftest1.s << EOF
18524.text
18525.globl foo
18526foo:
18527jmp bar
18528.section .eh_frame,"a",@unwind
18529bar:
18530EOF
18531
18532        cat > conftest2.c  << EOF
18533extern void foo();
18534int main(){foo();}
18535EOF
18536
18537	libffi_cv_as_x86_64_unwind_section_type=no
18538	# we ensure that we can compile _and_ link an assembly file containing an @unwind section
18539	# since the compiler can support it and not the linker (ie old binutils)
18540	if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
18541           $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
18542	    libffi_cv_as_x86_64_unwind_section_type=yes
18543	fi
18544
18545fi
18546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
18547$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
18548    if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
18549
18550$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
18551
18552    fi
18553fi
18554
18555if test "x$GCC" = "xyes"; then
18556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
18557$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
18558if ${libffi_cv_ro_eh_frame+:} false; then :
18559  $as_echo_n "(cached) " >&6
18560else
18561
18562  	libffi_cv_ro_eh_frame=no
18563  	echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
18564  	if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
18565	    objdump -h conftest.o > conftest.dump 2>&1
18566	    libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
18567	    libffi_test_line=`expr $libffi_eh_frame_line + 1`p
18568	    sed -n $libffi_test_line conftest.dump > conftest.line
18569  	    if grep READONLY conftest.line > /dev/null; then
18570  		libffi_cv_ro_eh_frame=yes
18571  	    fi
18572  	fi
18573  	rm -f conftest.*
18574
18575fi
18576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
18577$as_echo "$libffi_cv_ro_eh_frame" >&6; }
18578  if test "x$libffi_cv_ro_eh_frame" = xyes; then
18579
18580$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
18581
18582
18583$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
18584
18585  else
18586
18587$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
18588
18589  fi
18590
18591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
18592$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
18593if ${libffi_cv_hidden_visibility_attribute+:} false; then :
18594  $as_echo_n "(cached) " >&6
18595else
18596
18597  	echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
18598  	libffi_cv_hidden_visibility_attribute=no
18599  	if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
18600  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18601  (eval $ac_try) 2>&5
18602  ac_status=$?
18603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604  test $ac_status = 0; }; }; then
18605  	    if grep '\.hidden.*foo' conftest.s >/dev/null; then
18606  		libffi_cv_hidden_visibility_attribute=yes
18607  	    fi
18608  	fi
18609  	rm -f conftest.*
18610
18611fi
18612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
18613$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
18614  if test $libffi_cv_hidden_visibility_attribute = yes; then
18615
18616$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
18617
18618  fi
18619fi
18620
18621
18622
18623
18624
18625
18626
18627
18628# Check whether --enable-debug was given.
18629if test "${enable_debug+set}" = set; then :
18630  enableval=$enable_debug; if test "$enable_debug" = "yes"; then
18631
18632$as_echo "#define FFI_DEBUG 1" >>confdefs.h
18633
18634  fi
18635fi
18636
18637 if test "$enable_debug" = "yes"; then
18638  FFI_DEBUG_TRUE=
18639  FFI_DEBUG_FALSE='#'
18640else
18641  FFI_DEBUG_TRUE='#'
18642  FFI_DEBUG_FALSE=
18643fi
18644
18645
18646# Check whether --enable-structs was given.
18647if test "${enable_structs+set}" = set; then :
18648  enableval=$enable_structs; if test "$enable_structs" = "no"; then
18649
18650$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
18651
18652  fi
18653fi
18654
18655 if test "$enable_debug" = "yes"; then
18656  FFI_DEBUG_TRUE=
18657  FFI_DEBUG_FALSE='#'
18658else
18659  FFI_DEBUG_TRUE='#'
18660  FFI_DEBUG_FALSE=
18661fi
18662
18663
18664# Check whether --enable-raw-api was given.
18665if test "${enable_raw_api+set}" = set; then :
18666  enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
18667
18668$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
18669
18670  fi
18671fi
18672
18673
18674# Check whether --enable-purify-safety was given.
18675if test "${enable_purify_safety+set}" = set; then :
18676  enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
18677
18678$as_echo "#define USING_PURIFY 1" >>confdefs.h
18679
18680  fi
18681fi
18682
18683
18684# These variables are only ever used when we cross-build to X86_WIN32.
18685# And we only support this with GCC, so...
18686if test "x$GCC" = "xyes"; then
18687  if test -n "$with_cross_host" &&
18688     test x"$with_cross_host" != x"no"; then
18689    toolexecdir='$(exec_prefix)/$(target_alias)'
18690    toolexeclibdir='$(toolexecdir)/lib'
18691  else
18692    toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18693    toolexeclibdir='$(libdir)'
18694  fi
18695  multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
18696  case $multi_os_directory in
18697    .) ;; # Avoid trailing /.
18698    ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
18699  esac
18700
18701else
18702  toolexeclibdir='$(libdir)'
18703fi
18704
18705
18706ac_config_commands="$ac_config_commands include"
18707
18708ac_config_commands="$ac_config_commands src"
18709
18710
18711ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
18712
18713
18714ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
18715
18716
18717cat >confcache <<\_ACEOF
18718# This file is a shell script that caches the results of configure
18719# tests run on this system so they can be shared between configure
18720# scripts and configure runs, see configure's option --config-cache.
18721# It is not useful on other systems.  If it contains results you don't
18722# want to keep, you may remove or edit it.
18723#
18724# config.status only pays attention to the cache file if you give it
18725# the --recheck option to rerun configure.
18726#
18727# `ac_cv_env_foo' variables (set or unset) will be overridden when
18728# loading this file, other *unset* `ac_cv_foo' will be assigned the
18729# following values.
18730
18731_ACEOF
18732
18733# The following way of writing the cache mishandles newlines in values,
18734# but we know of no workaround that is simple, portable, and efficient.
18735# So, we kill variables containing newlines.
18736# Ultrix sh set writes to stderr and can't be redirected directly,
18737# and sets the high bit in the cache file unless we assign to the vars.
18738(
18739  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18740    eval ac_val=\$$ac_var
18741    case $ac_val in #(
18742    *${as_nl}*)
18743      case $ac_var in #(
18744      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18745$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18746      esac
18747      case $ac_var in #(
18748      _ | IFS | as_nl) ;; #(
18749      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18750      *) { eval $ac_var=; unset $ac_var;} ;;
18751      esac ;;
18752    esac
18753  done
18754
18755  (set) 2>&1 |
18756    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18757    *${as_nl}ac_space=\ *)
18758      # `set' does not quote correctly, so add quotes: double-quote
18759      # substitution turns \\\\ into \\, and sed turns \\ into \.
18760      sed -n \
18761	"s/'/'\\\\''/g;
18762	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18763      ;; #(
18764    *)
18765      # `set' quotes correctly as required by POSIX, so do not add quotes.
18766      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18767      ;;
18768    esac |
18769    sort
18770) |
18771  sed '
18772     /^ac_cv_env_/b end
18773     t clear
18774     :clear
18775     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18776     t end
18777     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18778     :end' >>confcache
18779if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18780  if test -w "$cache_file"; then
18781    if test "x$cache_file" != "x/dev/null"; then
18782      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18783$as_echo "$as_me: updating cache $cache_file" >&6;}
18784      if test ! -f "$cache_file" || test -h "$cache_file"; then
18785	cat confcache >"$cache_file"
18786      else
18787        case $cache_file in #(
18788        */* | ?:*)
18789	  mv -f confcache "$cache_file"$$ &&
18790	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18791        *)
18792	  mv -f confcache "$cache_file" ;;
18793	esac
18794      fi
18795    fi
18796  else
18797    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18798$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18799  fi
18800fi
18801rm -f confcache
18802
18803test "x$prefix" = xNONE && prefix=$ac_default_prefix
18804# Let make expand exec_prefix.
18805test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18806
18807DEFS=-DHAVE_CONFIG_H
18808
18809ac_libobjs=
18810ac_ltlibobjs=
18811U=
18812for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18813  # 1. Remove the extension, and $U if already installed.
18814  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18815  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18816  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18817  #    will be set to the directory where LIBOBJS objects are built.
18818  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18819  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18820done
18821LIBOBJS=$ac_libobjs
18822
18823LTLIBOBJS=$ac_ltlibobjs
18824
18825
18826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18827$as_echo_n "checking that generated files are newer than configure... " >&6; }
18828   if test -n "$am_sleep_pid"; then
18829     # Hide warnings about reused PIDs.
18830     wait $am_sleep_pid 2>/dev/null
18831   fi
18832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18833$as_echo "done" >&6; }
18834 if test -n "$EXEEXT"; then
18835  am__EXEEXT_TRUE=
18836  am__EXEEXT_FALSE='#'
18837else
18838  am__EXEEXT_TRUE='#'
18839  am__EXEEXT_FALSE=
18840fi
18841
18842if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18843  as_fn_error $? "conditional \"AMDEP\" was never defined.
18844Usually this means the macro was only invoked conditionally." "$LINENO" 5
18845fi
18846if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18847  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18848Usually this means the macro was only invoked conditionally." "$LINENO" 5
18849fi
18850if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18851  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18852Usually this means the macro was only invoked conditionally." "$LINENO" 5
18853fi
18854if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18855  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18856Usually this means the macro was only invoked conditionally." "$LINENO" 5
18857fi
18858if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18859  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18860Usually this means the macro was only invoked conditionally." "$LINENO" 5
18861fi
18862if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
18863  as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
18864Usually this means the macro was only invoked conditionally." "$LINENO" 5
18865fi
18866if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
18867  as_fn_error $? "conditional \"MIPS\" was never defined.
18868Usually this means the macro was only invoked conditionally." "$LINENO" 5
18869fi
18870if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
18871  as_fn_error $? "conditional \"BFIN\" was never defined.
18872Usually this means the macro was only invoked conditionally." "$LINENO" 5
18873fi
18874if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
18875  as_fn_error $? "conditional \"SPARC\" was never defined.
18876Usually this means the macro was only invoked conditionally." "$LINENO" 5
18877fi
18878if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
18879  as_fn_error $? "conditional \"X86\" was never defined.
18880Usually this means the macro was only invoked conditionally." "$LINENO" 5
18881fi
18882if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
18883  as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
18884Usually this means the macro was only invoked conditionally." "$LINENO" 5
18885fi
18886if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
18887  as_fn_error $? "conditional \"X86_WIN32\" was never defined.
18888Usually this means the macro was only invoked conditionally." "$LINENO" 5
18889fi
18890if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
18891  as_fn_error $? "conditional \"X86_WIN64\" was never defined.
18892Usually this means the macro was only invoked conditionally." "$LINENO" 5
18893fi
18894if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
18895  as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
18896Usually this means the macro was only invoked conditionally." "$LINENO" 5
18897fi
18898if test -z "${X86_DARWIN32_TRUE}" && test -z "${X86_DARWIN32_FALSE}"; then
18899  as_fn_error $? "conditional \"X86_DARWIN32\" was never defined.
18900Usually this means the macro was only invoked conditionally." "$LINENO" 5
18901fi
18902if test -z "${X86_DARWIN64_TRUE}" && test -z "${X86_DARWIN64_FALSE}"; then
18903  as_fn_error $? "conditional \"X86_DARWIN64\" was never defined.
18904Usually this means the macro was only invoked conditionally." "$LINENO" 5
18905fi
18906if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
18907  as_fn_error $? "conditional \"ALPHA\" was never defined.
18908Usually this means the macro was only invoked conditionally." "$LINENO" 5
18909fi
18910if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
18911  as_fn_error $? "conditional \"IA64\" was never defined.
18912Usually this means the macro was only invoked conditionally." "$LINENO" 5
18913fi
18914if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
18915  as_fn_error $? "conditional \"M32R\" was never defined.
18916Usually this means the macro was only invoked conditionally." "$LINENO" 5
18917fi
18918if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
18919  as_fn_error $? "conditional \"M68K\" was never defined.
18920Usually this means the macro was only invoked conditionally." "$LINENO" 5
18921fi
18922if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
18923  as_fn_error $? "conditional \"M88K\" was never defined.
18924Usually this means the macro was only invoked conditionally." "$LINENO" 5
18925fi
18926if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
18927  as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
18928Usually this means the macro was only invoked conditionally." "$LINENO" 5
18929fi
18930if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
18931  as_fn_error $? "conditional \"METAG\" was never defined.
18932Usually this means the macro was only invoked conditionally." "$LINENO" 5
18933fi
18934if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
18935  as_fn_error $? "conditional \"MOXIE\" was never defined.
18936Usually this means the macro was only invoked conditionally." "$LINENO" 5
18937fi
18938if test -z "${NIOS2_TRUE}" && test -z "${NIOS2_FALSE}"; then
18939  as_fn_error $? "conditional \"NIOS2\" was never defined.
18940Usually this means the macro was only invoked conditionally." "$LINENO" 5
18941fi
18942if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
18943  as_fn_error $? "conditional \"POWERPC\" was never defined.
18944Usually this means the macro was only invoked conditionally." "$LINENO" 5
18945fi
18946if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
18947  as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
18948Usually this means the macro was only invoked conditionally." "$LINENO" 5
18949fi
18950if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
18951  as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
18952Usually this means the macro was only invoked conditionally." "$LINENO" 5
18953fi
18954if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
18955  as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
18956Usually this means the macro was only invoked conditionally." "$LINENO" 5
18957fi
18958if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
18959  as_fn_error $? "conditional \"AARCH64\" was never defined.
18960Usually this means the macro was only invoked conditionally." "$LINENO" 5
18961fi
18962if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
18963  as_fn_error $? "conditional \"ARC\" was never defined.
18964Usually this means the macro was only invoked conditionally." "$LINENO" 5
18965fi
18966if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
18967  as_fn_error $? "conditional \"ARM\" was never defined.
18968Usually this means the macro was only invoked conditionally." "$LINENO" 5
18969fi
18970if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
18971  as_fn_error $? "conditional \"AVR32\" was never defined.
18972Usually this means the macro was only invoked conditionally." "$LINENO" 5
18973fi
18974if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
18975  as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
18976Usually this means the macro was only invoked conditionally." "$LINENO" 5
18977fi
18978if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
18979  as_fn_error $? "conditional \"FRV\" was never defined.
18980Usually this means the macro was only invoked conditionally." "$LINENO" 5
18981fi
18982if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
18983  as_fn_error $? "conditional \"S390\" was never defined.
18984Usually this means the macro was only invoked conditionally." "$LINENO" 5
18985fi
18986if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
18987  as_fn_error $? "conditional \"X86_64\" was never defined.
18988Usually this means the macro was only invoked conditionally." "$LINENO" 5
18989fi
18990if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
18991  as_fn_error $? "conditional \"SH\" was never defined.
18992Usually this means the macro was only invoked conditionally." "$LINENO" 5
18993fi
18994if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
18995  as_fn_error $? "conditional \"SH64\" was never defined.
18996Usually this means the macro was only invoked conditionally." "$LINENO" 5
18997fi
18998if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
18999  as_fn_error $? "conditional \"PA_LINUX\" was never defined.
19000Usually this means the macro was only invoked conditionally." "$LINENO" 5
19001fi
19002if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
19003  as_fn_error $? "conditional \"PA_HPUX\" was never defined.
19004Usually this means the macro was only invoked conditionally." "$LINENO" 5
19005fi
19006if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
19007  as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
19008Usually this means the macro was only invoked conditionally." "$LINENO" 5
19009fi
19010if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
19011  as_fn_error $? "conditional \"TILE\" was never defined.
19012Usually this means the macro was only invoked conditionally." "$LINENO" 5
19013fi
19014if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
19015  as_fn_error $? "conditional \"VAX\" was never defined.
19016Usually this means the macro was only invoked conditionally." "$LINENO" 5
19017fi
19018if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
19019  as_fn_error $? "conditional \"XTENSA\" was never defined.
19020Usually this means the macro was only invoked conditionally." "$LINENO" 5
19021fi
19022
19023if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
19024  as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
19025Usually this means the macro was only invoked conditionally." "$LINENO" 5
19026fi
19027if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19028  as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19029Usually this means the macro was only invoked conditionally." "$LINENO" 5
19030fi
19031if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19032  as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19033Usually this means the macro was only invoked conditionally." "$LINENO" 5
19034fi
19035
19036: "${CONFIG_STATUS=./config.status}"
19037ac_write_fail=0
19038ac_clean_files_save=$ac_clean_files
19039ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19040{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19041$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19042as_write_fail=0
19043cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19044#! $SHELL
19045# Generated by $as_me.
19046# Run this file to recreate the current configuration.
19047# Compiler output produced by configure, useful for debugging
19048# configure, is in config.log if it exists.
19049
19050debug=false
19051ac_cs_recheck=false
19052ac_cs_silent=false
19053
19054SHELL=\${CONFIG_SHELL-$SHELL}
19055export SHELL
19056_ASEOF
19057cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19058## -------------------- ##
19059## M4sh Initialization. ##
19060## -------------------- ##
19061
19062# Be more Bourne compatible
19063DUALCASE=1; export DUALCASE # for MKS sh
19064if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19065  emulate sh
19066  NULLCMD=:
19067  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19068  # is contrary to our usage.  Disable this feature.
19069  alias -g '${1+"$@"}'='"$@"'
19070  setopt NO_GLOB_SUBST
19071else
19072  case `(set -o) 2>/dev/null` in #(
19073  *posix*) :
19074    set -o posix ;; #(
19075  *) :
19076     ;;
19077esac
19078fi
19079
19080
19081as_nl='
19082'
19083export as_nl
19084# Printing a long string crashes Solaris 7 /usr/bin/printf.
19085as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19086as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19087as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19088# Prefer a ksh shell builtin over an external printf program on Solaris,
19089# but without wasting forks for bash or zsh.
19090if test -z "$BASH_VERSION$ZSH_VERSION" \
19091    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19092  as_echo='print -r --'
19093  as_echo_n='print -rn --'
19094elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19095  as_echo='printf %s\n'
19096  as_echo_n='printf %s'
19097else
19098  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19099    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19100    as_echo_n='/usr/ucb/echo -n'
19101  else
19102    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19103    as_echo_n_body='eval
19104      arg=$1;
19105      case $arg in #(
19106      *"$as_nl"*)
19107	expr "X$arg" : "X\\(.*\\)$as_nl";
19108	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19109      esac;
19110      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19111    '
19112    export as_echo_n_body
19113    as_echo_n='sh -c $as_echo_n_body as_echo'
19114  fi
19115  export as_echo_body
19116  as_echo='sh -c $as_echo_body as_echo'
19117fi
19118
19119# The user is always right.
19120if test "${PATH_SEPARATOR+set}" != set; then
19121  PATH_SEPARATOR=:
19122  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19123    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19124      PATH_SEPARATOR=';'
19125  }
19126fi
19127
19128
19129# IFS
19130# We need space, tab and new line, in precisely that order.  Quoting is
19131# there to prevent editors from complaining about space-tab.
19132# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19133# splitting by setting IFS to empty value.)
19134IFS=" ""	$as_nl"
19135
19136# Find who we are.  Look in the path if we contain no directory separator.
19137as_myself=
19138case $0 in #((
19139  *[\\/]* ) as_myself=$0 ;;
19140  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19141for as_dir in $PATH
19142do
19143  IFS=$as_save_IFS
19144  test -z "$as_dir" && as_dir=.
19145    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19146  done
19147IFS=$as_save_IFS
19148
19149     ;;
19150esac
19151# We did not find ourselves, most probably we were run as `sh COMMAND'
19152# in which case we are not to be found in the path.
19153if test "x$as_myself" = x; then
19154  as_myself=$0
19155fi
19156if test ! -f "$as_myself"; then
19157  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19158  exit 1
19159fi
19160
19161# Unset variables that we do not need and which cause bugs (e.g. in
19162# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19163# suppresses any "Segmentation fault" message there.  '((' could
19164# trigger a bug in pdksh 5.2.14.
19165for as_var in BASH_ENV ENV MAIL MAILPATH
19166do eval test x\${$as_var+set} = xset \
19167  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19168done
19169PS1='$ '
19170PS2='> '
19171PS4='+ '
19172
19173# NLS nuisances.
19174LC_ALL=C
19175export LC_ALL
19176LANGUAGE=C
19177export LANGUAGE
19178
19179# CDPATH.
19180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19181
19182
19183# as_fn_error STATUS ERROR [LINENO LOG_FD]
19184# ----------------------------------------
19185# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19186# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19187# script with STATUS, using 1 if that was 0.
19188as_fn_error ()
19189{
19190  as_status=$1; test $as_status -eq 0 && as_status=1
19191  if test "$4"; then
19192    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19193    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19194  fi
19195  $as_echo "$as_me: error: $2" >&2
19196  as_fn_exit $as_status
19197} # as_fn_error
19198
19199
19200# as_fn_set_status STATUS
19201# -----------------------
19202# Set $? to STATUS, without forking.
19203as_fn_set_status ()
19204{
19205  return $1
19206} # as_fn_set_status
19207
19208# as_fn_exit STATUS
19209# -----------------
19210# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19211as_fn_exit ()
19212{
19213  set +e
19214  as_fn_set_status $1
19215  exit $1
19216} # as_fn_exit
19217
19218# as_fn_unset VAR
19219# ---------------
19220# Portably unset VAR.
19221as_fn_unset ()
19222{
19223  { eval $1=; unset $1;}
19224}
19225as_unset=as_fn_unset
19226# as_fn_append VAR VALUE
19227# ----------------------
19228# Append the text in VALUE to the end of the definition contained in VAR. Take
19229# advantage of any shell optimizations that allow amortized linear growth over
19230# repeated appends, instead of the typical quadratic growth present in naive
19231# implementations.
19232if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19233  eval 'as_fn_append ()
19234  {
19235    eval $1+=\$2
19236  }'
19237else
19238  as_fn_append ()
19239  {
19240    eval $1=\$$1\$2
19241  }
19242fi # as_fn_append
19243
19244# as_fn_arith ARG...
19245# ------------------
19246# Perform arithmetic evaluation on the ARGs, and store the result in the
19247# global $as_val. Take advantage of shells that can avoid forks. The arguments
19248# must be portable across $(()) and expr.
19249if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19250  eval 'as_fn_arith ()
19251  {
19252    as_val=$(( $* ))
19253  }'
19254else
19255  as_fn_arith ()
19256  {
19257    as_val=`expr "$@" || test $? -eq 1`
19258  }
19259fi # as_fn_arith
19260
19261
19262if expr a : '\(a\)' >/dev/null 2>&1 &&
19263   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19264  as_expr=expr
19265else
19266  as_expr=false
19267fi
19268
19269if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19270  as_basename=basename
19271else
19272  as_basename=false
19273fi
19274
19275if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19276  as_dirname=dirname
19277else
19278  as_dirname=false
19279fi
19280
19281as_me=`$as_basename -- "$0" ||
19282$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19283	 X"$0" : 'X\(//\)$' \| \
19284	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19285$as_echo X/"$0" |
19286    sed '/^.*\/\([^/][^/]*\)\/*$/{
19287	    s//\1/
19288	    q
19289	  }
19290	  /^X\/\(\/\/\)$/{
19291	    s//\1/
19292	    q
19293	  }
19294	  /^X\/\(\/\).*/{
19295	    s//\1/
19296	    q
19297	  }
19298	  s/.*/./; q'`
19299
19300# Avoid depending upon Character Ranges.
19301as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19302as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19303as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19304as_cr_digits='0123456789'
19305as_cr_alnum=$as_cr_Letters$as_cr_digits
19306
19307ECHO_C= ECHO_N= ECHO_T=
19308case `echo -n x` in #(((((
19309-n*)
19310  case `echo 'xy\c'` in
19311  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19312  xy)  ECHO_C='\c';;
19313  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19314       ECHO_T='	';;
19315  esac;;
19316*)
19317  ECHO_N='-n';;
19318esac
19319
19320rm -f conf$$ conf$$.exe conf$$.file
19321if test -d conf$$.dir; then
19322  rm -f conf$$.dir/conf$$.file
19323else
19324  rm -f conf$$.dir
19325  mkdir conf$$.dir 2>/dev/null
19326fi
19327if (echo >conf$$.file) 2>/dev/null; then
19328  if ln -s conf$$.file conf$$ 2>/dev/null; then
19329    as_ln_s='ln -s'
19330    # ... but there are two gotchas:
19331    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19332    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19333    # In both cases, we have to default to `cp -pR'.
19334    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19335      as_ln_s='cp -pR'
19336  elif ln conf$$.file conf$$ 2>/dev/null; then
19337    as_ln_s=ln
19338  else
19339    as_ln_s='cp -pR'
19340  fi
19341else
19342  as_ln_s='cp -pR'
19343fi
19344rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19345rmdir conf$$.dir 2>/dev/null
19346
19347
19348# as_fn_mkdir_p
19349# -------------
19350# Create "$as_dir" as a directory, including parents if necessary.
19351as_fn_mkdir_p ()
19352{
19353
19354  case $as_dir in #(
19355  -*) as_dir=./$as_dir;;
19356  esac
19357  test -d "$as_dir" || eval $as_mkdir_p || {
19358    as_dirs=
19359    while :; do
19360      case $as_dir in #(
19361      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19362      *) as_qdir=$as_dir;;
19363      esac
19364      as_dirs="'$as_qdir' $as_dirs"
19365      as_dir=`$as_dirname -- "$as_dir" ||
19366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19367	 X"$as_dir" : 'X\(//\)[^/]' \| \
19368	 X"$as_dir" : 'X\(//\)$' \| \
19369	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19370$as_echo X"$as_dir" |
19371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19372	    s//\1/
19373	    q
19374	  }
19375	  /^X\(\/\/\)[^/].*/{
19376	    s//\1/
19377	    q
19378	  }
19379	  /^X\(\/\/\)$/{
19380	    s//\1/
19381	    q
19382	  }
19383	  /^X\(\/\).*/{
19384	    s//\1/
19385	    q
19386	  }
19387	  s/.*/./; q'`
19388      test -d "$as_dir" && break
19389    done
19390    test -z "$as_dirs" || eval "mkdir $as_dirs"
19391  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19392
19393
19394} # as_fn_mkdir_p
19395if mkdir -p . 2>/dev/null; then
19396  as_mkdir_p='mkdir -p "$as_dir"'
19397else
19398  test -d ./-p && rmdir ./-p
19399  as_mkdir_p=false
19400fi
19401
19402
19403# as_fn_executable_p FILE
19404# -----------------------
19405# Test if FILE is an executable regular file.
19406as_fn_executable_p ()
19407{
19408  test -f "$1" && test -x "$1"
19409} # as_fn_executable_p
19410as_test_x='test -x'
19411as_executable_p=as_fn_executable_p
19412
19413# Sed expression to map a string onto a valid CPP name.
19414as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19415
19416# Sed expression to map a string onto a valid variable name.
19417as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19418
19419
19420exec 6>&1
19421## ----------------------------------- ##
19422## Main body of $CONFIG_STATUS script. ##
19423## ----------------------------------- ##
19424_ASEOF
19425test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19426
19427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19428# Save the log message, to keep $0 and so on meaningful, and to
19429# report actual input values of CONFIG_FILES etc. instead of their
19430# values after options handling.
19431ac_log="
19432This file was extended by libffi $as_me 3.1, which was
19433generated by GNU Autoconf 2.69.  Invocation command line was
19434
19435  CONFIG_FILES    = $CONFIG_FILES
19436  CONFIG_HEADERS  = $CONFIG_HEADERS
19437  CONFIG_LINKS    = $CONFIG_LINKS
19438  CONFIG_COMMANDS = $CONFIG_COMMANDS
19439  $ $0 $@
19440
19441on `(hostname || uname -n) 2>/dev/null | sed 1q`
19442"
19443
19444_ACEOF
19445
19446case $ac_config_files in *"
19447"*) set x $ac_config_files; shift; ac_config_files=$*;;
19448esac
19449
19450case $ac_config_headers in *"
19451"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19452esac
19453
19454
19455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19456# Files that config.status was made for.
19457config_files="$ac_config_files"
19458config_headers="$ac_config_headers"
19459config_links="$ac_config_links"
19460config_commands="$ac_config_commands"
19461
19462_ACEOF
19463
19464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19465ac_cs_usage="\
19466\`$as_me' instantiates files and other configuration actions
19467from templates according to the current configuration.  Unless the files
19468and actions are specified as TAGs, all are instantiated by default.
19469
19470Usage: $0 [OPTION]... [TAG]...
19471
19472  -h, --help       print this help, then exit
19473  -V, --version    print version number and configuration settings, then exit
19474      --config     print configuration, then exit
19475  -q, --quiet, --silent
19476                   do not print progress messages
19477  -d, --debug      don't remove temporary files
19478      --recheck    update $as_me by reconfiguring in the same conditions
19479      --file=FILE[:TEMPLATE]
19480                   instantiate the configuration file FILE
19481      --header=FILE[:TEMPLATE]
19482                   instantiate the configuration header FILE
19483
19484Configuration files:
19485$config_files
19486
19487Configuration headers:
19488$config_headers
19489
19490Configuration links:
19491$config_links
19492
19493Configuration commands:
19494$config_commands
19495
19496Report bugs to <http://github.com/atgreen/libffi/issues>."
19497
19498_ACEOF
19499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19501ac_cs_version="\\
19502libffi config.status 3.1
19503configured by $0, generated by GNU Autoconf 2.69,
19504  with options \\"\$ac_cs_config\\"
19505
19506Copyright (C) 2012 Free Software Foundation, Inc.
19507This config.status script is free software; the Free Software Foundation
19508gives unlimited permission to copy, distribute and modify it."
19509
19510ac_pwd='$ac_pwd'
19511srcdir='$srcdir'
19512INSTALL='$INSTALL'
19513MKDIR_P='$MKDIR_P'
19514AWK='$AWK'
19515test -n "\$AWK" || AWK=awk
19516_ACEOF
19517
19518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19519# The default lists apply if the user does not specify any file.
19520ac_need_defaults=:
19521while test $# != 0
19522do
19523  case $1 in
19524  --*=?*)
19525    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19526    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19527    ac_shift=:
19528    ;;
19529  --*=)
19530    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19531    ac_optarg=
19532    ac_shift=:
19533    ;;
19534  *)
19535    ac_option=$1
19536    ac_optarg=$2
19537    ac_shift=shift
19538    ;;
19539  esac
19540
19541  case $ac_option in
19542  # Handling of the options.
19543  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19544    ac_cs_recheck=: ;;
19545  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19546    $as_echo "$ac_cs_version"; exit ;;
19547  --config | --confi | --conf | --con | --co | --c )
19548    $as_echo "$ac_cs_config"; exit ;;
19549  --debug | --debu | --deb | --de | --d | -d )
19550    debug=: ;;
19551  --file | --fil | --fi | --f )
19552    $ac_shift
19553    case $ac_optarg in
19554    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19555    '') as_fn_error $? "missing file argument" ;;
19556    esac
19557    as_fn_append CONFIG_FILES " '$ac_optarg'"
19558    ac_need_defaults=false;;
19559  --header | --heade | --head | --hea )
19560    $ac_shift
19561    case $ac_optarg in
19562    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19563    esac
19564    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19565    ac_need_defaults=false;;
19566  --he | --h)
19567    # Conflict between --help and --header
19568    as_fn_error $? "ambiguous option: \`$1'
19569Try \`$0 --help' for more information.";;
19570  --help | --hel | -h )
19571    $as_echo "$ac_cs_usage"; exit ;;
19572  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19573  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19574    ac_cs_silent=: ;;
19575
19576  # This is an error.
19577  -*) as_fn_error $? "unrecognized option: \`$1'
19578Try \`$0 --help' for more information." ;;
19579
19580  *) as_fn_append ac_config_targets " $1"
19581     ac_need_defaults=false ;;
19582
19583  esac
19584  shift
19585done
19586
19587ac_configure_extra_args=
19588
19589if $ac_cs_silent; then
19590  exec 6>/dev/null
19591  ac_configure_extra_args="$ac_configure_extra_args --silent"
19592fi
19593
19594_ACEOF
19595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19596if \$ac_cs_recheck; then
19597  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19598  shift
19599  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19600  CONFIG_SHELL='$SHELL'
19601  export CONFIG_SHELL
19602  exec "\$@"
19603fi
19604
19605_ACEOF
19606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19607exec 5>>config.log
19608{
19609  echo
19610  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19611## Running $as_me. ##
19612_ASBOX
19613  $as_echo "$ac_log"
19614} >&5
19615
19616_ACEOF
19617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19618#
19619# INIT-COMMANDS
19620#
19621ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
19622ax_enable_builddir_host="$HOST"                        # $HOST / $host
19623ax_enable_builddir_version="$VERSION"                  # $VERSION
19624ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
19625ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
19626ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
19627ax_enable_builddir="$ax_enable_builddir"               # $SUB
19628
19629AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19630
19631
19632# The HP-UX ksh and POSIX shell print the target directory to stdout
19633# if CDPATH is set.
19634(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19635
19636sed_quote_subst='$sed_quote_subst'
19637double_quote_subst='$double_quote_subst'
19638delay_variable_subst='$delay_variable_subst'
19639macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19640macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19641enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19642enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19643pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19644enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19645SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19646ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19647PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19648host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19649host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19650host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19651build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19652build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19653build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19654SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19655Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19656GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19657EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19658FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19659LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19660NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19661LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19662max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19663ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19664exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19665lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19666lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19667lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19668lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19669lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19670reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19671reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19672OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19673deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19674file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19675file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19676want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19677DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19678sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19679AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19680AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19681archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19682STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19683RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19684old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19685old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19686old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19687lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19688CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19689CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19690compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19691GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19692lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19693lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19694lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19695lt_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"`'
19696nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19697lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19698objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19699MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19700lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19701lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19702lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19703lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19704lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19705need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19706MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19707DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19708NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19709LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19710OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19711OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19712libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19713shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19714extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19715archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19716enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19717export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19718whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19719compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19720old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19721old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19722archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19723archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19724module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19725module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19726with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19727allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19728no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19729hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19730hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19731hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19732hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19733hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19734hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19735hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19736inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19737link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19738always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19739export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19740exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19741include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19742prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19743postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19744file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19745variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19746need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19747need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19748version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19749runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19750shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19751shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19752libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19753library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19754soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19755install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19756postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19757postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19758finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19759finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19760hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19761sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19762sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19763hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19764enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19765enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19766enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19767old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19768striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19769compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19770predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19771postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19772predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19773postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19774compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19775LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19776reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19777reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19778old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19779compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19780GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19781lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19782lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19783lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19784lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19785lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19786archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19787enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19788export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19789whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19790compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19791old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19792old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19793archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19794archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19795module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19796module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19797with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19798allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19799no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19800hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19801hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19802hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19803hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19804hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19805hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19806hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19807inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19808link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19809always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19810export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19811exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19812include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19813prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19814postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19815file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19816hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19817compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19818predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19819postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19820predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19821postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19822compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19823
19824LTCC='$LTCC'
19825LTCFLAGS='$LTCFLAGS'
19826compiler='$compiler_DEFAULT'
19827
19828# A function that is used when there is no print builtin or printf.
19829func_fallback_echo ()
19830{
19831  eval 'cat <<_LTECHO_EOF
19832\$1
19833_LTECHO_EOF'
19834}
19835
19836# Quote evaled strings.
19837for var in SHELL \
19838ECHO \
19839PATH_SEPARATOR \
19840SED \
19841GREP \
19842EGREP \
19843FGREP \
19844LD \
19845NM \
19846LN_S \
19847lt_SP2NL \
19848lt_NL2SP \
19849reload_flag \
19850OBJDUMP \
19851deplibs_check_method \
19852file_magic_cmd \
19853file_magic_glob \
19854want_nocaseglob \
19855DLLTOOL \
19856sharedlib_from_linklib_cmd \
19857AR \
19858AR_FLAGS \
19859archiver_list_spec \
19860STRIP \
19861RANLIB \
19862CC \
19863CFLAGS \
19864compiler \
19865lt_cv_sys_global_symbol_pipe \
19866lt_cv_sys_global_symbol_to_cdecl \
19867lt_cv_sys_global_symbol_to_c_name_address \
19868lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19869nm_file_list_spec \
19870lt_prog_compiler_no_builtin_flag \
19871lt_prog_compiler_pic \
19872lt_prog_compiler_wl \
19873lt_prog_compiler_static \
19874lt_cv_prog_compiler_c_o \
19875need_locks \
19876MANIFEST_TOOL \
19877DSYMUTIL \
19878NMEDIT \
19879LIPO \
19880OTOOL \
19881OTOOL64 \
19882shrext_cmds \
19883export_dynamic_flag_spec \
19884whole_archive_flag_spec \
19885compiler_needs_object \
19886with_gnu_ld \
19887allow_undefined_flag \
19888no_undefined_flag \
19889hardcode_libdir_flag_spec \
19890hardcode_libdir_separator \
19891exclude_expsyms \
19892include_expsyms \
19893file_list_spec \
19894variables_saved_for_relink \
19895libname_spec \
19896library_names_spec \
19897soname_spec \
19898install_override_mode \
19899finish_eval \
19900old_striplib \
19901striplib \
19902compiler_lib_search_dirs \
19903predep_objects \
19904postdep_objects \
19905predeps \
19906postdeps \
19907compiler_lib_search_path \
19908LD_CXX \
19909reload_flag_CXX \
19910compiler_CXX \
19911lt_prog_compiler_no_builtin_flag_CXX \
19912lt_prog_compiler_pic_CXX \
19913lt_prog_compiler_wl_CXX \
19914lt_prog_compiler_static_CXX \
19915lt_cv_prog_compiler_c_o_CXX \
19916export_dynamic_flag_spec_CXX \
19917whole_archive_flag_spec_CXX \
19918compiler_needs_object_CXX \
19919with_gnu_ld_CXX \
19920allow_undefined_flag_CXX \
19921no_undefined_flag_CXX \
19922hardcode_libdir_flag_spec_CXX \
19923hardcode_libdir_separator_CXX \
19924exclude_expsyms_CXX \
19925include_expsyms_CXX \
19926file_list_spec_CXX \
19927compiler_lib_search_dirs_CXX \
19928predep_objects_CXX \
19929postdep_objects_CXX \
19930predeps_CXX \
19931postdeps_CXX \
19932compiler_lib_search_path_CXX; do
19933    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19934    *[\\\\\\\`\\"\\\$]*)
19935      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19936      ;;
19937    *)
19938      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19939      ;;
19940    esac
19941done
19942
19943# Double-quote double-evaled strings.
19944for var in reload_cmds \
19945old_postinstall_cmds \
19946old_postuninstall_cmds \
19947old_archive_cmds \
19948extract_expsyms_cmds \
19949old_archive_from_new_cmds \
19950old_archive_from_expsyms_cmds \
19951archive_cmds \
19952archive_expsym_cmds \
19953module_cmds \
19954module_expsym_cmds \
19955export_symbols_cmds \
19956prelink_cmds \
19957postlink_cmds \
19958postinstall_cmds \
19959postuninstall_cmds \
19960finish_cmds \
19961sys_lib_search_path_spec \
19962sys_lib_dlsearch_path_spec \
19963reload_cmds_CXX \
19964old_archive_cmds_CXX \
19965old_archive_from_new_cmds_CXX \
19966old_archive_from_expsyms_cmds_CXX \
19967archive_cmds_CXX \
19968archive_expsym_cmds_CXX \
19969module_cmds_CXX \
19970module_expsym_cmds_CXX \
19971export_symbols_cmds_CXX \
19972prelink_cmds_CXX \
19973postlink_cmds_CXX; do
19974    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19975    *[\\\\\\\`\\"\\\$]*)
19976      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19977      ;;
19978    *)
19979      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19980      ;;
19981    esac
19982done
19983
19984ac_aux_dir='$ac_aux_dir'
19985xsi_shell='$xsi_shell'
19986lt_shell_append='$lt_shell_append'
19987
19988# See if we are running on zsh, and set the options which allow our
19989# commands through without removal of \ escapes INIT.
19990if test -n "\${ZSH_VERSION+set}" ; then
19991   setopt NO_GLOB_SUBST
19992fi
19993
19994
19995    PACKAGE='$PACKAGE'
19996    VERSION='$VERSION'
19997    TIMESTAMP='$TIMESTAMP'
19998    RM='$RM'
19999    ofile='$ofile'
20000
20001
20002
20003
20004
20005TARGETDIR="$TARGETDIR"
20006
20007_ACEOF
20008
20009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20010
20011# Handling of arguments.
20012for ac_config_target in $ac_config_targets
20013do
20014  case $ac_config_target in
20015    "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
20016    "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
20017    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20018    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20019    "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
20020    "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
20021    "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
20022    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20023    "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
20024    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20025    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20026    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20027    "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
20028
20029  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20030  esac
20031done
20032
20033
20034# If the user did not use the arguments to specify the items to instantiate,
20035# then the envvar interface is used.  Set only those that are not.
20036# We use the long form for the default assignment because of an extremely
20037# bizarre bug on SunOS 4.1.3.
20038if $ac_need_defaults; then
20039  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20040  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20041  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20042  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20043fi
20044
20045# Have a temporary directory for convenience.  Make it in the build tree
20046# simply because there is no reason against having it here, and in addition,
20047# creating and moving files from /tmp can sometimes cause problems.
20048# Hook for its removal unless debugging.
20049# Note that there is a small window in which the directory will not be cleaned:
20050# after its creation but before its name has been assigned to `$tmp'.
20051$debug ||
20052{
20053  tmp= ac_tmp=
20054  trap 'exit_status=$?
20055  : "${ac_tmp:=$tmp}"
20056  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20057' 0
20058  trap 'as_fn_exit 1' 1 2 13 15
20059}
20060# Create a (secure) tmp directory for tmp files.
20061
20062{
20063  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20064  test -d "$tmp"
20065}  ||
20066{
20067  tmp=./conf$$-$RANDOM
20068  (umask 077 && mkdir "$tmp")
20069} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20070ac_tmp=$tmp
20071
20072# Set up the scripts for CONFIG_FILES section.
20073# No need to generate them if there are no CONFIG_FILES.
20074# This happens for instance with `./config.status config.h'.
20075if test -n "$CONFIG_FILES"; then
20076
20077
20078ac_cr=`echo X | tr X '\015'`
20079# On cygwin, bash can eat \r inside `` if the user requested igncr.
20080# But we know of no other shell where ac_cr would be empty at this
20081# point, so we can use a bashism as a fallback.
20082if test "x$ac_cr" = x; then
20083  eval ac_cr=\$\'\\r\'
20084fi
20085ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20086if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20087  ac_cs_awk_cr='\\r'
20088else
20089  ac_cs_awk_cr=$ac_cr
20090fi
20091
20092echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20093_ACEOF
20094
20095
20096{
20097  echo "cat >conf$$subs.awk <<_ACEOF" &&
20098  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20099  echo "_ACEOF"
20100} >conf$$subs.sh ||
20101  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20102ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20103ac_delim='%!_!# '
20104for ac_last_try in false false false false false :; do
20105  . ./conf$$subs.sh ||
20106    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20107
20108  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20109  if test $ac_delim_n = $ac_delim_num; then
20110    break
20111  elif $ac_last_try; then
20112    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20113  else
20114    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20115  fi
20116done
20117rm -f conf$$subs.sh
20118
20119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20120cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20121_ACEOF
20122sed -n '
20123h
20124s/^/S["/; s/!.*/"]=/
20125p
20126g
20127s/^[^!]*!//
20128:repl
20129t repl
20130s/'"$ac_delim"'$//
20131t delim
20132:nl
20133h
20134s/\(.\{148\}\)..*/\1/
20135t more1
20136s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20137p
20138n
20139b repl
20140:more1
20141s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20142p
20143g
20144s/.\{148\}//
20145t nl
20146:delim
20147h
20148s/\(.\{148\}\)..*/\1/
20149t more2
20150s/["\\]/\\&/g; s/^/"/; s/$/"/
20151p
20152b
20153:more2
20154s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20155p
20156g
20157s/.\{148\}//
20158t delim
20159' <conf$$subs.awk | sed '
20160/^[^""]/{
20161  N
20162  s/\n//
20163}
20164' >>$CONFIG_STATUS || ac_write_fail=1
20165rm -f conf$$subs.awk
20166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20167_ACAWK
20168cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20169  for (key in S) S_is_set[key] = 1
20170  FS = ""
20171
20172}
20173{
20174  line = $ 0
20175  nfields = split(line, field, "@")
20176  substed = 0
20177  len = length(field[1])
20178  for (i = 2; i < nfields; i++) {
20179    key = field[i]
20180    keylen = length(key)
20181    if (S_is_set[key]) {
20182      value = S[key]
20183      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20184      len += length(value) + length(field[++i])
20185      substed = 1
20186    } else
20187      len += 1 + keylen
20188  }
20189
20190  print line
20191}
20192
20193_ACAWK
20194_ACEOF
20195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20196if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20197  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20198else
20199  cat
20200fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20201  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20202_ACEOF
20203
20204# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20205# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20206# trailing colons and then remove the whole line if VPATH becomes empty
20207# (actually we leave an empty line to preserve line numbers).
20208if test "x$srcdir" = x.; then
20209  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20210h
20211s///
20212s/^/:/
20213s/[	 ]*$/:/
20214s/:\$(srcdir):/:/g
20215s/:\${srcdir}:/:/g
20216s/:@srcdir@:/:/g
20217s/^:*//
20218s/:*$//
20219x
20220s/\(=[	 ]*\).*/\1/
20221G
20222s/\n//
20223s/^[^=]*=[	 ]*$//
20224}'
20225fi
20226
20227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20228fi # test -n "$CONFIG_FILES"
20229
20230# Set up the scripts for CONFIG_HEADERS section.
20231# No need to generate them if there are no CONFIG_HEADERS.
20232# This happens for instance with `./config.status Makefile'.
20233if test -n "$CONFIG_HEADERS"; then
20234cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20235BEGIN {
20236_ACEOF
20237
20238# Transform confdefs.h into an awk script `defines.awk', embedded as
20239# here-document in config.status, that substitutes the proper values into
20240# config.h.in to produce config.h.
20241
20242# Create a delimiter string that does not exist in confdefs.h, to ease
20243# handling of long lines.
20244ac_delim='%!_!# '
20245for ac_last_try in false false :; do
20246  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20247  if test -z "$ac_tt"; then
20248    break
20249  elif $ac_last_try; then
20250    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20251  else
20252    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20253  fi
20254done
20255
20256# For the awk script, D is an array of macro values keyed by name,
20257# likewise P contains macro parameters if any.  Preserve backslash
20258# newline sequences.
20259
20260ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20261sed -n '
20262s/.\{148\}/&'"$ac_delim"'/g
20263t rset
20264:rset
20265s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20266t def
20267d
20268:def
20269s/\\$//
20270t bsnl
20271s/["\\]/\\&/g
20272s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20273D["\1"]=" \3"/p
20274s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20275d
20276:bsnl
20277s/["\\]/\\&/g
20278s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20279D["\1"]=" \3\\\\\\n"\\/p
20280t cont
20281s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20282t cont
20283d
20284:cont
20285n
20286s/.\{148\}/&'"$ac_delim"'/g
20287t clear
20288:clear
20289s/\\$//
20290t bsnlc
20291s/["\\]/\\&/g; s/^/"/; s/$/"/p
20292d
20293:bsnlc
20294s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20295b cont
20296' <confdefs.h | sed '
20297s/'"$ac_delim"'/"\\\
20298"/g' >>$CONFIG_STATUS || ac_write_fail=1
20299
20300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20301  for (key in D) D_is_set[key] = 1
20302  FS = ""
20303}
20304/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20305  line = \$ 0
20306  split(line, arg, " ")
20307  if (arg[1] == "#") {
20308    defundef = arg[2]
20309    mac1 = arg[3]
20310  } else {
20311    defundef = substr(arg[1], 2)
20312    mac1 = arg[2]
20313  }
20314  split(mac1, mac2, "(") #)
20315  macro = mac2[1]
20316  prefix = substr(line, 1, index(line, defundef) - 1)
20317  if (D_is_set[macro]) {
20318    # Preserve the white space surrounding the "#".
20319    print prefix "define", macro P[macro] D[macro]
20320    next
20321  } else {
20322    # Replace #undef with comments.  This is necessary, for example,
20323    # in the case of _POSIX_SOURCE, which is predefined and required
20324    # on some systems where configure will not decide to define it.
20325    if (defundef == "undef") {
20326      print "/*", prefix defundef, macro, "*/"
20327      next
20328    }
20329  }
20330}
20331{ print }
20332_ACAWK
20333_ACEOF
20334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20335  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20336fi # test -n "$CONFIG_HEADERS"
20337
20338
20339eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
20340shift
20341for ac_tag
20342do
20343  case $ac_tag in
20344  :[FHLC]) ac_mode=$ac_tag; continue;;
20345  esac
20346  case $ac_mode$ac_tag in
20347  :[FHL]*:*);;
20348  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20349  :[FH]-) ac_tag=-:-;;
20350  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20351  esac
20352  ac_save_IFS=$IFS
20353  IFS=:
20354  set x $ac_tag
20355  IFS=$ac_save_IFS
20356  shift
20357  ac_file=$1
20358  shift
20359
20360  case $ac_mode in
20361  :L) ac_source=$1;;
20362  :[FH])
20363    ac_file_inputs=
20364    for ac_f
20365    do
20366      case $ac_f in
20367      -) ac_f="$ac_tmp/stdin";;
20368      *) # Look for the file first in the build tree, then in the source tree
20369	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20370	 # because $ac_f cannot contain `:'.
20371	 test -f "$ac_f" ||
20372	   case $ac_f in
20373	   [\\/$]*) false;;
20374	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20375	   esac ||
20376	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20377      esac
20378      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20379      as_fn_append ac_file_inputs " '$ac_f'"
20380    done
20381
20382    # Let's still pretend it is `configure' which instantiates (i.e., don't
20383    # use $as_me), people would be surprised to read:
20384    #    /* config.h.  Generated by config.status.  */
20385    configure_input='Generated from '`
20386	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20387	`' by configure.'
20388    if test x"$ac_file" != x-; then
20389      configure_input="$ac_file.  $configure_input"
20390      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20391$as_echo "$as_me: creating $ac_file" >&6;}
20392    fi
20393    # Neutralize special characters interpreted by sed in replacement strings.
20394    case $configure_input in #(
20395    *\&* | *\|* | *\\* )
20396       ac_sed_conf_input=`$as_echo "$configure_input" |
20397       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20398    *) ac_sed_conf_input=$configure_input;;
20399    esac
20400
20401    case $ac_tag in
20402    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20403      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20404    esac
20405    ;;
20406  esac
20407
20408  ac_dir=`$as_dirname -- "$ac_file" ||
20409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20410	 X"$ac_file" : 'X\(//\)[^/]' \| \
20411	 X"$ac_file" : 'X\(//\)$' \| \
20412	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20413$as_echo X"$ac_file" |
20414    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20415	    s//\1/
20416	    q
20417	  }
20418	  /^X\(\/\/\)[^/].*/{
20419	    s//\1/
20420	    q
20421	  }
20422	  /^X\(\/\/\)$/{
20423	    s//\1/
20424	    q
20425	  }
20426	  /^X\(\/\).*/{
20427	    s//\1/
20428	    q
20429	  }
20430	  s/.*/./; q'`
20431  as_dir="$ac_dir"; as_fn_mkdir_p
20432  ac_builddir=.
20433
20434case "$ac_dir" in
20435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20436*)
20437  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20438  # A ".." for each directory in $ac_dir_suffix.
20439  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20440  case $ac_top_builddir_sub in
20441  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20442  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20443  esac ;;
20444esac
20445ac_abs_top_builddir=$ac_pwd
20446ac_abs_builddir=$ac_pwd$ac_dir_suffix
20447# for backward compatibility:
20448ac_top_builddir=$ac_top_build_prefix
20449
20450case $srcdir in
20451  .)  # We are building in place.
20452    ac_srcdir=.
20453    ac_top_srcdir=$ac_top_builddir_sub
20454    ac_abs_top_srcdir=$ac_pwd ;;
20455  [\\/]* | ?:[\\/]* )  # Absolute name.
20456    ac_srcdir=$srcdir$ac_dir_suffix;
20457    ac_top_srcdir=$srcdir
20458    ac_abs_top_srcdir=$srcdir ;;
20459  *) # Relative name.
20460    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20461    ac_top_srcdir=$ac_top_build_prefix$srcdir
20462    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20463esac
20464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20465
20466
20467  case $ac_mode in
20468  :F)
20469  #
20470  # CONFIG_FILE
20471  #
20472
20473  case $INSTALL in
20474  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20475  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20476  esac
20477  ac_MKDIR_P=$MKDIR_P
20478  case $MKDIR_P in
20479  [\\/$]* | ?:[\\/]* ) ;;
20480  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20481  esac
20482_ACEOF
20483
20484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20485# If the template does not know about datarootdir, expand it.
20486# FIXME: This hack should be removed a few years after 2.60.
20487ac_datarootdir_hack=; ac_datarootdir_seen=
20488ac_sed_dataroot='
20489/datarootdir/ {
20490  p
20491  q
20492}
20493/@datadir@/p
20494/@docdir@/p
20495/@infodir@/p
20496/@localedir@/p
20497/@mandir@/p'
20498case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20499*datarootdir*) ac_datarootdir_seen=yes;;
20500*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20501  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20502$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20503_ACEOF
20504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20505  ac_datarootdir_hack='
20506  s&@datadir@&$datadir&g
20507  s&@docdir@&$docdir&g
20508  s&@infodir@&$infodir&g
20509  s&@localedir@&$localedir&g
20510  s&@mandir@&$mandir&g
20511  s&\\\${datarootdir}&$datarootdir&g' ;;
20512esac
20513_ACEOF
20514
20515# Neutralize VPATH when `$srcdir' = `.'.
20516# Shell code in configure.ac might set extrasub.
20517# FIXME: do we really want to maintain this feature?
20518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20519ac_sed_extra="$ac_vpsub
20520$extrasub
20521_ACEOF
20522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20523:t
20524/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20525s|@configure_input@|$ac_sed_conf_input|;t t
20526s&@top_builddir@&$ac_top_builddir_sub&;t t
20527s&@top_build_prefix@&$ac_top_build_prefix&;t t
20528s&@srcdir@&$ac_srcdir&;t t
20529s&@abs_srcdir@&$ac_abs_srcdir&;t t
20530s&@top_srcdir@&$ac_top_srcdir&;t t
20531s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20532s&@builddir@&$ac_builddir&;t t
20533s&@abs_builddir@&$ac_abs_builddir&;t t
20534s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20535s&@INSTALL@&$ac_INSTALL&;t t
20536s&@MKDIR_P@&$ac_MKDIR_P&;t t
20537$ac_datarootdir_hack
20538"
20539eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20540  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20541
20542test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20543  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20544  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20545      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20546  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20547which seems to be undefined.  Please make sure it is defined" >&5
20548$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20549which seems to be undefined.  Please make sure it is defined" >&2;}
20550
20551  rm -f "$ac_tmp/stdin"
20552  case $ac_file in
20553  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20554  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20555  esac \
20556  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20557 ;;
20558  :H)
20559  #
20560  # CONFIG_HEADER
20561  #
20562  if test x"$ac_file" != x-; then
20563    {
20564      $as_echo "/* $configure_input  */" \
20565      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20566    } >"$ac_tmp/config.h" \
20567      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20568    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20569      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20570$as_echo "$as_me: $ac_file is unchanged" >&6;}
20571    else
20572      rm -f "$ac_file"
20573      mv "$ac_tmp/config.h" "$ac_file" \
20574	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20575    fi
20576  else
20577    $as_echo "/* $configure_input  */" \
20578      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20579      || as_fn_error $? "could not create -" "$LINENO" 5
20580  fi
20581# Compute "$ac_file"'s index in $config_headers.
20582_am_arg="$ac_file"
20583_am_stamp_count=1
20584for _am_header in $config_headers :; do
20585  case $_am_header in
20586    $_am_arg | $_am_arg:* )
20587      break ;;
20588    * )
20589      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20590  esac
20591done
20592echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20593$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20594	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20595	 X"$_am_arg" : 'X\(//\)$' \| \
20596	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20597$as_echo X"$_am_arg" |
20598    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20599	    s//\1/
20600	    q
20601	  }
20602	  /^X\(\/\/\)[^/].*/{
20603	    s//\1/
20604	    q
20605	  }
20606	  /^X\(\/\/\)$/{
20607	    s//\1/
20608	    q
20609	  }
20610	  /^X\(\/\).*/{
20611	    s//\1/
20612	    q
20613	  }
20614	  s/.*/./; q'`/stamp-h$_am_stamp_count
20615 ;;
20616  :L)
20617  #
20618  # CONFIG_LINK
20619  #
20620
20621  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20622    :
20623  else
20624    # Prefer the file from the source tree if names are identical.
20625    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20626      ac_source=$srcdir/$ac_source
20627    fi
20628
20629    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20630$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20631
20632    if test ! -r "$ac_source"; then
20633      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20634    fi
20635    rm -f "$ac_file"
20636
20637    # Try a relative symlink, then a hard link, then a copy.
20638    case $ac_source in
20639    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20640	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20641    esac
20642    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20643      ln "$ac_source" "$ac_file" 2>/dev/null ||
20644      cp -p "$ac_source" "$ac_file" ||
20645      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20646  fi
20647 ;;
20648  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20649$as_echo "$as_me: executing $ac_file commands" >&6;}
20650 ;;
20651  esac
20652
20653
20654  case $ac_file$ac_mode in
20655    "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
20656  if test ".$ax_enable_builddir" = ".." ; then
20657    if test -f "$top_srcdir/Makefile" ; then
20658      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
20659$as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
20660    else
20661      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
20662$as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
20663    fi
20664  else
20665    if test -f "$ac_top_srcdir/Makefile" ; then
20666      a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
20667      test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
20668    fi
20669    if test -f "$ac_top_srcdir/Makefile" ; then
20670	echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
20671	echo "	@ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
20672      eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
20673      if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
20674      then rm $ac_top_srcdir/Makefile ; fi
20675      cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
20676    fi
20677    if test ! -f "$ac_top_srcdir/Makefile" ; then
20678      { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
20679$as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
20680      x='`' ; cat >$tmp/conftemp.sed <<_EOF
20681/^\$/n
20682x
20683/^\$/bS
20684x
20685/\\\\\$/{H;d;}
20686{H;s/.*//;x;}
20687bM
20688:S
20689x
20690/\\\\\$/{h;d;}
20691{h;s/.*//;x;}
20692:M
20693s/\\(\\n\\)	/\\1 /g
20694/^	/d
20695/^[	 ]*[\\#]/d
20696/^VPATH *=/d
20697s/^srcdir *=.*/srcdir = ./
20698s/^top_srcdir *=.*/top_srcdir = ./
20699/[:=]/!d
20700/^\\./d
20701/ = /b
20702/ .= /b
20703/:/!b
20704s/:.*/:/
20705s/ /  /g
20706s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
20707s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
20708s/  / /g
20709/^all all-all[ :]/i\\
20710all-configured : all-all
20711s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
20712/-all-all/d
20713a\\
20714	@ HOST="\$(HOST)\" \\\\\\
20715	; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20716	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20717	; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
20718	; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
20719	; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
20720	; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
20721	; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
20722	; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20723	; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
20724/dist-all *:/a\\
20725	@ HOST="\$(HOST)\" \\\\\\
20726	; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20727	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20728	; found=$x echo \$\$BUILD | wc -w $x \\\\\\
20729	; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
20730	; if test "\$\$found" -eq "0" ; then : \\\\\\
20731	; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
20732	; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20733	; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
20734	; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
20735/dist-[a-zA-Z0-9]*-all *:/a\\
20736	@ HOST="\$(HOST)\" \\\\\\
20737	; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
20738	; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20739	; found=$x echo \$\$BUILD | wc -w $x \\\\\\
20740	; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
20741	; if test "\$\$found" -eq "0" ; then : \\\\\\
20742	; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
20743	; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20744	; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
20745	; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
20746/distclean-all *:/a\\
20747	@ HOST="\$(HOST)\" \\\\\\
20748	; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20749	; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
20750	; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
20751	; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
20752	; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
20753	; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20754	; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
20755	; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20756	; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
20757	; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
20758	; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
20759_EOF
20760      cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
20761      $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
20762      if test -f "$ac_top_srcdir/Makefile.mk" ; then
20763        { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
20764$as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
20765        cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
20766      fi ; xxxx="####"
20767      echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
20768      # sanity check
20769      if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
20770        { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
20771$as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
20772        $ax_enable_builddir_sed -e '/^@ HOST=/s/^/	/' -e '/^; /s/^/	/' $ac_top_srcdir/Makefile \
20773          >$ac_top_srcdir/Makefile~
20774        (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
20775      fi
20776    else
20777      xxxx="\\#\\#\\#\\#"
20778      # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
20779      echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
20780      $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
20781        cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
20782        cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
20783      if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
20784        { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
20785$as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
20786        rm "$tmp/mkfile.tmp"
20787      else
20788        { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
20789$as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
20790        mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
20791      fi
20792    fi
20793    { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
20794$as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
20795    xxxx="####"
20796    echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
20797  fi
20798 ;;
20799    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20800  # Older Autoconf quotes --file arguments for eval, but not when files
20801  # are listed without --file.  Let's play safe and only enable the eval
20802  # if we detect the quoting.
20803  case $CONFIG_FILES in
20804  *\'*) eval set x "$CONFIG_FILES" ;;
20805  *)   set x $CONFIG_FILES ;;
20806  esac
20807  shift
20808  for mf
20809  do
20810    # Strip MF so we end up with the name of the file.
20811    mf=`echo "$mf" | sed -e 's/:.*$//'`
20812    # Check whether this is an Automake generated Makefile or not.
20813    # We used to match only the files named 'Makefile.in', but
20814    # some people rename them; so instead we look at the file content.
20815    # Grep'ing the first line is not enough: some people post-process
20816    # each Makefile.in and add a new line on top of each file to say so.
20817    # Grep'ing the whole file is not good either: AIX grep has a line
20818    # limit of 2048, but all sed's we know have understand at least 4000.
20819    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20820      dirpart=`$as_dirname -- "$mf" ||
20821$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20822	 X"$mf" : 'X\(//\)[^/]' \| \
20823	 X"$mf" : 'X\(//\)$' \| \
20824	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20825$as_echo X"$mf" |
20826    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20827	    s//\1/
20828	    q
20829	  }
20830	  /^X\(\/\/\)[^/].*/{
20831	    s//\1/
20832	    q
20833	  }
20834	  /^X\(\/\/\)$/{
20835	    s//\1/
20836	    q
20837	  }
20838	  /^X\(\/\).*/{
20839	    s//\1/
20840	    q
20841	  }
20842	  s/.*/./; q'`
20843    else
20844      continue
20845    fi
20846    # Extract the definition of DEPDIR, am__include, and am__quote
20847    # from the Makefile without running 'make'.
20848    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20849    test -z "$DEPDIR" && continue
20850    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20851    test -z "$am__include" && continue
20852    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20853    # Find all dependency output files, they are included files with
20854    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20855    # simplest approach to changing $(DEPDIR) to its actual value in the
20856    # expansion.
20857    for file in `sed -n "
20858      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20859	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20860      # Make sure the directory exists.
20861      test -f "$dirpart/$file" && continue
20862      fdir=`$as_dirname -- "$file" ||
20863$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20864	 X"$file" : 'X\(//\)[^/]' \| \
20865	 X"$file" : 'X\(//\)$' \| \
20866	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20867$as_echo X"$file" |
20868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20869	    s//\1/
20870	    q
20871	  }
20872	  /^X\(\/\/\)[^/].*/{
20873	    s//\1/
20874	    q
20875	  }
20876	  /^X\(\/\/\)$/{
20877	    s//\1/
20878	    q
20879	  }
20880	  /^X\(\/\).*/{
20881	    s//\1/
20882	    q
20883	  }
20884	  s/.*/./; q'`
20885      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20886      # echo "creating $dirpart/$file"
20887      echo '# dummy' > "$dirpart/$file"
20888    done
20889  done
20890}
20891 ;;
20892    "libtool":C)
20893
20894    # See if we are running on zsh, and set the options which allow our
20895    # commands through without removal of \ escapes.
20896    if test -n "${ZSH_VERSION+set}" ; then
20897      setopt NO_GLOB_SUBST
20898    fi
20899
20900    cfgfile="${ofile}T"
20901    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20902    $RM "$cfgfile"
20903
20904    cat <<_LT_EOF >> "$cfgfile"
20905#! $SHELL
20906
20907# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20908# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20909# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20910# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20911#
20912#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20913#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20914#                 Foundation, Inc.
20915#   Written by Gordon Matzigkeit, 1996
20916#
20917#   This file is part of GNU Libtool.
20918#
20919# GNU Libtool is free software; you can redistribute it and/or
20920# modify it under the terms of the GNU General Public License as
20921# published by the Free Software Foundation; either version 2 of
20922# the License, or (at your option) any later version.
20923#
20924# As a special exception to the GNU General Public License,
20925# if you distribute this file as part of a program or library that
20926# is built using GNU Libtool, you may include this file under the
20927# same distribution terms that you use for the rest of that program.
20928#
20929# GNU Libtool is distributed in the hope that it will be useful,
20930# but WITHOUT ANY WARRANTY; without even the implied warranty of
20931# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20932# GNU General Public License for more details.
20933#
20934# You should have received a copy of the GNU General Public License
20935# along with GNU Libtool; see the file COPYING.  If not, a copy
20936# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20937# obtained by writing to the Free Software Foundation, Inc.,
20938# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20939
20940
20941# The names of the tagged configurations supported by this script.
20942available_tags="CXX "
20943
20944# ### BEGIN LIBTOOL CONFIG
20945
20946# Which release of libtool.m4 was used?
20947macro_version=$macro_version
20948macro_revision=$macro_revision
20949
20950# Whether or not to build shared libraries.
20951build_libtool_libs=$enable_shared
20952
20953# Whether or not to build static libraries.
20954build_old_libs=$enable_static
20955
20956# What type of objects to build.
20957pic_mode=$pic_mode
20958
20959# Whether or not to optimize for fast installation.
20960fast_install=$enable_fast_install
20961
20962# Shell to use when invoking shell scripts.
20963SHELL=$lt_SHELL
20964
20965# An echo program that protects backslashes.
20966ECHO=$lt_ECHO
20967
20968# The PATH separator for the build system.
20969PATH_SEPARATOR=$lt_PATH_SEPARATOR
20970
20971# The host system.
20972host_alias=$host_alias
20973host=$host
20974host_os=$host_os
20975
20976# The build system.
20977build_alias=$build_alias
20978build=$build
20979build_os=$build_os
20980
20981# A sed program that does not truncate output.
20982SED=$lt_SED
20983
20984# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20985Xsed="\$SED -e 1s/^X//"
20986
20987# A grep program that handles long lines.
20988GREP=$lt_GREP
20989
20990# An ERE matcher.
20991EGREP=$lt_EGREP
20992
20993# A literal string matcher.
20994FGREP=$lt_FGREP
20995
20996# A BSD- or MS-compatible name lister.
20997NM=$lt_NM
20998
20999# Whether we need soft or hard links.
21000LN_S=$lt_LN_S
21001
21002# What is the maximum length of a command?
21003max_cmd_len=$max_cmd_len
21004
21005# Object file suffix (normally "o").
21006objext=$ac_objext
21007
21008# Executable file suffix (normally "").
21009exeext=$exeext
21010
21011# whether the shell understands "unset".
21012lt_unset=$lt_unset
21013
21014# turn spaces into newlines.
21015SP2NL=$lt_lt_SP2NL
21016
21017# turn newlines into spaces.
21018NL2SP=$lt_lt_NL2SP
21019
21020# convert \$build file names to \$host format.
21021to_host_file_cmd=$lt_cv_to_host_file_cmd
21022
21023# convert \$build files to toolchain format.
21024to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21025
21026# An object symbol dumper.
21027OBJDUMP=$lt_OBJDUMP
21028
21029# Method to check whether dependent libraries are shared objects.
21030deplibs_check_method=$lt_deplibs_check_method
21031
21032# Command to use when deplibs_check_method = "file_magic".
21033file_magic_cmd=$lt_file_magic_cmd
21034
21035# How to find potential files when deplibs_check_method = "file_magic".
21036file_magic_glob=$lt_file_magic_glob
21037
21038# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21039want_nocaseglob=$lt_want_nocaseglob
21040
21041# DLL creation program.
21042DLLTOOL=$lt_DLLTOOL
21043
21044# Command to associate shared and link libraries.
21045sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21046
21047# The archiver.
21048AR=$lt_AR
21049
21050# Flags to create an archive.
21051AR_FLAGS=$lt_AR_FLAGS
21052
21053# How to feed a file listing to the archiver.
21054archiver_list_spec=$lt_archiver_list_spec
21055
21056# A symbol stripping program.
21057STRIP=$lt_STRIP
21058
21059# Commands used to install an old-style archive.
21060RANLIB=$lt_RANLIB
21061old_postinstall_cmds=$lt_old_postinstall_cmds
21062old_postuninstall_cmds=$lt_old_postuninstall_cmds
21063
21064# Whether to use a lock for old archive extraction.
21065lock_old_archive_extraction=$lock_old_archive_extraction
21066
21067# A C compiler.
21068LTCC=$lt_CC
21069
21070# LTCC compiler flags.
21071LTCFLAGS=$lt_CFLAGS
21072
21073# Take the output of nm and produce a listing of raw symbols and C names.
21074global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21075
21076# Transform the output of nm in a proper C declaration.
21077global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21078
21079# Transform the output of nm in a C name address pair.
21080global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21081
21082# Transform the output of nm in a C name address pair when lib prefix is needed.
21083global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21084
21085# Specify filename containing input files for \$NM.
21086nm_file_list_spec=$lt_nm_file_list_spec
21087
21088# The root where to search for dependent libraries,and in which our libraries should be installed.
21089lt_sysroot=$lt_sysroot
21090
21091# The name of the directory that contains temporary libtool files.
21092objdir=$objdir
21093
21094# Used to examine libraries when file_magic_cmd begins with "file".
21095MAGIC_CMD=$MAGIC_CMD
21096
21097# Must we lock files when doing compilation?
21098need_locks=$lt_need_locks
21099
21100# Manifest tool.
21101MANIFEST_TOOL=$lt_MANIFEST_TOOL
21102
21103# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21104DSYMUTIL=$lt_DSYMUTIL
21105
21106# Tool to change global to local symbols on Mac OS X.
21107NMEDIT=$lt_NMEDIT
21108
21109# Tool to manipulate fat objects and archives on Mac OS X.
21110LIPO=$lt_LIPO
21111
21112# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21113OTOOL=$lt_OTOOL
21114
21115# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21116OTOOL64=$lt_OTOOL64
21117
21118# Old archive suffix (normally "a").
21119libext=$libext
21120
21121# Shared library suffix (normally ".so").
21122shrext_cmds=$lt_shrext_cmds
21123
21124# The commands to extract the exported symbol list from a shared archive.
21125extract_expsyms_cmds=$lt_extract_expsyms_cmds
21126
21127# Variables whose values should be saved in libtool wrapper scripts and
21128# restored at link time.
21129variables_saved_for_relink=$lt_variables_saved_for_relink
21130
21131# Do we need the "lib" prefix for modules?
21132need_lib_prefix=$need_lib_prefix
21133
21134# Do we need a version for libraries?
21135need_version=$need_version
21136
21137# Library versioning type.
21138version_type=$version_type
21139
21140# Shared library runtime path variable.
21141runpath_var=$runpath_var
21142
21143# Shared library path variable.
21144shlibpath_var=$shlibpath_var
21145
21146# Is shlibpath searched before the hard-coded library search path?
21147shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21148
21149# Format of library name prefix.
21150libname_spec=$lt_libname_spec
21151
21152# List of archive names.  First name is the real one, the rest are links.
21153# The last name is the one that the linker finds with -lNAME
21154library_names_spec=$lt_library_names_spec
21155
21156# The coded name of the library, if different from the real name.
21157soname_spec=$lt_soname_spec
21158
21159# Permission mode override for installation of shared libraries.
21160install_override_mode=$lt_install_override_mode
21161
21162# Command to use after installation of a shared archive.
21163postinstall_cmds=$lt_postinstall_cmds
21164
21165# Command to use after uninstallation of a shared archive.
21166postuninstall_cmds=$lt_postuninstall_cmds
21167
21168# Commands used to finish a libtool library installation in a directory.
21169finish_cmds=$lt_finish_cmds
21170
21171# As "finish_cmds", except a single script fragment to be evaled but
21172# not shown.
21173finish_eval=$lt_finish_eval
21174
21175# Whether we should hardcode library paths into libraries.
21176hardcode_into_libs=$hardcode_into_libs
21177
21178# Compile-time system search path for libraries.
21179sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21180
21181# Run-time system search path for libraries.
21182sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21183
21184# Whether dlopen is supported.
21185dlopen_support=$enable_dlopen
21186
21187# Whether dlopen of programs is supported.
21188dlopen_self=$enable_dlopen_self
21189
21190# Whether dlopen of statically linked programs is supported.
21191dlopen_self_static=$enable_dlopen_self_static
21192
21193# Commands to strip libraries.
21194old_striplib=$lt_old_striplib
21195striplib=$lt_striplib
21196
21197
21198# The linker used to build libraries.
21199LD=$lt_LD
21200
21201# How to create reloadable object files.
21202reload_flag=$lt_reload_flag
21203reload_cmds=$lt_reload_cmds
21204
21205# Commands used to build an old-style archive.
21206old_archive_cmds=$lt_old_archive_cmds
21207
21208# A language specific compiler.
21209CC=$lt_compiler
21210
21211# Is the compiler the GNU compiler?
21212with_gcc=$GCC
21213
21214# Compiler flag to turn off builtin functions.
21215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21216
21217# Additional compiler flags for building library objects.
21218pic_flag=$lt_lt_prog_compiler_pic
21219
21220# How to pass a linker flag through the compiler.
21221wl=$lt_lt_prog_compiler_wl
21222
21223# Compiler flag to prevent dynamic linking.
21224link_static_flag=$lt_lt_prog_compiler_static
21225
21226# Does compiler simultaneously support -c and -o options?
21227compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21228
21229# Whether or not to add -lc for building shared libraries.
21230build_libtool_need_lc=$archive_cmds_need_lc
21231
21232# Whether or not to disallow shared libs when runtime libs are static.
21233allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21234
21235# Compiler flag to allow reflexive dlopens.
21236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21237
21238# Compiler flag to generate shared objects directly from archives.
21239whole_archive_flag_spec=$lt_whole_archive_flag_spec
21240
21241# Whether the compiler copes with passing no objects directly.
21242compiler_needs_object=$lt_compiler_needs_object
21243
21244# Create an old-style archive from a shared archive.
21245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21246
21247# Create a temporary old-style archive to link instead of a shared archive.
21248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21249
21250# Commands used to build a shared archive.
21251archive_cmds=$lt_archive_cmds
21252archive_expsym_cmds=$lt_archive_expsym_cmds
21253
21254# Commands used to build a loadable module if different from building
21255# a shared archive.
21256module_cmds=$lt_module_cmds
21257module_expsym_cmds=$lt_module_expsym_cmds
21258
21259# Whether we are building with GNU ld or not.
21260with_gnu_ld=$lt_with_gnu_ld
21261
21262# Flag that allows shared libraries with undefined symbols to be built.
21263allow_undefined_flag=$lt_allow_undefined_flag
21264
21265# Flag that enforces no undefined symbols.
21266no_undefined_flag=$lt_no_undefined_flag
21267
21268# Flag to hardcode \$libdir into a binary during linking.
21269# This must work even if \$libdir does not exist
21270hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21271
21272# Whether we need a single "-rpath" flag with a separated argument.
21273hardcode_libdir_separator=$lt_hardcode_libdir_separator
21274
21275# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21276# DIR into the resulting binary.
21277hardcode_direct=$hardcode_direct
21278
21279# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21280# DIR into the resulting binary and the resulting library dependency is
21281# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21282# library is relocated.
21283hardcode_direct_absolute=$hardcode_direct_absolute
21284
21285# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21286# into the resulting binary.
21287hardcode_minus_L=$hardcode_minus_L
21288
21289# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21290# into the resulting binary.
21291hardcode_shlibpath_var=$hardcode_shlibpath_var
21292
21293# Set to "yes" if building a shared library automatically hardcodes DIR
21294# into the library and all subsequent libraries and executables linked
21295# against it.
21296hardcode_automatic=$hardcode_automatic
21297
21298# Set to yes if linker adds runtime paths of dependent libraries
21299# to runtime path list.
21300inherit_rpath=$inherit_rpath
21301
21302# Whether libtool must link a program against all its dependency libraries.
21303link_all_deplibs=$link_all_deplibs
21304
21305# Set to "yes" if exported symbols are required.
21306always_export_symbols=$always_export_symbols
21307
21308# The commands to list exported symbols.
21309export_symbols_cmds=$lt_export_symbols_cmds
21310
21311# Symbols that should not be listed in the preloaded symbols.
21312exclude_expsyms=$lt_exclude_expsyms
21313
21314# Symbols that must always be exported.
21315include_expsyms=$lt_include_expsyms
21316
21317# Commands necessary for linking programs (against libraries) with templates.
21318prelink_cmds=$lt_prelink_cmds
21319
21320# Commands necessary for finishing linking programs.
21321postlink_cmds=$lt_postlink_cmds
21322
21323# Specify filename containing input files.
21324file_list_spec=$lt_file_list_spec
21325
21326# How to hardcode a shared library path into an executable.
21327hardcode_action=$hardcode_action
21328
21329# The directories searched by this compiler when creating a shared library.
21330compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21331
21332# Dependencies to place before and after the objects being linked to
21333# create a shared library.
21334predep_objects=$lt_predep_objects
21335postdep_objects=$lt_postdep_objects
21336predeps=$lt_predeps
21337postdeps=$lt_postdeps
21338
21339# The library search path used internally by the compiler when linking
21340# a shared library.
21341compiler_lib_search_path=$lt_compiler_lib_search_path
21342
21343# ### END LIBTOOL CONFIG
21344
21345_LT_EOF
21346
21347  case $host_os in
21348  aix3*)
21349    cat <<\_LT_EOF >> "$cfgfile"
21350# AIX sometimes has problems with the GCC collect2 program.  For some
21351# reason, if we set the COLLECT_NAMES environment variable, the problems
21352# vanish in a puff of smoke.
21353if test "X${COLLECT_NAMES+set}" != Xset; then
21354  COLLECT_NAMES=
21355  export COLLECT_NAMES
21356fi
21357_LT_EOF
21358    ;;
21359  esac
21360
21361
21362ltmain="$ac_aux_dir/ltmain.sh"
21363
21364
21365  # We use sed instead of cat because bash on DJGPP gets confused if
21366  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21367  # text mode, it properly converts lines to CR/LF.  This bash problem
21368  # is reportedly fixed, but why not run on old versions too?
21369  sed '$q' "$ltmain" >> "$cfgfile" \
21370     || (rm -f "$cfgfile"; exit 1)
21371
21372  if test x"$xsi_shell" = xyes; then
21373  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21374func_dirname ()\
21375{\
21376\    case ${1} in\
21377\      */*) func_dirname_result="${1%/*}${2}" ;;\
21378\      *  ) func_dirname_result="${3}" ;;\
21379\    esac\
21380} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21381  && mv -f "$cfgfile.tmp" "$cfgfile" \
21382    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21383test 0 -eq $? || _lt_function_replace_fail=:
21384
21385
21386  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21387func_basename ()\
21388{\
21389\    func_basename_result="${1##*/}"\
21390} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21391  && mv -f "$cfgfile.tmp" "$cfgfile" \
21392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21393test 0 -eq $? || _lt_function_replace_fail=:
21394
21395
21396  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21397func_dirname_and_basename ()\
21398{\
21399\    case ${1} in\
21400\      */*) func_dirname_result="${1%/*}${2}" ;;\
21401\      *  ) func_dirname_result="${3}" ;;\
21402\    esac\
21403\    func_basename_result="${1##*/}"\
21404} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21405  && mv -f "$cfgfile.tmp" "$cfgfile" \
21406    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21407test 0 -eq $? || _lt_function_replace_fail=:
21408
21409
21410  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21411func_stripname ()\
21412{\
21413\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21414\    # positional parameters, so assign one to ordinary parameter first.\
21415\    func_stripname_result=${3}\
21416\    func_stripname_result=${func_stripname_result#"${1}"}\
21417\    func_stripname_result=${func_stripname_result%"${2}"}\
21418} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21419  && mv -f "$cfgfile.tmp" "$cfgfile" \
21420    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21421test 0 -eq $? || _lt_function_replace_fail=:
21422
21423
21424  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21425func_split_long_opt ()\
21426{\
21427\    func_split_long_opt_name=${1%%=*}\
21428\    func_split_long_opt_arg=${1#*=}\
21429} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21430  && mv -f "$cfgfile.tmp" "$cfgfile" \
21431    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21432test 0 -eq $? || _lt_function_replace_fail=:
21433
21434
21435  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21436func_split_short_opt ()\
21437{\
21438\    func_split_short_opt_arg=${1#??}\
21439\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21440} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21441  && mv -f "$cfgfile.tmp" "$cfgfile" \
21442    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21443test 0 -eq $? || _lt_function_replace_fail=:
21444
21445
21446  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21447func_lo2o ()\
21448{\
21449\    case ${1} in\
21450\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21451\      *)    func_lo2o_result=${1} ;;\
21452\    esac\
21453} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21454  && mv -f "$cfgfile.tmp" "$cfgfile" \
21455    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21456test 0 -eq $? || _lt_function_replace_fail=:
21457
21458
21459  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21460func_xform ()\
21461{\
21462    func_xform_result=${1%.*}.lo\
21463} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21464  && mv -f "$cfgfile.tmp" "$cfgfile" \
21465    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21466test 0 -eq $? || _lt_function_replace_fail=:
21467
21468
21469  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21470func_arith ()\
21471{\
21472    func_arith_result=$(( $* ))\
21473} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21474  && mv -f "$cfgfile.tmp" "$cfgfile" \
21475    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21476test 0 -eq $? || _lt_function_replace_fail=:
21477
21478
21479  sed -e '/^func_len ()$/,/^} # func_len /c\
21480func_len ()\
21481{\
21482    func_len_result=${#1}\
21483} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21484  && mv -f "$cfgfile.tmp" "$cfgfile" \
21485    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21486test 0 -eq $? || _lt_function_replace_fail=:
21487
21488fi
21489
21490if test x"$lt_shell_append" = xyes; then
21491  sed -e '/^func_append ()$/,/^} # func_append /c\
21492func_append ()\
21493{\
21494    eval "${1}+=\\${2}"\
21495} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21496  && mv -f "$cfgfile.tmp" "$cfgfile" \
21497    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21498test 0 -eq $? || _lt_function_replace_fail=:
21499
21500
21501  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21502func_append_quoted ()\
21503{\
21504\    func_quote_for_eval "${2}"\
21505\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21506} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21507  && mv -f "$cfgfile.tmp" "$cfgfile" \
21508    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21509test 0 -eq $? || _lt_function_replace_fail=:
21510
21511
21512  # Save a `func_append' function call where possible by direct use of '+='
21513  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21514    && mv -f "$cfgfile.tmp" "$cfgfile" \
21515      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21516  test 0 -eq $? || _lt_function_replace_fail=:
21517else
21518  # Save a `func_append' function call even when '+=' is not available
21519  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21520    && mv -f "$cfgfile.tmp" "$cfgfile" \
21521      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21522  test 0 -eq $? || _lt_function_replace_fail=:
21523fi
21524
21525if test x"$_lt_function_replace_fail" = x":"; then
21526  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21527$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21528fi
21529
21530
21531   mv -f "$cfgfile" "$ofile" ||
21532    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21533  chmod +x "$ofile"
21534
21535
21536    cat <<_LT_EOF >> "$ofile"
21537
21538# ### BEGIN LIBTOOL TAG CONFIG: CXX
21539
21540# The linker used to build libraries.
21541LD=$lt_LD_CXX
21542
21543# How to create reloadable object files.
21544reload_flag=$lt_reload_flag_CXX
21545reload_cmds=$lt_reload_cmds_CXX
21546
21547# Commands used to build an old-style archive.
21548old_archive_cmds=$lt_old_archive_cmds_CXX
21549
21550# A language specific compiler.
21551CC=$lt_compiler_CXX
21552
21553# Is the compiler the GNU compiler?
21554with_gcc=$GCC_CXX
21555
21556# Compiler flag to turn off builtin functions.
21557no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21558
21559# Additional compiler flags for building library objects.
21560pic_flag=$lt_lt_prog_compiler_pic_CXX
21561
21562# How to pass a linker flag through the compiler.
21563wl=$lt_lt_prog_compiler_wl_CXX
21564
21565# Compiler flag to prevent dynamic linking.
21566link_static_flag=$lt_lt_prog_compiler_static_CXX
21567
21568# Does compiler simultaneously support -c and -o options?
21569compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21570
21571# Whether or not to add -lc for building shared libraries.
21572build_libtool_need_lc=$archive_cmds_need_lc_CXX
21573
21574# Whether or not to disallow shared libs when runtime libs are static.
21575allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21576
21577# Compiler flag to allow reflexive dlopens.
21578export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21579
21580# Compiler flag to generate shared objects directly from archives.
21581whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21582
21583# Whether the compiler copes with passing no objects directly.
21584compiler_needs_object=$lt_compiler_needs_object_CXX
21585
21586# Create an old-style archive from a shared archive.
21587old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21588
21589# Create a temporary old-style archive to link instead of a shared archive.
21590old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21591
21592# Commands used to build a shared archive.
21593archive_cmds=$lt_archive_cmds_CXX
21594archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21595
21596# Commands used to build a loadable module if different from building
21597# a shared archive.
21598module_cmds=$lt_module_cmds_CXX
21599module_expsym_cmds=$lt_module_expsym_cmds_CXX
21600
21601# Whether we are building with GNU ld or not.
21602with_gnu_ld=$lt_with_gnu_ld_CXX
21603
21604# Flag that allows shared libraries with undefined symbols to be built.
21605allow_undefined_flag=$lt_allow_undefined_flag_CXX
21606
21607# Flag that enforces no undefined symbols.
21608no_undefined_flag=$lt_no_undefined_flag_CXX
21609
21610# Flag to hardcode \$libdir into a binary during linking.
21611# This must work even if \$libdir does not exist
21612hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21613
21614# Whether we need a single "-rpath" flag with a separated argument.
21615hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21616
21617# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21618# DIR into the resulting binary.
21619hardcode_direct=$hardcode_direct_CXX
21620
21621# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21622# DIR into the resulting binary and the resulting library dependency is
21623# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21624# library is relocated.
21625hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21626
21627# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21628# into the resulting binary.
21629hardcode_minus_L=$hardcode_minus_L_CXX
21630
21631# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21632# into the resulting binary.
21633hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21634
21635# Set to "yes" if building a shared library automatically hardcodes DIR
21636# into the library and all subsequent libraries and executables linked
21637# against it.
21638hardcode_automatic=$hardcode_automatic_CXX
21639
21640# Set to yes if linker adds runtime paths of dependent libraries
21641# to runtime path list.
21642inherit_rpath=$inherit_rpath_CXX
21643
21644# Whether libtool must link a program against all its dependency libraries.
21645link_all_deplibs=$link_all_deplibs_CXX
21646
21647# Set to "yes" if exported symbols are required.
21648always_export_symbols=$always_export_symbols_CXX
21649
21650# The commands to list exported symbols.
21651export_symbols_cmds=$lt_export_symbols_cmds_CXX
21652
21653# Symbols that should not be listed in the preloaded symbols.
21654exclude_expsyms=$lt_exclude_expsyms_CXX
21655
21656# Symbols that must always be exported.
21657include_expsyms=$lt_include_expsyms_CXX
21658
21659# Commands necessary for linking programs (against libraries) with templates.
21660prelink_cmds=$lt_prelink_cmds_CXX
21661
21662# Commands necessary for finishing linking programs.
21663postlink_cmds=$lt_postlink_cmds_CXX
21664
21665# Specify filename containing input files.
21666file_list_spec=$lt_file_list_spec_CXX
21667
21668# How to hardcode a shared library path into an executable.
21669hardcode_action=$hardcode_action_CXX
21670
21671# The directories searched by this compiler when creating a shared library.
21672compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21673
21674# Dependencies to place before and after the objects being linked to
21675# create a shared library.
21676predep_objects=$lt_predep_objects_CXX
21677postdep_objects=$lt_postdep_objects_CXX
21678predeps=$lt_predeps_CXX
21679postdeps=$lt_postdeps_CXX
21680
21681# The library search path used internally by the compiler when linking
21682# a shared library.
21683compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21684
21685# ### END LIBTOOL TAG CONFIG: CXX
21686_LT_EOF
21687
21688 ;;
21689    "include":C) test -d include || mkdir include ;;
21690    "src":C)
21691test -d src || mkdir src
21692test -d src/$TARGETDIR || mkdir src/$TARGETDIR
21693 ;;
21694
21695  esac
21696done # for ac_tag
21697
21698
21699as_fn_exit 0
21700_ACEOF
21701ac_clean_files=$ac_clean_files_save
21702
21703test $ac_write_fail = 0 ||
21704  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21705
21706
21707# configure is writing to config.log, and then calls config.status.
21708# config.status does its own redirection, appending to config.log.
21709# Unfortunately, on DOS this fails, as config.log is still kept open
21710# by configure, so config.status won't be able to write to it; its
21711# output is simply discarded.  So we exec the FD to /dev/null,
21712# effectively closing config.log, so it can be properly (re)opened and
21713# appended to by config.status.  When coming back to configure, we
21714# need to make the FD available again.
21715if test "$no_create" != yes; then
21716  ac_cs_success=:
21717  ac_config_status_args=
21718  test "$silent" = yes &&
21719    ac_config_status_args="$ac_config_status_args --quiet"
21720  exec 5>/dev/null
21721  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21722  exec 5>>config.log
21723  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21724  # would make configure fail if this is the last instruction.
21725  $ac_cs_success || as_fn_exit 1
21726fi
21727if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21728  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21729$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21730fi
21731
21732