1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for libffi 3.0.11.
4#
5# Report bugs to <http://gcc.gnu.org/bugs.html>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    PATH=/empty FPATH=/empty; export PATH FPATH
180    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182test \$(( 1 + 1 )) = 2 || exit 1"
183  if (eval "$as_required") 2>/dev/null; then :
184  as_have_required=yes
185else
186  as_have_required=no
187fi
188  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195  IFS=$as_save_IFS
196  test -z "$as_dir" && as_dir=.
197  as_found=:
198  case $as_dir in #(
199	 /*)
200	   for as_base in sh bash ksh sh5; do
201	     # Try only shells that exist, to save several forks.
202	     as_shell=$as_dir/$as_base
203	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  CONFIG_SHELL=$as_shell as_have_required=yes
206		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  break 2
208fi
209fi
210	   done;;
211       esac
212  as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216  CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221      if test "x$CONFIG_SHELL" != x; then :
222  # We cannot yet assume a decent shell, so we have to provide a
223	# neutralization value for shells without unset; and this also
224	# works around shells that cannot unset nonexistent variables.
225	BASH_ENV=/dev/null
226	ENV=/dev/null
227	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228	export CONFIG_SHELL
229	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org and
240$0: http://gcc.gnu.org/bugs.html about your system,
241$0: including any error possibly output before this
242$0: message. Then install a modern shell, or manually run
243$0: the script under such a shell if you do have one."
244  fi
245  exit 1
246fi
247fi
248fi
249SHELL=${CONFIG_SHELL-/bin/sh}
250export SHELL
251# Unset more variables known to interfere with behavior of common tools.
252CLICOLOR_FORCE= GREP_OPTIONS=
253unset CLICOLOR_FORCE GREP_OPTIONS
254
255## --------------------- ##
256## M4sh Shell Functions. ##
257## --------------------- ##
258# as_fn_unset VAR
259# ---------------
260# Portably unset VAR.
261as_fn_unset ()
262{
263  { eval $1=; unset $1;}
264}
265as_unset=as_fn_unset
266
267# as_fn_set_status STATUS
268# -----------------------
269# Set $? to STATUS, without forking.
270as_fn_set_status ()
271{
272  return $1
273} # as_fn_set_status
274
275# as_fn_exit STATUS
276# -----------------
277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278as_fn_exit ()
279{
280  set +e
281  as_fn_set_status $1
282  exit $1
283} # as_fn_exit
284
285# as_fn_mkdir_p
286# -------------
287# Create "$as_dir" as a directory, including parents if necessary.
288as_fn_mkdir_p ()
289{
290
291  case $as_dir in #(
292  -*) as_dir=./$as_dir;;
293  esac
294  test -d "$as_dir" || eval $as_mkdir_p || {
295    as_dirs=
296    while :; do
297      case $as_dir in #(
298      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299      *) as_qdir=$as_dir;;
300      esac
301      as_dirs="'$as_qdir' $as_dirs"
302      as_dir=`$as_dirname -- "$as_dir" ||
303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304	 X"$as_dir" : 'X\(//\)[^/]' \| \
305	 X"$as_dir" : 'X\(//\)$' \| \
306	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307$as_echo X"$as_dir" |
308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\/\)[^/].*/{
313	    s//\1/
314	    q
315	  }
316	  /^X\(\/\/\)$/{
317	    s//\1/
318	    q
319	  }
320	  /^X\(\/\).*/{
321	    s//\1/
322	    q
323	  }
324	  s/.*/./; q'`
325      test -d "$as_dir" && break
326    done
327    test -z "$as_dirs" || eval "mkdir $as_dirs"
328  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331} # as_fn_mkdir_p
332# as_fn_append VAR VALUE
333# ----------------------
334# Append the text in VALUE to the end of the definition contained in VAR. Take
335# advantage of any shell optimizations that allow amortized linear growth over
336# repeated appends, instead of the typical quadratic growth present in naive
337# implementations.
338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339  eval 'as_fn_append ()
340  {
341    eval $1+=\$2
342  }'
343else
344  as_fn_append ()
345  {
346    eval $1=\$$1\$2
347  }
348fi # as_fn_append
349
350# as_fn_arith ARG...
351# ------------------
352# Perform arithmetic evaluation on the ARGs, and store the result in the
353# global $as_val. Take advantage of shells that can avoid forks. The arguments
354# must be portable across $(()) and expr.
355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356  eval 'as_fn_arith ()
357  {
358    as_val=$(( $* ))
359  }'
360else
361  as_fn_arith ()
362  {
363    as_val=`expr "$@" || test $? -eq 1`
364  }
365fi # as_fn_arith
366
367
368# as_fn_error ERROR [LINENO LOG_FD]
369# ---------------------------------
370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372# script with status $?, using 1 if that was 0.
373as_fn_error ()
374{
375  as_status=$?; test $as_status -eq 0 && as_status=1
376  if test "$3"; then
377    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379  fi
380  $as_echo "$as_me: error: $1" >&2
381  as_fn_exit $as_status
382} # as_fn_error
383
384if expr a : '\(a\)' >/dev/null 2>&1 &&
385   test "X`expr 00001 : '.*\(...\)'`" = X001; then
386  as_expr=expr
387else
388  as_expr=false
389fi
390
391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392  as_basename=basename
393else
394  as_basename=false
395fi
396
397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398  as_dirname=dirname
399else
400  as_dirname=false
401fi
402
403as_me=`$as_basename -- "$0" ||
404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405	 X"$0" : 'X\(//\)$' \| \
406	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407$as_echo X/"$0" |
408    sed '/^.*\/\([^/][^/]*\)\/*$/{
409	    s//\1/
410	    q
411	  }
412	  /^X\/\(\/\/\)$/{
413	    s//\1/
414	    q
415	  }
416	  /^X\/\(\/\).*/{
417	    s//\1/
418	    q
419	  }
420	  s/.*/./; q'`
421
422# Avoid depending upon Character Ranges.
423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426as_cr_digits='0123456789'
427as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430  as_lineno_1=$LINENO as_lineno_1a=$LINENO
431  as_lineno_2=$LINENO as_lineno_2a=$LINENO
432  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
435  sed -n '
436    p
437    /[$]LINENO/=
438  ' <$as_myself |
439    sed '
440      s/[$]LINENO.*/&-/
441      t lineno
442      b
443      :lineno
444      N
445      :loop
446      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447      t loop
448      s/-\n.*//
449    ' >$as_me.lineno &&
450  chmod +x "$as_me.lineno" ||
451    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461ECHO_C= ECHO_N= ECHO_T=
462case `echo -n x` in #(((((
463-n*)
464  case `echo 'xy\c'` in
465  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
466  xy)  ECHO_C='\c';;
467  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
468       ECHO_T='	';;
469  esac;;
470*)
471  ECHO_N='-n';;
472esac
473
474rm -f conf$$ conf$$.exe conf$$.file
475if test -d conf$$.dir; then
476  rm -f conf$$.dir/conf$$.file
477else
478  rm -f conf$$.dir
479  mkdir conf$$.dir 2>/dev/null
480fi
481if (echo >conf$$.file) 2>/dev/null; then
482  if ln -s conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s='ln -s'
484    # ... but there are two gotchas:
485    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487    # In both cases, we have to default to `cp -p'.
488    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489      as_ln_s='cp -p'
490  elif ln conf$$.file conf$$ 2>/dev/null; then
491    as_ln_s=ln
492  else
493    as_ln_s='cp -p'
494  fi
495else
496  as_ln_s='cp -p'
497fi
498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499rmdir conf$$.dir 2>/dev/null
500
501if mkdir -p . 2>/dev/null; then
502  as_mkdir_p='mkdir -p "$as_dir"'
503else
504  test -d ./-p && rmdir ./-p
505  as_mkdir_p=false
506fi
507
508if test -x / >/dev/null 2>&1; then
509  as_test_x='test -x'
510else
511  if ls -dL / >/dev/null 2>&1; then
512    as_ls_L_option=L
513  else
514    as_ls_L_option=
515  fi
516  as_test_x='
517    eval sh -c '\''
518      if test -d "$1"; then
519	test -d "$1/.";
520      else
521	case $1 in #(
522	-*)set "./$1";;
523	esac;
524	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525	???[sx]*):;;*)false;;esac;fi
526    '\'' sh
527  '
528fi
529as_executable_p=$as_test_x
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540exec 7<&0 </dev/null 6>&1
541
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558
559# Identity of this package.
560PACKAGE_NAME='libffi'
561PACKAGE_TARNAME='libffi'
562PACKAGE_VERSION='3.0.11'
563PACKAGE_STRING='libffi 3.0.11'
564PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
565PACKAGE_URL=''
566
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607toolexeclibdir
608toolexecdir
609FFI_DEBUG_FALSE
610FFI_DEBUG_TRUE
611TARGETDIR
612TARGET
613FFI_EXEC_TRAMPOLINE_TABLE
614FFI_EXEC_TRAMPOLINE_TABLE_FALSE
615FFI_EXEC_TRAMPOLINE_TABLE_TRUE
616HAVE_LONG_DOUBLE_VARIANT
617HAVE_LONG_DOUBLE
618ALLOCA
619TILE_FALSE
620TILE_TRUE
621PA64_HPUX_FALSE
622PA64_HPUX_TRUE
623PA_HPUX_FALSE
624PA_HPUX_TRUE
625PA_LINUX_FALSE
626PA_LINUX_TRUE
627SH64_FALSE
628SH64_TRUE
629SH_FALSE
630SH_TRUE
631X86_64_FALSE
632X86_64_TRUE
633S390_FALSE
634S390_TRUE
635FRV_FALSE
636FRV_TRUE
637LIBFFI_CRIS_FALSE
638LIBFFI_CRIS_TRUE
639AVR32_FALSE
640AVR32_TRUE
641ARM_FALSE
642ARM_TRUE
643AARCH64_FALSE
644AARCH64_TRUE
645POWERPC_FREEBSD_FALSE
646POWERPC_FREEBSD_TRUE
647POWERPC_DARWIN_FALSE
648POWERPC_DARWIN_TRUE
649POWERPC_AIX_FALSE
650POWERPC_AIX_TRUE
651POWERPC_FALSE
652POWERPC_TRUE
653M68K_FALSE
654M68K_TRUE
655M32R_FALSE
656M32R_TRUE
657IA64_FALSE
658IA64_TRUE
659ALPHA_FALSE
660ALPHA_TRUE
661X86_DARWIN_FALSE
662X86_DARWIN_TRUE
663X86_WIN64_FALSE
664X86_WIN64_TRUE
665X86_WIN32_FALSE
666X86_WIN32_TRUE
667X86_FREEBSD_FALSE
668X86_FREEBSD_TRUE
669X86_FALSE
670X86_TRUE
671SPARC_FALSE
672SPARC_TRUE
673BFIN_FALSE
674BFIN_TRUE
675MIPS_FALSE
676MIPS_TRUE
677AM_LTLDFLAGS
678AM_RUNTESTFLAGS
679TESTSUBDIR_FALSE
680TESTSUBDIR_TRUE
681MAINT
682MAINTAINER_MODE_FALSE
683MAINTAINER_MODE_TRUE
684CPP
685OTOOL64
686OTOOL
687LIPO
688NMEDIT
689DSYMUTIL
690RANLIB
691AR
692OBJDUMP
693LN_S
694NM
695ac_ct_DUMPBIN
696DUMPBIN
697LD
698FGREP
699EGREP
700GREP
701SED
702LIBTOOL
703am__fastdepCCAS_FALSE
704am__fastdepCCAS_TRUE
705CCASDEPMODE
706CCASFLAGS
707CCAS
708am__fastdepCC_FALSE
709am__fastdepCC_TRUE
710CCDEPMODE
711AMDEPBACKSLASH
712AMDEP_FALSE
713AMDEP_TRUE
714am__quote
715am__include
716DEPDIR
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724GENINSRC_FALSE
725GENINSRC_TRUE
726BUILD_INFO_FALSE
727BUILD_INFO_TRUE
728am__untar
729am__tar
730AMTAR
731am__leading_dot
732SET_MAKE
733AWK
734mkdir_p
735MKDIR_P
736INSTALL_STRIP_PROGRAM
737STRIP
738install_sh
739MAKEINFO
740AUTOHEADER
741AUTOMAKE
742AUTOCONF
743ACLOCAL
744VERSION
745PACKAGE
746CYGPATH_W
747am__isrc
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751target_os
752target_vendor
753target_cpu
754target
755host_os
756host_vendor
757host_cpu
758host
759build_os
760build_vendor
761build_cpu
762build
763multi_basedir
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_URL
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
802ac_subst_files=''
803ac_user_opts='
804enable_option_checking
805enable_multilib
806enable_generated_files_in_srcdir
807enable_dependency_tracking
808enable_shared
809enable_static
810with_pic
811enable_fast_install
812with_gnu_ld
813enable_libtool_lock
814enable_maintainer_mode
815enable_pax_emutramp
816enable_debug
817enable_structs
818enable_raw_api
819enable_purify_safety
820'
821      ac_precious_vars='build_alias
822host_alias
823target_alias
824CCAS
825CCASFLAGS
826CPP
827CPPFLAGS'
828
829
830# Initialize some variables set by options.
831ac_init_help=
832ac_init_version=false
833ac_unrecognized_opts=
834ac_unrecognized_sep=
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
857# (The list follows the same order as the GNU Coding Standards.)
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882  # If the previous option needs an argument, assign it.
883  if test -n "$ac_prev"; then
884    eval $ac_prev=\$ac_option
885    ac_prev=
886    continue
887  fi
888
889  case $ac_option in
890  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891  *)	ac_optarg=yes ;;
892  esac
893
894  # Accept the important Cygnus configure options, so we can diagnose typos.
895
896  case $ac_dashdash$ac_option in
897  --)
898    ac_dashdash=yes ;;
899
900  -bindir | --bindir | --bindi | --bind | --bin | --bi)
901    ac_prev=bindir ;;
902  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903    bindir=$ac_optarg ;;
904
905  -build | --build | --buil | --bui | --bu)
906    ac_prev=build_alias ;;
907  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908    build_alias=$ac_optarg ;;
909
910  -cache-file | --cache-file | --cache-fil | --cache-fi \
911  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912    ac_prev=cache_file ;;
913  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915    cache_file=$ac_optarg ;;
916
917  --config-cache | -C)
918    cache_file=config.cache ;;
919
920  -datadir | --datadir | --datadi | --datad)
921    ac_prev=datadir ;;
922  -datadir=* | --datadir=* | --datadi=* | --datad=*)
923    datadir=$ac_optarg ;;
924
925  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926  | --dataroo | --dataro | --datar)
927    ac_prev=datarootdir ;;
928  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930    datarootdir=$ac_optarg ;;
931
932  -disable-* | --disable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error "invalid feature name: $ac_useropt"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=no ;;
947
948  -docdir | --docdir | --docdi | --doc | --do)
949    ac_prev=docdir ;;
950  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951    docdir=$ac_optarg ;;
952
953  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954    ac_prev=dvidir ;;
955  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956    dvidir=$ac_optarg ;;
957
958  -enable-* | --enable-*)
959    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960    # Reject names that are not valid shell variable names.
961    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962      as_fn_error "invalid feature name: $ac_useropt"
963    ac_useropt_orig=$ac_useropt
964    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965    case $ac_user_opts in
966      *"
967"enable_$ac_useropt"
968"*) ;;
969      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970	 ac_unrecognized_sep=', ';;
971    esac
972    eval enable_$ac_useropt=\$ac_optarg ;;
973
974  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976  | --exec | --exe | --ex)
977    ac_prev=exec_prefix ;;
978  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980  | --exec=* | --exe=* | --ex=*)
981    exec_prefix=$ac_optarg ;;
982
983  -gas | --gas | --ga | --g)
984    # Obsolete; use --with-gas.
985    with_gas=yes ;;
986
987  -help | --help | --hel | --he | -h)
988    ac_init_help=long ;;
989  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990    ac_init_help=recursive ;;
991  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992    ac_init_help=short ;;
993
994  -host | --host | --hos | --ho)
995    ac_prev=host_alias ;;
996  -host=* | --host=* | --hos=* | --ho=*)
997    host_alias=$ac_optarg ;;
998
999  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000    ac_prev=htmldir ;;
1001  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002  | --ht=*)
1003    htmldir=$ac_optarg ;;
1004
1005  -includedir | --includedir | --includedi | --included | --include \
1006  | --includ | --inclu | --incl | --inc)
1007    ac_prev=includedir ;;
1008  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009  | --includ=* | --inclu=* | --incl=* | --inc=*)
1010    includedir=$ac_optarg ;;
1011
1012  -infodir | --infodir | --infodi | --infod | --info | --inf)
1013    ac_prev=infodir ;;
1014  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015    infodir=$ac_optarg ;;
1016
1017  -libdir | --libdir | --libdi | --libd)
1018    ac_prev=libdir ;;
1019  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020    libdir=$ac_optarg ;;
1021
1022  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023  | --libexe | --libex | --libe)
1024    ac_prev=libexecdir ;;
1025  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026  | --libexe=* | --libex=* | --libe=*)
1027    libexecdir=$ac_optarg ;;
1028
1029  -localedir | --localedir | --localedi | --localed | --locale)
1030    ac_prev=localedir ;;
1031  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032    localedir=$ac_optarg ;;
1033
1034  -localstatedir | --localstatedir | --localstatedi | --localstated \
1035  | --localstate | --localstat | --localsta | --localst | --locals)
1036    ac_prev=localstatedir ;;
1037  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039    localstatedir=$ac_optarg ;;
1040
1041  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042    ac_prev=mandir ;;
1043  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044    mandir=$ac_optarg ;;
1045
1046  -nfp | --nfp | --nf)
1047    # Obsolete; use --without-fp.
1048    with_fp=no ;;
1049
1050  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051  | --no-cr | --no-c | -n)
1052    no_create=yes ;;
1053
1054  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056    no_recursion=yes ;;
1057
1058  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060  | --oldin | --oldi | --old | --ol | --o)
1061    ac_prev=oldincludedir ;;
1062  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065    oldincludedir=$ac_optarg ;;
1066
1067  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068    ac_prev=prefix ;;
1069  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070    prefix=$ac_optarg ;;
1071
1072  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073  | --program-pre | --program-pr | --program-p)
1074    ac_prev=program_prefix ;;
1075  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077    program_prefix=$ac_optarg ;;
1078
1079  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080  | --program-suf | --program-su | --program-s)
1081    ac_prev=program_suffix ;;
1082  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084    program_suffix=$ac_optarg ;;
1085
1086  -program-transform-name | --program-transform-name \
1087  | --program-transform-nam | --program-transform-na \
1088  | --program-transform-n | --program-transform- \
1089  | --program-transform | --program-transfor \
1090  | --program-transfo | --program-transf \
1091  | --program-trans | --program-tran \
1092  | --progr-tra | --program-tr | --program-t)
1093    ac_prev=program_transform_name ;;
1094  -program-transform-name=* | --program-transform-name=* \
1095  | --program-transform-nam=* | --program-transform-na=* \
1096  | --program-transform-n=* | --program-transform-=* \
1097  | --program-transform=* | --program-transfor=* \
1098  | --program-transfo=* | --program-transf=* \
1099  | --program-trans=* | --program-tran=* \
1100  | --progr-tra=* | --program-tr=* | --program-t=*)
1101    program_transform_name=$ac_optarg ;;
1102
1103  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104    ac_prev=pdfdir ;;
1105  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106    pdfdir=$ac_optarg ;;
1107
1108  -psdir | --psdir | --psdi | --psd | --ps)
1109    ac_prev=psdir ;;
1110  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111    psdir=$ac_optarg ;;
1112
1113  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114  | -silent | --silent | --silen | --sile | --sil)
1115    silent=yes ;;
1116
1117  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118    ac_prev=sbindir ;;
1119  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120  | --sbi=* | --sb=*)
1121    sbindir=$ac_optarg ;;
1122
1123  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125  | --sharedst | --shareds | --shared | --share | --shar \
1126  | --sha | --sh)
1127    ac_prev=sharedstatedir ;;
1128  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131  | --sha=* | --sh=*)
1132    sharedstatedir=$ac_optarg ;;
1133
1134  -site | --site | --sit)
1135    ac_prev=site ;;
1136  -site=* | --site=* | --sit=*)
1137    site=$ac_optarg ;;
1138
1139  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140    ac_prev=srcdir ;;
1141  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142    srcdir=$ac_optarg ;;
1143
1144  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145  | --syscon | --sysco | --sysc | --sys | --sy)
1146    ac_prev=sysconfdir ;;
1147  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149    sysconfdir=$ac_optarg ;;
1150
1151  -target | --target | --targe | --targ | --tar | --ta | --t)
1152    ac_prev=target_alias ;;
1153  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154    target_alias=$ac_optarg ;;
1155
1156  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157    verbose=yes ;;
1158
1159  -version | --version | --versio | --versi | --vers | -V)
1160    ac_init_version=: ;;
1161
1162  -with-* | --with-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error "invalid package name: $ac_useropt"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=\$ac_optarg ;;
1177
1178  -without-* | --without-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error "invalid package name: $ac_useropt"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=no ;;
1193
1194  --x)
1195    # Obsolete; use --with-x.
1196    with_x=yes ;;
1197
1198  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199  | --x-incl | --x-inc | --x-in | --x-i)
1200    ac_prev=x_includes ;;
1201  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203    x_includes=$ac_optarg ;;
1204
1205  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207    ac_prev=x_libraries ;;
1208  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210    x_libraries=$ac_optarg ;;
1211
1212  -*) as_fn_error "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information."
1214    ;;
1215
1216  *=*)
1217    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218    # Reject names that are not valid shell variable names.
1219    case $ac_envvar in #(
1220      '' | [0-9]* | *[!_$as_cr_alnum]* )
1221      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222    esac
1223    eval $ac_envvar=\$ac_optarg
1224    export $ac_envvar ;;
1225
1226  *)
1227    # FIXME: should be removed in autoconf 3.0.
1228    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232    ;;
1233
1234  esac
1235done
1236
1237if test -n "$ac_prev"; then
1238  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239  as_fn_error "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243  case $enable_option_checking in
1244    no) ;;
1245    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247  esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252		datadir sysconfdir sharedstatedir localstatedir includedir \
1253		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254		libdir localedir mandir
1255do
1256  eval ac_val=\$$ac_var
1257  # Remove trailing slashes.
1258  case $ac_val in
1259    */ )
1260      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261      eval $ac_var=\$ac_val;;
1262  esac
1263  # Be sure to have absolute directory names.
1264  case $ac_val in
1265    [\\/$]* | ?:[\\/]* )  continue;;
1266    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267  esac
1268  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280  if test "x$build_alias" = x; then
1281    cross_compiling=maybe
1282    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283    If a cross compiler is detected then cross compile mode will be used." >&2
1284  elif test "x$build_alias" != "x$host_alias"; then
1285    cross_compiling=yes
1286  fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
1293
1294
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298  as_fn_error "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300  as_fn_error "pwd does not report name of working directory"
1301
1302
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305  ac_srcdir_defaulted=yes
1306  # Try the directory containing this script, then the parent directory.
1307  ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309	 X"$as_myself" : 'X\(//\)[^/]' \| \
1310	 X"$as_myself" : 'X\(//\)$' \| \
1311	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\/\)[^/].*/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\/\)$/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\).*/{
1326	    s//\1/
1327	    q
1328	  }
1329	  s/.*/./; q'`
1330  srcdir=$ac_confdir
1331  if test ! -r "$srcdir/$ac_unique_file"; then
1332    srcdir=..
1333  fi
1334else
1335  ac_srcdir_defaulted=no
1336fi
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344	pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347  srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
1355for ac_var in $ac_precious_vars; do
1356  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_env_${ac_var}_value=\$${ac_var}
1358  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360done
1361
1362#
1363# Report the --help message.
1364#
1365if test "$ac_init_help" = "long"; then
1366  # Omit some internal or obsolete options to make the list less imposing.
1367  # This message is too long to be a string in the A/UX 3.1 sh.
1368  cat <<_ACEOF
1369\`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1370
1371Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374VAR=VALUE.  See below for descriptions of some of the useful variables.
1375
1376Defaults for the options are specified in brackets.
1377
1378Configuration:
1379  -h, --help              display this help and exit
1380      --help=short        display options specific to this package
1381      --help=recursive    display the short help of all the included packages
1382  -V, --version           display version information and exit
1383  -q, --quiet, --silent   do not print \`checking...' messages
1384      --cache-file=FILE   cache test results in FILE [disabled]
1385  -C, --config-cache      alias for \`--cache-file=config.cache'
1386  -n, --no-create         do not create output files
1387      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1388
1389Installation directories:
1390  --prefix=PREFIX         install architecture-independent files in PREFIX
1391                          [$ac_default_prefix]
1392  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1393                          [PREFIX]
1394
1395By default, \`make install' will install all the files in
1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1397an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398for instance \`--prefix=\$HOME'.
1399
1400For better control, use the options below.
1401
1402Fine tuning of the installation directories:
1403  --bindir=DIR            user executables [EPREFIX/bin]
1404  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1405  --libexecdir=DIR        program executables [EPREFIX/libexec]
1406  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1407  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1408  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1409  --libdir=DIR            object code libraries [EPREFIX/lib]
1410  --includedir=DIR        C header files [PREFIX/include]
1411  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1412  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1413  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1414  --infodir=DIR           info documentation [DATAROOTDIR/info]
1415  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1416  --mandir=DIR            man documentation [DATAROOTDIR/man]
1417  --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1418  --htmldir=DIR           html documentation [DOCDIR]
1419  --dvidir=DIR            dvi documentation [DOCDIR]
1420  --pdfdir=DIR            pdf documentation [DOCDIR]
1421  --psdir=DIR             ps documentation [DOCDIR]
1422_ACEOF
1423
1424  cat <<\_ACEOF
1425
1426Program names:
1427  --program-prefix=PREFIX            prepend PREFIX to installed program names
1428  --program-suffix=SUFFIX            append SUFFIX to installed program names
1429  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431System types:
1432  --build=BUILD     configure for building on BUILD [guessed]
1433  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434  --target=TARGET   configure for building compilers for TARGET [HOST]
1435_ACEOF
1436fi
1437
1438if test -n "$ac_init_help"; then
1439  case $ac_init_help in
1440     short | recursive ) echo "Configuration of libffi 3.0.11:";;
1441   esac
1442  cat <<\_ACEOF
1443
1444Optional Features:
1445  --disable-option-checking  ignore unrecognized --enable/--with options
1446  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1447  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1448  --enable-multilib       build many library versions (default)
1449  --enable-generated-files-in-srcdir
1450                          put copies of generated files in source dir intended
1451                          for creating source tarballs for users without
1452                          texinfo bison or flex
1453  --disable-dependency-tracking  speeds up one-time build
1454  --enable-dependency-tracking   do not reject slow dependency extractors
1455  --enable-shared[=PKGS]  build shared libraries [default=yes]
1456  --enable-static[=PKGS]  build static libraries [default=yes]
1457  --enable-fast-install[=PKGS]
1458                          optimize for fast installation [default=yes]
1459  --disable-libtool-lock  avoid locking (might break parallel builds)
1460  --enable-maintainer-mode  enable make rules and dependencies not useful
1461			  (and sometimes confusing) to the casual installer
1462  --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1463  --enable-debug          debugging mode
1464  --disable-structs       omit code for struct support
1465  --disable-raw-api       make the raw api unavailable
1466  --enable-purify-safety  purify-safe mode
1467
1468Optional Packages:
1469  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471  --with-pic              try to use only PIC/non-PIC objects [default=use
1472                          both]
1473  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1474
1475Some influential environment variables:
1476  CC          C compiler command
1477  CFLAGS      C compiler flags
1478  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1479              nonstandard directory <lib dir>
1480  LIBS        libraries to pass to the linker, e.g. -l<library>
1481  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482              you have headers in a nonstandard directory <include dir>
1483  CCAS        assembler compiler command (defaults to CC)
1484  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1485  CPP         C preprocessor
1486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
1490Report bugs to <http://gcc.gnu.org/bugs.html>.
1491_ACEOF
1492ac_status=$?
1493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496  # If there are subdirs, report their specific --help.
1497  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498    test -d "$ac_dir" ||
1499      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500      continue
1501    ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507  # A ".." for each directory in $ac_dir_suffix.
1508  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509  case $ac_top_builddir_sub in
1510  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512  esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520  .)  # We are building in place.
1521    ac_srcdir=.
1522    ac_top_srcdir=$ac_top_builddir_sub
1523    ac_abs_top_srcdir=$ac_pwd ;;
1524  [\\/]* | ?:[\\/]* )  # Absolute name.
1525    ac_srcdir=$srcdir$ac_dir_suffix;
1526    ac_top_srcdir=$srcdir
1527    ac_abs_top_srcdir=$srcdir ;;
1528  *) # Relative name.
1529    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530    ac_top_srcdir=$ac_top_build_prefix$srcdir
1531    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535    cd "$ac_dir" || { ac_status=$?; continue; }
1536    # Check for guested configure.
1537    if test -f "$ac_srcdir/configure.gnu"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540    elif test -f "$ac_srcdir/configure"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure" --help=recursive
1543    else
1544      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545    fi || ac_status=$?
1546    cd "$ac_pwd" || { ac_status=$?; break; }
1547  done
1548fi
1549
1550test -n "$ac_init_help" && exit $ac_status
1551if $ac_init_version; then
1552  cat <<\_ACEOF
1553libffi configure 3.0.11
1554generated by GNU Autoconf 2.64
1555
1556Copyright (C) 2009 Free Software Foundation, Inc.
1557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
1560  exit
1561fi
1562
1563## ------------------------ ##
1564## Autoconf initialization. ##
1565## ------------------------ ##
1566
1567# ac_fn_c_try_compile LINENO
1568# --------------------------
1569# Try to compile conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_compile ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  rm -f conftest.$ac_objext
1574  if { { ac_try="$ac_compile"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_compile") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } && {
1590	 test -z "$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       } && test -s conftest.$ac_objext; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598	ac_retval=1
1599fi
1600  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601  return $ac_retval
1602
1603} # ac_fn_c_try_compile
1604
1605# ac_fn_c_try_link LINENO
1606# -----------------------
1607# Try to link conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_link ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  rm -f conftest.$ac_objext conftest$ac_exeext
1612  if { { ac_try="$ac_link"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_link") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && {
1628	 test -z "$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       } && test -s conftest$ac_exeext && {
1631	 test "$cross_compiling" = yes ||
1632	 $as_test_x conftest$ac_exeext
1633       }; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639	ac_retval=1
1640fi
1641  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643  # interfere with the next link command; also delete a directory that is
1644  # left behind by Apple's compiler.  We do this before executing the actions.
1645  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647  return $ac_retval
1648
1649} # ac_fn_c_try_link
1650
1651# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists and can be compiled using the include files in
1654# INCLUDES, setting the cache variable VAR accordingly.
1655ac_fn_c_check_header_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661  $as_echo_n "(cached) " >&6
1662else
1663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h.  */
1665$4
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"; then :
1669  eval "$3=yes"
1670else
1671  eval "$3=no"
1672fi
1673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674fi
1675eval ac_res=\$$3
1676	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679
1680} # ac_fn_c_check_header_compile
1681
1682# ac_fn_c_try_cpp LINENO
1683# ----------------------
1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_cpp ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_cpp conftest.$ac_ext"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } >/dev/null && {
1704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712    ac_retval=1
1713fi
1714  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715  return $ac_retval
1716
1717} # ac_fn_c_try_cpp
1718
1719# ac_fn_c_try_run LINENO
1720# ----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722# that executables *can* be run.
1723ac_fn_c_try_run ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_link") 2>&5
1734  ac_status=$?
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737  { { case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_try") 2>&5
1744  ac_status=$?
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; }; }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: program exited with status $ac_status" >&5
1750       $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753       ac_retval=$ac_status
1754fi
1755  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757  return $ac_retval
1758
1759} # ac_fn_c_try_run
1760
1761# ac_fn_c_check_func LINENO FUNC VAR
1762# ----------------------------------
1763# Tests whether FUNC exists, setting the cache variable VAR accordingly
1764ac_fn_c_check_func ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1776#define $2 innocuous_$2
1777
1778/* System header to define __stub macros and hopefully few prototypes,
1779    which can conflict with char $2 (); below.
1780    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781    <limits.h> exists even on freestanding compilers.  */
1782
1783#ifdef __STDC__
1784# include <limits.h>
1785#else
1786# include <assert.h>
1787#endif
1788
1789#undef $2
1790
1791/* Override any GCC internal prototype to avoid an error.
1792   Use char because int might match the return type of a GCC
1793   builtin and then its argument prototype would still apply.  */
1794#ifdef __cplusplus
1795extern "C"
1796#endif
1797char $2 ();
1798/* The GNU C library defines this for functions which it implements
1799    to always fail with ENOSYS.  Some functions are actually named
1800    something starting with __ and the normal name is an alias.  */
1801#if defined __stub_$2 || defined __stub___$2
1802choke me
1803#endif
1804
1805int
1806main ()
1807{
1808return $2 ();
1809  ;
1810  return 0;
1811}
1812_ACEOF
1813if ac_fn_c_try_link "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext \
1819    conftest$ac_exeext conftest.$ac_ext
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825
1826} # ac_fn_c_check_func
1827
1828# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829# -------------------------------------------------------
1830# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831# the include files in INCLUDES and setting the cache variable VAR
1832# accordingly.
1833ac_fn_c_check_header_mongrel ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1840  $as_echo_n "(cached) " >&6
1841fi
1842eval ac_res=\$$3
1843	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844$as_echo "$ac_res" >&6; }
1845else
1846  # Is the header compilable?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848$as_echo_n "checking $2 usability... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855  ac_header_compiler=yes
1856else
1857  ac_header_compiler=no
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861$as_echo "$ac_header_compiler" >&6; }
1862
1863# Is the header present?
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865$as_echo_n "checking $2 presence... " >&6; }
1866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868#include <$2>
1869_ACEOF
1870if ac_fn_c_try_cpp "$LINENO"; then :
1871  ac_header_preproc=yes
1872else
1873  ac_header_preproc=no
1874fi
1875rm -f conftest.err conftest.$ac_ext
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877$as_echo "$ac_header_preproc" >&6; }
1878
1879# So?  What about this header?
1880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881  yes:no: )
1882    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886    ;;
1887  no:yes:* )
1888    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1891$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1895$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898( cat <<\_ASBOX
1899## ------------------------------------------- ##
1900## Report this to http://gcc.gnu.org/bugs.html ##
1901## ------------------------------------------- ##
1902_ASBOX
1903     ) | sed "s/^/$as_me: WARNING:     /" >&2
1904    ;;
1905esac
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909  $as_echo_n "(cached) " >&6
1910else
1911  eval "$3=\$ac_header_compiler"
1912fi
1913eval ac_res=\$$3
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916fi
1917  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918
1919} # ac_fn_c_check_header_mongrel
1920
1921# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922# --------------------------------------------
1923# Tries to find the compile-time value of EXPR in a program that includes
1924# INCLUDES, setting VAR accordingly. Returns whether the value could be
1925# computed
1926ac_fn_c_compute_int ()
1927{
1928  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929  if test "$cross_compiling" = yes; then
1930    # Depending upon the size, compute the lo and hi bounds.
1931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h.  */
1933$4
1934int
1935main ()
1936{
1937static int test_array [1 - 2 * !(($2) >= 0)];
1938test_array [0] = 0
1939
1940  ;
1941  return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_compile "$LINENO"; then :
1945  ac_lo=0 ac_mid=0
1946  while :; do
1947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h.  */
1949$4
1950int
1951main ()
1952{
1953static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1954test_array [0] = 0
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961  ac_hi=$ac_mid; break
1962else
1963  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1964			if test $ac_lo -le $ac_mid; then
1965			  ac_lo= ac_hi=
1966			  break
1967			fi
1968			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971  done
1972else
1973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h.  */
1975$4
1976int
1977main ()
1978{
1979static int test_array [1 - 2 * !(($2) < 0)];
1980test_array [0] = 0
1981
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987  ac_hi=-1 ac_mid=-1
1988  while :; do
1989    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h.  */
1991$4
1992int
1993main ()
1994{
1995static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1996test_array [0] = 0
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  ac_lo=$ac_mid; break
2004else
2005  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2006			if test $ac_mid -le $ac_hi; then
2007			  ac_lo= ac_hi=
2008			  break
2009			fi
2010			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013  done
2014else
2015  ac_lo= ac_hi=
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020# Binary search between lo and hi bounds.
2021while test "x$ac_lo" != "x$ac_hi"; do
2022  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h.  */
2025$4
2026int
2027main ()
2028{
2029static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030test_array [0] = 0
2031
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037  ac_hi=$ac_mid
2038else
2039  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042done
2043case $ac_lo in #((
2044?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2045'') ac_retval=1 ;;
2046esac
2047  else
2048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051static long int longval () { return $2; }
2052static unsigned long int ulongval () { return $2; }
2053#include <stdio.h>
2054#include <stdlib.h>
2055int
2056main ()
2057{
2058
2059  FILE *f = fopen ("conftest.val", "w");
2060  if (! f)
2061    return 1;
2062  if (($2) < 0)
2063    {
2064      long int i = longval ();
2065      if (i != ($2))
2066	return 1;
2067      fprintf (f, "%ld", i);
2068    }
2069  else
2070    {
2071      unsigned long int i = ulongval ();
2072      if (i != ($2))
2073	return 1;
2074      fprintf (f, "%lu", i);
2075    }
2076  /* Do not output a trailing newline, as this causes \r\n confusion
2077     on some platforms.  */
2078  return ferror (f) || fclose (f) != 0;
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_run "$LINENO"; then :
2085  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2086else
2087  ac_retval=1
2088fi
2089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090  conftest.$ac_objext conftest.beam conftest.$ac_ext
2091rm -f conftest.val
2092
2093  fi
2094  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095  return $ac_retval
2096
2097} # ac_fn_c_compute_int
2098cat >config.log <<_ACEOF
2099This file contains any messages produced by compilers while
2100running configure, to aid debugging if configure makes a mistake.
2101
2102It was created by libffi $as_me 3.0.11, which was
2103generated by GNU Autoconf 2.64.  Invocation command line was
2104
2105  $ $0 $@
2106
2107_ACEOF
2108exec 5>>config.log
2109{
2110cat <<_ASUNAME
2111## --------- ##
2112## Platform. ##
2113## --------- ##
2114
2115hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120
2121/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2123
2124/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2125/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2126/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2128/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2129/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2130/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2131
2132_ASUNAME
2133
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137  IFS=$as_save_IFS
2138  test -z "$as_dir" && as_dir=.
2139    $as_echo "PATH: $as_dir"
2140  done
2141IFS=$as_save_IFS
2142
2143} >&5
2144
2145cat >&5 <<_ACEOF
2146
2147
2148## ----------- ##
2149## Core tests. ##
2150## ----------- ##
2151
2152_ACEOF
2153
2154
2155# Keep a trace of the command line.
2156# Strip out --no-create and --no-recursion so they do not pile up.
2157# Strip out --silent because we don't want to record it for future runs.
2158# Also quote any args containing shell meta-characters.
2159# Make two passes to allow for proper duplicate-argument suppression.
2160ac_configure_args=
2161ac_configure_args0=
2162ac_configure_args1=
2163ac_must_keep_next=false
2164for ac_pass in 1 2
2165do
2166  for ac_arg
2167  do
2168    case $ac_arg in
2169    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171    | -silent | --silent | --silen | --sile | --sil)
2172      continue ;;
2173    *\'*)
2174      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175    esac
2176    case $ac_pass in
2177    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178    2)
2179      as_fn_append ac_configure_args1 " '$ac_arg'"
2180      if test $ac_must_keep_next = true; then
2181	ac_must_keep_next=false # Got value, back to normal.
2182      else
2183	case $ac_arg in
2184	  *=* | --config-cache | -C | -disable-* | --disable-* \
2185	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187	  | -with-* | --with-* | -without-* | --without-* | --x)
2188	    case "$ac_configure_args0 " in
2189	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190	    esac
2191	    ;;
2192	  -* ) ac_must_keep_next=true ;;
2193	esac
2194      fi
2195      as_fn_append ac_configure_args " '$ac_arg'"
2196      ;;
2197    esac
2198  done
2199done
2200{ ac_configure_args0=; unset ac_configure_args0;}
2201{ ac_configure_args1=; unset ac_configure_args1;}
2202
2203# When interrupted or exit'd, cleanup temporary files, and complete
2204# config.log.  We remove comments because anyway the quotes in there
2205# would cause problems or look ugly.
2206# WARNING: Use '\'' to represent an apostrophe within the trap.
2207# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208trap 'exit_status=$?
2209  # Save into config.log some information that might help in debugging.
2210  {
2211    echo
2212
2213    cat <<\_ASBOX
2214## ---------------- ##
2215## Cache variables. ##
2216## ---------------- ##
2217_ASBOX
2218    echo
2219    # The following way of writing the cache mishandles newlines in values,
2220(
2221  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222    eval ac_val=\$$ac_var
2223    case $ac_val in #(
2224    *${as_nl}*)
2225      case $ac_var in #(
2226      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228      esac
2229      case $ac_var in #(
2230      _ | IFS | as_nl) ;; #(
2231      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232      *) { eval $ac_var=; unset $ac_var;} ;;
2233      esac ;;
2234    esac
2235  done
2236  (set) 2>&1 |
2237    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238    *${as_nl}ac_space=\ *)
2239      sed -n \
2240	"s/'\''/'\''\\\\'\'''\''/g;
2241	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242      ;; #(
2243    *)
2244      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245      ;;
2246    esac |
2247    sort
2248)
2249    echo
2250
2251    cat <<\_ASBOX
2252## ----------------- ##
2253## Output variables. ##
2254## ----------------- ##
2255_ASBOX
2256    echo
2257    for ac_var in $ac_subst_vars
2258    do
2259      eval ac_val=\$$ac_var
2260      case $ac_val in
2261      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262      esac
2263      $as_echo "$ac_var='\''$ac_val'\''"
2264    done | sort
2265    echo
2266
2267    if test -n "$ac_subst_files"; then
2268      cat <<\_ASBOX
2269## ------------------- ##
2270## File substitutions. ##
2271## ------------------- ##
2272_ASBOX
2273      echo
2274      for ac_var in $ac_subst_files
2275      do
2276	eval ac_val=\$$ac_var
2277	case $ac_val in
2278	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279	esac
2280	$as_echo "$ac_var='\''$ac_val'\''"
2281      done | sort
2282      echo
2283    fi
2284
2285    if test -s confdefs.h; then
2286      cat <<\_ASBOX
2287## ----------- ##
2288## confdefs.h. ##
2289## ----------- ##
2290_ASBOX
2291      echo
2292      cat confdefs.h
2293      echo
2294    fi
2295    test "$ac_signal" != 0 &&
2296      $as_echo "$as_me: caught signal $ac_signal"
2297    $as_echo "$as_me: exit $exit_status"
2298  } >&5
2299  rm -f core *.core core.conftest.* &&
2300    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301    exit $exit_status
2302' 0
2303for ac_signal in 1 2 13 15; do
2304  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305done
2306ac_signal=0
2307
2308# confdefs.h avoids OS command line length limits that DEFS can exceed.
2309rm -f -r conftest* confdefs.h
2310
2311$as_echo "/* confdefs.h */" > confdefs.h
2312
2313# Predefined preprocessor variables.
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_NAME "$PACKAGE_NAME"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_VERSION "$PACKAGE_VERSION"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_STRING "$PACKAGE_STRING"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_URL "$PACKAGE_URL"
2337_ACEOF
2338
2339
2340# Let the site file select an alternate cache file if it wants to.
2341# Prefer an explicitly selected file to automatically selected ones.
2342ac_site_file1=NONE
2343ac_site_file2=NONE
2344if test -n "$CONFIG_SITE"; then
2345  ac_site_file1=$CONFIG_SITE
2346elif test "x$prefix" != xNONE; then
2347  ac_site_file1=$prefix/share/config.site
2348  ac_site_file2=$prefix/etc/config.site
2349else
2350  ac_site_file1=$ac_default_prefix/share/config.site
2351  ac_site_file2=$ac_default_prefix/etc/config.site
2352fi
2353for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354do
2355  test "x$ac_site_file" = xNONE && continue
2356  if test -r "$ac_site_file"; then
2357    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359    sed 's/^/| /' "$ac_site_file" >&5
2360    . "$ac_site_file"
2361  fi
2362done
2363
2364if test -r "$cache_file"; then
2365  # Some versions of bash will fail to source /dev/null (special
2366  # files actually), so we avoid doing that.
2367  if test -f "$cache_file"; then
2368    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369$as_echo "$as_me: loading cache $cache_file" >&6;}
2370    case $cache_file in
2371      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372      *)                      . "./$cache_file";;
2373    esac
2374  fi
2375else
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377$as_echo "$as_me: creating cache $cache_file" >&6;}
2378  >$cache_file
2379fi
2380
2381# Check that the precious variables saved in the cache have kept the same
2382# value.
2383ac_cache_corrupted=false
2384for ac_var in $ac_precious_vars; do
2385  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386  eval ac_new_set=\$ac_env_${ac_var}_set
2387  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388  eval ac_new_val=\$ac_env_${ac_var}_value
2389  case $ac_old_set,$ac_new_set in
2390    set,)
2391      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393      ac_cache_corrupted=: ;;
2394    ,set)
2395      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397      ac_cache_corrupted=: ;;
2398    ,);;
2399    *)
2400      if test "x$ac_old_val" != "x$ac_new_val"; then
2401	# differences in whitespace do not lead to failure.
2402	ac_old_val_w=`echo x $ac_old_val`
2403	ac_new_val_w=`echo x $ac_new_val`
2404	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407	  ac_cache_corrupted=:
2408	else
2409	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411	  eval $ac_var=\$ac_old_val
2412	fi
2413	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2414$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2415	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2416$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2417      fi;;
2418  esac
2419  # Pass precious variables to config.status.
2420  if test "$ac_new_set" = set; then
2421    case $ac_new_val in
2422    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423    *) ac_arg=$ac_var=$ac_new_val ;;
2424    esac
2425    case " $ac_configure_args " in
2426      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2427      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428    esac
2429  fi
2430done
2431if $ac_cache_corrupted; then
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2436  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2437fi
2438## -------------------- ##
2439## Main body of script. ##
2440## -------------------- ##
2441
2442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
2448
2449
2450
2451
2452ac_config_headers="$ac_config_headers fficonfig.h"
2453
2454
2455# Default to --enable-multilib
2456# Check whether --enable-multilib was given.
2457if test "${enable_multilib+set}" = set; then :
2458  enableval=$enable_multilib; case "$enableval" in
2459  yes) multilib=yes ;;
2460  no)  multilib=no ;;
2461  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2462 esac
2463else
2464  multilib=yes
2465fi
2466
2467
2468# We may get other options which we leave undocumented:
2469# --with-target-subdir, --with-multisrctop, --with-multisubdir
2470# See config-ml.in if you want the gory details.
2471
2472if test "$srcdir" = "."; then
2473  if test "$with_target_subdir" != "."; then
2474    multi_basedir="$srcdir/$with_multisrctop../.."
2475  else
2476    multi_basedir="$srcdir/$with_multisrctop.."
2477  fi
2478else
2479  multi_basedir="$srcdir/.."
2480fi
2481
2482
2483# Even if the default multilib is not a cross compilation,
2484# it may be that some of the other multilibs are.
2485if test $cross_compiling = no && test $multilib = yes \
2486   && test "x${with_multisubdir}" != x ; then
2487   cross_compiling=maybe
2488fi
2489
2490ac_config_commands="$ac_config_commands default-1"
2491
2492
2493ac_aux_dir=
2494for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2495  for ac_t in install-sh install.sh shtool; do
2496    if test -f "$ac_dir/$ac_t"; then
2497      ac_aux_dir=$ac_dir
2498      ac_install_sh="$ac_aux_dir/$ac_t -c"
2499      break 2
2500    fi
2501  done
2502done
2503if test -z "$ac_aux_dir"; then
2504  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2505fi
2506
2507# These three variables are undocumented and unsupported,
2508# and are intended to be withdrawn in a future Autoconf release.
2509# They can cause serious problems if a builder's source tree is in a directory
2510# whose full name contains unusual characters.
2511ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2512ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2513ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2514
2515
2516# Make sure we can run config.sub.
2517$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2518  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2519
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2521$as_echo_n "checking build system type... " >&6; }
2522if test "${ac_cv_build+set}" = set; then :
2523  $as_echo_n "(cached) " >&6
2524else
2525  ac_build_alias=$build_alias
2526test "x$ac_build_alias" = x &&
2527  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2528test "x$ac_build_alias" = x &&
2529  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2530ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2531  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2532
2533fi
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2535$as_echo "$ac_cv_build" >&6; }
2536case $ac_cv_build in
2537*-*-*) ;;
2538*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2539esac
2540build=$ac_cv_build
2541ac_save_IFS=$IFS; IFS='-'
2542set x $ac_cv_build
2543shift
2544build_cpu=$1
2545build_vendor=$2
2546shift; shift
2547# Remember, the first character of IFS is used to create $*,
2548# except with old shells:
2549build_os=$*
2550IFS=$ac_save_IFS
2551case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2552
2553
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2555$as_echo_n "checking host system type... " >&6; }
2556if test "${ac_cv_host+set}" = set; then :
2557  $as_echo_n "(cached) " >&6
2558else
2559  if test "x$host_alias" = x; then
2560  ac_cv_host=$ac_cv_build
2561else
2562  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2563    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2564fi
2565
2566fi
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2568$as_echo "$ac_cv_host" >&6; }
2569case $ac_cv_host in
2570*-*-*) ;;
2571*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2572esac
2573host=$ac_cv_host
2574ac_save_IFS=$IFS; IFS='-'
2575set x $ac_cv_host
2576shift
2577host_cpu=$1
2578host_vendor=$2
2579shift; shift
2580# Remember, the first character of IFS is used to create $*,
2581# except with old shells:
2582host_os=$*
2583IFS=$ac_save_IFS
2584case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2585
2586
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2588$as_echo_n "checking target system type... " >&6; }
2589if test "${ac_cv_target+set}" = set; then :
2590  $as_echo_n "(cached) " >&6
2591else
2592  if test "x$target_alias" = x; then
2593  ac_cv_target=$ac_cv_host
2594else
2595  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2596    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2597fi
2598
2599fi
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2601$as_echo "$ac_cv_target" >&6; }
2602case $ac_cv_target in
2603*-*-*) ;;
2604*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2605esac
2606target=$ac_cv_target
2607ac_save_IFS=$IFS; IFS='-'
2608set x $ac_cv_target
2609shift
2610target_cpu=$1
2611target_vendor=$2
2612shift; shift
2613# Remember, the first character of IFS is used to create $*,
2614# except with old shells:
2615target_os=$*
2616IFS=$ac_save_IFS
2617case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2618
2619
2620# The aliases save the names the user supplied, while $host etc.
2621# will get canonicalized.
2622test -n "$target_alias" &&
2623  test "$program_prefix$program_suffix$program_transform_name" = \
2624    NONENONEs,x,x, &&
2625  program_prefix=${target_alias}-
2626
2627target_alias=${target_alias-$host_alias}
2628
2629. ${srcdir}/configure.host
2630
2631am__api_version='1.11'
2632
2633# Find a good install program.  We prefer a C program (faster),
2634# so one script is as good as another.  But avoid the broken or
2635# incompatible versions:
2636# SysV /etc/install, /usr/sbin/install
2637# SunOS /usr/etc/install
2638# IRIX /sbin/install
2639# AIX /bin/install
2640# AmigaOS /C/install, which installs bootblocks on floppy discs
2641# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644# OS/2's system install, which has a completely different semantic
2645# ./install, which can be erroneously created by make from ./install.sh.
2646# Reject install programs that cannot install multiple files.
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648$as_echo_n "checking for a BSD-compatible install... " >&6; }
2649if test -z "$INSTALL"; then
2650if test "${ac_cv_path_install+set}" = set; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656  IFS=$as_save_IFS
2657  test -z "$as_dir" && as_dir=.
2658    # Account for people who put trailing slashes in PATH elements.
2659case $as_dir/ in #((
2660  ./ | .// | /[cC]/* | \
2661  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2663  /usr/ucb/* ) ;;
2664  *)
2665    # OSF1 and SCO ODT 3.0 have their own names for install.
2666    # Don't use installbsd from OSF since it installs stuff as root
2667    # by default.
2668    for ac_prog in ginstall scoinst install; do
2669      for ac_exec_ext in '' $ac_executable_extensions; do
2670	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2671	  if test $ac_prog = install &&
2672	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673	    # AIX install.  It has an incompatible calling convention.
2674	    :
2675	  elif test $ac_prog = install &&
2676	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677	    # program-specific install script used by HP pwplus--don't use.
2678	    :
2679	  else
2680	    rm -rf conftest.one conftest.two conftest.dir
2681	    echo one > conftest.one
2682	    echo two > conftest.two
2683	    mkdir conftest.dir
2684	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685	      test -s conftest.one && test -s conftest.two &&
2686	      test -s conftest.dir/conftest.one &&
2687	      test -s conftest.dir/conftest.two
2688	    then
2689	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690	      break 3
2691	    fi
2692	  fi
2693	fi
2694      done
2695    done
2696    ;;
2697esac
2698
2699  done
2700IFS=$as_save_IFS
2701
2702rm -rf conftest.one conftest.two conftest.dir
2703
2704fi
2705  if test "${ac_cv_path_install+set}" = set; then
2706    INSTALL=$ac_cv_path_install
2707  else
2708    # As a last resort, use the slow shell script.  Don't cache a
2709    # value for INSTALL within a source directory, because that will
2710    # break other packages using the cache if that directory is
2711    # removed, or if the value is a relative name.
2712    INSTALL=$ac_install_sh
2713  fi
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716$as_echo "$INSTALL" >&6; }
2717
2718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719# It thinks the first close brace ends the variable substitution.
2720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2721
2722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2723
2724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2725
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2727$as_echo_n "checking whether build environment is sane... " >&6; }
2728# Just in case
2729sleep 1
2730echo timestamp > conftest.file
2731# Reject unsafe characters in $srcdir or the absolute working directory
2732# name.  Accept space and tab only in the latter.
2733am_lf='
2734'
2735case `pwd` in
2736  *[\\\"\#\$\&\'\`$am_lf]*)
2737    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2738esac
2739case $srcdir in
2740  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2741    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2742esac
2743
2744# Do `set' in a subshell so we don't clobber the current shell's
2745# arguments.  Must try -L first in case configure is actually a
2746# symlink; some systems play weird games with the mod time of symlinks
2747# (eg FreeBSD returns the mod time of the symlink's containing
2748# directory).
2749if (
2750   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2751   if test "$*" = "X"; then
2752      # -L didn't work.
2753      set X `ls -t "$srcdir/configure" conftest.file`
2754   fi
2755   rm -f conftest.file
2756   if test "$*" != "X $srcdir/configure conftest.file" \
2757      && test "$*" != "X conftest.file $srcdir/configure"; then
2758
2759      # If neither matched, then we have a broken ls.  This can happen
2760      # if, for instance, CONFIG_SHELL is bash and it inherits a
2761      # broken ls alias from the environment.  This has actually
2762      # happened.  Such a system could not be considered "sane".
2763      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2764alias in your environment" "$LINENO" 5
2765   fi
2766
2767   test "$2" = conftest.file
2768   )
2769then
2770   # Ok.
2771   :
2772else
2773   as_fn_error "newly created file is older than distributed files!
2774Check your system clock" "$LINENO" 5
2775fi
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777$as_echo "yes" >&6; }
2778test "$program_prefix" != NONE &&
2779  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2780# Use a double $ so make ignores it.
2781test "$program_suffix" != NONE &&
2782  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2783# Double any \ or $.
2784# By default was `s,x,x', remove it if useless.
2785ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2786program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2787
2788# expand $ac_aux_dir to an absolute path
2789am_aux_dir=`cd $ac_aux_dir && pwd`
2790
2791if test x"${MISSING+set}" != xset; then
2792  case $am_aux_dir in
2793  *\ * | *\	*)
2794    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2795  *)
2796    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2797  esac
2798fi
2799# Use eval to expand $SHELL
2800if eval "$MISSING --run true"; then
2801  am_missing_run="$MISSING --run "
2802else
2803  am_missing_run=
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2805$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2806fi
2807
2808if test x"${install_sh}" != xset; then
2809  case $am_aux_dir in
2810  *\ * | *\	*)
2811    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2812  *)
2813    install_sh="\${SHELL} $am_aux_dir/install-sh"
2814  esac
2815fi
2816
2817# Installed binaries are usually stripped using `strip' when the user
2818# run `make install-strip'.  However `strip' might not be the right
2819# tool to use in cross-compilation environments, therefore Automake
2820# will honor the `STRIP' environment variable to overrule this program.
2821if test "$cross_compiling" != no; then
2822  if test -n "$ac_tool_prefix"; then
2823  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2824set dummy ${ac_tool_prefix}strip; ac_word=$2
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if test "${ac_cv_prog_STRIP+set}" = set; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  if test -n "$STRIP"; then
2831  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836  IFS=$as_save_IFS
2837  test -z "$as_dir" && as_dir=.
2838    for ac_exec_ext in '' $ac_executable_extensions; do
2839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845  done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850STRIP=$ac_cv_prog_STRIP
2851if test -n "$STRIP"; then
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2853$as_echo "$STRIP" >&6; }
2854else
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857fi
2858
2859
2860fi
2861if test -z "$ac_cv_prog_STRIP"; then
2862  ac_ct_STRIP=$STRIP
2863  # Extract the first word of "strip", so it can be a program name with args.
2864set dummy strip; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
2867if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  if test -n "$ac_ct_STRIP"; then
2871  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  test -z "$as_dir" && as_dir=.
2878    for ac_exec_ext in '' $ac_executable_extensions; do
2879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880    ac_cv_prog_ac_ct_STRIP="strip"
2881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885  done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2891if test -n "$ac_ct_STRIP"; then
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2893$as_echo "$ac_ct_STRIP" >&6; }
2894else
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899  if test "x$ac_ct_STRIP" = x; then
2900    STRIP=":"
2901  else
2902    case $cross_compiling:$ac_tool_warned in
2903yes:)
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906ac_tool_warned=yes ;;
2907esac
2908    STRIP=$ac_ct_STRIP
2909  fi
2910else
2911  STRIP="$ac_cv_prog_STRIP"
2912fi
2913
2914fi
2915INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2916
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2918$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2919if test -z "$MKDIR_P"; then
2920  if test "${ac_cv_path_mkdir+set}" = set; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928    for ac_prog in mkdir gmkdir; do
2929	 for ac_exec_ext in '' $ac_executable_extensions; do
2930	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2931	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2932	     'mkdir (GNU coreutils) '* | \
2933	     'mkdir (coreutils) '* | \
2934	     'mkdir (fileutils) '4.1*)
2935	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2936	       break 3;;
2937	   esac
2938	 done
2939       done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944
2945  if test "${ac_cv_path_mkdir+set}" = set; then
2946    MKDIR_P="$ac_cv_path_mkdir -p"
2947  else
2948    # As a last resort, use the slow shell script.  Don't cache a
2949    # value for MKDIR_P within a source directory, because that will
2950    # break other packages using the cache if that directory is
2951    # removed, or if the value is a relative name.
2952    test -d ./--version && rmdir ./--version
2953    MKDIR_P="$ac_install_sh -d"
2954  fi
2955fi
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2957$as_echo "$MKDIR_P" >&6; }
2958
2959mkdir_p="$MKDIR_P"
2960case $mkdir_p in
2961  [\\/$]* | ?:[\\/]*) ;;
2962  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2963esac
2964
2965for ac_prog in gawk mawk nawk awk
2966do
2967  # Extract the first word of "$ac_prog", so it can be a program name with args.
2968set dummy $ac_prog; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if test "${ac_cv_prog_AWK+set}" = set; then :
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$AWK"; then
2975  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984    ac_cv_prog_AWK="$ac_prog"
2985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994AWK=$ac_cv_prog_AWK
2995if test -n "$AWK"; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2997$as_echo "$AWK" >&6; }
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004  test -n "$AWK" && break
3005done
3006
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3008$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3009set x ${MAKE-make}
3010ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3011if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  cat >conftest.make <<\_ACEOF
3015SHELL = /bin/sh
3016all:
3017	@echo '@@@%%%=$(MAKE)=@@@%%%'
3018_ACEOF
3019# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3020case `${MAKE-make} -f conftest.make 2>/dev/null` in
3021  *@@@%%%=?*=@@@%%%*)
3022    eval ac_cv_prog_make_${ac_make}_set=yes;;
3023  *)
3024    eval ac_cv_prog_make_${ac_make}_set=no;;
3025esac
3026rm -f conftest.make
3027fi
3028if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030$as_echo "yes" >&6; }
3031  SET_MAKE=
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035  SET_MAKE="MAKE=${MAKE-make}"
3036fi
3037
3038rm -rf .tst 2>/dev/null
3039mkdir .tst 2>/dev/null
3040if test -d .tst; then
3041  am__leading_dot=.
3042else
3043  am__leading_dot=_
3044fi
3045rmdir .tst 2>/dev/null
3046
3047if test "`cd $srcdir && pwd`" != "`pwd`"; then
3048  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3049  # is not polluted with repeated "-I."
3050  am__isrc=' -I$(srcdir)'
3051  # test to see if srcdir already configured
3052  if test -f $srcdir/config.status; then
3053    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3054  fi
3055fi
3056
3057# test whether we have cygpath
3058if test -z "$CYGPATH_W"; then
3059  if (cygpath --version) >/dev/null 2>/dev/null; then
3060    CYGPATH_W='cygpath -w'
3061  else
3062    CYGPATH_W=echo
3063  fi
3064fi
3065
3066
3067# Define the identity of the package.
3068 PACKAGE='libffi'
3069 VERSION='3.0.11'
3070
3071
3072cat >>confdefs.h <<_ACEOF
3073#define PACKAGE "$PACKAGE"
3074_ACEOF
3075
3076
3077cat >>confdefs.h <<_ACEOF
3078#define VERSION "$VERSION"
3079_ACEOF
3080
3081# Some tools Automake needs.
3082
3083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3084
3085
3086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3087
3088
3089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3090
3091
3092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3093
3094
3095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3096
3097# We need awk for the "check" target.  The system "awk" is bad on
3098# some platforms.
3099# Always define AMTAR for backward compatibility.
3100
3101AMTAR=${AMTAR-"${am_missing_run}tar"}
3102
3103am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3104
3105
3106
3107
3108
3109
3110# See if makeinfo has been installed and is modern enough
3111# that we can use it.
3112
3113  # Extract the first word of "makeinfo", so it can be a program name with args.
3114set dummy makeinfo; ac_word=$2
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; }
3117if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3118  $as_echo_n "(cached) " >&6
3119else
3120  if test -n "$MAKEINFO"; then
3121  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126  IFS=$as_save_IFS
3127  test -z "$as_dir" && as_dir=.
3128    for ac_exec_ext in '' $ac_executable_extensions; do
3129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130    ac_cv_prog_MAKEINFO="makeinfo"
3131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132    break 2
3133  fi
3134done
3135  done
3136IFS=$as_save_IFS
3137
3138fi
3139fi
3140MAKEINFO=$ac_cv_prog_MAKEINFO
3141if test -n "$MAKEINFO"; then
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3143$as_echo "$MAKEINFO" >&6; }
3144else
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150  if test -n "$MAKEINFO"; then
3151    # Found it, now check the version.
3152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3153$as_echo_n "checking for modern makeinfo... " >&6; }
3154if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3158                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3159
3160                    case $ac_prog_version in
3161                      '')  gcc_cv_prog_makeinfo_modern=no;;
3162                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3163                      *)   gcc_cv_prog_makeinfo_modern=no;;
3164                    esac
3165
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3168$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3169  else
3170    gcc_cv_prog_makeinfo_modern=no
3171  fi
3172  if test $gcc_cv_prog_makeinfo_modern = no; then
3173    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3174  fi
3175
3176 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3177  BUILD_INFO_TRUE=
3178  BUILD_INFO_FALSE='#'
3179else
3180  BUILD_INFO_TRUE='#'
3181  BUILD_INFO_FALSE=
3182fi
3183
3184
3185# We would like our source tree to be readonly. However when releases or
3186# pre-releases are generated, the flex/bison generated files as well as the
3187# various formats of manuals need to be included along with the rest of the
3188# sources.  Therefore we have --enable-generated-files-in-srcdir to do
3189# just that.
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3191$as_echo_n "checking generated-files-in-srcdir... " >&6; }
3192# Check whether --enable-generated-files-in-srcdir was given.
3193if test "${enable_generated_files_in_srcdir+set}" = set; then :
3194  enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3195 yes) enable_generated_files_in_srcdir=yes ;;
3196 no)  enable_generated_files_in_srcdir=no ;;
3197 *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3198 esac
3199else
3200  enable_generated_files_in_srcdir=no
3201fi
3202
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3204$as_echo "$enable_generated_files_in_srcdir" >&6; }
3205 if test "$enable_generated_files_in_srcdir" = yes; then
3206  GENINSRC_TRUE=
3207  GENINSRC_FALSE='#'
3208else
3209  GENINSRC_TRUE='#'
3210  GENINSRC_FALSE=
3211fi
3212
3213
3214# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3215# We must force CC to /not/ be precious variables; otherwise
3216# the wrong, non-multilib-adjusted value will be used in multilibs.
3217# As a side effect, we have to subst CFLAGS ourselves.
3218
3219
3220
3221ac_ext=c
3222ac_cpp='$CPP $CPPFLAGS'
3223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226if test -n "$ac_tool_prefix"; then
3227  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230$as_echo_n "checking for $ac_word... " >&6; }
3231if test "${ac_cv_prog_CC+set}" = set; then :
3232  $as_echo_n "(cached) " >&6
3233else
3234  if test -n "$CC"; then
3235  ac_cv_prog_CC="$CC" # Let the user override the test.
3236else
3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240  IFS=$as_save_IFS
3241  test -z "$as_dir" && as_dir=.
3242    for ac_exec_ext in '' $ac_executable_extensions; do
3243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246    break 2
3247  fi
3248done
3249  done
3250IFS=$as_save_IFS
3251
3252fi
3253fi
3254CC=$ac_cv_prog_CC
3255if test -n "$CC"; then
3256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257$as_echo "$CC" >&6; }
3258else
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260$as_echo "no" >&6; }
3261fi
3262
3263
3264fi
3265if test -z "$ac_cv_prog_CC"; then
3266  ac_ct_CC=$CC
3267  # Extract the first word of "gcc", so it can be a program name with args.
3268set dummy gcc; ac_word=$2
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270$as_echo_n "checking for $ac_word... " >&6; }
3271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3272  $as_echo_n "(cached) " >&6
3273else
3274  if test -n "$ac_ct_CC"; then
3275  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280  IFS=$as_save_IFS
3281  test -z "$as_dir" && as_dir=.
3282    for ac_exec_ext in '' $ac_executable_extensions; do
3283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284    ac_cv_prog_ac_ct_CC="gcc"
3285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286    break 2
3287  fi
3288done
3289  done
3290IFS=$as_save_IFS
3291
3292fi
3293fi
3294ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295if test -n "$ac_ct_CC"; then
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297$as_echo "$ac_ct_CC" >&6; }
3298else
3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301fi
3302
3303  if test "x$ac_ct_CC" = x; then
3304    CC=""
3305  else
3306    case $cross_compiling:$ac_tool_warned in
3307yes:)
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310ac_tool_warned=yes ;;
3311esac
3312    CC=$ac_ct_CC
3313  fi
3314else
3315  CC="$ac_cv_prog_CC"
3316fi
3317
3318if test -z "$CC"; then
3319          if test -n "$ac_tool_prefix"; then
3320    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321set dummy ${ac_tool_prefix}cc; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if test "${ac_cv_prog_CC+set}" = set; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  if test -n "$CC"; then
3328  ac_cv_prog_CC="$CC" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333  IFS=$as_save_IFS
3334  test -z "$as_dir" && as_dir=.
3335    for ac_exec_ext in '' $ac_executable_extensions; do
3336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337    ac_cv_prog_CC="${ac_tool_prefix}cc"
3338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339    break 2
3340  fi
3341done
3342  done
3343IFS=$as_save_IFS
3344
3345fi
3346fi
3347CC=$ac_cv_prog_CC
3348if test -n "$CC"; then
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350$as_echo "$CC" >&6; }
3351else
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354fi
3355
3356
3357  fi
3358fi
3359if test -z "$CC"; then
3360  # Extract the first word of "cc", so it can be a program name with args.
3361set dummy cc; ac_word=$2
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363$as_echo_n "checking for $ac_word... " >&6; }
3364if test "${ac_cv_prog_CC+set}" = set; then :
3365  $as_echo_n "(cached) " >&6
3366else
3367  if test -n "$CC"; then
3368  ac_cv_prog_CC="$CC" # Let the user override the test.
3369else
3370  ac_prog_rejected=no
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379       ac_prog_rejected=yes
3380       continue
3381     fi
3382    ac_cv_prog_CC="cc"
3383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384    break 2
3385  fi
3386done
3387  done
3388IFS=$as_save_IFS
3389
3390if test $ac_prog_rejected = yes; then
3391  # We found a bogon in the path, so make sure we never use it.
3392  set dummy $ac_cv_prog_CC
3393  shift
3394  if test $# != 0; then
3395    # We chose a different compiler from the bogus one.
3396    # However, it has the same basename, so the bogon will be chosen
3397    # first if we set CC to just the basename; use the full file name.
3398    shift
3399    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400  fi
3401fi
3402fi
3403fi
3404CC=$ac_cv_prog_CC
3405if test -n "$CC"; then
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407$as_echo "$CC" >&6; }
3408else
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414fi
3415if test -z "$CC"; then
3416  if test -n "$ac_tool_prefix"; then
3417  for ac_prog in cl.exe
3418  do
3419    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422$as_echo_n "checking for $ac_word... " >&6; }
3423if test "${ac_cv_prog_CC+set}" = set; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  if test -n "$CC"; then
3427  ac_cv_prog_CC="$CC" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432  IFS=$as_save_IFS
3433  test -z "$as_dir" && as_dir=.
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449$as_echo "$CC" >&6; }
3450else
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453fi
3454
3455
3456    test -n "$CC" && break
3457  done
3458fi
3459if test -z "$CC"; then
3460  ac_ct_CC=$CC
3461  for ac_prog in cl.exe
3462do
3463  # Extract the first word of "$ac_prog", so it can be a program name with args.
3464set dummy $ac_prog; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3468  $as_echo_n "(cached) " >&6
3469else
3470  if test -n "$ac_ct_CC"; then
3471  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476  IFS=$as_save_IFS
3477  test -z "$as_dir" && as_dir=.
3478    for ac_exec_ext in '' $ac_executable_extensions; do
3479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480    ac_cv_prog_ac_ct_CC="$ac_prog"
3481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482    break 2
3483  fi
3484done
3485  done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491if test -n "$ac_ct_CC"; then
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493$as_echo "$ac_ct_CC" >&6; }
3494else
3495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500  test -n "$ac_ct_CC" && break
3501done
3502
3503  if test "x$ac_ct_CC" = x; then
3504    CC=""
3505  else
3506    case $cross_compiling:$ac_tool_warned in
3507yes:)
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510ac_tool_warned=yes ;;
3511esac
3512    CC=$ac_ct_CC
3513  fi
3514fi
3515
3516fi
3517
3518
3519test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error "no acceptable C compiler found in \$PATH
3522See \`config.log' for more details." "$LINENO" 5; }
3523
3524# Provide some information about the compiler.
3525$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526set X $ac_compile
3527ac_compiler=$2
3528for ac_option in --version -v -V -qversion; do
3529  { { ac_try="$ac_compiler $ac_option >&5"
3530case "(($ac_try" in
3531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532  *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535$as_echo "$ac_try_echo"; } >&5
3536  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537  ac_status=$?
3538  if test -s conftest.err; then
3539    sed '10a\
3540... rest of stderr output deleted ...
3541         10q' conftest.err >conftest.er1
3542    cat conftest.er1 >&5
3543    rm -f conftest.er1 conftest.err
3544  fi
3545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546  test $ac_status = 0; }
3547done
3548
3549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560ac_clean_files_save=$ac_clean_files
3561ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3562# Try to create an executable without -o first, disregard a.out.
3563# It will help us diagnose broken compilers, and finding out an intuition
3564# of exeext.
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3566$as_echo_n "checking for C compiler default output file name... " >&6; }
3567ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568
3569# The possible output files:
3570ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571
3572ac_rmfiles=
3573for ac_file in $ac_files
3574do
3575  case $ac_file in
3576    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578  esac
3579done
3580rm -f $ac_rmfiles
3581
3582if { { ac_try="$ac_link_default"
3583case "(($ac_try" in
3584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585  *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589  (eval "$ac_link_default") 2>&5
3590  ac_status=$?
3591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592  test $ac_status = 0; }; then :
3593  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3596# so that the user can short-circuit this test for compilers unknown to
3597# Autoconf.
3598for ac_file in $ac_files ''
3599do
3600  test -f "$ac_file" || continue
3601  case $ac_file in
3602    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603	;;
3604    [ab].out )
3605	# We found the default executable, but exeext='' is most
3606	# certainly right.
3607	break;;
3608    *.* )
3609	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610	then :; else
3611	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612	fi
3613	# We set ac_cv_exeext here because the later test for it is not
3614	# safe: cross compilers may not add the suffix if given an `-o'
3615	# argument, so we may need to know it at that point already.
3616	# Even if this section looks crufty: it has the advantage of
3617	# actually working.
3618	break;;
3619    * )
3620	break;;
3621  esac
3622done
3623test "$ac_cv_exeext" = no && ac_cv_exeext=
3624
3625else
3626  ac_file=''
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3629$as_echo "$ac_file" >&6; }
3630if test -z "$ac_file"; then :
3631  $as_echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636{ as_fn_set_status 77
3637as_fn_error "C compiler cannot create executables
3638See \`config.log' for more details." "$LINENO" 5; }; }
3639fi
3640ac_exeext=$ac_cv_exeext
3641
3642# Check that the compiler produces executables we can run.  If not, either
3643# the compiler is broken, or we cross compile.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3645$as_echo_n "checking whether the C compiler works... " >&6; }
3646# If not cross compiling, check that we can run a simple program.
3647if test "$cross_compiling" != yes; then
3648  if { ac_try='./$ac_file'
3649  { { case "(($ac_try" in
3650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651  *) ac_try_echo=$ac_try;;
3652esac
3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654$as_echo "$ac_try_echo"; } >&5
3655  (eval "$ac_try") 2>&5
3656  ac_status=$?
3657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658  test $ac_status = 0; }; }; then
3659    cross_compiling=no
3660  else
3661    if test "$cross_compiling" = maybe; then
3662	cross_compiling=yes
3663    else
3664	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error "cannot run C compiled programs.
3667If you meant to cross compile, use \`--host'.
3668See \`config.log' for more details." "$LINENO" 5; }
3669    fi
3670  fi
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673$as_echo "yes" >&6; }
3674
3675rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3676ac_clean_files=$ac_clean_files_save
3677# Check that the compiler produces executables we can run.  If not, either
3678# the compiler is broken, or we cross compile.
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3680$as_echo_n "checking whether we are cross compiling... " >&6; }
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3682$as_echo "$cross_compiling" >&6; }
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3685$as_echo_n "checking for suffix of executables... " >&6; }
3686if { { ac_try="$ac_link"
3687case "(($ac_try" in
3688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689  *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692$as_echo "$ac_try_echo"; } >&5
3693  (eval "$ac_link") 2>&5
3694  ac_status=$?
3695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696  test $ac_status = 0; }; then :
3697  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3698# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3699# work properly (i.e., refer to `conftest.exe'), while it won't with
3700# `rm'.
3701for ac_file in conftest.exe conftest conftest.*; do
3702  test -f "$ac_file" || continue
3703  case $ac_file in
3704    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706	  break;;
3707    * ) break;;
3708  esac
3709done
3710else
3711  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713as_fn_error "cannot compute suffix of executables: cannot compile and link
3714See \`config.log' for more details." "$LINENO" 5; }
3715fi
3716rm -f conftest$ac_cv_exeext
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3718$as_echo "$ac_cv_exeext" >&6; }
3719
3720rm -f conftest.$ac_ext
3721EXEEXT=$ac_cv_exeext
3722ac_exeext=$EXEEXT
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3724$as_echo_n "checking for suffix of object files... " >&6; }
3725if test "${ac_cv_objext+set}" = set; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730
3731int
3732main ()
3733{
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739rm -f conftest.o conftest.obj
3740if { { ac_try="$ac_compile"
3741case "(($ac_try" in
3742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743  *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747  (eval "$ac_compile") 2>&5
3748  ac_status=$?
3749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750  test $ac_status = 0; }; then :
3751  for ac_file in conftest.o conftest.obj conftest.*; do
3752  test -f "$ac_file" || continue;
3753  case $ac_file in
3754    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3755    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3756       break;;
3757  esac
3758done
3759else
3760  $as_echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765as_fn_error "cannot compute suffix of object files: cannot compile
3766See \`config.log' for more details." "$LINENO" 5; }
3767fi
3768rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769fi
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3771$as_echo "$ac_cv_objext" >&6; }
3772OBJEXT=$ac_cv_objext
3773ac_objext=$OBJEXT
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3775$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3776if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781
3782int
3783main ()
3784{
3785#ifndef __GNUC__
3786       choke me
3787#endif
3788
3789  ;
3790  return 0;
3791}
3792_ACEOF
3793if ac_fn_c_try_compile "$LINENO"; then :
3794  ac_compiler_gnu=yes
3795else
3796  ac_compiler_gnu=no
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799ac_cv_c_compiler_gnu=$ac_compiler_gnu
3800
3801fi
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3803$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3804if test $ac_compiler_gnu = yes; then
3805  GCC=yes
3806else
3807  GCC=
3808fi
3809ac_test_CFLAGS=${CFLAGS+set}
3810ac_save_CFLAGS=$CFLAGS
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3812$as_echo_n "checking whether $CC accepts -g... " >&6; }
3813if test "${ac_cv_prog_cc_g+set}" = set; then :
3814  $as_echo_n "(cached) " >&6
3815else
3816  ac_save_c_werror_flag=$ac_c_werror_flag
3817   ac_c_werror_flag=yes
3818   ac_cv_prog_cc_g=no
3819   CFLAGS="-g"
3820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h.  */
3822
3823int
3824main ()
3825{
3826
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_compile "$LINENO"; then :
3832  ac_cv_prog_cc_g=yes
3833else
3834  CFLAGS=""
3835      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836/* end confdefs.h.  */
3837
3838int
3839main ()
3840{
3841
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_compile "$LINENO"; then :
3847
3848else
3849  ac_c_werror_flag=$ac_save_c_werror_flag
3850	 CFLAGS="-g"
3851	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h.  */
3853
3854int
3855main ()
3856{
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862if ac_fn_c_try_compile "$LINENO"; then :
3863  ac_cv_prog_cc_g=yes
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866fi
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868fi
3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870   ac_c_werror_flag=$ac_save_c_werror_flag
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3873$as_echo "$ac_cv_prog_cc_g" >&6; }
3874if test "$ac_test_CFLAGS" = set; then
3875  CFLAGS=$ac_save_CFLAGS
3876elif test $ac_cv_prog_cc_g = yes; then
3877  if test "$GCC" = yes; then
3878    CFLAGS="-g -O2"
3879  else
3880    CFLAGS="-g"
3881  fi
3882else
3883  if test "$GCC" = yes; then
3884    CFLAGS="-O2"
3885  else
3886    CFLAGS=
3887  fi
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891if test "${ac_cv_prog_cc_c89+set}" = set; then :
3892  $as_echo_n "(cached) " >&6
3893else
3894  ac_cv_prog_cc_c89=no
3895ac_save_CC=$CC
3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898#include <stdarg.h>
3899#include <stdio.h>
3900#include <sys/types.h>
3901#include <sys/stat.h>
3902/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3903struct buf { int x; };
3904FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905static char *e (p, i)
3906     char **p;
3907     int i;
3908{
3909  return p[i];
3910}
3911static char *f (char * (*g) (char **, int), char **p, ...)
3912{
3913  char *s;
3914  va_list v;
3915  va_start (v,p);
3916  s = g (p, va_arg (v,int));
3917  va_end (v);
3918  return s;
3919}
3920
3921/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3922   function prototypes and stuff, but not '\xHH' hex character constants.
3923   These don't provoke an error unfortunately, instead are silently treated
3924   as 'x'.  The following induces an error, until -std is added to get
3925   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3926   array size at least.  It's necessary to write '\x00'==0 to get something
3927   that's true only with -std.  */
3928int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929
3930/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931   inside strings and character constants.  */
3932#define FOO(x) 'x'
3933int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934
3935int test (int i, double x);
3936struct s1 {int (*f) (int a);};
3937struct s2 {int (*f) (double a);};
3938int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939int argc;
3940char **argv;
3941int
3942main ()
3943{
3944return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951do
3952  CC="$ac_save_CC $ac_arg"
3953  if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_cv_prog_cc_c89=$ac_arg
3955fi
3956rm -f core conftest.err conftest.$ac_objext
3957  test "x$ac_cv_prog_cc_c89" != "xno" && break
3958done
3959rm -f conftest.$ac_ext
3960CC=$ac_save_CC
3961
3962fi
3963# AC_CACHE_VAL
3964case "x$ac_cv_prog_cc_c89" in
3965  x)
3966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967$as_echo "none needed" >&6; } ;;
3968  xno)
3969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970$as_echo "unsupported" >&6; } ;;
3971  *)
3972    CC="$CC $ac_cv_prog_cc_c89"
3973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975esac
3976if test "x$ac_cv_prog_cc_c89" != xno; then :
3977
3978fi
3979
3980ac_ext=c
3981ac_cpp='$CPP $CPPFLAGS'
3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985DEPDIR="${am__leading_dot}deps"
3986
3987ac_config_commands="$ac_config_commands depfiles"
3988
3989
3990am_make=${MAKE-make}
3991cat > confinc << 'END'
3992am__doit:
3993	@echo this is the am__doit target
3994.PHONY: am__doit
3995END
3996# If we don't find an include directive, just comment out the code.
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3998$as_echo_n "checking for style of include used by $am_make... " >&6; }
3999am__include="#"
4000am__quote=
4001_am_result=none
4002# First try GNU make style include.
4003echo "include confinc" > confmf
4004# Ignore all kinds of additional output from `make'.
4005case `$am_make -s -f confmf 2> /dev/null` in #(
4006*the\ am__doit\ target*)
4007  am__include=include
4008  am__quote=
4009  _am_result=GNU
4010  ;;
4011esac
4012# Now try BSD make style include.
4013if test "$am__include" = "#"; then
4014   echo '.include "confinc"' > confmf
4015   case `$am_make -s -f confmf 2> /dev/null` in #(
4016   *the\ am__doit\ target*)
4017     am__include=.include
4018     am__quote="\""
4019     _am_result=BSD
4020     ;;
4021   esac
4022fi
4023
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4026$as_echo "$_am_result" >&6; }
4027rm -f confinc confmf
4028
4029# Check whether --enable-dependency-tracking was given.
4030if test "${enable_dependency_tracking+set}" = set; then :
4031  enableval=$enable_dependency_tracking;
4032fi
4033
4034if test "x$enable_dependency_tracking" != xno; then
4035  am_depcomp="$ac_aux_dir/depcomp"
4036  AMDEPBACKSLASH='\'
4037fi
4038 if test "x$enable_dependency_tracking" != xno; then
4039  AMDEP_TRUE=
4040  AMDEP_FALSE='#'
4041else
4042  AMDEP_TRUE='#'
4043  AMDEP_FALSE=
4044fi
4045
4046
4047
4048depcc="$CC"   am_compiler_list=
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4051$as_echo_n "checking dependency style of $depcc... " >&6; }
4052if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4053  $as_echo_n "(cached) " >&6
4054else
4055  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4056  # We make a subdir and do the tests there.  Otherwise we can end up
4057  # making bogus files that we don't know about and never remove.  For
4058  # instance it was reported that on HP-UX the gcc test will end up
4059  # making a dummy file named `D' -- because `-MD' means `put the output
4060  # in D'.
4061  mkdir conftest.dir
4062  # Copy depcomp to subdir because otherwise we won't find it if we're
4063  # using a relative directory.
4064  cp "$am_depcomp" conftest.dir
4065  cd conftest.dir
4066  # We will build objects and dependencies in a subdirectory because
4067  # it helps to detect inapplicable dependency modes.  For instance
4068  # both Tru64's cc and ICC support -MD to output dependencies as a
4069  # side effect of compilation, but ICC will put the dependencies in
4070  # the current directory while Tru64 will put them in the object
4071  # directory.
4072  mkdir sub
4073
4074  am_cv_CC_dependencies_compiler_type=none
4075  if test "$am_compiler_list" = ""; then
4076     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4077  fi
4078  am__universal=false
4079  case " $depcc " in #(
4080     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4081     esac
4082
4083  for depmode in $am_compiler_list; do
4084    # Setup a source with many dependencies, because some compilers
4085    # like to wrap large dependency lists on column 80 (with \), and
4086    # we should not choose a depcomp mode which is confused by this.
4087    #
4088    # We need to recreate these files for each test, as the compiler may
4089    # overwrite some of them when testing with obscure command lines.
4090    # This happens at least with the AIX C compiler.
4091    : > sub/conftest.c
4092    for i in 1 2 3 4 5 6; do
4093      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4094      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4095      # Solaris 8's {/usr,}/bin/sh.
4096      touch sub/conftst$i.h
4097    done
4098    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4099
4100    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4101    # mode.  It turns out that the SunPro C++ compiler does not properly
4102    # handle `-M -o', and we need to detect this.  Also, some Intel
4103    # versions had trouble with output in subdirs
4104    am__obj=sub/conftest.${OBJEXT-o}
4105    am__minus_obj="-o $am__obj"
4106    case $depmode in
4107    gcc)
4108      # This depmode causes a compiler race in universal mode.
4109      test "$am__universal" = false || continue
4110      ;;
4111    nosideeffect)
4112      # after this tag, mechanisms are not by side-effect, so they'll
4113      # only be used when explicitly requested
4114      if test "x$enable_dependency_tracking" = xyes; then
4115	continue
4116      else
4117	break
4118      fi
4119      ;;
4120    msvisualcpp | msvcmsys)
4121      # This compiler won't grok `-c -o', but also, the minuso test has
4122      # not run yet.  These depmodes are late enough in the game, and
4123      # so weak that their functioning should not be impacted.
4124      am__obj=conftest.${OBJEXT-o}
4125      am__minus_obj=
4126      ;;
4127    none) break ;;
4128    esac
4129    if depmode=$depmode \
4130       source=sub/conftest.c object=$am__obj \
4131       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4132       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4133         >/dev/null 2>conftest.err &&
4134       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4135       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4136       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4137       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4138      # icc doesn't choke on unknown options, it will just issue warnings
4139      # or remarks (even with -Werror).  So we grep stderr for any message
4140      # that says an option was ignored or not supported.
4141      # When given -MP, icc 7.0 and 7.1 complain thusly:
4142      #   icc: Command line warning: ignoring option '-M'; no argument required
4143      # The diagnosis changed in icc 8.0:
4144      #   icc: Command line remark: option '-MP' not supported
4145      if (grep 'ignoring option' conftest.err ||
4146          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4147        am_cv_CC_dependencies_compiler_type=$depmode
4148        break
4149      fi
4150    fi
4151  done
4152
4153  cd ..
4154  rm -rf conftest.dir
4155else
4156  am_cv_CC_dependencies_compiler_type=none
4157fi
4158
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4161$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4162CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4163
4164 if
4165  test "x$enable_dependency_tracking" != xno \
4166  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4167  am__fastdepCC_TRUE=
4168  am__fastdepCC_FALSE='#'
4169else
4170  am__fastdepCC_TRUE='#'
4171  am__fastdepCC_FALSE=
4172fi
4173
4174
4175
4176
4177
4178
4179# By default we simply use the C compiler to build assembly code.
4180
4181test "${CCAS+set}" = set || CCAS=$CC
4182test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4183
4184
4185
4186depcc="$CCAS"   am_compiler_list=
4187
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4189$as_echo_n "checking dependency style of $depcc... " >&6; }
4190if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4191  $as_echo_n "(cached) " >&6
4192else
4193  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4194  # We make a subdir and do the tests there.  Otherwise we can end up
4195  # making bogus files that we don't know about and never remove.  For
4196  # instance it was reported that on HP-UX the gcc test will end up
4197  # making a dummy file named `D' -- because `-MD' means `put the output
4198  # in D'.
4199  mkdir conftest.dir
4200  # Copy depcomp to subdir because otherwise we won't find it if we're
4201  # using a relative directory.
4202  cp "$am_depcomp" conftest.dir
4203  cd conftest.dir
4204  # We will build objects and dependencies in a subdirectory because
4205  # it helps to detect inapplicable dependency modes.  For instance
4206  # both Tru64's cc and ICC support -MD to output dependencies as a
4207  # side effect of compilation, but ICC will put the dependencies in
4208  # the current directory while Tru64 will put them in the object
4209  # directory.
4210  mkdir sub
4211
4212  am_cv_CCAS_dependencies_compiler_type=none
4213  if test "$am_compiler_list" = ""; then
4214     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215  fi
4216  am__universal=false
4217
4218
4219  for depmode in $am_compiler_list; do
4220    # Setup a source with many dependencies, because some compilers
4221    # like to wrap large dependency lists on column 80 (with \), and
4222    # we should not choose a depcomp mode which is confused by this.
4223    #
4224    # We need to recreate these files for each test, as the compiler may
4225    # overwrite some of them when testing with obscure command lines.
4226    # This happens at least with the AIX C compiler.
4227    : > sub/conftest.c
4228    for i in 1 2 3 4 5 6; do
4229      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4231      # Solaris 8's {/usr,}/bin/sh.
4232      touch sub/conftst$i.h
4233    done
4234    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235
4236    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4237    # mode.  It turns out that the SunPro C++ compiler does not properly
4238    # handle `-M -o', and we need to detect this.  Also, some Intel
4239    # versions had trouble with output in subdirs
4240    am__obj=sub/conftest.${OBJEXT-o}
4241    am__minus_obj="-o $am__obj"
4242    case $depmode in
4243    gcc)
4244      # This depmode causes a compiler race in universal mode.
4245      test "$am__universal" = false || continue
4246      ;;
4247    nosideeffect)
4248      # after this tag, mechanisms are not by side-effect, so they'll
4249      # only be used when explicitly requested
4250      if test "x$enable_dependency_tracking" = xyes; then
4251	continue
4252      else
4253	break
4254      fi
4255      ;;
4256    msvisualcpp | msvcmsys)
4257      # This compiler won't grok `-c -o', but also, the minuso test has
4258      # not run yet.  These depmodes are late enough in the game, and
4259      # so weak that their functioning should not be impacted.
4260      am__obj=conftest.${OBJEXT-o}
4261      am__minus_obj=
4262      ;;
4263    none) break ;;
4264    esac
4265    if depmode=$depmode \
4266       source=sub/conftest.c object=$am__obj \
4267       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269         >/dev/null 2>conftest.err &&
4270       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274      # icc doesn't choke on unknown options, it will just issue warnings
4275      # or remarks (even with -Werror).  So we grep stderr for any message
4276      # that says an option was ignored or not supported.
4277      # When given -MP, icc 7.0 and 7.1 complain thusly:
4278      #   icc: Command line warning: ignoring option '-M'; no argument required
4279      # The diagnosis changed in icc 8.0:
4280      #   icc: Command line remark: option '-MP' not supported
4281      if (grep 'ignoring option' conftest.err ||
4282          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283        am_cv_CCAS_dependencies_compiler_type=$depmode
4284        break
4285      fi
4286    fi
4287  done
4288
4289  cd ..
4290  rm -rf conftest.dir
4291else
4292  am_cv_CCAS_dependencies_compiler_type=none
4293fi
4294
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4297$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4298CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4299
4300 if
4301  test "x$enable_dependency_tracking" != xno \
4302  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4303  am__fastdepCCAS_TRUE=
4304  am__fastdepCCAS_FALSE='#'
4305else
4306  am__fastdepCCAS_TRUE='#'
4307  am__fastdepCCAS_FALSE=
4308fi
4309
4310
4311if test "x$CC" != xcc; then
4312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4313$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4314else
4315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4316$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4317fi
4318set dummy $CC; ac_cc=`$as_echo "$2" |
4319		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4320if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4321  $as_echo_n "(cached) " >&6
4322else
4323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h.  */
4325
4326int
4327main ()
4328{
4329
4330  ;
4331  return 0;
4332}
4333_ACEOF
4334# Make sure it works both with $CC and with simple cc.
4335# We do the test twice because some compilers refuse to overwrite an
4336# existing .o file with -o, though they will create one.
4337ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4338rm -f conftest2.*
4339if { { case "(($ac_try" in
4340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341  *) ac_try_echo=$ac_try;;
4342esac
4343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344$as_echo "$ac_try_echo"; } >&5
4345  (eval "$ac_try") 2>&5
4346  ac_status=$?
4347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348  test $ac_status = 0; } &&
4349   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351  *) ac_try_echo=$ac_try;;
4352esac
4353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354$as_echo "$ac_try_echo"; } >&5
4355  (eval "$ac_try") 2>&5
4356  ac_status=$?
4357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4358  test $ac_status = 0; };
4359then
4360  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4361  if test "x$CC" != xcc; then
4362    # Test first that cc exists at all.
4363    if { ac_try='cc -c conftest.$ac_ext >&5'
4364  { { case "(($ac_try" in
4365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366  *) ac_try_echo=$ac_try;;
4367esac
4368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369$as_echo "$ac_try_echo"; } >&5
4370  (eval "$ac_try") 2>&5
4371  ac_status=$?
4372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373  test $ac_status = 0; }; }; then
4374      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4375      rm -f conftest2.*
4376      if { { case "(($ac_try" in
4377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378  *) ac_try_echo=$ac_try;;
4379esac
4380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381$as_echo "$ac_try_echo"; } >&5
4382  (eval "$ac_try") 2>&5
4383  ac_status=$?
4384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385  test $ac_status = 0; } &&
4386	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388  *) ac_try_echo=$ac_try;;
4389esac
4390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391$as_echo "$ac_try_echo"; } >&5
4392  (eval "$ac_try") 2>&5
4393  ac_status=$?
4394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395  test $ac_status = 0; };
4396      then
4397	# cc works too.
4398	:
4399      else
4400	# cc exists but doesn't like -o.
4401	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4402      fi
4403    fi
4404  fi
4405else
4406  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4407fi
4408rm -f core conftest*
4409
4410fi
4411if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4413$as_echo "yes" >&6; }
4414else
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417
4418$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4419
4420fi
4421
4422# FIXME: we rely on the cache variable name because
4423# there is no other way.
4424set dummy $CC
4425am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4426eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4427if test "$am_t" != yes; then
4428   # Losing compiler, so override with the script.
4429   # FIXME: It is wrong to rewrite CC.
4430   # But if we don't then we get into trouble of one sort or another.
4431   # A longer-term fix would be to have automake use am__CC in this case,
4432   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4433   CC="$am_aux_dir/compile $CC"
4434fi
4435
4436
4437case `pwd` in
4438  *\ * | *\	*)
4439    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4440$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4441esac
4442
4443
4444
4445macro_version='2.2.7a'
4446macro_revision='1.3134'
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460ltmain="$ac_aux_dir/ltmain.sh"
4461
4462# Backslashify metacharacters that are still active within
4463# double-quoted strings.
4464sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4465
4466# Same as above, but do not quote variable references.
4467double_quote_subst='s/\(["`\\]\)/\\\1/g'
4468
4469# Sed substitution to delay expansion of an escaped shell variable in a
4470# double_quote_subst'ed string.
4471delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4472
4473# Sed substitution to delay expansion of an escaped single quote.
4474delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4475
4476# Sed substitution to avoid accidental globbing in evaled expressions
4477no_glob_subst='s/\*/\\\*/g'
4478
4479ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4480ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4481ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4484$as_echo_n "checking how to print strings... " >&6; }
4485# Test print first, because it will be a builtin if present.
4486if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4487   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4488  ECHO='print -r --'
4489elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4490  ECHO='printf %s\n'
4491else
4492  # Use this function as a fallback that always works.
4493  func_fallback_echo ()
4494  {
4495    eval 'cat <<_LTECHO_EOF
4496$1
4497_LTECHO_EOF'
4498  }
4499  ECHO='func_fallback_echo'
4500fi
4501
4502# func_echo_all arg...
4503# Invoke $ECHO with all args, space-separated.
4504func_echo_all ()
4505{
4506    $ECHO ""
4507}
4508
4509case "$ECHO" in
4510  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4511$as_echo "printf" >&6; } ;;
4512  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4513$as_echo "print -r" >&6; } ;;
4514  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4515$as_echo "cat" >&6; } ;;
4516esac
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4532$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4533if test "${ac_cv_path_SED+set}" = set; then :
4534  $as_echo_n "(cached) " >&6
4535else
4536            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4537     for ac_i in 1 2 3 4 5 6 7; do
4538       ac_script="$ac_script$as_nl$ac_script"
4539     done
4540     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4541     { ac_script=; unset ac_script;}
4542     if test -z "$SED"; then
4543  ac_path_SED_found=false
4544  # Loop through the user's path and test for each of PROGNAME-LIST
4545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548  IFS=$as_save_IFS
4549  test -z "$as_dir" && as_dir=.
4550    for ac_prog in sed gsed; do
4551    for ac_exec_ext in '' $ac_executable_extensions; do
4552      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4553      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4554# Check for GNU ac_path_SED and select it if it is found.
4555  # Check for GNU $ac_path_SED
4556case `"$ac_path_SED" --version 2>&1` in
4557*GNU*)
4558  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4559*)
4560  ac_count=0
4561  $as_echo_n 0123456789 >"conftest.in"
4562  while :
4563  do
4564    cat "conftest.in" "conftest.in" >"conftest.tmp"
4565    mv "conftest.tmp" "conftest.in"
4566    cp "conftest.in" "conftest.nl"
4567    $as_echo '' >> "conftest.nl"
4568    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570    as_fn_arith $ac_count + 1 && ac_count=$as_val
4571    if test $ac_count -gt ${ac_path_SED_max-0}; then
4572      # Best one so far, save it but keep looking for a better one
4573      ac_cv_path_SED="$ac_path_SED"
4574      ac_path_SED_max=$ac_count
4575    fi
4576    # 10*(2^10) chars as input seems more than enough
4577    test $ac_count -gt 10 && break
4578  done
4579  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580esac
4581
4582      $ac_path_SED_found && break 3
4583    done
4584  done
4585  done
4586IFS=$as_save_IFS
4587  if test -z "$ac_cv_path_SED"; then
4588    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4589  fi
4590else
4591  ac_cv_path_SED=$SED
4592fi
4593
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4596$as_echo "$ac_cv_path_SED" >&6; }
4597 SED="$ac_cv_path_SED"
4598  rm -f conftest.sed
4599
4600test -z "$SED" && SED=sed
4601Xsed="$SED -e 1s/^X//"
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615if test "${ac_cv_path_GREP+set}" = set; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  if test -z "$GREP"; then
4619  ac_path_GREP_found=false
4620  # Loop through the user's path and test for each of PROGNAME-LIST
4621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626    for ac_prog in grep ggrep; do
4627    for ac_exec_ext in '' $ac_executable_extensions; do
4628      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4630# Check for GNU ac_path_GREP and select it if it is found.
4631  # Check for GNU $ac_path_GREP
4632case `"$ac_path_GREP" --version 2>&1` in
4633*GNU*)
4634  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4635*)
4636  ac_count=0
4637  $as_echo_n 0123456789 >"conftest.in"
4638  while :
4639  do
4640    cat "conftest.in" "conftest.in" >"conftest.tmp"
4641    mv "conftest.tmp" "conftest.in"
4642    cp "conftest.in" "conftest.nl"
4643    $as_echo 'GREP' >> "conftest.nl"
4644    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646    as_fn_arith $ac_count + 1 && ac_count=$as_val
4647    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648      # Best one so far, save it but keep looking for a better one
4649      ac_cv_path_GREP="$ac_path_GREP"
4650      ac_path_GREP_max=$ac_count
4651    fi
4652    # 10*(2^10) chars as input seems more than enough
4653    test $ac_count -gt 10 && break
4654  done
4655  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656esac
4657
4658      $ac_path_GREP_found && break 3
4659    done
4660  done
4661  done
4662IFS=$as_save_IFS
4663  if test -z "$ac_cv_path_GREP"; then
4664    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665  fi
4666else
4667  ac_cv_path_GREP=$GREP
4668fi
4669
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672$as_echo "$ac_cv_path_GREP" >&6; }
4673 GREP="$ac_cv_path_GREP"
4674
4675
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677$as_echo_n "checking for egrep... " >&6; }
4678if test "${ac_cv_path_EGREP+set}" = set; then :
4679  $as_echo_n "(cached) " >&6
4680else
4681  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682   then ac_cv_path_EGREP="$GREP -E"
4683   else
4684     if test -z "$EGREP"; then
4685  ac_path_EGREP_found=false
4686  # Loop through the user's path and test for each of PROGNAME-LIST
4687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689do
4690  IFS=$as_save_IFS
4691  test -z "$as_dir" && as_dir=.
4692    for ac_prog in egrep; do
4693    for ac_exec_ext in '' $ac_executable_extensions; do
4694      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4696# Check for GNU ac_path_EGREP and select it if it is found.
4697  # Check for GNU $ac_path_EGREP
4698case `"$ac_path_EGREP" --version 2>&1` in
4699*GNU*)
4700  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701*)
4702  ac_count=0
4703  $as_echo_n 0123456789 >"conftest.in"
4704  while :
4705  do
4706    cat "conftest.in" "conftest.in" >"conftest.tmp"
4707    mv "conftest.tmp" "conftest.in"
4708    cp "conftest.in" "conftest.nl"
4709    $as_echo 'EGREP' >> "conftest.nl"
4710    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712    as_fn_arith $ac_count + 1 && ac_count=$as_val
4713    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714      # Best one so far, save it but keep looking for a better one
4715      ac_cv_path_EGREP="$ac_path_EGREP"
4716      ac_path_EGREP_max=$ac_count
4717    fi
4718    # 10*(2^10) chars as input seems more than enough
4719    test $ac_count -gt 10 && break
4720  done
4721  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722esac
4723
4724      $ac_path_EGREP_found && break 3
4725    done
4726  done
4727  done
4728IFS=$as_save_IFS
4729  if test -z "$ac_cv_path_EGREP"; then
4730    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731  fi
4732else
4733  ac_cv_path_EGREP=$EGREP
4734fi
4735
4736   fi
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739$as_echo "$ac_cv_path_EGREP" >&6; }
4740 EGREP="$ac_cv_path_EGREP"
4741
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4744$as_echo_n "checking for fgrep... " >&6; }
4745if test "${ac_cv_path_FGREP+set}" = set; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4749   then ac_cv_path_FGREP="$GREP -F"
4750   else
4751     if test -z "$FGREP"; then
4752  ac_path_FGREP_found=false
4753  # Loop through the user's path and test for each of PROGNAME-LIST
4754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756do
4757  IFS=$as_save_IFS
4758  test -z "$as_dir" && as_dir=.
4759    for ac_prog in fgrep; do
4760    for ac_exec_ext in '' $ac_executable_extensions; do
4761      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4762      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4763# Check for GNU ac_path_FGREP and select it if it is found.
4764  # Check for GNU $ac_path_FGREP
4765case `"$ac_path_FGREP" --version 2>&1` in
4766*GNU*)
4767  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4768*)
4769  ac_count=0
4770  $as_echo_n 0123456789 >"conftest.in"
4771  while :
4772  do
4773    cat "conftest.in" "conftest.in" >"conftest.tmp"
4774    mv "conftest.tmp" "conftest.in"
4775    cp "conftest.in" "conftest.nl"
4776    $as_echo 'FGREP' >> "conftest.nl"
4777    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779    as_fn_arith $ac_count + 1 && ac_count=$as_val
4780    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4781      # Best one so far, save it but keep looking for a better one
4782      ac_cv_path_FGREP="$ac_path_FGREP"
4783      ac_path_FGREP_max=$ac_count
4784    fi
4785    # 10*(2^10) chars as input seems more than enough
4786    test $ac_count -gt 10 && break
4787  done
4788  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789esac
4790
4791      $ac_path_FGREP_found && break 3
4792    done
4793  done
4794  done
4795IFS=$as_save_IFS
4796  if test -z "$ac_cv_path_FGREP"; then
4797    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798  fi
4799else
4800  ac_cv_path_FGREP=$FGREP
4801fi
4802
4803   fi
4804fi
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4806$as_echo "$ac_cv_path_FGREP" >&6; }
4807 FGREP="$ac_cv_path_FGREP"
4808
4809
4810test -z "$GREP" && GREP=grep
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830# Check whether --with-gnu-ld was given.
4831if test "${with_gnu_ld+set}" = set; then :
4832  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4833else
4834  with_gnu_ld=no
4835fi
4836
4837ac_prog=ld
4838if test "$GCC" = yes; then
4839  # Check if gcc -print-prog-name=ld gives a path.
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4841$as_echo_n "checking for ld used by $CC... " >&6; }
4842  case $host in
4843  *-*-mingw*)
4844    # gcc leaves a trailing carriage return which upsets mingw
4845    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4846  *)
4847    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4848  esac
4849  case $ac_prog in
4850    # Accept absolute paths.
4851    [\\/]* | ?:[\\/]*)
4852      re_direlt='/[^/][^/]*/\.\./'
4853      # Canonicalize the pathname of ld
4854      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4855      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4856	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4857      done
4858      test -z "$LD" && LD="$ac_prog"
4859      ;;
4860  "")
4861    # If it fails, then pretend we aren't using GCC.
4862    ac_prog=ld
4863    ;;
4864  *)
4865    # If it is relative, then search for the first ld in PATH.
4866    with_gnu_ld=unknown
4867    ;;
4868  esac
4869elif test "$with_gnu_ld" = yes; then
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4871$as_echo_n "checking for GNU ld... " >&6; }
4872else
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4874$as_echo_n "checking for non-GNU ld... " >&6; }
4875fi
4876if test "${lt_cv_path_LD+set}" = set; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  if test -z "$LD"; then
4880  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4881  for ac_dir in $PATH; do
4882    IFS="$lt_save_ifs"
4883    test -z "$ac_dir" && ac_dir=.
4884    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4885      lt_cv_path_LD="$ac_dir/$ac_prog"
4886      # Check to see if the program is GNU ld.  I'd rather use --version,
4887      # but apparently some variants of GNU ld only accept -v.
4888      # Break only if it was the GNU/non-GNU ld that we prefer.
4889      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4890      *GNU* | *'with BFD'*)
4891	test "$with_gnu_ld" != no && break
4892	;;
4893      *)
4894	test "$with_gnu_ld" != yes && break
4895	;;
4896      esac
4897    fi
4898  done
4899  IFS="$lt_save_ifs"
4900else
4901  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4902fi
4903fi
4904
4905LD="$lt_cv_path_LD"
4906if test -n "$LD"; then
4907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4908$as_echo "$LD" >&6; }
4909else
4910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
4912fi
4913test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4915$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4916if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4920case `$LD -v 2>&1 </dev/null` in
4921*GNU* | *'with BFD'*)
4922  lt_cv_prog_gnu_ld=yes
4923  ;;
4924*)
4925  lt_cv_prog_gnu_ld=no
4926  ;;
4927esac
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4930$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4931with_gnu_ld=$lt_cv_prog_gnu_ld
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4942$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4943if test "${lt_cv_path_NM+set}" = set; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  if test -n "$NM"; then
4947  # Let the user override the test.
4948  lt_cv_path_NM="$NM"
4949else
4950  lt_nm_to_check="${ac_tool_prefix}nm"
4951  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4952    lt_nm_to_check="$lt_nm_to_check nm"
4953  fi
4954  for lt_tmp_nm in $lt_nm_to_check; do
4955    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4957      IFS="$lt_save_ifs"
4958      test -z "$ac_dir" && ac_dir=.
4959      tmp_nm="$ac_dir/$lt_tmp_nm"
4960      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4961	# Check to see if the nm accepts a BSD-compat flag.
4962	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4963	#   nm: unknown option "B" ignored
4964	# Tru64's nm complains that /dev/null is an invalid object file
4965	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4966	*/dev/null* | *'Invalid file or object type'*)
4967	  lt_cv_path_NM="$tmp_nm -B"
4968	  break
4969	  ;;
4970	*)
4971	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4972	  */dev/null*)
4973	    lt_cv_path_NM="$tmp_nm -p"
4974	    break
4975	    ;;
4976	  *)
4977	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978	    continue # so that we can try to find one that supports BSD flags
4979	    ;;
4980	  esac
4981	  ;;
4982	esac
4983      fi
4984    done
4985    IFS="$lt_save_ifs"
4986  done
4987  : ${lt_cv_path_NM=no}
4988fi
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991$as_echo "$lt_cv_path_NM" >&6; }
4992if test "$lt_cv_path_NM" != "no"; then
4993  NM="$lt_cv_path_NM"
4994else
4995  # Didn't find any BSD compatible name lister, look for dumpbin.
4996  if test -n "$DUMPBIN"; then :
4997    # Let the user override the test.
4998  else
4999    if test -n "$ac_tool_prefix"; then
5000  for ac_prog in dumpbin "link -dump"
5001  do
5002    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -n "$DUMPBIN"; then
5010  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017    for ac_exec_ext in '' $ac_executable_extensions; do
5018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021    break 2
5022  fi
5023done
5024  done
5025IFS=$as_save_IFS
5026
5027fi
5028fi
5029DUMPBIN=$ac_cv_prog_DUMPBIN
5030if test -n "$DUMPBIN"; then
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032$as_echo "$DUMPBIN" >&6; }
5033else
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039    test -n "$DUMPBIN" && break
5040  done
5041fi
5042if test -z "$DUMPBIN"; then
5043  ac_ct_DUMPBIN=$DUMPBIN
5044  for ac_prog in dumpbin "link -dump"
5045do
5046  # Extract the first word of "$ac_prog", so it can be a program name with args.
5047set dummy $ac_prog; ac_word=$2
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049$as_echo_n "checking for $ac_word... " >&6; }
5050if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  if test -n "$ac_ct_DUMPBIN"; then
5054  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059  IFS=$as_save_IFS
5060  test -z "$as_dir" && as_dir=.
5061    for ac_exec_ext in '' $ac_executable_extensions; do
5062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065    break 2
5066  fi
5067done
5068  done
5069IFS=$as_save_IFS
5070
5071fi
5072fi
5073ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074if test -n "$ac_ct_DUMPBIN"; then
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076$as_echo "$ac_ct_DUMPBIN" >&6; }
5077else
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079$as_echo "no" >&6; }
5080fi
5081
5082
5083  test -n "$ac_ct_DUMPBIN" && break
5084done
5085
5086  if test "x$ac_ct_DUMPBIN" = x; then
5087    DUMPBIN=":"
5088  else
5089    case $cross_compiling:$ac_tool_warned in
5090yes:)
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093ac_tool_warned=yes ;;
5094esac
5095    DUMPBIN=$ac_ct_DUMPBIN
5096  fi
5097fi
5098
5099    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5100    *COFF*)
5101      DUMPBIN="$DUMPBIN -symbols"
5102      ;;
5103    *)
5104      DUMPBIN=:
5105      ;;
5106    esac
5107  fi
5108
5109  if test "$DUMPBIN" != ":"; then
5110    NM="$DUMPBIN"
5111  fi
5112fi
5113test -z "$NM" && NM=nm
5114
5115
5116
5117
5118
5119
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122if test "${lt_cv_nm_interface+set}" = set; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  lt_cv_nm_interface="BSD nm"
5126  echo "int some_variable = 0;" > conftest.$ac_ext
5127  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128  (eval "$ac_compile" 2>conftest.err)
5129  cat conftest.err >&5
5130  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132  cat conftest.err >&5
5133  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134  cat conftest.out >&5
5135  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136    lt_cv_nm_interface="MS dumpbin"
5137  fi
5138  rm -f conftest*
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141$as_echo "$lt_cv_nm_interface" >&6; }
5142
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5144$as_echo_n "checking whether ln -s works... " >&6; }
5145LN_S=$as_ln_s
5146if test "$LN_S" = "ln -s"; then
5147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148$as_echo "yes" >&6; }
5149else
5150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5151$as_echo "no, using $LN_S" >&6; }
5152fi
5153
5154# find the maximum length of command line arguments
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5156$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5157if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160    i=0
5161  teststring="ABCD"
5162
5163  case $build_os in
5164  msdosdjgpp*)
5165    # On DJGPP, this test can blow up pretty badly due to problems in libc
5166    # (any single argument exceeding 2000 bytes causes a buffer overrun
5167    # during glob expansion).  Even if it were fixed, the result of this
5168    # check would be larger than it should be.
5169    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5170    ;;
5171
5172  gnu*)
5173    # Under GNU Hurd, this test is not required because there is
5174    # no limit to the length of command line arguments.
5175    # Libtool will interpret -1 as no limit whatsoever
5176    lt_cv_sys_max_cmd_len=-1;
5177    ;;
5178
5179  cygwin* | mingw* | cegcc*)
5180    # On Win9x/ME, this test blows up -- it succeeds, but takes
5181    # about 5 minutes as the teststring grows exponentially.
5182    # Worse, since 9x/ME are not pre-emptively multitasking,
5183    # you end up with a "frozen" computer, even though with patience
5184    # the test eventually succeeds (with a max line length of 256k).
5185    # Instead, let's just punt: use the minimum linelength reported by
5186    # all of the supported platforms: 8192 (on NT/2K/XP).
5187    lt_cv_sys_max_cmd_len=8192;
5188    ;;
5189
5190  mint*)
5191    # On MiNT this can take a long time and run out of memory.
5192    lt_cv_sys_max_cmd_len=8192;
5193    ;;
5194
5195  amigaos*)
5196    # On AmigaOS with pdksh, this test takes hours, literally.
5197    # So we just punt and use a minimum line length of 8192.
5198    lt_cv_sys_max_cmd_len=8192;
5199    ;;
5200
5201  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5202    # This has been around since 386BSD, at least.  Likely further.
5203    if test -x /sbin/sysctl; then
5204      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5205    elif test -x /usr/sbin/sysctl; then
5206      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5207    else
5208      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5209    fi
5210    # And add a safety zone
5211    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5212    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5213    ;;
5214
5215  interix*)
5216    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5217    lt_cv_sys_max_cmd_len=196608
5218    ;;
5219
5220  osf*)
5221    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5222    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5223    # nice to cause kernel panics so lets avoid the loop below.
5224    # First set a reasonable default.
5225    lt_cv_sys_max_cmd_len=16384
5226    #
5227    if test -x /sbin/sysconfig; then
5228      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5229        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5230      esac
5231    fi
5232    ;;
5233  sco3.2v5*)
5234    lt_cv_sys_max_cmd_len=102400
5235    ;;
5236  sysv5* | sco5v6* | sysv4.2uw2*)
5237    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5238    if test -n "$kargmax"; then
5239      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5240    else
5241      lt_cv_sys_max_cmd_len=32768
5242    fi
5243    ;;
5244  *)
5245    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5246    if test -n "$lt_cv_sys_max_cmd_len"; then
5247      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5248      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5249    else
5250      # Make teststring a little bigger before we do anything with it.
5251      # a 1K string should be a reasonable start.
5252      for i in 1 2 3 4 5 6 7 8 ; do
5253        teststring=$teststring$teststring
5254      done
5255      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5256      # If test is not a shell built-in, we'll probably end up computing a
5257      # maximum length that is only half of the actual maximum length, but
5258      # we can't tell.
5259      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5260	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5261	      test $i != 17 # 1/2 MB should be enough
5262      do
5263        i=`expr $i + 1`
5264        teststring=$teststring$teststring
5265      done
5266      # Only check the string length outside the loop.
5267      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5268      teststring=
5269      # Add a significant safety factor because C++ compilers can tack on
5270      # massive amounts of additional arguments before passing them to the
5271      # linker.  It appears as though 1/2 is a usable value.
5272      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5273    fi
5274    ;;
5275  esac
5276
5277fi
5278
5279if test -n $lt_cv_sys_max_cmd_len ; then
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5281$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5282else
5283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5284$as_echo "none" >&6; }
5285fi
5286max_cmd_len=$lt_cv_sys_max_cmd_len
5287
5288
5289
5290
5291
5292
5293: ${CP="cp -f"}
5294: ${MV="mv -f"}
5295: ${RM="rm -f"}
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5298$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5299# Try some XSI features
5300xsi_shell=no
5301( _lt_dummy="a/b/c"
5302  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5303      = c,a/b,, \
5304    && eval 'test $(( 1 + 1 )) -eq 2 \
5305    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5306  && xsi_shell=yes
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5308$as_echo "$xsi_shell" >&6; }
5309
5310
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5312$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5313lt_shell_append=no
5314( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5315    >/dev/null 2>&1 \
5316  && lt_shell_append=yes
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5318$as_echo "$lt_shell_append" >&6; }
5319
5320
5321if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5322  lt_unset=unset
5323else
5324  lt_unset=false
5325fi
5326
5327
5328
5329
5330
5331# test EBCDIC or ASCII
5332case `echo X|tr X '\101'` in
5333 A) # ASCII based system
5334    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5335  lt_SP2NL='tr \040 \012'
5336  lt_NL2SP='tr \015\012 \040\040'
5337  ;;
5338 *) # EBCDIC based system
5339  lt_SP2NL='tr \100 \n'
5340  lt_NL2SP='tr \r\n \100\100'
5341  ;;
5342esac
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5353$as_echo_n "checking for $LD option to reload object files... " >&6; }
5354if test "${lt_cv_ld_reload_flag+set}" = set; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  lt_cv_ld_reload_flag='-r'
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5360$as_echo "$lt_cv_ld_reload_flag" >&6; }
5361reload_flag=$lt_cv_ld_reload_flag
5362case $reload_flag in
5363"" | " "*) ;;
5364*) reload_flag=" $reload_flag" ;;
5365esac
5366reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367case $host_os in
5368  darwin*)
5369    if test "$GCC" = yes; then
5370      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5371    else
5372      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5373    fi
5374    ;;
5375esac
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385if test -n "$ac_tool_prefix"; then
5386  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5387set dummy ${ac_tool_prefix}objdump; ac_word=$2
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389$as_echo_n "checking for $ac_word... " >&6; }
5390if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  if test -n "$OBJDUMP"; then
5394  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5395else
5396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399  IFS=$as_save_IFS
5400  test -z "$as_dir" && as_dir=.
5401    for ac_exec_ext in '' $ac_executable_extensions; do
5402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405    break 2
5406  fi
5407done
5408  done
5409IFS=$as_save_IFS
5410
5411fi
5412fi
5413OBJDUMP=$ac_cv_prog_OBJDUMP
5414if test -n "$OBJDUMP"; then
5415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5416$as_echo "$OBJDUMP" >&6; }
5417else
5418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419$as_echo "no" >&6; }
5420fi
5421
5422
5423fi
5424if test -z "$ac_cv_prog_OBJDUMP"; then
5425  ac_ct_OBJDUMP=$OBJDUMP
5426  # Extract the first word of "objdump", so it can be a program name with args.
5427set dummy objdump; ac_word=$2
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429$as_echo_n "checking for $ac_word... " >&6; }
5430if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433  if test -n "$ac_ct_OBJDUMP"; then
5434  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5435else
5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439  IFS=$as_save_IFS
5440  test -z "$as_dir" && as_dir=.
5441    for ac_exec_ext in '' $ac_executable_extensions; do
5442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445    break 2
5446  fi
5447done
5448  done
5449IFS=$as_save_IFS
5450
5451fi
5452fi
5453ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5454if test -n "$ac_ct_OBJDUMP"; then
5455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5456$as_echo "$ac_ct_OBJDUMP" >&6; }
5457else
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459$as_echo "no" >&6; }
5460fi
5461
5462  if test "x$ac_ct_OBJDUMP" = x; then
5463    OBJDUMP="false"
5464  else
5465    case $cross_compiling:$ac_tool_warned in
5466yes:)
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469ac_tool_warned=yes ;;
5470esac
5471    OBJDUMP=$ac_ct_OBJDUMP
5472  fi
5473else
5474  OBJDUMP="$ac_cv_prog_OBJDUMP"
5475fi
5476
5477test -z "$OBJDUMP" && OBJDUMP=objdump
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5488$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5489if test "${lt_cv_deplibs_check_method+set}" = set; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  lt_cv_file_magic_cmd='$MAGIC_CMD'
5493lt_cv_file_magic_test_file=
5494lt_cv_deplibs_check_method='unknown'
5495# Need to set the preceding variable on all platforms that support
5496# interlibrary dependencies.
5497# 'none' -- dependencies not supported.
5498# `unknown' -- same as none, but documents that we really don't know.
5499# 'pass_all' -- all dependencies passed with no checks.
5500# 'test_compile' -- check by making test program.
5501# 'file_magic [[regex]]' -- check by looking for files in library path
5502# which responds to the $file_magic_cmd with a given extended regex.
5503# If you have `file' or equivalent on your system and you're not sure
5504# whether `pass_all' will *always* work, you probably want this one.
5505
5506case $host_os in
5507aix[4-9]*)
5508  lt_cv_deplibs_check_method=pass_all
5509  ;;
5510
5511beos*)
5512  lt_cv_deplibs_check_method=pass_all
5513  ;;
5514
5515bsdi[45]*)
5516  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5517  lt_cv_file_magic_cmd='/usr/bin/file -L'
5518  lt_cv_file_magic_test_file=/shlib/libc.so
5519  ;;
5520
5521cygwin*)
5522  # func_win32_libid is a shell function defined in ltmain.sh
5523  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5524  lt_cv_file_magic_cmd='func_win32_libid'
5525  ;;
5526
5527mingw* | pw32*)
5528  # Base MSYS/MinGW do not provide the 'file' command needed by
5529  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5530  # unless we find 'file', for example because we are cross-compiling.
5531  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5532  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5533    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5534    lt_cv_file_magic_cmd='func_win32_libid'
5535  else
5536    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5537    lt_cv_file_magic_cmd='$OBJDUMP -f'
5538  fi
5539  ;;
5540
5541cegcc*)
5542  # use the weaker test based on 'objdump'. See mingw*.
5543  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5544  lt_cv_file_magic_cmd='$OBJDUMP -f'
5545  ;;
5546
5547darwin* | rhapsody*)
5548  lt_cv_deplibs_check_method=pass_all
5549  ;;
5550
5551freebsd* | dragonfly*)
5552  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5553    case $host_cpu in
5554    i*86 )
5555      # Not sure whether the presence of OpenBSD here was a mistake.
5556      # Let's accept both of them until this is cleared up.
5557      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5558      lt_cv_file_magic_cmd=/usr/bin/file
5559      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5560      ;;
5561    esac
5562  else
5563    lt_cv_deplibs_check_method=pass_all
5564  fi
5565  ;;
5566
5567gnu*)
5568  lt_cv_deplibs_check_method=pass_all
5569  ;;
5570
5571haiku*)
5572  lt_cv_deplibs_check_method=pass_all
5573  ;;
5574
5575hpux10.20* | hpux11*)
5576  lt_cv_file_magic_cmd=/usr/bin/file
5577  case $host_cpu in
5578  ia64*)
5579    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5580    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5581    ;;
5582  hppa*64*)
5583    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]'
5584    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5585    ;;
5586  *)
5587    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5588    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5589    ;;
5590  esac
5591  ;;
5592
5593interix[3-9]*)
5594  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5595  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5596  ;;
5597
5598irix5* | irix6* | nonstopux*)
5599  case $LD in
5600  *-32|*"-32 ") libmagic=32-bit;;
5601  *-n32|*"-n32 ") libmagic=N32;;
5602  *-64|*"-64 ") libmagic=64-bit;;
5603  *) libmagic=never-match;;
5604  esac
5605  lt_cv_deplibs_check_method=pass_all
5606  ;;
5607
5608# This must be Linux ELF.
5609linux* | k*bsd*-gnu | kopensolaris*-gnu)
5610  lt_cv_deplibs_check_method=pass_all
5611  ;;
5612
5613netbsd*)
5614  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5615    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5616  else
5617    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5618  fi
5619  ;;
5620
5621newos6*)
5622  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5623  lt_cv_file_magic_cmd=/usr/bin/file
5624  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5625  ;;
5626
5627*nto* | *qnx*)
5628  lt_cv_deplibs_check_method=pass_all
5629  ;;
5630
5631openbsd*)
5632  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5634  else
5635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636  fi
5637  ;;
5638
5639osf3* | osf4* | osf5*)
5640  lt_cv_deplibs_check_method=pass_all
5641  ;;
5642
5643rdos*)
5644  lt_cv_deplibs_check_method=pass_all
5645  ;;
5646
5647solaris*)
5648  lt_cv_deplibs_check_method=pass_all
5649  ;;
5650
5651sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5652  lt_cv_deplibs_check_method=pass_all
5653  ;;
5654
5655sysv4 | sysv4.3*)
5656  case $host_vendor in
5657  motorola)
5658    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]'
5659    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5660    ;;
5661  ncr)
5662    lt_cv_deplibs_check_method=pass_all
5663    ;;
5664  sequent)
5665    lt_cv_file_magic_cmd='/bin/file'
5666    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5667    ;;
5668  sni)
5669    lt_cv_file_magic_cmd='/bin/file'
5670    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671    lt_cv_file_magic_test_file=/lib/libc.so
5672    ;;
5673  siemens)
5674    lt_cv_deplibs_check_method=pass_all
5675    ;;
5676  pc)
5677    lt_cv_deplibs_check_method=pass_all
5678    ;;
5679  esac
5680  ;;
5681
5682tpf*)
5683  lt_cv_deplibs_check_method=pass_all
5684  ;;
5685esac
5686
5687fi
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5689$as_echo "$lt_cv_deplibs_check_method" >&6; }
5690file_magic_cmd=$lt_cv_file_magic_cmd
5691deplibs_check_method=$lt_cv_deplibs_check_method
5692test -z "$deplibs_check_method" && deplibs_check_method=unknown
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705if test -n "$ac_tool_prefix"; then
5706  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5707set dummy ${ac_tool_prefix}ar; ac_word=$2
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709$as_echo_n "checking for $ac_word... " >&6; }
5710if test "${ac_cv_prog_AR+set}" = set; then :
5711  $as_echo_n "(cached) " >&6
5712else
5713  if test -n "$AR"; then
5714  ac_cv_prog_AR="$AR" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719  IFS=$as_save_IFS
5720  test -z "$as_dir" && as_dir=.
5721    for ac_exec_ext in '' $ac_executable_extensions; do
5722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723    ac_cv_prog_AR="${ac_tool_prefix}ar"
5724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725    break 2
5726  fi
5727done
5728  done
5729IFS=$as_save_IFS
5730
5731fi
5732fi
5733AR=$ac_cv_prog_AR
5734if test -n "$AR"; then
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5736$as_echo "$AR" >&6; }
5737else
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; }
5740fi
5741
5742
5743fi
5744if test -z "$ac_cv_prog_AR"; then
5745  ac_ct_AR=$AR
5746  # Extract the first word of "ar", so it can be a program name with args.
5747set dummy ar; ac_word=$2
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749$as_echo_n "checking for $ac_word... " >&6; }
5750if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  if test -n "$ac_ct_AR"; then
5754  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759  IFS=$as_save_IFS
5760  test -z "$as_dir" && as_dir=.
5761    for ac_exec_ext in '' $ac_executable_extensions; do
5762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763    ac_cv_prog_ac_ct_AR="ar"
5764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765    break 2
5766  fi
5767done
5768  done
5769IFS=$as_save_IFS
5770
5771fi
5772fi
5773ac_ct_AR=$ac_cv_prog_ac_ct_AR
5774if test -n "$ac_ct_AR"; then
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5776$as_echo "$ac_ct_AR" >&6; }
5777else
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
5780fi
5781
5782  if test "x$ac_ct_AR" = x; then
5783    AR="false"
5784  else
5785    case $cross_compiling:$ac_tool_warned in
5786yes:)
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789ac_tool_warned=yes ;;
5790esac
5791    AR=$ac_ct_AR
5792  fi
5793else
5794  AR="$ac_cv_prog_AR"
5795fi
5796
5797test -z "$AR" && AR=ar
5798test -z "$AR_FLAGS" && AR_FLAGS=cru
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810if test -n "$ac_tool_prefix"; then
5811  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}strip; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if test "${ac_cv_prog_STRIP+set}" = set; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  if test -n "$STRIP"; then
5819  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826    for ac_exec_ext in '' $ac_executable_extensions; do
5827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833  done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838STRIP=$ac_cv_prog_STRIP
5839if test -n "$STRIP"; then
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5841$as_echo "$STRIP" >&6; }
5842else
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_STRIP"; then
5850  ac_ct_STRIP=$STRIP
5851  # Extract the first word of "strip", so it can be a program name with args.
5852set dummy strip; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  if test -n "$ac_ct_STRIP"; then
5859  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864  IFS=$as_save_IFS
5865  test -z "$as_dir" && as_dir=.
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868    ac_cv_prog_ac_ct_STRIP="strip"
5869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5879if test -n "$ac_ct_STRIP"; then
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5881$as_echo "$ac_ct_STRIP" >&6; }
5882else
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887  if test "x$ac_ct_STRIP" = x; then
5888    STRIP=":"
5889  else
5890    case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896    STRIP=$ac_ct_STRIP
5897  fi
5898else
5899  STRIP="$ac_cv_prog_STRIP"
5900fi
5901
5902test -z "$STRIP" && STRIP=:
5903
5904
5905
5906
5907
5908
5909if test -n "$ac_tool_prefix"; then
5910  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5911set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913$as_echo_n "checking for $ac_word... " >&6; }
5914if test "${ac_cv_prog_RANLIB+set}" = set; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  if test -n "$RANLIB"; then
5918  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925    for ac_exec_ext in '' $ac_executable_extensions; do
5926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932  done
5933IFS=$as_save_IFS
5934
5935fi
5936fi
5937RANLIB=$ac_cv_prog_RANLIB
5938if test -n "$RANLIB"; then
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5940$as_echo "$RANLIB" >&6; }
5941else
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }
5944fi
5945
5946
5947fi
5948if test -z "$ac_cv_prog_RANLIB"; then
5949  ac_ct_RANLIB=$RANLIB
5950  # Extract the first word of "ranlib", so it can be a program name with args.
5951set dummy ranlib; ac_word=$2
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953$as_echo_n "checking for $ac_word... " >&6; }
5954if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  if test -n "$ac_ct_RANLIB"; then
5958  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963  IFS=$as_save_IFS
5964  test -z "$as_dir" && as_dir=.
5965    for ac_exec_ext in '' $ac_executable_extensions; do
5966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967    ac_cv_prog_ac_ct_RANLIB="ranlib"
5968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969    break 2
5970  fi
5971done
5972  done
5973IFS=$as_save_IFS
5974
5975fi
5976fi
5977ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5978if test -n "$ac_ct_RANLIB"; then
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5980$as_echo "$ac_ct_RANLIB" >&6; }
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
5985
5986  if test "x$ac_ct_RANLIB" = x; then
5987    RANLIB=":"
5988  else
5989    case $cross_compiling:$ac_tool_warned in
5990yes:)
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993ac_tool_warned=yes ;;
5994esac
5995    RANLIB=$ac_ct_RANLIB
5996  fi
5997else
5998  RANLIB="$ac_cv_prog_RANLIB"
5999fi
6000
6001test -z "$RANLIB" && RANLIB=:
6002
6003
6004
6005
6006
6007
6008# Determine commands to create old-style static archives.
6009old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6010old_postinstall_cmds='chmod 644 $oldlib'
6011old_postuninstall_cmds=
6012
6013if test -n "$RANLIB"; then
6014  case $host_os in
6015  openbsd*)
6016    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6017    ;;
6018  *)
6019    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6020    ;;
6021  esac
6022  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6023fi
6024
6025case $host_os in
6026  darwin*)
6027    lock_old_archive_extraction=yes ;;
6028  *)
6029    lock_old_archive_extraction=no ;;
6030esac
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070# If no C compiler was specified, use CC.
6071LTCC=${LTCC-"$CC"}
6072
6073# If no C compiler flags were specified, use CFLAGS.
6074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6075
6076# Allow CC to be a program name with arguments.
6077compiler=$CC
6078
6079
6080# Check for command to grab the raw symbol name followed by C symbol from nm.
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6082$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6083if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086
6087# These are sane defaults that work on at least a few old systems.
6088# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6089
6090# Character class describing NM global symbol codes.
6091symcode='[BCDEGRST]'
6092
6093# Regexp to match symbols that can be accessed directly from C.
6094sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6095
6096# Define system-specific variables.
6097case $host_os in
6098aix*)
6099  symcode='[BCDT]'
6100  ;;
6101cygwin* | mingw* | pw32* | cegcc*)
6102  symcode='[ABCDGISTW]'
6103  ;;
6104hpux*)
6105  if test "$host_cpu" = ia64; then
6106    symcode='[ABCDEGRST]'
6107  fi
6108  ;;
6109irix* | nonstopux*)
6110  symcode='[BCDEGRST]'
6111  ;;
6112osf*)
6113  symcode='[BCDEGQRST]'
6114  ;;
6115solaris*)
6116  symcode='[BDRT]'
6117  ;;
6118sco3.2v5*)
6119  symcode='[DT]'
6120  ;;
6121sysv4.2uw2*)
6122  symcode='[DT]'
6123  ;;
6124sysv5* | sco5v6* | unixware* | OpenUNIX*)
6125  symcode='[ABDT]'
6126  ;;
6127sysv4)
6128  symcode='[DFNSTU]'
6129  ;;
6130esac
6131
6132# If we're using GNU nm, then use its standard symbol codes.
6133case `$NM -V 2>&1` in
6134*GNU* | *'with BFD'*)
6135  symcode='[ABCDGIRSTW]' ;;
6136esac
6137
6138# Transform an extracted symbol line into a proper C declaration.
6139# Some systems (esp. on ia64) link data and code symbols differently,
6140# so use this general approach.
6141lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6142
6143# Transform an extracted symbol line into symbol name and symbol address
6144lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6145lt_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'"
6146
6147# Handle CRLF in mingw tool chain
6148opt_cr=
6149case $build_os in
6150mingw*)
6151  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6152  ;;
6153esac
6154
6155# Try without a prefix underscore, then with it.
6156for ac_symprfx in "" "_"; do
6157
6158  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6159  symxfrm="\\1 $ac_symprfx\\2 \\2"
6160
6161  # Write the raw and C identifiers.
6162  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6163    # Fake it for dumpbin and say T for any non-static function
6164    # and D for any global variable.
6165    # Also find C++ and __fastcall symbols from MSVC++,
6166    # which start with @ or ?.
6167    lt_cv_sys_global_symbol_pipe="$AWK '"\
6168"     {last_section=section; section=\$ 3};"\
6169"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6170"     \$ 0!~/External *\|/{next};"\
6171"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6172"     {if(hide[section]) next};"\
6173"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6174"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6175"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6176"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6177"     ' prfx=^$ac_symprfx"
6178  else
6179    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6180  fi
6181
6182  # Check to see that the pipe works correctly.
6183  pipe_works=no
6184
6185  rm -f conftest*
6186  cat > conftest.$ac_ext <<_LT_EOF
6187#ifdef __cplusplus
6188extern "C" {
6189#endif
6190char nm_test_var;
6191void nm_test_func(void);
6192void nm_test_func(void){}
6193#ifdef __cplusplus
6194}
6195#endif
6196int main(){nm_test_var='a';nm_test_func();return(0);}
6197_LT_EOF
6198
6199  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6200  (eval $ac_compile) 2>&5
6201  ac_status=$?
6202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203  test $ac_status = 0; }; then
6204    # Now try to grab the symbols.
6205    nlist=conftest.nm
6206    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6207  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6208  ac_status=$?
6209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210  test $ac_status = 0; } && test -s "$nlist"; then
6211      # Try sorting and uniquifying the output.
6212      if sort "$nlist" | uniq > "$nlist"T; then
6213	mv -f "$nlist"T "$nlist"
6214      else
6215	rm -f "$nlist"T
6216      fi
6217
6218      # Make sure that we snagged all the symbols we need.
6219      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6220	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6221	  cat <<_LT_EOF > conftest.$ac_ext
6222#ifdef __cplusplus
6223extern "C" {
6224#endif
6225
6226_LT_EOF
6227	  # Now generate the symbol file.
6228	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6229
6230	  cat <<_LT_EOF >> conftest.$ac_ext
6231
6232/* The mapping between symbol names and symbols.  */
6233const struct {
6234  const char *name;
6235  void       *address;
6236}
6237lt__PROGRAM__LTX_preloaded_symbols[] =
6238{
6239  { "@PROGRAM@", (void *) 0 },
6240_LT_EOF
6241	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6242	  cat <<\_LT_EOF >> conftest.$ac_ext
6243  {0, (void *) 0}
6244};
6245
6246/* This works around a problem in FreeBSD linker */
6247#ifdef FREEBSD_WORKAROUND
6248static const void *lt_preloaded_setup() {
6249  return lt__PROGRAM__LTX_preloaded_symbols;
6250}
6251#endif
6252
6253#ifdef __cplusplus
6254}
6255#endif
6256_LT_EOF
6257	  # Now try linking the two files.
6258	  mv conftest.$ac_objext conftstm.$ac_objext
6259	  lt_save_LIBS="$LIBS"
6260	  lt_save_CFLAGS="$CFLAGS"
6261	  LIBS="conftstm.$ac_objext"
6262	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6263	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6264  (eval $ac_link) 2>&5
6265  ac_status=$?
6266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6268	    pipe_works=yes
6269	  fi
6270	  LIBS="$lt_save_LIBS"
6271	  CFLAGS="$lt_save_CFLAGS"
6272	else
6273	  echo "cannot find nm_test_func in $nlist" >&5
6274	fi
6275      else
6276	echo "cannot find nm_test_var in $nlist" >&5
6277      fi
6278    else
6279      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6280    fi
6281  else
6282    echo "$progname: failed program was:" >&5
6283    cat conftest.$ac_ext >&5
6284  fi
6285  rm -rf conftest* conftst*
6286
6287  # Do not use the global_symbol_pipe unless it works.
6288  if test "$pipe_works" = yes; then
6289    break
6290  else
6291    lt_cv_sys_global_symbol_pipe=
6292  fi
6293done
6294
6295fi
6296
6297if test -z "$lt_cv_sys_global_symbol_pipe"; then
6298  lt_cv_sys_global_symbol_to_cdecl=
6299fi
6300if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6302$as_echo "failed" >&6; }
6303else
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6305$as_echo "ok" >&6; }
6306fi
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330# Check whether --enable-libtool-lock was given.
6331if test "${enable_libtool_lock+set}" = set; then :
6332  enableval=$enable_libtool_lock;
6333fi
6334
6335test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6336
6337# Some flags need to be propagated to the compiler or linker for good
6338# libtool support.
6339case $host in
6340ia64-*-hpux*)
6341  # Find out which ABI we are using.
6342  echo 'int i;' > conftest.$ac_ext
6343  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344  (eval $ac_compile) 2>&5
6345  ac_status=$?
6346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347  test $ac_status = 0; }; then
6348    case `/usr/bin/file conftest.$ac_objext` in
6349      *ELF-32*)
6350	HPUX_IA64_MODE="32"
6351	;;
6352      *ELF-64*)
6353	HPUX_IA64_MODE="64"
6354	;;
6355    esac
6356  fi
6357  rm -rf conftest*
6358  ;;
6359*-*-irix6*)
6360  # Find out which ABI we are using.
6361  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6362  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363  (eval $ac_compile) 2>&5
6364  ac_status=$?
6365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366  test $ac_status = 0; }; then
6367    if test "$lt_cv_prog_gnu_ld" = yes; then
6368      case `/usr/bin/file conftest.$ac_objext` in
6369	*32-bit*)
6370	  LD="${LD-ld} -melf32bsmip"
6371	  ;;
6372	*N32*)
6373	  LD="${LD-ld} -melf32bmipn32"
6374	  ;;
6375	*64-bit*)
6376	  LD="${LD-ld} -melf64bmip"
6377	;;
6378      esac
6379    else
6380      case `/usr/bin/file conftest.$ac_objext` in
6381	*32-bit*)
6382	  LD="${LD-ld} -32"
6383	  ;;
6384	*N32*)
6385	  LD="${LD-ld} -n32"
6386	  ;;
6387	*64-bit*)
6388	  LD="${LD-ld} -64"
6389	  ;;
6390      esac
6391    fi
6392  fi
6393  rm -rf conftest*
6394  ;;
6395
6396x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6397s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6398  # Find out which ABI we are using.
6399  echo 'int i;' > conftest.$ac_ext
6400  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401  (eval $ac_compile) 2>&5
6402  ac_status=$?
6403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404  test $ac_status = 0; }; then
6405    case `/usr/bin/file conftest.o` in
6406      *32-bit*)
6407	case $host in
6408	  x86_64-*kfreebsd*-gnu)
6409	    LD="${LD-ld} -m elf_i386_fbsd"
6410	    ;;
6411	  x86_64-*linux*)
6412	    case `/usr/bin/file conftest.o` in
6413	      *x86-64*)
6414		LD="${LD-ld} -m elf32_x86_64"
6415		;;
6416	      *)
6417		LD="${LD-ld} -m elf_i386"
6418		;;
6419	    esac
6420	    ;;
6421	  powerpc64le-*linux*)
6422	    LD="${LD-ld} -m elf32lppclinux"
6423	    ;;
6424	  powerpc64-*linux*)
6425	    LD="${LD-ld} -m elf32ppclinux"
6426	    ;;
6427	  s390x-*linux*)
6428	    LD="${LD-ld} -m elf_s390"
6429	    ;;
6430	  sparc64-*linux*)
6431	    LD="${LD-ld} -m elf32_sparc"
6432	    ;;
6433	esac
6434	;;
6435      *64-bit*)
6436	case $host in
6437	  x86_64-*kfreebsd*-gnu)
6438	    LD="${LD-ld} -m elf_x86_64_fbsd"
6439	    ;;
6440	  x86_64-*linux*)
6441	    LD="${LD-ld} -m elf_x86_64"
6442	    ;;
6443	  powerpcle-*linux*)
6444	    LD="${LD-ld} -m elf64lppc"
6445	    ;;
6446	  powerpc-*linux*)
6447	    LD="${LD-ld} -m elf64ppc"
6448	    ;;
6449	  s390*-*linux*|s390*-*tpf*)
6450	    LD="${LD-ld} -m elf64_s390"
6451	    ;;
6452	  sparc*-*linux*)
6453	    LD="${LD-ld} -m elf64_sparc"
6454	    ;;
6455	esac
6456	;;
6457    esac
6458  fi
6459  rm -rf conftest*
6460  ;;
6461
6462*-*-sco3.2v5*)
6463  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6464  SAVE_CFLAGS="$CFLAGS"
6465  CFLAGS="$CFLAGS -belf"
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6467$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6468if test "${lt_cv_cc_needs_belf+set}" = set; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471  ac_ext=c
6472ac_cpp='$CPP $CPPFLAGS'
6473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476
6477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479
6480int
6481main ()
6482{
6483
6484  ;
6485  return 0;
6486}
6487_ACEOF
6488if ac_fn_c_try_link "$LINENO"; then :
6489  lt_cv_cc_needs_belf=yes
6490else
6491  lt_cv_cc_needs_belf=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext \
6494    conftest$ac_exeext conftest.$ac_ext
6495     ac_ext=c
6496ac_cpp='$CPP $CPPFLAGS'
6497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6503$as_echo "$lt_cv_cc_needs_belf" >&6; }
6504  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6505    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6506    CFLAGS="$SAVE_CFLAGS"
6507  fi
6508  ;;
6509sparc*-*solaris*)
6510  # Find out which ABI we are using.
6511  echo 'int i;' > conftest.$ac_ext
6512  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513  (eval $ac_compile) 2>&5
6514  ac_status=$?
6515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516  test $ac_status = 0; }; then
6517    case `/usr/bin/file conftest.o` in
6518    *64-bit*)
6519      case $lt_cv_prog_gnu_ld in
6520      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6521      *)
6522	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6523	  LD="${LD-ld} -64"
6524	fi
6525	;;
6526      esac
6527      ;;
6528    esac
6529  fi
6530  rm -rf conftest*
6531  ;;
6532esac
6533
6534need_locks="$enable_libtool_lock"
6535
6536
6537  case $host_os in
6538    rhapsody* | darwin*)
6539    if test -n "$ac_tool_prefix"; then
6540  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6541set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543$as_echo_n "checking for $ac_word... " >&6; }
6544if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  if test -n "$DSYMUTIL"; then
6548  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553  IFS=$as_save_IFS
6554  test -z "$as_dir" && as_dir=.
6555    for ac_exec_ext in '' $ac_executable_extensions; do
6556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559    break 2
6560  fi
6561done
6562  done
6563IFS=$as_save_IFS
6564
6565fi
6566fi
6567DSYMUTIL=$ac_cv_prog_DSYMUTIL
6568if test -n "$DSYMUTIL"; then
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6570$as_echo "$DSYMUTIL" >&6; }
6571else
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573$as_echo "no" >&6; }
6574fi
6575
6576
6577fi
6578if test -z "$ac_cv_prog_DSYMUTIL"; then
6579  ac_ct_DSYMUTIL=$DSYMUTIL
6580  # Extract the first word of "dsymutil", so it can be a program name with args.
6581set dummy dsymutil; ac_word=$2
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583$as_echo_n "checking for $ac_word... " >&6; }
6584if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  if test -n "$ac_ct_DSYMUTIL"; then
6588  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593  IFS=$as_save_IFS
6594  test -z "$as_dir" && as_dir=.
6595    for ac_exec_ext in '' $ac_executable_extensions; do
6596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599    break 2
6600  fi
6601done
6602  done
6603IFS=$as_save_IFS
6604
6605fi
6606fi
6607ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6608if test -n "$ac_ct_DSYMUTIL"; then
6609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6610$as_echo "$ac_ct_DSYMUTIL" >&6; }
6611else
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613$as_echo "no" >&6; }
6614fi
6615
6616  if test "x$ac_ct_DSYMUTIL" = x; then
6617    DSYMUTIL=":"
6618  else
6619    case $cross_compiling:$ac_tool_warned in
6620yes:)
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623ac_tool_warned=yes ;;
6624esac
6625    DSYMUTIL=$ac_ct_DSYMUTIL
6626  fi
6627else
6628  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6629fi
6630
6631    if test -n "$ac_tool_prefix"; then
6632  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6633set dummy ${ac_tool_prefix}nmedit; 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 test "${ac_cv_prog_NMEDIT+set}" = set; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  if test -n "$NMEDIT"; then
6640  ac_cv_prog_NMEDIT="$NMEDIT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
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
6659NMEDIT=$ac_cv_prog_NMEDIT
6660if test -n "$NMEDIT"; then
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6662$as_echo "$NMEDIT" >&6; }
6663else
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667
6668
6669fi
6670if test -z "$ac_cv_prog_NMEDIT"; then
6671  ac_ct_NMEDIT=$NMEDIT
6672  # Extract the first word of "nmedit", so it can be a program name with args.
6673set dummy nmedit; ac_word=$2
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675$as_echo_n "checking for $ac_word... " >&6; }
6676if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  if test -n "$ac_ct_NMEDIT"; then
6680  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6681else
6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685  IFS=$as_save_IFS
6686  test -z "$as_dir" && as_dir=.
6687    for ac_exec_ext in '' $ac_executable_extensions; do
6688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691    break 2
6692  fi
6693done
6694  done
6695IFS=$as_save_IFS
6696
6697fi
6698fi
6699ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6700if test -n "$ac_ct_NMEDIT"; then
6701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6702$as_echo "$ac_ct_NMEDIT" >&6; }
6703else
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705$as_echo "no" >&6; }
6706fi
6707
6708  if test "x$ac_ct_NMEDIT" = x; then
6709    NMEDIT=":"
6710  else
6711    case $cross_compiling:$ac_tool_warned in
6712yes:)
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715ac_tool_warned=yes ;;
6716esac
6717    NMEDIT=$ac_ct_NMEDIT
6718  fi
6719else
6720  NMEDIT="$ac_cv_prog_NMEDIT"
6721fi
6722
6723    if test -n "$ac_tool_prefix"; then
6724  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6725set dummy ${ac_tool_prefix}lipo; ac_word=$2
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
6728if test "${ac_cv_prog_LIPO+set}" = set; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731  if test -n "$LIPO"; then
6732  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737  IFS=$as_save_IFS
6738  test -z "$as_dir" && as_dir=.
6739    for ac_exec_ext in '' $ac_executable_extensions; do
6740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743    break 2
6744  fi
6745done
6746  done
6747IFS=$as_save_IFS
6748
6749fi
6750fi
6751LIPO=$ac_cv_prog_LIPO
6752if test -n "$LIPO"; then
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6754$as_echo "$LIPO" >&6; }
6755else
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
6759
6760
6761fi
6762if test -z "$ac_cv_prog_LIPO"; then
6763  ac_ct_LIPO=$LIPO
6764  # Extract the first word of "lipo", so it can be a program name with args.
6765set dummy lipo; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
6768if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  if test -n "$ac_ct_LIPO"; then
6772  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777  IFS=$as_save_IFS
6778  test -z "$as_dir" && as_dir=.
6779    for ac_exec_ext in '' $ac_executable_extensions; do
6780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781    ac_cv_prog_ac_ct_LIPO="lipo"
6782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783    break 2
6784  fi
6785done
6786  done
6787IFS=$as_save_IFS
6788
6789fi
6790fi
6791ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6792if test -n "$ac_ct_LIPO"; then
6793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6794$as_echo "$ac_ct_LIPO" >&6; }
6795else
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
6798fi
6799
6800  if test "x$ac_ct_LIPO" = x; then
6801    LIPO=":"
6802  else
6803    case $cross_compiling:$ac_tool_warned in
6804yes:)
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809    LIPO=$ac_ct_LIPO
6810  fi
6811else
6812  LIPO="$ac_cv_prog_LIPO"
6813fi
6814
6815    if test -n "$ac_tool_prefix"; then
6816  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6817set dummy ${ac_tool_prefix}otool; ac_word=$2
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819$as_echo_n "checking for $ac_word... " >&6; }
6820if test "${ac_cv_prog_OTOOL+set}" = set; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  if test -n "$OTOOL"; then
6824  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829  IFS=$as_save_IFS
6830  test -z "$as_dir" && as_dir=.
6831    for ac_exec_ext in '' $ac_executable_extensions; do
6832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835    break 2
6836  fi
6837done
6838  done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843OTOOL=$ac_cv_prog_OTOOL
6844if test -n "$OTOOL"; then
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6846$as_echo "$OTOOL" >&6; }
6847else
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852
6853fi
6854if test -z "$ac_cv_prog_OTOOL"; then
6855  ac_ct_OTOOL=$OTOOL
6856  # Extract the first word of "otool", so it can be a program name with args.
6857set dummy otool; ac_word=$2
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859$as_echo_n "checking for $ac_word... " >&6; }
6860if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  if test -n "$ac_ct_OTOOL"; then
6864  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869  IFS=$as_save_IFS
6870  test -z "$as_dir" && as_dir=.
6871    for ac_exec_ext in '' $ac_executable_extensions; do
6872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873    ac_cv_prog_ac_ct_OTOOL="otool"
6874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875    break 2
6876  fi
6877done
6878  done
6879IFS=$as_save_IFS
6880
6881fi
6882fi
6883ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6884if test -n "$ac_ct_OTOOL"; then
6885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6886$as_echo "$ac_ct_OTOOL" >&6; }
6887else
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889$as_echo "no" >&6; }
6890fi
6891
6892  if test "x$ac_ct_OTOOL" = x; then
6893    OTOOL=":"
6894  else
6895    case $cross_compiling:$ac_tool_warned in
6896yes:)
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899ac_tool_warned=yes ;;
6900esac
6901    OTOOL=$ac_ct_OTOOL
6902  fi
6903else
6904  OTOOL="$ac_cv_prog_OTOOL"
6905fi
6906
6907    if test -n "$ac_tool_prefix"; then
6908  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6909set dummy ${ac_tool_prefix}otool64; ac_word=$2
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
6912if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  if test -n "$OTOOL64"; then
6916  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923    for ac_exec_ext in '' $ac_executable_extensions; do
6924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930  done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935OTOOL64=$ac_cv_prog_OTOOL64
6936if test -n "$OTOOL64"; then
6937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6938$as_echo "$OTOOL64" >&6; }
6939else
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944
6945fi
6946if test -z "$ac_cv_prog_OTOOL64"; then
6947  ac_ct_OTOOL64=$OTOOL64
6948  # Extract the first word of "otool64", so it can be a program name with args.
6949set dummy otool64; ac_word=$2
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951$as_echo_n "checking for $ac_word... " >&6; }
6952if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  if test -n "$ac_ct_OTOOL64"; then
6956  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961  IFS=$as_save_IFS
6962  test -z "$as_dir" && as_dir=.
6963    for ac_exec_ext in '' $ac_executable_extensions; do
6964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965    ac_cv_prog_ac_ct_OTOOL64="otool64"
6966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967    break 2
6968  fi
6969done
6970  done
6971IFS=$as_save_IFS
6972
6973fi
6974fi
6975ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6976if test -n "$ac_ct_OTOOL64"; then
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6978$as_echo "$ac_ct_OTOOL64" >&6; }
6979else
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981$as_echo "no" >&6; }
6982fi
6983
6984  if test "x$ac_ct_OTOOL64" = x; then
6985    OTOOL64=":"
6986  else
6987    case $cross_compiling:$ac_tool_warned in
6988yes:)
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991ac_tool_warned=yes ;;
6992esac
6993    OTOOL64=$ac_ct_OTOOL64
6994  fi
6995else
6996  OTOOL64="$ac_cv_prog_OTOOL64"
6997fi
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7026$as_echo_n "checking for -single_module linker flag... " >&6; }
7027if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7028  $as_echo_n "(cached) " >&6
7029else
7030  lt_cv_apple_cc_single_mod=no
7031      if test -z "${LT_MULTI_MODULE}"; then
7032	# By default we will add the -single_module flag. You can override
7033	# by either setting the environment variable LT_MULTI_MODULE
7034	# non-empty at configure time, or by adding -multi_module to the
7035	# link flags.
7036	rm -rf libconftest.dylib*
7037	echo "int foo(void){return 1;}" > conftest.c
7038	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7039-dynamiclib -Wl,-single_module conftest.c" >&5
7040	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7041	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7042        _lt_result=$?
7043	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7044	  lt_cv_apple_cc_single_mod=yes
7045	else
7046	  cat conftest.err >&5
7047	fi
7048	rm -rf libconftest.dylib*
7049	rm -f conftest.*
7050      fi
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7053$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7055$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7056if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7057  $as_echo_n "(cached) " >&6
7058else
7059  lt_cv_ld_exported_symbols_list=no
7060      save_LDFLAGS=$LDFLAGS
7061      echo "_main" > conftest.sym
7062      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7063      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064/* end confdefs.h.  */
7065
7066int
7067main ()
7068{
7069
7070  ;
7071  return 0;
7072}
7073_ACEOF
7074if ac_fn_c_try_link "$LINENO"; then :
7075  lt_cv_ld_exported_symbols_list=yes
7076else
7077  lt_cv_ld_exported_symbols_list=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext \
7080    conftest$ac_exeext conftest.$ac_ext
7081	LDFLAGS="$save_LDFLAGS"
7082
7083fi
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7085$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7087$as_echo_n "checking for -force_load linker flag... " >&6; }
7088if test "${lt_cv_ld_force_load+set}" = set; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  lt_cv_ld_force_load=no
7092      cat > conftest.c << _LT_EOF
7093int forced_loaded() { return 2;}
7094_LT_EOF
7095      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7096      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7097      echo "$AR cru libconftest.a conftest.o" >&5
7098      $AR cru libconftest.a conftest.o 2>&5
7099      cat > conftest.c << _LT_EOF
7100int main() { return 0;}
7101_LT_EOF
7102      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7103      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7104      _lt_result=$?
7105      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7106	lt_cv_ld_force_load=yes
7107      else
7108	cat conftest.err >&5
7109      fi
7110        rm -f conftest.err libconftest.a conftest conftest.c
7111        rm -rf conftest.dSYM
7112
7113fi
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7115$as_echo "$lt_cv_ld_force_load" >&6; }
7116    case $host_os in
7117    rhapsody* | darwin1.[012])
7118      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7119    darwin1.*)
7120      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7121    darwin*) # darwin 5.x on
7122      # if running on 10.5 or later, the deployment target defaults
7123      # to the OS version, if on x86, and 10.4, the deployment
7124      # target defaults to 10.4. Don't you love it?
7125      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7126	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7127	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7128	10.[012]*)
7129	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7130	10.*)
7131	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7132      esac
7133    ;;
7134  esac
7135    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7136      _lt_dar_single_mod='$single_module'
7137    fi
7138    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7139      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7140    else
7141      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7142    fi
7143    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7144      _lt_dsymutil='~$DSYMUTIL $lib || :'
7145    else
7146      _lt_dsymutil=
7147    fi
7148    ;;
7149  esac
7150
7151ac_ext=c
7152ac_cpp='$CPP $CPPFLAGS'
7153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7157$as_echo_n "checking how to run the C preprocessor... " >&6; }
7158# On Suns, sometimes $CPP names a directory.
7159if test -n "$CPP" && test -d "$CPP"; then
7160  CPP=
7161fi
7162if test -z "$CPP"; then
7163  if test "${ac_cv_prog_CPP+set}" = set; then :
7164  $as_echo_n "(cached) " >&6
7165else
7166      # Double quotes because CPP needs to be expanded
7167    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7168    do
7169      ac_preproc_ok=false
7170for ac_c_preproc_warn_flag in '' yes
7171do
7172  # Use a header file that comes with gcc, so configuring glibc
7173  # with a fresh cross-compiler works.
7174  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7175  # <limits.h> exists even on freestanding compilers.
7176  # On the NeXT, cc -E runs the code through the compiler's parser,
7177  # not just through cpp. "Syntax error" is here to catch this case.
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180#ifdef __STDC__
7181# include <limits.h>
7182#else
7183# include <assert.h>
7184#endif
7185		     Syntax error
7186_ACEOF
7187if ac_fn_c_try_cpp "$LINENO"; then :
7188
7189else
7190  # Broken: fails on valid input.
7191continue
7192fi
7193rm -f conftest.err conftest.$ac_ext
7194
7195  # OK, works on sane cases.  Now check whether nonexistent headers
7196  # can be detected and how.
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199#include <ac_nonexistent.h>
7200_ACEOF
7201if ac_fn_c_try_cpp "$LINENO"; then :
7202  # Broken: success on invalid input.
7203continue
7204else
7205  # Passes both tests.
7206ac_preproc_ok=:
7207break
7208fi
7209rm -f conftest.err conftest.$ac_ext
7210
7211done
7212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7213rm -f conftest.err conftest.$ac_ext
7214if $ac_preproc_ok; then :
7215  break
7216fi
7217
7218    done
7219    ac_cv_prog_CPP=$CPP
7220
7221fi
7222  CPP=$ac_cv_prog_CPP
7223else
7224  ac_cv_prog_CPP=$CPP
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7227$as_echo "$CPP" >&6; }
7228ac_preproc_ok=false
7229for ac_c_preproc_warn_flag in '' yes
7230do
7231  # Use a header file that comes with gcc, so configuring glibc
7232  # with a fresh cross-compiler works.
7233  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7234  # <limits.h> exists even on freestanding compilers.
7235  # On the NeXT, cc -E runs the code through the compiler's parser,
7236  # not just through cpp. "Syntax error" is here to catch this case.
7237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239#ifdef __STDC__
7240# include <limits.h>
7241#else
7242# include <assert.h>
7243#endif
7244		     Syntax error
7245_ACEOF
7246if ac_fn_c_try_cpp "$LINENO"; then :
7247
7248else
7249  # Broken: fails on valid input.
7250continue
7251fi
7252rm -f conftest.err conftest.$ac_ext
7253
7254  # OK, works on sane cases.  Now check whether nonexistent headers
7255  # can be detected and how.
7256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257/* end confdefs.h.  */
7258#include <ac_nonexistent.h>
7259_ACEOF
7260if ac_fn_c_try_cpp "$LINENO"; then :
7261  # Broken: success on invalid input.
7262continue
7263else
7264  # Passes both tests.
7265ac_preproc_ok=:
7266break
7267fi
7268rm -f conftest.err conftest.$ac_ext
7269
7270done
7271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7272rm -f conftest.err conftest.$ac_ext
7273if $ac_preproc_ok; then :
7274
7275else
7276  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7278as_fn_error "C preprocessor \"$CPP\" fails sanity check
7279See \`config.log' for more details." "$LINENO" 5; }
7280fi
7281
7282ac_ext=c
7283ac_cpp='$CPP $CPPFLAGS'
7284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286ac_compiler_gnu=$ac_cv_c_compiler_gnu
7287
7288
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7290$as_echo_n "checking for ANSI C header files... " >&6; }
7291if test "${ac_cv_header_stdc+set}" = set; then :
7292  $as_echo_n "(cached) " >&6
7293else
7294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295/* end confdefs.h.  */
7296#include <stdlib.h>
7297#include <stdarg.h>
7298#include <string.h>
7299#include <float.h>
7300
7301int
7302main ()
7303{
7304
7305  ;
7306  return 0;
7307}
7308_ACEOF
7309if ac_fn_c_try_compile "$LINENO"; then :
7310  ac_cv_header_stdc=yes
7311else
7312  ac_cv_header_stdc=no
7313fi
7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315
7316if test $ac_cv_header_stdc = yes; then
7317  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320#include <string.h>
7321
7322_ACEOF
7323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324  $EGREP "memchr" >/dev/null 2>&1; then :
7325
7326else
7327  ac_cv_header_stdc=no
7328fi
7329rm -f conftest*
7330
7331fi
7332
7333if test $ac_cv_header_stdc = yes; then
7334  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h.  */
7337#include <stdlib.h>
7338
7339_ACEOF
7340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341  $EGREP "free" >/dev/null 2>&1; then :
7342
7343else
7344  ac_cv_header_stdc=no
7345fi
7346rm -f conftest*
7347
7348fi
7349
7350if test $ac_cv_header_stdc = yes; then
7351  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7352  if test "$cross_compiling" = yes; then :
7353  :
7354else
7355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357#include <ctype.h>
7358#include <stdlib.h>
7359#if ((' ' & 0x0FF) == 0x020)
7360# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7361# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7362#else
7363# define ISLOWER(c) \
7364		   (('a' <= (c) && (c) <= 'i') \
7365		     || ('j' <= (c) && (c) <= 'r') \
7366		     || ('s' <= (c) && (c) <= 'z'))
7367# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7368#endif
7369
7370#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7371int
7372main ()
7373{
7374  int i;
7375  for (i = 0; i < 256; i++)
7376    if (XOR (islower (i), ISLOWER (i))
7377	|| toupper (i) != TOUPPER (i))
7378      return 2;
7379  return 0;
7380}
7381_ACEOF
7382if ac_fn_c_try_run "$LINENO"; then :
7383
7384else
7385  ac_cv_header_stdc=no
7386fi
7387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7388  conftest.$ac_objext conftest.beam conftest.$ac_ext
7389fi
7390
7391fi
7392fi
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7394$as_echo "$ac_cv_header_stdc" >&6; }
7395if test $ac_cv_header_stdc = yes; then
7396
7397$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7398
7399fi
7400
7401# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7402for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7403		  inttypes.h stdint.h unistd.h
7404do :
7405  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7406ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7407"
7408eval as_val=\$$as_ac_Header
7409   if test "x$as_val" = x""yes; then :
7410  cat >>confdefs.h <<_ACEOF
7411#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412_ACEOF
7413
7414fi
7415
7416done
7417
7418
7419for ac_header in dlfcn.h
7420do :
7421  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7422"
7423if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7424  cat >>confdefs.h <<_ACEOF
7425#define HAVE_DLFCN_H 1
7426_ACEOF
7427
7428fi
7429
7430done
7431
7432
7433
7434
7435
7436# Set options
7437
7438
7439
7440        enable_dlopen=no
7441
7442
7443  enable_win32_dll=no
7444
7445
7446            # Check whether --enable-shared was given.
7447if test "${enable_shared+set}" = set; then :
7448  enableval=$enable_shared; p=${PACKAGE-default}
7449    case $enableval in
7450    yes) enable_shared=yes ;;
7451    no) enable_shared=no ;;
7452    *)
7453      enable_shared=no
7454      # Look at the argument we got.  We use all the common list separators.
7455      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456      for pkg in $enableval; do
7457	IFS="$lt_save_ifs"
7458	if test "X$pkg" = "X$p"; then
7459	  enable_shared=yes
7460	fi
7461      done
7462      IFS="$lt_save_ifs"
7463      ;;
7464    esac
7465else
7466  enable_shared=yes
7467fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477  # Check whether --enable-static was given.
7478if test "${enable_static+set}" = set; then :
7479  enableval=$enable_static; p=${PACKAGE-default}
7480    case $enableval in
7481    yes) enable_static=yes ;;
7482    no) enable_static=no ;;
7483    *)
7484     enable_static=no
7485      # Look at the argument we got.  We use all the common list separators.
7486      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7487      for pkg in $enableval; do
7488	IFS="$lt_save_ifs"
7489	if test "X$pkg" = "X$p"; then
7490	  enable_static=yes
7491	fi
7492      done
7493      IFS="$lt_save_ifs"
7494      ;;
7495    esac
7496else
7497  enable_static=yes
7498fi
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509# Check whether --with-pic was given.
7510if test "${with_pic+set}" = set; then :
7511  withval=$with_pic; pic_mode="$withval"
7512else
7513  pic_mode=default
7514fi
7515
7516
7517test -z "$pic_mode" && pic_mode=default
7518
7519
7520
7521
7522
7523
7524
7525  # Check whether --enable-fast-install was given.
7526if test "${enable_fast_install+set}" = set; then :
7527  enableval=$enable_fast_install; p=${PACKAGE-default}
7528    case $enableval in
7529    yes) enable_fast_install=yes ;;
7530    no) enable_fast_install=no ;;
7531    *)
7532      enable_fast_install=no
7533      # Look at the argument we got.  We use all the common list separators.
7534      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7535      for pkg in $enableval; do
7536	IFS="$lt_save_ifs"
7537	if test "X$pkg" = "X$p"; then
7538	  enable_fast_install=yes
7539	fi
7540      done
7541      IFS="$lt_save_ifs"
7542      ;;
7543    esac
7544else
7545  enable_fast_install=yes
7546fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558# This can be used to rebuild libtool when needed
7559LIBTOOL_DEPS="$ltmain"
7560
7561# Always use our own libtool.
7562LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589test -z "$LN_S" && LN_S="ln -s"
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604if test -n "${ZSH_VERSION+set}" ; then
7605   setopt NO_GLOB_SUBST
7606fi
7607
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7609$as_echo_n "checking for objdir... " >&6; }
7610if test "${lt_cv_objdir+set}" = set; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  rm -f .libs 2>/dev/null
7614mkdir .libs 2>/dev/null
7615if test -d .libs; then
7616  lt_cv_objdir=.libs
7617else
7618  # MS-DOS does not allow filenames that begin with a dot.
7619  lt_cv_objdir=_libs
7620fi
7621rmdir .libs 2>/dev/null
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7624$as_echo "$lt_cv_objdir" >&6; }
7625objdir=$lt_cv_objdir
7626
7627
7628
7629
7630
7631cat >>confdefs.h <<_ACEOF
7632#define LT_OBJDIR "$lt_cv_objdir/"
7633_ACEOF
7634
7635
7636
7637
7638case $host_os in
7639aix3*)
7640  # AIX sometimes has problems with the GCC collect2 program.  For some
7641  # reason, if we set the COLLECT_NAMES environment variable, the problems
7642  # vanish in a puff of smoke.
7643  if test "X${COLLECT_NAMES+set}" != Xset; then
7644    COLLECT_NAMES=
7645    export COLLECT_NAMES
7646  fi
7647  ;;
7648esac
7649
7650# Global variables:
7651ofile=libtool
7652can_build_shared=yes
7653
7654# All known linkers require a `.a' archive for static linking (except MSVC,
7655# which needs '.lib').
7656libext=a
7657
7658with_gnu_ld="$lt_cv_prog_gnu_ld"
7659
7660old_CC="$CC"
7661old_CFLAGS="$CFLAGS"
7662
7663# Set sane defaults for various variables
7664test -z "$CC" && CC=cc
7665test -z "$LTCC" && LTCC=$CC
7666test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7667test -z "$LD" && LD=ld
7668test -z "$ac_objext" && ac_objext=o
7669
7670for cc_temp in $compiler""; do
7671  case $cc_temp in
7672    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7673    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7674    \-*) ;;
7675    *) break;;
7676  esac
7677done
7678cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7679
7680
7681# Only perform the check for file, if the check method requires it
7682test -z "$MAGIC_CMD" && MAGIC_CMD=file
7683case $deplibs_check_method in
7684file_magic*)
7685  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7687$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7688if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  case $MAGIC_CMD in
7692[\\/*] |  ?:[\\/]*)
7693  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7694  ;;
7695*)
7696  lt_save_MAGIC_CMD="$MAGIC_CMD"
7697  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7699  for ac_dir in $ac_dummy; do
7700    IFS="$lt_save_ifs"
7701    test -z "$ac_dir" && ac_dir=.
7702    if test -f $ac_dir/${ac_tool_prefix}file; then
7703      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7704      if test -n "$file_magic_test_file"; then
7705	case $deplibs_check_method in
7706	"file_magic "*)
7707	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7708	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7710	    $EGREP "$file_magic_regex" > /dev/null; then
7711	    :
7712	  else
7713	    cat <<_LT_EOF 1>&2
7714
7715*** Warning: the command libtool uses to detect shared libraries,
7716*** $file_magic_cmd, produces output that libtool cannot recognize.
7717*** The result is that libtool may fail to recognize shared libraries
7718*** as such.  This will affect the creation of libtool libraries that
7719*** depend on shared libraries, but programs linked with such libtool
7720*** libraries will work regardless of this problem.  Nevertheless, you
7721*** may want to report the problem to your system manager and/or to
7722*** bug-libtool@gnu.org
7723
7724_LT_EOF
7725	  fi ;;
7726	esac
7727      fi
7728      break
7729    fi
7730  done
7731  IFS="$lt_save_ifs"
7732  MAGIC_CMD="$lt_save_MAGIC_CMD"
7733  ;;
7734esac
7735fi
7736
7737MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7738if test -n "$MAGIC_CMD"; then
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7740$as_echo "$MAGIC_CMD" >&6; }
7741else
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746
7747
7748
7749
7750if test -z "$lt_cv_path_MAGIC_CMD"; then
7751  if test -n "$ac_tool_prefix"; then
7752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7753$as_echo_n "checking for file... " >&6; }
7754if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  case $MAGIC_CMD in
7758[\\/*] |  ?:[\\/]*)
7759  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7760  ;;
7761*)
7762  lt_save_MAGIC_CMD="$MAGIC_CMD"
7763  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7764  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7765  for ac_dir in $ac_dummy; do
7766    IFS="$lt_save_ifs"
7767    test -z "$ac_dir" && ac_dir=.
7768    if test -f $ac_dir/file; then
7769      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7770      if test -n "$file_magic_test_file"; then
7771	case $deplibs_check_method in
7772	"file_magic "*)
7773	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7774	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7775	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7776	    $EGREP "$file_magic_regex" > /dev/null; then
7777	    :
7778	  else
7779	    cat <<_LT_EOF 1>&2
7780
7781*** Warning: the command libtool uses to detect shared libraries,
7782*** $file_magic_cmd, produces output that libtool cannot recognize.
7783*** The result is that libtool may fail to recognize shared libraries
7784*** as such.  This will affect the creation of libtool libraries that
7785*** depend on shared libraries, but programs linked with such libtool
7786*** libraries will work regardless of this problem.  Nevertheless, you
7787*** may want to report the problem to your system manager and/or to
7788*** bug-libtool@gnu.org
7789
7790_LT_EOF
7791	  fi ;;
7792	esac
7793      fi
7794      break
7795    fi
7796  done
7797  IFS="$lt_save_ifs"
7798  MAGIC_CMD="$lt_save_MAGIC_CMD"
7799  ;;
7800esac
7801fi
7802
7803MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7804if test -n "$MAGIC_CMD"; then
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7806$as_echo "$MAGIC_CMD" >&6; }
7807else
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
7810fi
7811
7812
7813  else
7814    MAGIC_CMD=:
7815  fi
7816fi
7817
7818  fi
7819  ;;
7820esac
7821
7822# Use C for the default configuration in the libtool script
7823
7824lt_save_CC="$CC"
7825ac_ext=c
7826ac_cpp='$CPP $CPPFLAGS'
7827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830
7831
7832# Source file extension for C test sources.
7833ac_ext=c
7834
7835# Object file extension for compiled C test sources.
7836objext=o
7837objext=$objext
7838
7839# Code to be used in simple compile tests
7840lt_simple_compile_test_code="int some_variable = 0;"
7841
7842# Code to be used in simple link tests
7843lt_simple_link_test_code='int main(){return(0);}'
7844
7845
7846
7847
7848
7849
7850
7851# If no C compiler was specified, use CC.
7852LTCC=${LTCC-"$CC"}
7853
7854# If no C compiler flags were specified, use CFLAGS.
7855LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7856
7857# Allow CC to be a program name with arguments.
7858compiler=$CC
7859
7860# Save the default compiler, since it gets overwritten when the other
7861# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7862compiler_DEFAULT=$CC
7863
7864# save warnings/boilerplate of simple test code
7865ac_outfile=conftest.$ac_objext
7866echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7867eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868_lt_compiler_boilerplate=`cat conftest.err`
7869$RM conftest*
7870
7871ac_outfile=conftest.$ac_objext
7872echo "$lt_simple_link_test_code" >conftest.$ac_ext
7873eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7874_lt_linker_boilerplate=`cat conftest.err`
7875$RM -r conftest*
7876
7877
7878## CAVEAT EMPTOR:
7879## There is no encapsulation within the following macros, do not change
7880## the running order or otherwise move them around unless you know exactly
7881## what you are doing...
7882if test -n "$compiler"; then
7883
7884lt_prog_compiler_no_builtin_flag=
7885
7886if test "$GCC" = yes; then
7887  case $cc_basename in
7888  nvcc*)
7889    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7890  *)
7891    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7892  esac
7893
7894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7895$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7896if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  lt_cv_prog_compiler_rtti_exceptions=no
7900   ac_outfile=conftest.$ac_objext
7901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7902   lt_compiler_flag="-fno-rtti -fno-exceptions"
7903   # Insert the option either (1) after the last *FLAGS variable, or
7904   # (2) before a word containing "conftest.", or (3) at the end.
7905   # Note that $ac_compile itself does not contain backslashes and begins
7906   # with a dollar sign (not a hyphen), so the echo should work correctly.
7907   # The option is referenced via a variable to avoid confusing sed.
7908   lt_compile=`echo "$ac_compile" | $SED \
7909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911   -e 's:$: $lt_compiler_flag:'`
7912   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7913   (eval "$lt_compile" 2>conftest.err)
7914   ac_status=$?
7915   cat conftest.err >&5
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   if (exit $ac_status) && test -s "$ac_outfile"; then
7918     # The compiler can only warn and ignore the option if not recognized
7919     # So say no if there are warnings other than the usual output.
7920     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7921     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7922     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7923       lt_cv_prog_compiler_rtti_exceptions=yes
7924     fi
7925   fi
7926   $RM conftest*
7927
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7930$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7931
7932if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7933    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7934else
7935    :
7936fi
7937
7938fi
7939
7940
7941
7942
7943
7944
7945  lt_prog_compiler_wl=
7946lt_prog_compiler_pic=
7947lt_prog_compiler_static=
7948
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7950$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7951
7952  if test "$GCC" = yes; then
7953    lt_prog_compiler_wl='-Wl,'
7954    lt_prog_compiler_static='-static'
7955
7956    case $host_os in
7957      aix*)
7958      # All AIX code is PIC.
7959      if test "$host_cpu" = ia64; then
7960	# AIX 5 now supports IA64 processor
7961	lt_prog_compiler_static='-Bstatic'
7962      fi
7963      lt_prog_compiler_pic='-fPIC'
7964      ;;
7965
7966    amigaos*)
7967      case $host_cpu in
7968      powerpc)
7969            # see comment about AmigaOS4 .so support
7970            lt_prog_compiler_pic='-fPIC'
7971        ;;
7972      m68k)
7973            # FIXME: we need at least 68020 code to build shared libraries, but
7974            # adding the `-m68020' flag to GCC prevents building anything better,
7975            # like `-m68040'.
7976            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7977        ;;
7978      esac
7979      ;;
7980
7981    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7982      # PIC is the default for these OSes.
7983      ;;
7984
7985    mingw* | cygwin* | pw32* | os2* | cegcc*)
7986      # This hack is so that the source file can tell whether it is being
7987      # built for inclusion in a dll (and should export symbols for example).
7988      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7989      # (--disable-auto-import) libraries
7990      lt_prog_compiler_pic='-DDLL_EXPORT'
7991      ;;
7992
7993    darwin* | rhapsody*)
7994      # PIC is the default on this platform
7995      # Common symbols not allowed in MH_DYLIB files
7996      lt_prog_compiler_pic='-fno-common'
7997      ;;
7998
7999    haiku*)
8000      # PIC is the default for Haiku.
8001      # The "-static" flag exists, but is broken.
8002      lt_prog_compiler_static=
8003      ;;
8004
8005    hpux*)
8006      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8007      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8008      # sets the default TLS model and affects inlining.
8009      case $host_cpu in
8010      hppa*64*)
8011	# +Z the default
8012	;;
8013      *)
8014	lt_prog_compiler_pic='-fPIC'
8015	;;
8016      esac
8017      ;;
8018
8019    interix[3-9]*)
8020      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8021      # Instead, we relocate shared libraries at runtime.
8022      ;;
8023
8024    msdosdjgpp*)
8025      # Just because we use GCC doesn't mean we suddenly get shared libraries
8026      # on systems that don't support them.
8027      lt_prog_compiler_can_build_shared=no
8028      enable_shared=no
8029      ;;
8030
8031    *nto* | *qnx*)
8032      # QNX uses GNU C++, but need to define -shared option too, otherwise
8033      # it will coredump.
8034      lt_prog_compiler_pic='-fPIC -shared'
8035      ;;
8036
8037    sysv4*MP*)
8038      if test -d /usr/nec; then
8039	lt_prog_compiler_pic=-Kconform_pic
8040      fi
8041      ;;
8042
8043    *)
8044      lt_prog_compiler_pic='-fPIC'
8045      ;;
8046    esac
8047
8048    case $cc_basename in
8049    nvcc*) # Cuda Compiler Driver 2.2
8050      lt_prog_compiler_wl='-Xlinker '
8051      lt_prog_compiler_pic='-Xcompiler -fPIC'
8052      ;;
8053    esac
8054  else
8055    # PORTME Check for flag to pass linker flags through the system compiler.
8056    case $host_os in
8057    aix*)
8058      lt_prog_compiler_wl='-Wl,'
8059      if test "$host_cpu" = ia64; then
8060	# AIX 5 now supports IA64 processor
8061	lt_prog_compiler_static='-Bstatic'
8062      else
8063	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8064      fi
8065      ;;
8066
8067    mingw* | cygwin* | pw32* | os2* | cegcc*)
8068      # This hack is so that the source file can tell whether it is being
8069      # built for inclusion in a dll (and should export symbols for example).
8070      lt_prog_compiler_pic='-DDLL_EXPORT'
8071      ;;
8072
8073    hpux9* | hpux10* | hpux11*)
8074      lt_prog_compiler_wl='-Wl,'
8075      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8076      # not for PA HP-UX.
8077      case $host_cpu in
8078      hppa*64*|ia64*)
8079	# +Z the default
8080	;;
8081      *)
8082	lt_prog_compiler_pic='+Z'
8083	;;
8084      esac
8085      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8086      lt_prog_compiler_static='${wl}-a ${wl}archive'
8087      ;;
8088
8089    irix5* | irix6* | nonstopux*)
8090      lt_prog_compiler_wl='-Wl,'
8091      # PIC (with -KPIC) is the default.
8092      lt_prog_compiler_static='-non_shared'
8093      ;;
8094
8095    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8096      case $cc_basename in
8097      # old Intel for x86_64 which still supported -KPIC.
8098      ecc*)
8099	lt_prog_compiler_wl='-Wl,'
8100	lt_prog_compiler_pic='-KPIC'
8101	lt_prog_compiler_static='-static'
8102        ;;
8103      # icc used to be incompatible with GCC.
8104      # ICC 10 doesn't accept -KPIC any more.
8105      icc* | ifort*)
8106	lt_prog_compiler_wl='-Wl,'
8107	lt_prog_compiler_pic='-fPIC'
8108	lt_prog_compiler_static='-static'
8109        ;;
8110      # Lahey Fortran 8.1.
8111      lf95*)
8112	lt_prog_compiler_wl='-Wl,'
8113	lt_prog_compiler_pic='--shared'
8114	lt_prog_compiler_static='--static'
8115	;;
8116      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8117        # Portland Group compilers (*not* the Pentium gcc compiler,
8118	# which looks to be a dead project)
8119	lt_prog_compiler_wl='-Wl,'
8120	lt_prog_compiler_pic='-fpic'
8121	lt_prog_compiler_static='-Bstatic'
8122        ;;
8123      ccc*)
8124        lt_prog_compiler_wl='-Wl,'
8125        # All Alpha code is PIC.
8126        lt_prog_compiler_static='-non_shared'
8127        ;;
8128      xl* | bgxl* | bgf* | mpixl*)
8129	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8130	lt_prog_compiler_wl='-Wl,'
8131	lt_prog_compiler_pic='-qpic'
8132	lt_prog_compiler_static='-qstaticlink'
8133	;;
8134      *)
8135	case `$CC -V 2>&1 | sed 5q` in
8136	*Sun\ F* | *Sun*Fortran*)
8137	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8138	  lt_prog_compiler_pic='-KPIC'
8139	  lt_prog_compiler_static='-Bstatic'
8140	  lt_prog_compiler_wl=''
8141	  ;;
8142	*Sun\ C*)
8143	  # Sun C 5.9
8144	  lt_prog_compiler_pic='-KPIC'
8145	  lt_prog_compiler_static='-Bstatic'
8146	  lt_prog_compiler_wl='-Wl,'
8147	  ;;
8148	esac
8149	;;
8150      esac
8151      ;;
8152
8153    newsos6)
8154      lt_prog_compiler_pic='-KPIC'
8155      lt_prog_compiler_static='-Bstatic'
8156      ;;
8157
8158    *nto* | *qnx*)
8159      # QNX uses GNU C++, but need to define -shared option too, otherwise
8160      # it will coredump.
8161      lt_prog_compiler_pic='-fPIC -shared'
8162      ;;
8163
8164    osf3* | osf4* | osf5*)
8165      lt_prog_compiler_wl='-Wl,'
8166      # All OSF/1 code is PIC.
8167      lt_prog_compiler_static='-non_shared'
8168      ;;
8169
8170    rdos*)
8171      lt_prog_compiler_static='-non_shared'
8172      ;;
8173
8174    solaris*)
8175      lt_prog_compiler_pic='-KPIC'
8176      lt_prog_compiler_static='-Bstatic'
8177      case $cc_basename in
8178      f77* | f90* | f95*)
8179	lt_prog_compiler_wl='-Qoption ld ';;
8180      *)
8181	lt_prog_compiler_wl='-Wl,';;
8182      esac
8183      ;;
8184
8185    sunos4*)
8186      lt_prog_compiler_wl='-Qoption ld '
8187      lt_prog_compiler_pic='-PIC'
8188      lt_prog_compiler_static='-Bstatic'
8189      ;;
8190
8191    sysv4 | sysv4.2uw2* | sysv4.3*)
8192      lt_prog_compiler_wl='-Wl,'
8193      lt_prog_compiler_pic='-KPIC'
8194      lt_prog_compiler_static='-Bstatic'
8195      ;;
8196
8197    sysv4*MP*)
8198      if test -d /usr/nec ;then
8199	lt_prog_compiler_pic='-Kconform_pic'
8200	lt_prog_compiler_static='-Bstatic'
8201      fi
8202      ;;
8203
8204    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8205      lt_prog_compiler_wl='-Wl,'
8206      lt_prog_compiler_pic='-KPIC'
8207      lt_prog_compiler_static='-Bstatic'
8208      ;;
8209
8210    unicos*)
8211      lt_prog_compiler_wl='-Wl,'
8212      lt_prog_compiler_can_build_shared=no
8213      ;;
8214
8215    uts4*)
8216      lt_prog_compiler_pic='-pic'
8217      lt_prog_compiler_static='-Bstatic'
8218      ;;
8219
8220    *)
8221      lt_prog_compiler_can_build_shared=no
8222      ;;
8223    esac
8224  fi
8225
8226case $host_os in
8227  # For platforms which do not support PIC, -DPIC is meaningless:
8228  *djgpp*)
8229    lt_prog_compiler_pic=
8230    ;;
8231  *)
8232    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8233    ;;
8234esac
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8236$as_echo "$lt_prog_compiler_pic" >&6; }
8237
8238
8239
8240
8241
8242
8243#
8244# Check to make sure the PIC flag actually works.
8245#
8246if test -n "$lt_prog_compiler_pic"; then
8247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8248$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8249if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8250  $as_echo_n "(cached) " >&6
8251else
8252  lt_cv_prog_compiler_pic_works=no
8253   ac_outfile=conftest.$ac_objext
8254   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8255   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8256   # Insert the option either (1) after the last *FLAGS variable, or
8257   # (2) before a word containing "conftest.", or (3) at the end.
8258   # Note that $ac_compile itself does not contain backslashes and begins
8259   # with a dollar sign (not a hyphen), so the echo should work correctly.
8260   # The option is referenced via a variable to avoid confusing sed.
8261   lt_compile=`echo "$ac_compile" | $SED \
8262   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8263   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8264   -e 's:$: $lt_compiler_flag:'`
8265   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8266   (eval "$lt_compile" 2>conftest.err)
8267   ac_status=$?
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   if (exit $ac_status) && test -s "$ac_outfile"; then
8271     # The compiler can only warn and ignore the option if not recognized
8272     # So say no if there are warnings other than the usual output.
8273     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8274     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8275     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8276       lt_cv_prog_compiler_pic_works=yes
8277     fi
8278   fi
8279   $RM conftest*
8280
8281fi
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8283$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8284
8285if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8286    case $lt_prog_compiler_pic in
8287     "" | " "*) ;;
8288     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8289     esac
8290else
8291    lt_prog_compiler_pic=
8292     lt_prog_compiler_can_build_shared=no
8293fi
8294
8295fi
8296
8297
8298
8299
8300
8301
8302#
8303# Check to make sure the static flag actually works.
8304#
8305wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8307$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8308if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  lt_cv_prog_compiler_static_works=no
8312   save_LDFLAGS="$LDFLAGS"
8313   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8314   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8315   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8316     # The linker can only warn and ignore the option if not recognized
8317     # So say no if there are warnings
8318     if test -s conftest.err; then
8319       # Append any errors to the config.log.
8320       cat conftest.err 1>&5
8321       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8322       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8323       if diff conftest.exp conftest.er2 >/dev/null; then
8324         lt_cv_prog_compiler_static_works=yes
8325       fi
8326     else
8327       lt_cv_prog_compiler_static_works=yes
8328     fi
8329   fi
8330   $RM -r conftest*
8331   LDFLAGS="$save_LDFLAGS"
8332
8333fi
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8335$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8336
8337if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8338    :
8339else
8340    lt_prog_compiler_static=
8341fi
8342
8343
8344
8345
8346
8347
8348
8349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8350$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8351if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8352  $as_echo_n "(cached) " >&6
8353else
8354  lt_cv_prog_compiler_c_o=no
8355   $RM -r conftest 2>/dev/null
8356   mkdir conftest
8357   cd conftest
8358   mkdir out
8359   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8360
8361   lt_compiler_flag="-o out/conftest2.$ac_objext"
8362   # Insert the option either (1) after the last *FLAGS variable, or
8363   # (2) before a word containing "conftest.", or (3) at the end.
8364   # Note that $ac_compile itself does not contain backslashes and begins
8365   # with a dollar sign (not a hyphen), so the echo should work correctly.
8366   lt_compile=`echo "$ac_compile" | $SED \
8367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369   -e 's:$: $lt_compiler_flag:'`
8370   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8371   (eval "$lt_compile" 2>out/conftest.err)
8372   ac_status=$?
8373   cat out/conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8376   then
8377     # The compiler can only warn and ignore the option if not recognized
8378     # So say no if there are warnings
8379     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8380     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8381     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8382       lt_cv_prog_compiler_c_o=yes
8383     fi
8384   fi
8385   chmod u+w . 2>&5
8386   $RM conftest*
8387   # SGI C++ compiler will create directory out/ii_files/ for
8388   # template instantiation
8389   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8390   $RM out/* && rmdir out
8391   cd ..
8392   $RM -r conftest
8393   $RM conftest*
8394
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8397$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8398
8399
8400
8401
8402
8403
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8405$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8406if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  lt_cv_prog_compiler_c_o=no
8410   $RM -r conftest 2>/dev/null
8411   mkdir conftest
8412   cd conftest
8413   mkdir out
8414   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8415
8416   lt_compiler_flag="-o out/conftest2.$ac_objext"
8417   # Insert the option either (1) after the last *FLAGS variable, or
8418   # (2) before a word containing "conftest.", or (3) at the end.
8419   # Note that $ac_compile itself does not contain backslashes and begins
8420   # with a dollar sign (not a hyphen), so the echo should work correctly.
8421   lt_compile=`echo "$ac_compile" | $SED \
8422   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424   -e 's:$: $lt_compiler_flag:'`
8425   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8426   (eval "$lt_compile" 2>out/conftest.err)
8427   ac_status=$?
8428   cat out/conftest.err >&5
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8431   then
8432     # The compiler can only warn and ignore the option if not recognized
8433     # So say no if there are warnings
8434     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8435     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8436     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8437       lt_cv_prog_compiler_c_o=yes
8438     fi
8439   fi
8440   chmod u+w . 2>&5
8441   $RM conftest*
8442   # SGI C++ compiler will create directory out/ii_files/ for
8443   # template instantiation
8444   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8445   $RM out/* && rmdir out
8446   cd ..
8447   $RM -r conftest
8448   $RM conftest*
8449
8450fi
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8452$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8453
8454
8455
8456
8457hard_links="nottested"
8458if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8459  # do not overwrite the value of need_locks provided by the user
8460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8461$as_echo_n "checking if we can lock with hard links... " >&6; }
8462  hard_links=yes
8463  $RM conftest*
8464  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465  touch conftest.a
8466  ln conftest.a conftest.b 2>&5 || hard_links=no
8467  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8469$as_echo "$hard_links" >&6; }
8470  if test "$hard_links" = no; then
8471    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8472$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8473    need_locks=warn
8474  fi
8475else
8476  need_locks=no
8477fi
8478
8479
8480
8481
8482
8483
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8485$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8486
8487  runpath_var=
8488  allow_undefined_flag=
8489  always_export_symbols=no
8490  archive_cmds=
8491  archive_expsym_cmds=
8492  compiler_needs_object=no
8493  enable_shared_with_static_runtimes=no
8494  export_dynamic_flag_spec=
8495  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8496  hardcode_automatic=no
8497  hardcode_direct=no
8498  hardcode_direct_absolute=no
8499  hardcode_libdir_flag_spec=
8500  hardcode_libdir_flag_spec_ld=
8501  hardcode_libdir_separator=
8502  hardcode_minus_L=no
8503  hardcode_shlibpath_var=unsupported
8504  inherit_rpath=no
8505  link_all_deplibs=unknown
8506  module_cmds=
8507  module_expsym_cmds=
8508  old_archive_from_new_cmds=
8509  old_archive_from_expsyms_cmds=
8510  thread_safe_flag_spec=
8511  whole_archive_flag_spec=
8512  # include_expsyms should be a list of space-separated symbols to be *always*
8513  # included in the symbol list
8514  include_expsyms=
8515  # exclude_expsyms can be an extended regexp of symbols to exclude
8516  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8517  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8518  # as well as any symbol that contains `d'.
8519  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8520  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8521  # platforms (ab)use it in PIC code, but their linkers get confused if
8522  # the symbol is explicitly referenced.  Since portable code cannot
8523  # rely on this symbol name, it's probably fine to never include it in
8524  # preloaded symbol tables.
8525  # Exclude shared library initialization/finalization symbols.
8526  extract_expsyms_cmds=
8527
8528  case $host_os in
8529  cygwin* | mingw* | pw32* | cegcc*)
8530    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8531    # When not using gcc, we currently assume that we are using
8532    # Microsoft Visual C++.
8533    if test "$GCC" != yes; then
8534      with_gnu_ld=no
8535    fi
8536    ;;
8537  interix*)
8538    # we just hope/assume this is gcc and not c89 (= MSVC++)
8539    with_gnu_ld=yes
8540    ;;
8541  openbsd*)
8542    with_gnu_ld=no
8543    ;;
8544  esac
8545
8546  ld_shlibs=yes
8547
8548  # On some targets, GNU ld is compatible enough with the native linker
8549  # that we're better off using the native interface for both.
8550  lt_use_gnu_ld_interface=no
8551  if test "$with_gnu_ld" = yes; then
8552    case $host_os in
8553      aix*)
8554	# The AIX port of GNU ld has always aspired to compatibility
8555	# with the native linker.  However, as the warning in the GNU ld
8556	# block says, versions before 2.19.5* couldn't really create working
8557	# shared libraries, regardless of the interface used.
8558	case `$LD -v 2>&1` in
8559	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8560	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8561	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8562	  *)
8563	    lt_use_gnu_ld_interface=yes
8564	    ;;
8565	esac
8566	;;
8567      *)
8568	lt_use_gnu_ld_interface=yes
8569	;;
8570    esac
8571  fi
8572
8573  if test "$lt_use_gnu_ld_interface" = yes; then
8574    # If archive_cmds runs LD, not CC, wlarc should be empty
8575    wlarc='${wl}'
8576
8577    # Set some defaults for GNU ld with shared library support. These
8578    # are reset later if shared libraries are not supported. Putting them
8579    # here allows them to be overridden if necessary.
8580    runpath_var=LD_RUN_PATH
8581    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582    export_dynamic_flag_spec='${wl}--export-dynamic'
8583    # ancient GNU ld didn't support --whole-archive et. al.
8584    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8585      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8586    else
8587      whole_archive_flag_spec=
8588    fi
8589    supports_anon_versioning=no
8590    case `$LD -v 2>&1` in
8591      *GNU\ gold*) supports_anon_versioning=yes ;;
8592      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8593      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8594      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8595      *\ 2.11.*) ;; # other 2.11 versions
8596      *) supports_anon_versioning=yes ;;
8597    esac
8598
8599    # See if GNU ld supports shared libraries.
8600    case $host_os in
8601    aix[3-9]*)
8602      # On AIX/PPC, the GNU linker is very broken
8603      if test "$host_cpu" != ia64; then
8604	ld_shlibs=no
8605	cat <<_LT_EOF 1>&2
8606
8607*** Warning: the GNU linker, at least up to release 2.19, is reported
8608*** to be unable to reliably create shared libraries on AIX.
8609*** Therefore, libtool is disabling shared libraries support.  If you
8610*** really care for shared libraries, you may want to install binutils
8611*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8612*** You will then need to restart the configuration process.
8613
8614_LT_EOF
8615      fi
8616      ;;
8617
8618    amigaos*)
8619      case $host_cpu in
8620      powerpc)
8621            # see comment about AmigaOS4 .so support
8622            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623            archive_expsym_cmds=''
8624        ;;
8625      m68k)
8626            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)'
8627            hardcode_libdir_flag_spec='-L$libdir'
8628            hardcode_minus_L=yes
8629        ;;
8630      esac
8631      ;;
8632
8633    beos*)
8634      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8635	allow_undefined_flag=unsupported
8636	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8637	# support --undefined.  This deserves some investigation.  FIXME
8638	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8639      else
8640	ld_shlibs=no
8641      fi
8642      ;;
8643
8644    cygwin* | mingw* | pw32* | cegcc*)
8645      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8646      # as there is no search path for DLLs.
8647      hardcode_libdir_flag_spec='-L$libdir'
8648      export_dynamic_flag_spec='${wl}--export-all-symbols'
8649      allow_undefined_flag=unsupported
8650      always_export_symbols=no
8651      enable_shared_with_static_runtimes=yes
8652      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8653
8654      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8655        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656	# If the export-symbols file already is a .def file (1st line
8657	# is EXPORTS), use it as is; otherwise, prepend...
8658	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8659	  cp $export_symbols $output_objdir/$soname.def;
8660	else
8661	  echo EXPORTS > $output_objdir/$soname.def;
8662	  cat $export_symbols >> $output_objdir/$soname.def;
8663	fi~
8664	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8665      else
8666	ld_shlibs=no
8667      fi
8668      ;;
8669
8670    haiku*)
8671      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672      link_all_deplibs=yes
8673      ;;
8674
8675    interix[3-9]*)
8676      hardcode_direct=no
8677      hardcode_shlibpath_var=no
8678      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679      export_dynamic_flag_spec='${wl}-E'
8680      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8681      # Instead, shared libraries are loaded at an image base (0x10000000 by
8682      # default) and relocated if they conflict, which is a slow very memory
8683      # consuming and fragmenting process.  To avoid this, we pick a random,
8684      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8685      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8686      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8687      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'
8688      ;;
8689
8690    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8691      tmp_diet=no
8692      if test "$host_os" = linux-dietlibc; then
8693	case $cc_basename in
8694	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8695	esac
8696      fi
8697      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8698	 && test "$tmp_diet" = no
8699      then
8700	tmp_addflag=
8701	tmp_sharedflag='-shared'
8702	case $cc_basename,$host_cpu in
8703        pgcc*)				# Portland Group C compiler
8704	  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'
8705	  tmp_addflag=' $pic_flag'
8706	  ;;
8707	pgf77* | pgf90* | pgf95* | pgfortran*)
8708					# Portland Group f77 and f90 compilers
8709	  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'
8710	  tmp_addflag=' $pic_flag -Mnomain' ;;
8711	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8712	  tmp_addflag=' -i_dynamic' ;;
8713	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8714	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8715	ifc* | ifort*)			# Intel Fortran compiler
8716	  tmp_addflag=' -nofor_main' ;;
8717	lf95*)				# Lahey Fortran 8.1
8718	  whole_archive_flag_spec=
8719	  tmp_sharedflag='--shared' ;;
8720	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8721	  tmp_sharedflag='-qmkshrobj'
8722	  tmp_addflag= ;;
8723	nvcc*)	# Cuda Compiler Driver 2.2
8724	  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'
8725	  compiler_needs_object=yes
8726	  ;;
8727	esac
8728	case `$CC -V 2>&1 | sed 5q` in
8729	*Sun\ C*)			# Sun C 5.9
8730	  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'
8731	  compiler_needs_object=yes
8732	  tmp_sharedflag='-G' ;;
8733	*Sun\ F*)			# Sun Fortran 8.3
8734	  tmp_sharedflag='-G' ;;
8735	esac
8736	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737
8738        if test "x$supports_anon_versioning" = xyes; then
8739          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8740	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8741	    echo "local: *; };" >> $output_objdir/$libname.ver~
8742	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8743        fi
8744
8745	case $cc_basename in
8746	xlf* | bgf* | bgxlf* | mpixlf*)
8747	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8748	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8749	  hardcode_libdir_flag_spec=
8750	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8751	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8752	  if test "x$supports_anon_versioning" = xyes; then
8753	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8754	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8755	      echo "local: *; };" >> $output_objdir/$libname.ver~
8756	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8757	  fi
8758	  ;;
8759	esac
8760      else
8761        ld_shlibs=no
8762      fi
8763      ;;
8764
8765    netbsd*)
8766      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8767	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8768	wlarc=
8769      else
8770	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8771	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8772      fi
8773      ;;
8774
8775    solaris*)
8776      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8777	ld_shlibs=no
8778	cat <<_LT_EOF 1>&2
8779
8780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8781*** create shared libraries on Solaris systems.  Therefore, libtool
8782*** is disabling shared libraries support.  We urge you to upgrade GNU
8783*** binutils to release 2.9.1 or newer.  Another option is to modify
8784*** your PATH or compiler configuration so that the native linker is
8785*** used, and then restart.
8786
8787_LT_EOF
8788      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8789	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8791      else
8792	ld_shlibs=no
8793      fi
8794      ;;
8795
8796    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8797      case `$LD -v 2>&1` in
8798        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8799	ld_shlibs=no
8800	cat <<_LT_EOF 1>&2
8801
8802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8803*** reliably create shared libraries on SCO systems.  Therefore, libtool
8804*** is disabling shared libraries support.  We urge you to upgrade GNU
8805*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8806*** your PATH or compiler configuration so that the native linker is
8807*** used, and then restart.
8808
8809_LT_EOF
8810	;;
8811	*)
8812	  # For security reasons, it is highly recommended that you always
8813	  # use absolute paths for naming shared libraries, and exclude the
8814	  # DT_RUNPATH tag from executables and libraries.  But doing so
8815	  # requires that you compile everything twice, which is a pain.
8816	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8817	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820	  else
8821	    ld_shlibs=no
8822	  fi
8823	;;
8824      esac
8825      ;;
8826
8827    sunos4*)
8828      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8829      wlarc=
8830      hardcode_direct=yes
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    *)
8835      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8838      else
8839	ld_shlibs=no
8840      fi
8841      ;;
8842    esac
8843
8844    if test "$ld_shlibs" = no; then
8845      runpath_var=
8846      hardcode_libdir_flag_spec=
8847      export_dynamic_flag_spec=
8848      whole_archive_flag_spec=
8849    fi
8850  else
8851    # PORTME fill in a description of your system's linker (not GNU ld)
8852    case $host_os in
8853    aix3*)
8854      allow_undefined_flag=unsupported
8855      always_export_symbols=yes
8856      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'
8857      # Note: this linker hardcodes the directories in LIBPATH if there
8858      # are no directories specified by -L.
8859      hardcode_minus_L=yes
8860      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8861	# Neither direct hardcoding nor static linking is supported with a
8862	# broken collect2.
8863	hardcode_direct=unsupported
8864      fi
8865      ;;
8866
8867    aix[4-9]*)
8868      if test "$host_cpu" = ia64; then
8869	# On IA64, the linker does run time linking by default, so we don't
8870	# have to do anything special.
8871	aix_use_runtimelinking=no
8872	exp_sym_flag='-Bexport'
8873	no_entry_flag=""
8874      else
8875	# If we're using GNU nm, then we don't want the "-C" option.
8876	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8877	# Also, AIX nm treats weak defined symbols like other global
8878	# defined symbols, whereas GNU nm marks them as "W".
8879	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8880	  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'
8881	else
8882	  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'
8883	fi
8884	aix_use_runtimelinking=no
8885
8886	# Test if we are trying to use run time linking or normal
8887	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8888	# need to do runtime linking.
8889	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8890	  for ld_flag in $LDFLAGS; do
8891	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8892	    aix_use_runtimelinking=yes
8893	    break
8894	  fi
8895	  done
8896	  ;;
8897	esac
8898
8899	exp_sym_flag='-bexport'
8900	no_entry_flag='-bnoentry'
8901      fi
8902
8903      # When large executables or shared objects are built, AIX ld can
8904      # have problems creating the table of contents.  If linking a library
8905      # or program results in "error TOC overflow" add -mminimal-toc to
8906      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8907      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8908
8909      archive_cmds=''
8910      hardcode_direct=yes
8911      hardcode_direct_absolute=yes
8912      hardcode_libdir_separator=':'
8913      link_all_deplibs=yes
8914      file_list_spec='${wl}-f,'
8915
8916      if test "$GCC" = yes; then
8917	case $host_os in aix4.[012]|aix4.[012].*)
8918	# We only want to do this on AIX 4.2 and lower, the check
8919	# below for broken collect2 doesn't work under 4.3+
8920	  collect2name=`${CC} -print-prog-name=collect2`
8921	  if test -f "$collect2name" &&
8922	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8923	  then
8924	  # We have reworked collect2
8925	  :
8926	  else
8927	  # We have old collect2
8928	  hardcode_direct=unsupported
8929	  # It fails to find uninstalled libraries when the uninstalled
8930	  # path is not listed in the libpath.  Setting hardcode_minus_L
8931	  # to unsupported forces relinking
8932	  hardcode_minus_L=yes
8933	  hardcode_libdir_flag_spec='-L$libdir'
8934	  hardcode_libdir_separator=
8935	  fi
8936	  ;;
8937	esac
8938	shared_flag='-shared'
8939	if test "$aix_use_runtimelinking" = yes; then
8940	  shared_flag="$shared_flag "'${wl}-G'
8941	fi
8942      else
8943	# not using gcc
8944	if test "$host_cpu" = ia64; then
8945	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8946	# chokes on -Wl,-G. The following line is correct:
8947	  shared_flag='-G'
8948	else
8949	  if test "$aix_use_runtimelinking" = yes; then
8950	    shared_flag='${wl}-G'
8951	  else
8952	    shared_flag='${wl}-bM:SRE'
8953	  fi
8954	fi
8955      fi
8956
8957      export_dynamic_flag_spec='${wl}-bexpall'
8958      # It seems that -bexpall does not export symbols beginning with
8959      # underscore (_), so it is better to generate a list of symbols to export.
8960      always_export_symbols=yes
8961      if test "$aix_use_runtimelinking" = yes; then
8962	# Warning - without using the other runtime loading flags (-brtl),
8963	# -berok will link without error, but may produce a broken library.
8964	allow_undefined_flag='-berok'
8965        # Determine the default libpath from the value encoded in an
8966        # empty executable.
8967        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h.  */
8969
8970int
8971main ()
8972{
8973
8974  ;
8975  return 0;
8976}
8977_ACEOF
8978if ac_fn_c_try_link "$LINENO"; then :
8979
8980lt_aix_libpath_sed='
8981    /Import File Strings/,/^$/ {
8982	/^0/ {
8983	    s/^0  *\(.*\)$/\1/
8984	    p
8985	}
8986    }'
8987aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988# Check for a 64-bit object if we didn't find anything.
8989if test -z "$aix_libpath"; then
8990  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991fi
8992fi
8993rm -f core conftest.err conftest.$ac_objext \
8994    conftest$ac_exeext conftest.$ac_ext
8995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8996
8997        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8998        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"
8999      else
9000	if test "$host_cpu" = ia64; then
9001	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9002	  allow_undefined_flag="-z nodefs"
9003	  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"
9004	else
9005	 # Determine the default libpath from the value encoded in an
9006	 # empty executable.
9007	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h.  */
9009
9010int
9011main ()
9012{
9013
9014  ;
9015  return 0;
9016}
9017_ACEOF
9018if ac_fn_c_try_link "$LINENO"; then :
9019
9020lt_aix_libpath_sed='
9021    /Import File Strings/,/^$/ {
9022	/^0/ {
9023	    s/^0  *\(.*\)$/\1/
9024	    p
9025	}
9026    }'
9027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9028# Check for a 64-bit object if we didn't find anything.
9029if test -z "$aix_libpath"; then
9030  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9031fi
9032fi
9033rm -f core conftest.err conftest.$ac_objext \
9034    conftest$ac_exeext conftest.$ac_ext
9035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9036
9037	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9038	  # Warning - without using the other run time loading flags,
9039	  # -berok will link without error, but may produce a broken library.
9040	  no_undefined_flag=' ${wl}-bernotok'
9041	  allow_undefined_flag=' ${wl}-berok'
9042	  if test "$with_gnu_ld" = yes; then
9043	    # We only use this code for GNU lds that support --whole-archive.
9044	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9045	  else
9046	    # Exported symbols can be pulled into shared objects from archives
9047	    whole_archive_flag_spec='$convenience'
9048	  fi
9049	  archive_cmds_need_lc=yes
9050	  # This is similar to how AIX traditionally builds its shared libraries.
9051	  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'
9052	fi
9053      fi
9054      ;;
9055
9056    amigaos*)
9057      case $host_cpu in
9058      powerpc)
9059            # see comment about AmigaOS4 .so support
9060            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061            archive_expsym_cmds=''
9062        ;;
9063      m68k)
9064            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)'
9065            hardcode_libdir_flag_spec='-L$libdir'
9066            hardcode_minus_L=yes
9067        ;;
9068      esac
9069      ;;
9070
9071    bsdi[45]*)
9072      export_dynamic_flag_spec=-rdynamic
9073      ;;
9074
9075    cygwin* | mingw* | pw32* | cegcc*)
9076      # When not using gcc, we currently assume that we are using
9077      # Microsoft Visual C++.
9078      # hardcode_libdir_flag_spec is actually meaningless, as there is
9079      # no search path for DLLs.
9080      hardcode_libdir_flag_spec=' '
9081      allow_undefined_flag=unsupported
9082      # Tell ltmain to make .lib files, not .a files.
9083      libext=lib
9084      # Tell ltmain to make .dll files, not .so files.
9085      shrext_cmds=".dll"
9086      # FIXME: Setting linknames here is a bad hack.
9087      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9088      # The linker will automatically build a .lib file if we build a DLL.
9089      old_archive_from_new_cmds='true'
9090      # FIXME: Should let the user specify the lib program.
9091      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9092      fix_srcfile_path='`cygpath -w "$srcfile"`'
9093      enable_shared_with_static_runtimes=yes
9094      ;;
9095
9096    darwin* | rhapsody*)
9097
9098
9099  archive_cmds_need_lc=no
9100  hardcode_direct=no
9101  hardcode_automatic=yes
9102  hardcode_shlibpath_var=unsupported
9103  if test "$lt_cv_ld_force_load" = "yes"; then
9104    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\"`'
9105  else
9106    whole_archive_flag_spec=''
9107  fi
9108  link_all_deplibs=yes
9109  allow_undefined_flag="$_lt_dar_allow_undefined"
9110  case $cc_basename in
9111     ifort*) _lt_dar_can_shared=yes ;;
9112     *) _lt_dar_can_shared=$GCC ;;
9113  esac
9114  if test "$_lt_dar_can_shared" = "yes"; then
9115    output_verbose_link_cmd=func_echo_all
9116    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9117    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9118    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}"
9119    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}"
9120
9121  else
9122  ld_shlibs=no
9123  fi
9124
9125      ;;
9126
9127    dgux*)
9128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129      hardcode_libdir_flag_spec='-L$libdir'
9130      hardcode_shlibpath_var=no
9131      ;;
9132
9133    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9134    # support.  Future versions do this automatically, but an explicit c++rt0.o
9135    # does not break anything, and helps significantly (at the cost of a little
9136    # extra space).
9137    freebsd2.2*)
9138      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9139      hardcode_libdir_flag_spec='-R$libdir'
9140      hardcode_direct=yes
9141      hardcode_shlibpath_var=no
9142      ;;
9143
9144    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9145    freebsd2.*)
9146      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147      hardcode_direct=yes
9148      hardcode_minus_L=yes
9149      hardcode_shlibpath_var=no
9150      ;;
9151
9152    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9153    freebsd* | dragonfly*)
9154      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9155      hardcode_libdir_flag_spec='-R$libdir'
9156      hardcode_direct=yes
9157      hardcode_shlibpath_var=no
9158      ;;
9159
9160    hpux9*)
9161      if test "$GCC" = yes; then
9162	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9163      else
9164	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'
9165      fi
9166      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167      hardcode_libdir_separator=:
9168      hardcode_direct=yes
9169
9170      # hardcode_minus_L: Not really in the search PATH,
9171      # but as the default location of the library.
9172      hardcode_minus_L=yes
9173      export_dynamic_flag_spec='${wl}-E'
9174      ;;
9175
9176    hpux10*)
9177      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9178	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179      else
9180	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9181      fi
9182      if test "$with_gnu_ld" = no; then
9183	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9184	hardcode_libdir_flag_spec_ld='+b $libdir'
9185	hardcode_libdir_separator=:
9186	hardcode_direct=yes
9187	hardcode_direct_absolute=yes
9188	export_dynamic_flag_spec='${wl}-E'
9189	# hardcode_minus_L: Not really in the search PATH,
9190	# but as the default location of the library.
9191	hardcode_minus_L=yes
9192      fi
9193      ;;
9194
9195    hpux11*)
9196      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9197	case $host_cpu in
9198	hppa*64*)
9199	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9200	  ;;
9201	ia64*)
9202	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9203	  ;;
9204	*)
9205	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9206	  ;;
9207	esac
9208      else
9209	case $host_cpu in
9210	hppa*64*)
9211	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212	  ;;
9213	ia64*)
9214	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9215	  ;;
9216	*)
9217
9218	  # Older versions of the 11.00 compiler do not understand -b yet
9219	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9220	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9221$as_echo_n "checking if $CC understands -b... " >&6; }
9222if test "${lt_cv_prog_compiler__b+set}" = set; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  lt_cv_prog_compiler__b=no
9226   save_LDFLAGS="$LDFLAGS"
9227   LDFLAGS="$LDFLAGS -b"
9228   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9229   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9230     # The linker can only warn and ignore the option if not recognized
9231     # So say no if there are warnings
9232     if test -s conftest.err; then
9233       # Append any errors to the config.log.
9234       cat conftest.err 1>&5
9235       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9236       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9237       if diff conftest.exp conftest.er2 >/dev/null; then
9238         lt_cv_prog_compiler__b=yes
9239       fi
9240     else
9241       lt_cv_prog_compiler__b=yes
9242     fi
9243   fi
9244   $RM -r conftest*
9245   LDFLAGS="$save_LDFLAGS"
9246
9247fi
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9249$as_echo "$lt_cv_prog_compiler__b" >&6; }
9250
9251if test x"$lt_cv_prog_compiler__b" = xyes; then
9252    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9253else
9254    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9255fi
9256
9257	  ;;
9258	esac
9259      fi
9260      if test "$with_gnu_ld" = no; then
9261	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9262	hardcode_libdir_separator=:
9263
9264	case $host_cpu in
9265	hppa*64*|ia64*)
9266	  hardcode_direct=no
9267	  hardcode_shlibpath_var=no
9268	  ;;
9269	*)
9270	  hardcode_direct=yes
9271	  hardcode_direct_absolute=yes
9272	  export_dynamic_flag_spec='${wl}-E'
9273
9274	  # hardcode_minus_L: Not really in the search PATH,
9275	  # but as the default location of the library.
9276	  hardcode_minus_L=yes
9277	  ;;
9278	esac
9279      fi
9280      ;;
9281
9282    irix5* | irix6* | nonstopux*)
9283      if test "$GCC" = yes; then
9284	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9285	# Try to use the -exported_symbol ld option, if it does not
9286	# work, assume that -exports_file does not work either and
9287	# implicitly export all symbols.
9288        save_LDFLAGS="$LDFLAGS"
9289        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9290        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292int foo(void) {}
9293_ACEOF
9294if ac_fn_c_try_link "$LINENO"; then :
9295  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9296
9297fi
9298rm -f core conftest.err conftest.$ac_objext \
9299    conftest$ac_exeext conftest.$ac_ext
9300        LDFLAGS="$save_LDFLAGS"
9301      else
9302	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'
9303	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'
9304      fi
9305      archive_cmds_need_lc='no'
9306      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307      hardcode_libdir_separator=:
9308      inherit_rpath=yes
9309      link_all_deplibs=yes
9310      ;;
9311
9312    netbsd*)
9313      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9314	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9315      else
9316	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9317      fi
9318      hardcode_libdir_flag_spec='-R$libdir'
9319      hardcode_direct=yes
9320      hardcode_shlibpath_var=no
9321      ;;
9322
9323    newsos6)
9324      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325      hardcode_direct=yes
9326      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9327      hardcode_libdir_separator=:
9328      hardcode_shlibpath_var=no
9329      ;;
9330
9331    *nto* | *qnx*)
9332      ;;
9333
9334    openbsd*)
9335      if test -f /usr/libexec/ld.so; then
9336	hardcode_direct=yes
9337	hardcode_shlibpath_var=no
9338	hardcode_direct_absolute=yes
9339	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9341	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9342	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343	  export_dynamic_flag_spec='${wl}-E'
9344	else
9345	  case $host_os in
9346	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9347	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348	     hardcode_libdir_flag_spec='-R$libdir'
9349	     ;;
9350	   *)
9351	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9352	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9353	     ;;
9354	  esac
9355	fi
9356      else
9357	ld_shlibs=no
9358      fi
9359      ;;
9360
9361    os2*)
9362      hardcode_libdir_flag_spec='-L$libdir'
9363      hardcode_minus_L=yes
9364      allow_undefined_flag=unsupported
9365      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'
9366      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9367      ;;
9368
9369    osf3*)
9370      if test "$GCC" = yes; then
9371	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372	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'
9373      else
9374	allow_undefined_flag=' -expect_unresolved \*'
9375	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'
9376      fi
9377      archive_cmds_need_lc='no'
9378      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9379      hardcode_libdir_separator=:
9380      ;;
9381
9382    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9383      if test "$GCC" = yes; then
9384	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9385	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9386	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387      else
9388	allow_undefined_flag=' -expect_unresolved \*'
9389	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'
9390	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~
9391	$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'
9392
9393	# Both c and cxx compiler support -rpath directly
9394	hardcode_libdir_flag_spec='-rpath $libdir'
9395      fi
9396      archive_cmds_need_lc='no'
9397      hardcode_libdir_separator=:
9398      ;;
9399
9400    solaris*)
9401      no_undefined_flag=' -z defs'
9402      if test "$GCC" = yes; then
9403	wlarc='${wl}'
9404	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9407      else
9408	case `$CC -V 2>&1` in
9409	*"Compilers 5.0"*)
9410	  wlarc=''
9411	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9413	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9414	  ;;
9415	*)
9416	  wlarc='${wl}'
9417	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9418	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9419	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9420	  ;;
9421	esac
9422      fi
9423      hardcode_libdir_flag_spec='-R$libdir'
9424      hardcode_shlibpath_var=no
9425      case $host_os in
9426      solaris2.[0-5] | solaris2.[0-5].*) ;;
9427      *)
9428	# The compiler driver will combine and reorder linker options,
9429	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9430	# but is careful enough not to reorder.
9431	# Supported since Solaris 2.6 (maybe 2.5.1?)
9432	if test "$GCC" = yes; then
9433	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9434	else
9435	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9436	fi
9437	;;
9438      esac
9439      link_all_deplibs=yes
9440      ;;
9441
9442    sunos4*)
9443      if test "x$host_vendor" = xsequent; then
9444	# Use $CC to link under sequent, because it throws in some extra .o
9445	# files that make .init and .fini sections work.
9446	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9447      else
9448	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9449      fi
9450      hardcode_libdir_flag_spec='-L$libdir'
9451      hardcode_direct=yes
9452      hardcode_minus_L=yes
9453      hardcode_shlibpath_var=no
9454      ;;
9455
9456    sysv4)
9457      case $host_vendor in
9458	sni)
9459	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460	  hardcode_direct=yes # is this really true???
9461	;;
9462	siemens)
9463	  ## LD is ld it makes a PLAMLIB
9464	  ## CC just makes a GrossModule.
9465	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9466	  reload_cmds='$CC -r -o $output$reload_objs'
9467	  hardcode_direct=no
9468        ;;
9469	motorola)
9470	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9472	;;
9473      esac
9474      runpath_var='LD_RUN_PATH'
9475      hardcode_shlibpath_var=no
9476      ;;
9477
9478    sysv4.3*)
9479      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480      hardcode_shlibpath_var=no
9481      export_dynamic_flag_spec='-Bexport'
9482      ;;
9483
9484    sysv4*MP*)
9485      if test -d /usr/nec; then
9486	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487	hardcode_shlibpath_var=no
9488	runpath_var=LD_RUN_PATH
9489	hardcode_runpath_var=yes
9490	ld_shlibs=yes
9491      fi
9492      ;;
9493
9494    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9495      no_undefined_flag='${wl}-z,text'
9496      archive_cmds_need_lc=no
9497      hardcode_shlibpath_var=no
9498      runpath_var='LD_RUN_PATH'
9499
9500      if test "$GCC" = yes; then
9501	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503      else
9504	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506      fi
9507      ;;
9508
9509    sysv5* | sco3.2v5* | sco5v6*)
9510      # Note: We can NOT use -z defs as we might desire, because we do not
9511      # link with -lc, and that would cause any symbols used from libc to
9512      # always be unresolved, which means just about no library would
9513      # ever link correctly.  If we're not using GNU ld we use -z text
9514      # though, which does catch some bad symbols but isn't as heavy-handed
9515      # as -z defs.
9516      no_undefined_flag='${wl}-z,text'
9517      allow_undefined_flag='${wl}-z,nodefs'
9518      archive_cmds_need_lc=no
9519      hardcode_shlibpath_var=no
9520      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9521      hardcode_libdir_separator=':'
9522      link_all_deplibs=yes
9523      export_dynamic_flag_spec='${wl}-Bexport'
9524      runpath_var='LD_RUN_PATH'
9525
9526      if test "$GCC" = yes; then
9527	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529      else
9530	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532      fi
9533      ;;
9534
9535    uts4*)
9536      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537      hardcode_libdir_flag_spec='-L$libdir'
9538      hardcode_shlibpath_var=no
9539      ;;
9540
9541    *)
9542      ld_shlibs=no
9543      ;;
9544    esac
9545
9546    if test x$host_vendor = xsni; then
9547      case $host in
9548      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9549	export_dynamic_flag_spec='${wl}-Blargedynsym'
9550	;;
9551      esac
9552    fi
9553  fi
9554
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9556$as_echo "$ld_shlibs" >&6; }
9557test "$ld_shlibs" = no && can_build_shared=no
9558
9559with_gnu_ld=$with_gnu_ld
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575#
9576# Do we need to explicitly link libc?
9577#
9578case "x$archive_cmds_need_lc" in
9579x|xyes)
9580  # Assume -lc should be added
9581  archive_cmds_need_lc=yes
9582
9583  if test "$enable_shared" = yes && test "$GCC" = yes; then
9584    case $archive_cmds in
9585    *'~'*)
9586      # FIXME: we may have to deal with multi-command sequences.
9587      ;;
9588    '$CC '*)
9589      # Test whether the compiler implicitly links with -lc since on some
9590      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9591      # to ld, don't add -lc before -lgcc.
9592      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9593$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9594if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9595  $as_echo_n "(cached) " >&6
9596else
9597  $RM conftest*
9598	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9599
9600	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9601  (eval $ac_compile) 2>&5
9602  ac_status=$?
9603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9604  test $ac_status = 0; } 2>conftest.err; then
9605	  soname=conftest
9606	  lib=conftest
9607	  libobjs=conftest.$ac_objext
9608	  deplibs=
9609	  wl=$lt_prog_compiler_wl
9610	  pic_flag=$lt_prog_compiler_pic
9611	  compiler_flags=-v
9612	  linker_flags=-v
9613	  verstring=
9614	  output_objdir=.
9615	  libname=conftest
9616	  lt_save_allow_undefined_flag=$allow_undefined_flag
9617	  allow_undefined_flag=
9618	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9619  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9620  ac_status=$?
9621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9622  test $ac_status = 0; }
9623	  then
9624	    lt_cv_archive_cmds_need_lc=no
9625	  else
9626	    lt_cv_archive_cmds_need_lc=yes
9627	  fi
9628	  allow_undefined_flag=$lt_save_allow_undefined_flag
9629	else
9630	  cat conftest.err 1>&5
9631	fi
9632	$RM conftest*
9633
9634fi
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9636$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9637      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9638      ;;
9639    esac
9640  fi
9641  ;;
9642esac
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9801$as_echo_n "checking dynamic linker characteristics... " >&6; }
9802
9803if test "$GCC" = yes; then
9804  case $host_os in
9805    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9806    *) lt_awk_arg="/^libraries:/" ;;
9807  esac
9808  case $host_os in
9809    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9810    *) lt_sed_strip_eq="s,=/,/,g" ;;
9811  esac
9812  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9813  case $lt_search_path_spec in
9814  *\;*)
9815    # if the path contains ";" then we assume it to be the separator
9816    # otherwise default to the standard path separator (i.e. ":") - it is
9817    # assumed that no part of a normal pathname contains ";" but that should
9818    # okay in the real world where ";" in dirpaths is itself problematic.
9819    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9820    ;;
9821  *)
9822    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9823    ;;
9824  esac
9825  # Ok, now we have the path, separated by spaces, we can step through it
9826  # and add multilib dir if necessary.
9827  lt_tmp_lt_search_path_spec=
9828  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9829  for lt_sys_path in $lt_search_path_spec; do
9830    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9831      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9832    else
9833      test -d "$lt_sys_path" && \
9834	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9835    fi
9836  done
9837  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9838BEGIN {RS=" "; FS="/|\n";} {
9839  lt_foo="";
9840  lt_count=0;
9841  for (lt_i = NF; lt_i > 0; lt_i--) {
9842    if ($lt_i != "" && $lt_i != ".") {
9843      if ($lt_i == "..") {
9844        lt_count++;
9845      } else {
9846        if (lt_count == 0) {
9847          lt_foo="/" $lt_i lt_foo;
9848        } else {
9849          lt_count--;
9850        }
9851      }
9852    }
9853  }
9854  if (lt_foo != "") { lt_freq[lt_foo]++; }
9855  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9856}'`
9857  # AWK program above erroneously prepends '/' to C:/dos/paths
9858  # for these hosts.
9859  case $host_os in
9860    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9861      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9862  esac
9863  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9864else
9865  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9866fi
9867library_names_spec=
9868libname_spec='lib$name'
9869soname_spec=
9870shrext_cmds=".so"
9871postinstall_cmds=
9872postuninstall_cmds=
9873finish_cmds=
9874finish_eval=
9875shlibpath_var=
9876shlibpath_overrides_runpath=unknown
9877version_type=none
9878dynamic_linker="$host_os ld.so"
9879sys_lib_dlsearch_path_spec="/lib /usr/lib"
9880need_lib_prefix=unknown
9881hardcode_into_libs=no
9882
9883# when you set need_version to no, make sure it does not cause -set_version
9884# flags to be left without arguments
9885need_version=unknown
9886
9887case $host_os in
9888aix3*)
9889  version_type=linux
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891  shlibpath_var=LIBPATH
9892
9893  # AIX 3 has no versioning support, so we append a major version to the name.
9894  soname_spec='${libname}${release}${shared_ext}$major'
9895  ;;
9896
9897aix[4-9]*)
9898  version_type=linux
9899  need_lib_prefix=no
9900  need_version=no
9901  hardcode_into_libs=yes
9902  if test "$host_cpu" = ia64; then
9903    # AIX 5 supports IA64
9904    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9905    shlibpath_var=LD_LIBRARY_PATH
9906  else
9907    # With GCC up to 2.95.x, collect2 would create an import file
9908    # for dependence libraries.  The import file would start with
9909    # the line `#! .'.  This would cause the generated library to
9910    # depend on `.', always an invalid library.  This was fixed in
9911    # development snapshots of GCC prior to 3.0.
9912    case $host_os in
9913      aix4 | aix4.[01] | aix4.[01].*)
9914      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9915	   echo ' yes '
9916	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9917	:
9918      else
9919	can_build_shared=no
9920      fi
9921      ;;
9922    esac
9923    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9924    # soname into executable. Probably we can add versioning support to
9925    # collect2, so additional links can be useful in future.
9926    if test "$aix_use_runtimelinking" = yes; then
9927      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9928      # instead of lib<name>.a to let people know that these are not
9929      # typical AIX shared libraries.
9930      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931    else
9932      # We preserve .a as extension for shared libraries through AIX4.2
9933      # and later when we are not doing run time linking.
9934      library_names_spec='${libname}${release}.a $libname.a'
9935      soname_spec='${libname}${release}${shared_ext}$major'
9936    fi
9937    shlibpath_var=LIBPATH
9938  fi
9939  ;;
9940
9941amigaos*)
9942  case $host_cpu in
9943  powerpc)
9944    # Since July 2007 AmigaOS4 officially supports .so libraries.
9945    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947    ;;
9948  m68k)
9949    library_names_spec='$libname.ixlibrary $libname.a'
9950    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9951    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'
9952    ;;
9953  esac
9954  ;;
9955
9956beos*)
9957  library_names_spec='${libname}${shared_ext}'
9958  dynamic_linker="$host_os ld.so"
9959  shlibpath_var=LIBRARY_PATH
9960  ;;
9961
9962bsdi[45]*)
9963  version_type=linux
9964  need_version=no
9965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966  soname_spec='${libname}${release}${shared_ext}$major'
9967  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968  shlibpath_var=LD_LIBRARY_PATH
9969  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971  # the default ld.so.conf also contains /usr/contrib/lib and
9972  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973  # libtool to hard-code these into programs
9974  ;;
9975
9976cygwin* | mingw* | pw32* | cegcc*)
9977  version_type=windows
9978  shrext_cmds=".dll"
9979  need_version=no
9980  need_lib_prefix=no
9981
9982  case $GCC,$host_os in
9983  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9984    library_names_spec='$libname.dll.a'
9985    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9986    postinstall_cmds='base_file=`basename \${file}`~
9987      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9988      dldir=$destdir/`dirname \$dlpath`~
9989      test -d \$dldir || mkdir -p \$dldir~
9990      $install_prog $dir/$dlname \$dldir/$dlname~
9991      chmod a+x \$dldir/$dlname~
9992      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9993        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9994      fi'
9995    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9996      dlpath=$dir/\$dldll~
9997       $RM \$dlpath'
9998    shlibpath_overrides_runpath=yes
9999
10000    case $host_os in
10001    cygwin*)
10002      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10003      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004
10005      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10006      ;;
10007    mingw* | cegcc*)
10008      # MinGW DLLs use traditional 'lib' prefix
10009      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10010      ;;
10011    pw32*)
10012      # pw32 DLLs use 'pw' prefix rather than 'lib'
10013      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014      ;;
10015    esac
10016    ;;
10017
10018  *)
10019    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10020    ;;
10021  esac
10022  dynamic_linker='Win32 ld.exe'
10023  # FIXME: first we should search . and the directory the executable is in
10024  shlibpath_var=PATH
10025  ;;
10026
10027darwin* | rhapsody*)
10028  dynamic_linker="$host_os dyld"
10029  version_type=darwin
10030  need_lib_prefix=no
10031  need_version=no
10032  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10033  soname_spec='${libname}${release}${major}$shared_ext'
10034  shlibpath_overrides_runpath=yes
10035  shlibpath_var=DYLD_LIBRARY_PATH
10036  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10037
10038  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10039  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10040  ;;
10041
10042dgux*)
10043  version_type=linux
10044  need_lib_prefix=no
10045  need_version=no
10046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10047  soname_spec='${libname}${release}${shared_ext}$major'
10048  shlibpath_var=LD_LIBRARY_PATH
10049  ;;
10050
10051freebsd* | dragonfly*)
10052  # DragonFly does not have aout.  When/if they implement a new
10053  # versioning mechanism, adjust this.
10054  if test -x /usr/bin/objformat; then
10055    objformat=`/usr/bin/objformat`
10056  else
10057    case $host_os in
10058    freebsd[23].*) objformat=aout ;;
10059    *) objformat=elf ;;
10060    esac
10061  fi
10062  version_type=freebsd-$objformat
10063  case $version_type in
10064    freebsd-elf*)
10065      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10066      need_version=no
10067      need_lib_prefix=no
10068      ;;
10069    freebsd-*)
10070      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10071      need_version=yes
10072      ;;
10073  esac
10074  shlibpath_var=LD_LIBRARY_PATH
10075  case $host_os in
10076  freebsd2.*)
10077    shlibpath_overrides_runpath=yes
10078    ;;
10079  freebsd3.[01]* | freebsdelf3.[01]*)
10080    shlibpath_overrides_runpath=yes
10081    hardcode_into_libs=yes
10082    ;;
10083  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10084  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10085    shlibpath_overrides_runpath=no
10086    hardcode_into_libs=yes
10087    ;;
10088  *) # from 4.6 on, and DragonFly
10089    shlibpath_overrides_runpath=yes
10090    hardcode_into_libs=yes
10091    ;;
10092  esac
10093  ;;
10094
10095gnu*)
10096  version_type=linux
10097  need_lib_prefix=no
10098  need_version=no
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10100  soname_spec='${libname}${release}${shared_ext}$major'
10101  shlibpath_var=LD_LIBRARY_PATH
10102  hardcode_into_libs=yes
10103  ;;
10104
10105haiku*)
10106  version_type=linux
10107  need_lib_prefix=no
10108  need_version=no
10109  dynamic_linker="$host_os runtime_loader"
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10111  soname_spec='${libname}${release}${shared_ext}$major'
10112  shlibpath_var=LIBRARY_PATH
10113  shlibpath_overrides_runpath=yes
10114  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10115  hardcode_into_libs=yes
10116  ;;
10117
10118hpux9* | hpux10* | hpux11*)
10119  # Give a soname corresponding to the major version so that dld.sl refuses to
10120  # link against other versions.
10121  version_type=sunos
10122  need_lib_prefix=no
10123  need_version=no
10124  case $host_cpu in
10125  ia64*)
10126    shrext_cmds='.so'
10127    hardcode_into_libs=yes
10128    dynamic_linker="$host_os dld.so"
10129    shlibpath_var=LD_LIBRARY_PATH
10130    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10131    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132    soname_spec='${libname}${release}${shared_ext}$major'
10133    if test "X$HPUX_IA64_MODE" = X32; then
10134      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10135    else
10136      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10137    fi
10138    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139    ;;
10140  hppa*64*)
10141    shrext_cmds='.sl'
10142    hardcode_into_libs=yes
10143    dynamic_linker="$host_os dld.sl"
10144    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10145    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10146    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147    soname_spec='${libname}${release}${shared_ext}$major'
10148    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10149    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10150    ;;
10151  *)
10152    shrext_cmds='.sl'
10153    dynamic_linker="$host_os dld.sl"
10154    shlibpath_var=SHLIB_PATH
10155    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157    soname_spec='${libname}${release}${shared_ext}$major'
10158    ;;
10159  esac
10160  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10161  postinstall_cmds='chmod 555 $lib'
10162  # or fails outright, so override atomically:
10163  install_override_mode=555
10164  ;;
10165
10166interix[3-9]*)
10167  version_type=linux
10168  need_lib_prefix=no
10169  need_version=no
10170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171  soname_spec='${libname}${release}${shared_ext}$major'
10172  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10173  shlibpath_var=LD_LIBRARY_PATH
10174  shlibpath_overrides_runpath=no
10175  hardcode_into_libs=yes
10176  ;;
10177
10178irix5* | irix6* | nonstopux*)
10179  case $host_os in
10180    nonstopux*) version_type=nonstopux ;;
10181    *)
10182	if test "$lt_cv_prog_gnu_ld" = yes; then
10183		version_type=linux
10184	else
10185		version_type=irix
10186	fi ;;
10187  esac
10188  need_lib_prefix=no
10189  need_version=no
10190  soname_spec='${libname}${release}${shared_ext}$major'
10191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10192  case $host_os in
10193  irix5* | nonstopux*)
10194    libsuff= shlibsuff=
10195    ;;
10196  *)
10197    case $LD in # libtool.m4 will add one of these switches to LD
10198    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10199      libsuff= shlibsuff= libmagic=32-bit;;
10200    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10201      libsuff=32 shlibsuff=N32 libmagic=N32;;
10202    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10203      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10204    *) libsuff= shlibsuff= libmagic=never-match;;
10205    esac
10206    ;;
10207  esac
10208  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10209  shlibpath_overrides_runpath=no
10210  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10211  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10212  hardcode_into_libs=yes
10213  ;;
10214
10215# No shared lib support for Linux oldld, aout, or coff.
10216linux*oldld* | linux*aout* | linux*coff*)
10217  dynamic_linker=no
10218  ;;
10219
10220# This must be Linux ELF.
10221linux* | k*bsd*-gnu | kopensolaris*-gnu)
10222  version_type=linux
10223  need_lib_prefix=no
10224  need_version=no
10225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226  soname_spec='${libname}${release}${shared_ext}$major'
10227  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10228  shlibpath_var=LD_LIBRARY_PATH
10229  shlibpath_overrides_runpath=no
10230
10231  # Some binutils ld are patched to set DT_RUNPATH
10232  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  lt_cv_shlibpath_overrides_runpath=no
10236    save_LDFLAGS=$LDFLAGS
10237    save_libdir=$libdir
10238    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10239	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242
10243int
10244main ()
10245{
10246
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_link "$LINENO"; then :
10252  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10253  lt_cv_shlibpath_overrides_runpath=yes
10254fi
10255fi
10256rm -f core conftest.err conftest.$ac_objext \
10257    conftest$ac_exeext conftest.$ac_ext
10258    LDFLAGS=$save_LDFLAGS
10259    libdir=$save_libdir
10260
10261fi
10262
10263  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10264
10265  # This implies no fast_install, which is unacceptable.
10266  # Some rework will be needed to allow for fast_install
10267  # before this can be enabled.
10268  hardcode_into_libs=yes
10269
10270  # Append ld.so.conf contents to the search path
10271  if test -f /etc/ld.so.conf; then
10272    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' ' '`
10273    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10274  fi
10275
10276  # We used to test for /lib/ld.so.1 and disable shared libraries on
10277  # powerpc, because MkLinux only supported shared libraries with the
10278  # GNU dynamic linker.  Since this was broken with cross compilers,
10279  # most powerpc-linux boxes support dynamic linking these days and
10280  # people can always --disable-shared, the test was removed, and we
10281  # assume the GNU/Linux dynamic linker is in use.
10282  dynamic_linker='GNU/Linux ld.so'
10283  ;;
10284
10285netbsd*)
10286  version_type=sunos
10287  need_lib_prefix=no
10288  need_version=no
10289  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10291    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10292    dynamic_linker='NetBSD (a.out) ld.so'
10293  else
10294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10295    soname_spec='${libname}${release}${shared_ext}$major'
10296    dynamic_linker='NetBSD ld.elf_so'
10297  fi
10298  shlibpath_var=LD_LIBRARY_PATH
10299  shlibpath_overrides_runpath=yes
10300  hardcode_into_libs=yes
10301  ;;
10302
10303newsos6)
10304  version_type=linux
10305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306  shlibpath_var=LD_LIBRARY_PATH
10307  shlibpath_overrides_runpath=yes
10308  ;;
10309
10310*nto* | *qnx*)
10311  version_type=qnx
10312  need_lib_prefix=no
10313  need_version=no
10314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315  soname_spec='${libname}${release}${shared_ext}$major'
10316  shlibpath_var=LD_LIBRARY_PATH
10317  shlibpath_overrides_runpath=no
10318  hardcode_into_libs=yes
10319  dynamic_linker='ldqnx.so'
10320  ;;
10321
10322openbsd*)
10323  version_type=sunos
10324  sys_lib_dlsearch_path_spec="/usr/lib"
10325  need_lib_prefix=no
10326  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10327  case $host_os in
10328    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10329    *)				need_version=no  ;;
10330  esac
10331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10332  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10333  shlibpath_var=LD_LIBRARY_PATH
10334  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10335    case $host_os in
10336      openbsd2.[89] | openbsd2.[89].*)
10337	shlibpath_overrides_runpath=no
10338	;;
10339      *)
10340	shlibpath_overrides_runpath=yes
10341	;;
10342      esac
10343  else
10344    shlibpath_overrides_runpath=yes
10345  fi
10346  ;;
10347
10348os2*)
10349  libname_spec='$name'
10350  shrext_cmds=".dll"
10351  need_lib_prefix=no
10352  library_names_spec='$libname${shared_ext} $libname.a'
10353  dynamic_linker='OS/2 ld.exe'
10354  shlibpath_var=LIBPATH
10355  ;;
10356
10357osf3* | osf4* | osf5*)
10358  version_type=osf
10359  need_lib_prefix=no
10360  need_version=no
10361  soname_spec='${libname}${release}${shared_ext}$major'
10362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363  shlibpath_var=LD_LIBRARY_PATH
10364  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10365  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10366  ;;
10367
10368rdos*)
10369  dynamic_linker=no
10370  ;;
10371
10372solaris*)
10373  version_type=linux
10374  need_lib_prefix=no
10375  need_version=no
10376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377  soname_spec='${libname}${release}${shared_ext}$major'
10378  shlibpath_var=LD_LIBRARY_PATH
10379  shlibpath_overrides_runpath=yes
10380  hardcode_into_libs=yes
10381  # ldd complains unless libraries are executable
10382  postinstall_cmds='chmod +x $lib'
10383  ;;
10384
10385sunos4*)
10386  version_type=sunos
10387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10388  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10389  shlibpath_var=LD_LIBRARY_PATH
10390  shlibpath_overrides_runpath=yes
10391  if test "$with_gnu_ld" = yes; then
10392    need_lib_prefix=no
10393  fi
10394  need_version=yes
10395  ;;
10396
10397sysv4 | sysv4.3*)
10398  version_type=linux
10399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400  soname_spec='${libname}${release}${shared_ext}$major'
10401  shlibpath_var=LD_LIBRARY_PATH
10402  case $host_vendor in
10403    sni)
10404      shlibpath_overrides_runpath=no
10405      need_lib_prefix=no
10406      runpath_var=LD_RUN_PATH
10407      ;;
10408    siemens)
10409      need_lib_prefix=no
10410      ;;
10411    motorola)
10412      need_lib_prefix=no
10413      need_version=no
10414      shlibpath_overrides_runpath=no
10415      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10416      ;;
10417  esac
10418  ;;
10419
10420sysv4*MP*)
10421  if test -d /usr/nec ;then
10422    version_type=linux
10423    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10424    soname_spec='$libname${shared_ext}.$major'
10425    shlibpath_var=LD_LIBRARY_PATH
10426  fi
10427  ;;
10428
10429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10430  version_type=freebsd-elf
10431  need_lib_prefix=no
10432  need_version=no
10433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10434  soname_spec='${libname}${release}${shared_ext}$major'
10435  shlibpath_var=LD_LIBRARY_PATH
10436  shlibpath_overrides_runpath=yes
10437  hardcode_into_libs=yes
10438  if test "$with_gnu_ld" = yes; then
10439    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10440  else
10441    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10442    case $host_os in
10443      sco3.2v5*)
10444        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10445	;;
10446    esac
10447  fi
10448  sys_lib_dlsearch_path_spec='/usr/lib'
10449  ;;
10450
10451tpf*)
10452  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10453  version_type=linux
10454  need_lib_prefix=no
10455  need_version=no
10456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457  shlibpath_var=LD_LIBRARY_PATH
10458  shlibpath_overrides_runpath=no
10459  hardcode_into_libs=yes
10460  ;;
10461
10462uts4*)
10463  version_type=linux
10464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465  soname_spec='${libname}${release}${shared_ext}$major'
10466  shlibpath_var=LD_LIBRARY_PATH
10467  ;;
10468
10469*)
10470  dynamic_linker=no
10471  ;;
10472esac
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10474$as_echo "$dynamic_linker" >&6; }
10475test "$dynamic_linker" = no && can_build_shared=no
10476
10477variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10478if test "$GCC" = yes; then
10479  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10480fi
10481
10482if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10483  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10484fi
10485if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10486  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10487fi
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10581$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10582hardcode_action=
10583if test -n "$hardcode_libdir_flag_spec" ||
10584   test -n "$runpath_var" ||
10585   test "X$hardcode_automatic" = "Xyes" ; then
10586
10587  # We can hardcode non-existent directories.
10588  if test "$hardcode_direct" != no &&
10589     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10590     # have to relink, otherwise we might link with an installed library
10591     # when we should be linking with a yet-to-be-installed one
10592     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10593     test "$hardcode_minus_L" != no; then
10594    # Linking always hardcodes the temporary library directory.
10595    hardcode_action=relink
10596  else
10597    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10598    hardcode_action=immediate
10599  fi
10600else
10601  # We cannot hardcode anything, or else we can only hardcode existing
10602  # directories.
10603  hardcode_action=unsupported
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10606$as_echo "$hardcode_action" >&6; }
10607
10608if test "$hardcode_action" = relink ||
10609   test "$inherit_rpath" = yes; then
10610  # Fast installation is not supported
10611  enable_fast_install=no
10612elif test "$shlibpath_overrides_runpath" = yes ||
10613     test "$enable_shared" = no; then
10614  # Fast installation is not necessary
10615  enable_fast_install=needless
10616fi
10617
10618
10619
10620
10621
10622
10623  if test "x$enable_dlopen" != xyes; then
10624  enable_dlopen=unknown
10625  enable_dlopen_self=unknown
10626  enable_dlopen_self_static=unknown
10627else
10628  lt_cv_dlopen=no
10629  lt_cv_dlopen_libs=
10630
10631  case $host_os in
10632  beos*)
10633    lt_cv_dlopen="load_add_on"
10634    lt_cv_dlopen_libs=
10635    lt_cv_dlopen_self=yes
10636    ;;
10637
10638  mingw* | pw32* | cegcc*)
10639    lt_cv_dlopen="LoadLibrary"
10640    lt_cv_dlopen_libs=
10641    ;;
10642
10643  cygwin*)
10644    lt_cv_dlopen="dlopen"
10645    lt_cv_dlopen_libs=
10646    ;;
10647
10648  darwin*)
10649  # if libdl is installed we need to link against it
10650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10651$as_echo_n "checking for dlopen in -ldl... " >&6; }
10652if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10653  $as_echo_n "(cached) " >&6
10654else
10655  ac_check_lib_save_LIBS=$LIBS
10656LIBS="-ldl  $LIBS"
10657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658/* end confdefs.h.  */
10659
10660/* Override any GCC internal prototype to avoid an error.
10661   Use char because int might match the return type of a GCC
10662   builtin and then its argument prototype would still apply.  */
10663#ifdef __cplusplus
10664extern "C"
10665#endif
10666char dlopen ();
10667int
10668main ()
10669{
10670return dlopen ();
10671  ;
10672  return 0;
10673}
10674_ACEOF
10675if ac_fn_c_try_link "$LINENO"; then :
10676  ac_cv_lib_dl_dlopen=yes
10677else
10678  ac_cv_lib_dl_dlopen=no
10679fi
10680rm -f core conftest.err conftest.$ac_objext \
10681    conftest$ac_exeext conftest.$ac_ext
10682LIBS=$ac_check_lib_save_LIBS
10683fi
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10685$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10686if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10687  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10688else
10689
10690    lt_cv_dlopen="dyld"
10691    lt_cv_dlopen_libs=
10692    lt_cv_dlopen_self=yes
10693
10694fi
10695
10696    ;;
10697
10698  *)
10699    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10700if test "x$ac_cv_func_shl_load" = x""yes; then :
10701  lt_cv_dlopen="shl_load"
10702else
10703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10704$as_echo_n "checking for shl_load in -ldld... " >&6; }
10705if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10706  $as_echo_n "(cached) " >&6
10707else
10708  ac_check_lib_save_LIBS=$LIBS
10709LIBS="-ldld  $LIBS"
10710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711/* end confdefs.h.  */
10712
10713/* Override any GCC internal prototype to avoid an error.
10714   Use char because int might match the return type of a GCC
10715   builtin and then its argument prototype would still apply.  */
10716#ifdef __cplusplus
10717extern "C"
10718#endif
10719char shl_load ();
10720int
10721main ()
10722{
10723return shl_load ();
10724  ;
10725  return 0;
10726}
10727_ACEOF
10728if ac_fn_c_try_link "$LINENO"; then :
10729  ac_cv_lib_dld_shl_load=yes
10730else
10731  ac_cv_lib_dld_shl_load=no
10732fi
10733rm -f core conftest.err conftest.$ac_objext \
10734    conftest$ac_exeext conftest.$ac_ext
10735LIBS=$ac_check_lib_save_LIBS
10736fi
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10738$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10739if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10740  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10741else
10742  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10743if test "x$ac_cv_func_dlopen" = x""yes; then :
10744  lt_cv_dlopen="dlopen"
10745else
10746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10747$as_echo_n "checking for dlopen in -ldl... " >&6; }
10748if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10749  $as_echo_n "(cached) " >&6
10750else
10751  ac_check_lib_save_LIBS=$LIBS
10752LIBS="-ldl  $LIBS"
10753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755
10756/* Override any GCC internal prototype to avoid an error.
10757   Use char because int might match the return type of a GCC
10758   builtin and then its argument prototype would still apply.  */
10759#ifdef __cplusplus
10760extern "C"
10761#endif
10762char dlopen ();
10763int
10764main ()
10765{
10766return dlopen ();
10767  ;
10768  return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_link "$LINENO"; then :
10772  ac_cv_lib_dl_dlopen=yes
10773else
10774  ac_cv_lib_dl_dlopen=no
10775fi
10776rm -f core conftest.err conftest.$ac_objext \
10777    conftest$ac_exeext conftest.$ac_ext
10778LIBS=$ac_check_lib_save_LIBS
10779fi
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10781$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10782if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10783  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10784else
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10786$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10787if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10788  $as_echo_n "(cached) " >&6
10789else
10790  ac_check_lib_save_LIBS=$LIBS
10791LIBS="-lsvld  $LIBS"
10792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793/* end confdefs.h.  */
10794
10795/* Override any GCC internal prototype to avoid an error.
10796   Use char because int might match the return type of a GCC
10797   builtin and then its argument prototype would still apply.  */
10798#ifdef __cplusplus
10799extern "C"
10800#endif
10801char dlopen ();
10802int
10803main ()
10804{
10805return dlopen ();
10806  ;
10807  return 0;
10808}
10809_ACEOF
10810if ac_fn_c_try_link "$LINENO"; then :
10811  ac_cv_lib_svld_dlopen=yes
10812else
10813  ac_cv_lib_svld_dlopen=no
10814fi
10815rm -f core conftest.err conftest.$ac_objext \
10816    conftest$ac_exeext conftest.$ac_ext
10817LIBS=$ac_check_lib_save_LIBS
10818fi
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10820$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10821if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10822  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10823else
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10825$as_echo_n "checking for dld_link in -ldld... " >&6; }
10826if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10827  $as_echo_n "(cached) " >&6
10828else
10829  ac_check_lib_save_LIBS=$LIBS
10830LIBS="-ldld  $LIBS"
10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h.  */
10833
10834/* Override any GCC internal prototype to avoid an error.
10835   Use char because int might match the return type of a GCC
10836   builtin and then its argument prototype would still apply.  */
10837#ifdef __cplusplus
10838extern "C"
10839#endif
10840char dld_link ();
10841int
10842main ()
10843{
10844return dld_link ();
10845  ;
10846  return 0;
10847}
10848_ACEOF
10849if ac_fn_c_try_link "$LINENO"; then :
10850  ac_cv_lib_dld_dld_link=yes
10851else
10852  ac_cv_lib_dld_dld_link=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext \
10855    conftest$ac_exeext conftest.$ac_ext
10856LIBS=$ac_check_lib_save_LIBS
10857fi
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10859$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10860if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10861  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10862fi
10863
10864
10865fi
10866
10867
10868fi
10869
10870
10871fi
10872
10873
10874fi
10875
10876
10877fi
10878
10879    ;;
10880  esac
10881
10882  if test "x$lt_cv_dlopen" != xno; then
10883    enable_dlopen=yes
10884  else
10885    enable_dlopen=no
10886  fi
10887
10888  case $lt_cv_dlopen in
10889  dlopen)
10890    save_CPPFLAGS="$CPPFLAGS"
10891    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10892
10893    save_LDFLAGS="$LDFLAGS"
10894    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10895
10896    save_LIBS="$LIBS"
10897    LIBS="$lt_cv_dlopen_libs $LIBS"
10898
10899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10900$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10901if test "${lt_cv_dlopen_self+set}" = set; then :
10902  $as_echo_n "(cached) " >&6
10903else
10904  	  if test "$cross_compiling" = yes; then :
10905  lt_cv_dlopen_self=cross
10906else
10907  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10908  lt_status=$lt_dlunknown
10909  cat > conftest.$ac_ext <<_LT_EOF
10910#line 10910 "configure"
10911#include "confdefs.h"
10912
10913#if HAVE_DLFCN_H
10914#include <dlfcn.h>
10915#endif
10916
10917#include <stdio.h>
10918
10919#ifdef RTLD_GLOBAL
10920#  define LT_DLGLOBAL		RTLD_GLOBAL
10921#else
10922#  ifdef DL_GLOBAL
10923#    define LT_DLGLOBAL		DL_GLOBAL
10924#  else
10925#    define LT_DLGLOBAL		0
10926#  endif
10927#endif
10928
10929/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10930   find out it does not work in some platform. */
10931#ifndef LT_DLLAZY_OR_NOW
10932#  ifdef RTLD_LAZY
10933#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10934#  else
10935#    ifdef DL_LAZY
10936#      define LT_DLLAZY_OR_NOW		DL_LAZY
10937#    else
10938#      ifdef RTLD_NOW
10939#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10940#      else
10941#        ifdef DL_NOW
10942#          define LT_DLLAZY_OR_NOW	DL_NOW
10943#        else
10944#          define LT_DLLAZY_OR_NOW	0
10945#        endif
10946#      endif
10947#    endif
10948#  endif
10949#endif
10950
10951/* When -fvisbility=hidden is used, assume the code has been annotated
10952   correspondingly for the symbols needed.  */
10953#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10954void fnord () __attribute__((visibility("default")));
10955#endif
10956
10957void fnord () { int i=42; }
10958int main ()
10959{
10960  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10961  int status = $lt_dlunknown;
10962
10963  if (self)
10964    {
10965      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10966      else
10967        {
10968	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10969          else puts (dlerror ());
10970	}
10971      /* dlclose (self); */
10972    }
10973  else
10974    puts (dlerror ());
10975
10976  return status;
10977}
10978_LT_EOF
10979  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10980  (eval $ac_link) 2>&5
10981  ac_status=$?
10982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10983  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10984    (./conftest; exit; ) >&5 2>/dev/null
10985    lt_status=$?
10986    case x$lt_status in
10987      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10988      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10989      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10990    esac
10991  else :
10992    # compilation failed
10993    lt_cv_dlopen_self=no
10994  fi
10995fi
10996rm -fr conftest*
10997
10998
10999fi
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11001$as_echo "$lt_cv_dlopen_self" >&6; }
11002
11003    if test "x$lt_cv_dlopen_self" = xyes; then
11004      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11005      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11006$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11007if test "${lt_cv_dlopen_self_static+set}" = set; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  	  if test "$cross_compiling" = yes; then :
11011  lt_cv_dlopen_self_static=cross
11012else
11013  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11014  lt_status=$lt_dlunknown
11015  cat > conftest.$ac_ext <<_LT_EOF
11016#line 11016 "configure"
11017#include "confdefs.h"
11018
11019#if HAVE_DLFCN_H
11020#include <dlfcn.h>
11021#endif
11022
11023#include <stdio.h>
11024
11025#ifdef RTLD_GLOBAL
11026#  define LT_DLGLOBAL		RTLD_GLOBAL
11027#else
11028#  ifdef DL_GLOBAL
11029#    define LT_DLGLOBAL		DL_GLOBAL
11030#  else
11031#    define LT_DLGLOBAL		0
11032#  endif
11033#endif
11034
11035/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11036   find out it does not work in some platform. */
11037#ifndef LT_DLLAZY_OR_NOW
11038#  ifdef RTLD_LAZY
11039#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11040#  else
11041#    ifdef DL_LAZY
11042#      define LT_DLLAZY_OR_NOW		DL_LAZY
11043#    else
11044#      ifdef RTLD_NOW
11045#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11046#      else
11047#        ifdef DL_NOW
11048#          define LT_DLLAZY_OR_NOW	DL_NOW
11049#        else
11050#          define LT_DLLAZY_OR_NOW	0
11051#        endif
11052#      endif
11053#    endif
11054#  endif
11055#endif
11056
11057/* When -fvisbility=hidden is used, assume the code has been annotated
11058   correspondingly for the symbols needed.  */
11059#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11060void fnord () __attribute__((visibility("default")));
11061#endif
11062
11063void fnord () { int i=42; }
11064int main ()
11065{
11066  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11067  int status = $lt_dlunknown;
11068
11069  if (self)
11070    {
11071      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11072      else
11073        {
11074	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11075          else puts (dlerror ());
11076	}
11077      /* dlclose (self); */
11078    }
11079  else
11080    puts (dlerror ());
11081
11082  return status;
11083}
11084_LT_EOF
11085  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11086  (eval $ac_link) 2>&5
11087  ac_status=$?
11088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11089  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11090    (./conftest; exit; ) >&5 2>/dev/null
11091    lt_status=$?
11092    case x$lt_status in
11093      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11094      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11095      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11096    esac
11097  else :
11098    # compilation failed
11099    lt_cv_dlopen_self_static=no
11100  fi
11101fi
11102rm -fr conftest*
11103
11104
11105fi
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11107$as_echo "$lt_cv_dlopen_self_static" >&6; }
11108    fi
11109
11110    CPPFLAGS="$save_CPPFLAGS"
11111    LDFLAGS="$save_LDFLAGS"
11112    LIBS="$save_LIBS"
11113    ;;
11114  esac
11115
11116  case $lt_cv_dlopen_self in
11117  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11118  *) enable_dlopen_self=unknown ;;
11119  esac
11120
11121  case $lt_cv_dlopen_self_static in
11122  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11123  *) enable_dlopen_self_static=unknown ;;
11124  esac
11125fi
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143striplib=
11144old_striplib=
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11146$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11147if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11148  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11149  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151$as_echo "yes" >&6; }
11152else
11153# FIXME - insert some real tests, host_os isn't really good enough
11154  case $host_os in
11155  darwin*)
11156    if test -n "$STRIP" ; then
11157      striplib="$STRIP -x"
11158      old_striplib="$STRIP -S"
11159      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160$as_echo "yes" >&6; }
11161    else
11162      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164    fi
11165    ;;
11166  *)
11167    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
11169    ;;
11170  esac
11171fi
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184  # Report which library types will actually be built
11185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11186$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11188$as_echo "$can_build_shared" >&6; }
11189
11190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11191$as_echo_n "checking whether to build shared libraries... " >&6; }
11192  test "$can_build_shared" = "no" && enable_shared=no
11193
11194  # On AIX, shared libraries and static libraries use the same namespace, and
11195  # are all built from PIC.
11196  case $host_os in
11197  aix3*)
11198    test "$enable_shared" = yes && enable_static=no
11199    if test -n "$RANLIB"; then
11200      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11201      postinstall_cmds='$RANLIB $lib'
11202    fi
11203    ;;
11204
11205  aix[4-9]*)
11206    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11207      test "$enable_shared" = yes && enable_static=no
11208    fi
11209    ;;
11210  esac
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11212$as_echo "$enable_shared" >&6; }
11213
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11215$as_echo_n "checking whether to build static libraries... " >&6; }
11216  # Make sure either enable_shared or enable_static is yes.
11217  test "$enable_shared" = yes || enable_static=yes
11218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11219$as_echo "$enable_static" >&6; }
11220
11221
11222
11223
11224fi
11225ac_ext=c
11226ac_cpp='$CPP $CPPFLAGS'
11227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11229ac_compiler_gnu=$ac_cv_c_compiler_gnu
11230
11231CC="$lt_save_CC"
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245        ac_config_commands="$ac_config_commands libtool"
11246
11247
11248
11249
11250# Only expand once:
11251
11252
11253
11254
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11256$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11257    # Check whether --enable-maintainer-mode was given.
11258if test "${enable_maintainer_mode+set}" = set; then :
11259  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11260else
11261  USE_MAINTAINER_MODE=no
11262fi
11263
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11265$as_echo "$USE_MAINTAINER_MODE" >&6; }
11266   if test $USE_MAINTAINER_MODE = yes; then
11267  MAINTAINER_MODE_TRUE=
11268  MAINTAINER_MODE_FALSE='#'
11269else
11270  MAINTAINER_MODE_TRUE='#'
11271  MAINTAINER_MODE_FALSE=
11272fi
11273
11274  MAINT=$MAINTAINER_MODE_TRUE
11275
11276
11277
11278for ac_header in sys/mman.h
11279do :
11280  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11281if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11282  cat >>confdefs.h <<_ACEOF
11283#define HAVE_SYS_MMAN_H 1
11284_ACEOF
11285
11286fi
11287
11288done
11289
11290for ac_func in mmap
11291do :
11292  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11293if test "x$ac_cv_func_mmap" = x""yes; then :
11294  cat >>confdefs.h <<_ACEOF
11295#define HAVE_MMAP 1
11296_ACEOF
11297
11298fi
11299done
11300
11301
11302ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11303if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11304  libffi_header_sys_mman_h=yes
11305else
11306  libffi_header_sys_mman_h=no
11307fi
11308
11309
11310ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11311if test "x$ac_cv_func_mmap" = x""yes; then :
11312  libffi_func_mmap=yes
11313else
11314  libffi_func_mmap=no
11315fi
11316
11317if test "$libffi_header_sys_mman_h" != yes \
11318 || test "$libffi_func_mmap" != yes; then
11319   ac_cv_func_mmap_file=no
11320   ac_cv_func_mmap_dev_zero=no
11321   ac_cv_func_mmap_anon=no
11322else
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11324$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11325if test "${ac_cv_func_mmap_file+set}" = set; then :
11326  $as_echo_n "(cached) " >&6
11327else
11328  # Add a system to this blacklist if
11329   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11330   # memory area containing the same data that you'd get if you applied
11331   # read() to the same fd.  The only system known to have a problem here
11332   # is VMS, where text files have record structure.
11333   case "$host_os" in
11334     vms* | ultrix*)
11335	ac_cv_func_mmap_file=no ;;
11336     *)
11337	ac_cv_func_mmap_file=yes;;
11338   esac
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11341$as_echo "$ac_cv_func_mmap_file" >&6; }
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11343$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11344if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11345  $as_echo_n "(cached) " >&6
11346else
11347  # Add a system to this blacklist if it has mmap() but /dev/zero
11348   # does not exist, or if mmapping /dev/zero does not give anonymous
11349   # zeroed pages with both the following properties:
11350   # 1. If you map N consecutive pages in with one call, and then
11351   #    unmap any subset of those pages, the pages that were not
11352   #    explicitly unmapped remain accessible.
11353   # 2. If you map two adjacent blocks of memory and then unmap them
11354   #    both at once, they must both go away.
11355   # Systems known to be in this category are Windows (all variants),
11356   # VMS, and Darwin.
11357   case "$host_os" in
11358     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11359	ac_cv_func_mmap_dev_zero=no ;;
11360     *)
11361	ac_cv_func_mmap_dev_zero=yes;;
11362   esac
11363fi
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11365$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11366
11367   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11369$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11370if test "${ac_cv_decl_map_anon+set}" = set; then :
11371  $as_echo_n "(cached) " >&6
11372else
11373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h.  */
11375#include <sys/types.h>
11376#include <sys/mman.h>
11377#include <unistd.h>
11378
11379#ifndef MAP_ANONYMOUS
11380#define MAP_ANONYMOUS MAP_ANON
11381#endif
11382
11383int
11384main ()
11385{
11386int n = MAP_ANONYMOUS;
11387  ;
11388  return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_compile "$LINENO"; then :
11392  ac_cv_decl_map_anon=yes
11393else
11394  ac_cv_decl_map_anon=no
11395fi
11396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397fi
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11399$as_echo "$ac_cv_decl_map_anon" >&6; }
11400
11401   if test $ac_cv_decl_map_anon = no; then
11402     ac_cv_func_mmap_anon=no
11403   else
11404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11405$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11406if test "${ac_cv_func_mmap_anon+set}" = set; then :
11407  $as_echo_n "(cached) " >&6
11408else
11409  # Add a system to this blacklist if it has mmap() and MAP_ANON or
11410   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11411   # doesn't give anonymous zeroed pages with the same properties listed
11412   # above for use of /dev/zero.
11413   # Systems known to be in this category are Windows, VMS, and SCO Unix.
11414   case "$host_os" in
11415     vms* | cygwin* | pe | mingw* | sco* | udk* )
11416	ac_cv_func_mmap_anon=no ;;
11417     *)
11418	ac_cv_func_mmap_anon=yes;;
11419   esac
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11422$as_echo "$ac_cv_func_mmap_anon" >&6; }
11423   fi
11424fi
11425
11426if test $ac_cv_func_mmap_file = yes; then
11427
11428$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11429
11430fi
11431if test $ac_cv_func_mmap_dev_zero = yes; then
11432
11433$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11434
11435fi
11436if test $ac_cv_func_mmap_anon = yes; then
11437
11438$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11439
11440fi
11441
11442
11443 if test -d $srcdir/testsuite; then
11444  TESTSUBDIR_TRUE=
11445  TESTSUBDIR_FALSE='#'
11446else
11447  TESTSUBDIR_TRUE='#'
11448  TESTSUBDIR_FALSE=
11449fi
11450
11451
11452TARGETDIR="unknown"
11453HAVE_LONG_DOUBLE_VARIANT=0
11454case "$host" in
11455  aarch64*-*-*)
11456	TARGET=AARCH64; TARGETDIR=aarch64
11457	;;
11458
11459  alpha*-*-*)
11460	TARGET=ALPHA; TARGETDIR=alpha;
11461	# Support 128-bit long double, changeable via command-line switch.
11462	HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11463	;;
11464
11465  arm*-*-*)
11466	TARGET=ARM; TARGETDIR=arm
11467	;;
11468
11469  amd64-*-freebsd* | amd64-*-openbsd*)
11470	TARGET=X86_64; TARGETDIR=x86
11471  	;;
11472
11473  amd64-*-freebsd*)
11474	TARGET=X86_64; TARGETDIR=x86
11475	;;
11476
11477  avr32*-*-*)
11478	TARGET=AVR32; TARGETDIR=avr32
11479	;;
11480
11481  bfin*)
11482  	TARGET=BFIN; TARGETDIR=bfin
11483  	;;
11484
11485  cris-*-*)
11486	TARGET=LIBFFI_CRIS; TARGETDIR=cris
11487	;;
11488
11489  frv-*-*)
11490	TARGET=FRV; TARGETDIR=frv
11491	;;
11492
11493  hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
11494	TARGET=PA_LINUX; TARGETDIR=pa
11495	;;
11496  hppa*64-*-hpux*)
11497	TARGET=PA64_HPUX; TARGETDIR=pa
11498	;;
11499  hppa*-*-hpux*)
11500	TARGET=PA_HPUX; TARGETDIR=pa
11501	;;
11502
11503  i?86-*-freebsd* | i?86-*-openbsd*)
11504	TARGET=X86_FREEBSD; TARGETDIR=x86
11505	;;
11506  i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
11507	TARGET=X86_WIN32; TARGETDIR=x86
11508	# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11509	# We must also check with_cross_host to decide if this is a native
11510	# or cross-build and select where to install dlls appropriately.
11511	if test -n "$with_cross_host" &&
11512	   test x"$with_cross_host" != x"no"; then
11513	  AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11514	else
11515	  AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11516	fi
11517	;;
11518  i?86-*-darwin*)
11519	TARGET=X86_DARWIN; TARGETDIR=x86
11520	;;
11521  i?86-*-solaris2.1[0-9]*)
11522	TARGET=X86_64; TARGETDIR=x86
11523	;;
11524  i?86-*-*)
11525	TARGET=X86_64; TARGETDIR=x86
11526	;;
11527
11528  ia64*-*-*)
11529	TARGET=IA64; TARGETDIR=ia64
11530	;;
11531
11532  m32r*-*-*)
11533	TARGET=M32R; TARGETDIR=m32r
11534	;;
11535
11536  m68k-*-*)
11537	TARGET=M68K; TARGETDIR=m68k
11538	;;
11539
11540  mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
11541	TARGET=MIPS; TARGETDIR=mips
11542	;;
11543  mips*-*-linux* | mips*-*-openbsd*)
11544	# Support 128-bit long double for NewABI.
11545	HAVE_LONG_DOUBLE='defined(__mips64)'
11546	TARGET=MIPS; TARGETDIR=mips
11547	;;
11548
11549  powerpc*-*-linux* | powerpc-*-sysv*)
11550	TARGET=POWERPC; TARGETDIR=powerpc
11551	HAVE_LONG_DOUBLE_VARIANT=1
11552	;;
11553  powerpc-*-amigaos*)
11554	TARGET=POWERPC; TARGETDIR=powerpc
11555	;;
11556  powerpc-*-beos*)
11557	TARGET=POWERPC; TARGETDIR=powerpc
11558	;;
11559  powerpc-*-darwin* | powerpc64-*-darwin*)
11560	TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11561	;;
11562  powerpc-*-aix* | rs6000-*-aix*)
11563	TARGET=POWERPC_AIX; TARGETDIR=powerpc
11564	;;
11565  powerpc-*-freebsd* | powerpc-*-openbsd*)
11566	TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11567	HAVE_LONG_DOUBLE_VARIANT=1
11568	;;
11569  powerpc64-*-freebsd*)
11570	TARGET=POWERPC; TARGETDIR=powerpc
11571	;;
11572  powerpc*-*-rtems*)
11573	TARGET=POWERPC; TARGETDIR=powerpc
11574	;;
11575
11576  s390-*-* | s390x-*-*)
11577	TARGET=S390; TARGETDIR=s390
11578	;;
11579
11580  sh-*-* | sh[34]*-*-*)
11581	TARGET=SH; TARGETDIR=sh
11582	;;
11583  sh64-*-* | sh5*-*-*)
11584	TARGET=SH64; TARGETDIR=sh64
11585	;;
11586
11587  sparc*-*-*)
11588	TARGET=SPARC; TARGETDIR=sparc
11589	;;
11590
11591  tile*-*)
11592        TARGET=TILE; TARGETDIR=tile
11593        ;;
11594
11595  x86_64-*-darwin*)
11596	TARGET=X86_DARWIN; TARGETDIR=x86
11597	;;
11598
11599  x86_64-*-cygwin* | x86_64-*-mingw*)
11600	TARGET=X86_WIN64; TARGETDIR=x86
11601	# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11602	# We must also check with_cross_host to decide if this is a native
11603	# or cross-build and select where to install dlls appropriately.
11604	if test -n "$with_cross_host" &&
11605	   test x"$with_cross_host" != x"no"; then
11606	  AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11607	else
11608	  AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11609	fi
11610	;;
11611
11612  x86_64-*-*)
11613	TARGET=X86_64; TARGETDIR=x86
11614	;;
11615esac
11616
11617
11618
11619
11620if test $TARGETDIR = unknown; then
11621  as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11622fi
11623
11624 if test x$TARGET = xMIPS; then
11625  MIPS_TRUE=
11626  MIPS_FALSE='#'
11627else
11628  MIPS_TRUE='#'
11629  MIPS_FALSE=
11630fi
11631
11632 if test x$TARGET = xBFIN; then
11633  BFIN_TRUE=
11634  BFIN_FALSE='#'
11635else
11636  BFIN_TRUE='#'
11637  BFIN_FALSE=
11638fi
11639
11640 if test x$TARGET = xSPARC; then
11641  SPARC_TRUE=
11642  SPARC_FALSE='#'
11643else
11644  SPARC_TRUE='#'
11645  SPARC_FALSE=
11646fi
11647
11648 if test x$TARGET = xX86; then
11649  X86_TRUE=
11650  X86_FALSE='#'
11651else
11652  X86_TRUE='#'
11653  X86_FALSE=
11654fi
11655
11656 if test x$TARGET = xX86_FREEBSD; then
11657  X86_FREEBSD_TRUE=
11658  X86_FREEBSD_FALSE='#'
11659else
11660  X86_FREEBSD_TRUE='#'
11661  X86_FREEBSD_FALSE=
11662fi
11663
11664 if test x$TARGET = xX86_WIN32; then
11665  X86_WIN32_TRUE=
11666  X86_WIN32_FALSE='#'
11667else
11668  X86_WIN32_TRUE='#'
11669  X86_WIN32_FALSE=
11670fi
11671
11672 if test x$TARGET = xX86_WIN64; then
11673  X86_WIN64_TRUE=
11674  X86_WIN64_FALSE='#'
11675else
11676  X86_WIN64_TRUE='#'
11677  X86_WIN64_FALSE=
11678fi
11679
11680 if test x$TARGET = xX86_DARWIN; then
11681  X86_DARWIN_TRUE=
11682  X86_DARWIN_FALSE='#'
11683else
11684  X86_DARWIN_TRUE='#'
11685  X86_DARWIN_FALSE=
11686fi
11687
11688 if test x$TARGET = xALPHA; then
11689  ALPHA_TRUE=
11690  ALPHA_FALSE='#'
11691else
11692  ALPHA_TRUE='#'
11693  ALPHA_FALSE=
11694fi
11695
11696 if test x$TARGET = xIA64; then
11697  IA64_TRUE=
11698  IA64_FALSE='#'
11699else
11700  IA64_TRUE='#'
11701  IA64_FALSE=
11702fi
11703
11704 if test x$TARGET = xM32R; then
11705  M32R_TRUE=
11706  M32R_FALSE='#'
11707else
11708  M32R_TRUE='#'
11709  M32R_FALSE=
11710fi
11711
11712 if test x$TARGET = xM68K; then
11713  M68K_TRUE=
11714  M68K_FALSE='#'
11715else
11716  M68K_TRUE='#'
11717  M68K_FALSE=
11718fi
11719
11720 if test x$TARGET = xPOWERPC; then
11721  POWERPC_TRUE=
11722  POWERPC_FALSE='#'
11723else
11724  POWERPC_TRUE='#'
11725  POWERPC_FALSE=
11726fi
11727
11728 if test x$TARGET = xPOWERPC_AIX; then
11729  POWERPC_AIX_TRUE=
11730  POWERPC_AIX_FALSE='#'
11731else
11732  POWERPC_AIX_TRUE='#'
11733  POWERPC_AIX_FALSE=
11734fi
11735
11736 if test x$TARGET = xPOWERPC_DARWIN; then
11737  POWERPC_DARWIN_TRUE=
11738  POWERPC_DARWIN_FALSE='#'
11739else
11740  POWERPC_DARWIN_TRUE='#'
11741  POWERPC_DARWIN_FALSE=
11742fi
11743
11744 if test x$TARGET = xPOWERPC_FREEBSD; then
11745  POWERPC_FREEBSD_TRUE=
11746  POWERPC_FREEBSD_FALSE='#'
11747else
11748  POWERPC_FREEBSD_TRUE='#'
11749  POWERPC_FREEBSD_FALSE=
11750fi
11751
11752 if test x$TARGET = xAARCH64; then
11753  AARCH64_TRUE=
11754  AARCH64_FALSE='#'
11755else
11756  AARCH64_TRUE='#'
11757  AARCH64_FALSE=
11758fi
11759
11760 if test x$TARGET = xARM; then
11761  ARM_TRUE=
11762  ARM_FALSE='#'
11763else
11764  ARM_TRUE='#'
11765  ARM_FALSE=
11766fi
11767
11768 if test x$TARGET = xAVR32; then
11769  AVR32_TRUE=
11770  AVR32_FALSE='#'
11771else
11772  AVR32_TRUE='#'
11773  AVR32_FALSE=
11774fi
11775
11776 if test x$TARGET = xLIBFFI_CRIS; then
11777  LIBFFI_CRIS_TRUE=
11778  LIBFFI_CRIS_FALSE='#'
11779else
11780  LIBFFI_CRIS_TRUE='#'
11781  LIBFFI_CRIS_FALSE=
11782fi
11783
11784 if test x$TARGET = xFRV; then
11785  FRV_TRUE=
11786  FRV_FALSE='#'
11787else
11788  FRV_TRUE='#'
11789  FRV_FALSE=
11790fi
11791
11792 if test x$TARGET = xS390; then
11793  S390_TRUE=
11794  S390_FALSE='#'
11795else
11796  S390_TRUE='#'
11797  S390_FALSE=
11798fi
11799
11800 if test x$TARGET = xX86_64; then
11801  X86_64_TRUE=
11802  X86_64_FALSE='#'
11803else
11804  X86_64_TRUE='#'
11805  X86_64_FALSE=
11806fi
11807
11808 if test x$TARGET = xSH; then
11809  SH_TRUE=
11810  SH_FALSE='#'
11811else
11812  SH_TRUE='#'
11813  SH_FALSE=
11814fi
11815
11816 if test x$TARGET = xSH64; then
11817  SH64_TRUE=
11818  SH64_FALSE='#'
11819else
11820  SH64_TRUE='#'
11821  SH64_FALSE=
11822fi
11823
11824 if test x$TARGET = xPA_LINUX; then
11825  PA_LINUX_TRUE=
11826  PA_LINUX_FALSE='#'
11827else
11828  PA_LINUX_TRUE='#'
11829  PA_LINUX_FALSE=
11830fi
11831
11832 if test x$TARGET = xPA_HPUX; then
11833  PA_HPUX_TRUE=
11834  PA_HPUX_FALSE='#'
11835else
11836  PA_HPUX_TRUE='#'
11837  PA_HPUX_FALSE=
11838fi
11839
11840 if test x$TARGET = xPA64_HPUX; then
11841  PA64_HPUX_TRUE=
11842  PA64_HPUX_FALSE='#'
11843else
11844  PA64_HPUX_TRUE='#'
11845  PA64_HPUX_FALSE=
11846fi
11847
11848 if test x$TARGET = xTILE; then
11849  TILE_TRUE=
11850  TILE_FALSE='#'
11851else
11852  TILE_TRUE='#'
11853  TILE_FALSE=
11854fi
11855
11856
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11858$as_echo_n "checking for ANSI C header files... " >&6; }
11859if test "${ac_cv_header_stdc+set}" = set; then :
11860  $as_echo_n "(cached) " >&6
11861else
11862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863/* end confdefs.h.  */
11864#include <stdlib.h>
11865#include <stdarg.h>
11866#include <string.h>
11867#include <float.h>
11868
11869int
11870main ()
11871{
11872
11873  ;
11874  return 0;
11875}
11876_ACEOF
11877if ac_fn_c_try_compile "$LINENO"; then :
11878  ac_cv_header_stdc=yes
11879else
11880  ac_cv_header_stdc=no
11881fi
11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883
11884if test $ac_cv_header_stdc = yes; then
11885  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887/* end confdefs.h.  */
11888#include <string.h>
11889
11890_ACEOF
11891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11892  $EGREP "memchr" >/dev/null 2>&1; then :
11893
11894else
11895  ac_cv_header_stdc=no
11896fi
11897rm -f conftest*
11898
11899fi
11900
11901if test $ac_cv_header_stdc = yes; then
11902  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904/* end confdefs.h.  */
11905#include <stdlib.h>
11906
11907_ACEOF
11908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11909  $EGREP "free" >/dev/null 2>&1; then :
11910
11911else
11912  ac_cv_header_stdc=no
11913fi
11914rm -f conftest*
11915
11916fi
11917
11918if test $ac_cv_header_stdc = yes; then
11919  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11920  if test "$cross_compiling" = yes; then :
11921  :
11922else
11923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924/* end confdefs.h.  */
11925#include <ctype.h>
11926#include <stdlib.h>
11927#if ((' ' & 0x0FF) == 0x020)
11928# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11929# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11930#else
11931# define ISLOWER(c) \
11932		   (('a' <= (c) && (c) <= 'i') \
11933		     || ('j' <= (c) && (c) <= 'r') \
11934		     || ('s' <= (c) && (c) <= 'z'))
11935# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11936#endif
11937
11938#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11939int
11940main ()
11941{
11942  int i;
11943  for (i = 0; i < 256; i++)
11944    if (XOR (islower (i), ISLOWER (i))
11945	|| toupper (i) != TOUPPER (i))
11946      return 2;
11947  return 0;
11948}
11949_ACEOF
11950if ac_fn_c_try_run "$LINENO"; then :
11951
11952else
11953  ac_cv_header_stdc=no
11954fi
11955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11956  conftest.$ac_objext conftest.beam conftest.$ac_ext
11957fi
11958
11959fi
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11962$as_echo "$ac_cv_header_stdc" >&6; }
11963if test $ac_cv_header_stdc = yes; then
11964
11965$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11966
11967fi
11968
11969for ac_func in memcpy
11970do :
11971  ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11972if test "x$ac_cv_func_memcpy" = x""yes; then :
11973  cat >>confdefs.h <<_ACEOF
11974#define HAVE_MEMCPY 1
11975_ACEOF
11976
11977fi
11978done
11979
11980# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11981# for constant arguments.  Useless!
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11983$as_echo_n "checking for working alloca.h... " >&6; }
11984if test "${ac_cv_working_alloca_h+set}" = set; then :
11985  $as_echo_n "(cached) " >&6
11986else
11987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h.  */
11989#include <alloca.h>
11990int
11991main ()
11992{
11993char *p = (char *) alloca (2 * sizeof (int));
11994			  if (p) return 0;
11995  ;
11996  return 0;
11997}
11998_ACEOF
11999if ac_fn_c_try_link "$LINENO"; then :
12000  ac_cv_working_alloca_h=yes
12001else
12002  ac_cv_working_alloca_h=no
12003fi
12004rm -f core conftest.err conftest.$ac_objext \
12005    conftest$ac_exeext conftest.$ac_ext
12006fi
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12008$as_echo "$ac_cv_working_alloca_h" >&6; }
12009if test $ac_cv_working_alloca_h = yes; then
12010
12011$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12012
12013fi
12014
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12016$as_echo_n "checking for alloca... " >&6; }
12017if test "${ac_cv_func_alloca_works+set}" = set; then :
12018  $as_echo_n "(cached) " >&6
12019else
12020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h.  */
12022#ifdef __GNUC__
12023# define alloca __builtin_alloca
12024#else
12025# ifdef _MSC_VER
12026#  include <malloc.h>
12027#  define alloca _alloca
12028# else
12029#  ifdef HAVE_ALLOCA_H
12030#   include <alloca.h>
12031#  else
12032#   ifdef _AIX
12033 #pragma alloca
12034#   else
12035#    ifndef alloca /* predefined by HP cc +Olibcalls */
12036char *alloca ();
12037#    endif
12038#   endif
12039#  endif
12040# endif
12041#endif
12042
12043int
12044main ()
12045{
12046char *p = (char *) alloca (1);
12047				    if (p) return 0;
12048  ;
12049  return 0;
12050}
12051_ACEOF
12052if ac_fn_c_try_link "$LINENO"; then :
12053  ac_cv_func_alloca_works=yes
12054else
12055  ac_cv_func_alloca_works=no
12056fi
12057rm -f core conftest.err conftest.$ac_objext \
12058    conftest$ac_exeext conftest.$ac_ext
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12061$as_echo "$ac_cv_func_alloca_works" >&6; }
12062
12063if test $ac_cv_func_alloca_works = yes; then
12064
12065$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12066
12067else
12068  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12069# that cause trouble.  Some versions do not even contain alloca or
12070# contain a buggy version.  If you still want to use their alloca,
12071# use ar to extract alloca.o from them instead of compiling alloca.c.
12072
12073ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12074
12075$as_echo "#define C_ALLOCA 1" >>confdefs.h
12076
12077
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12079$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12080if test "${ac_cv_os_cray+set}" = set; then :
12081  $as_echo_n "(cached) " >&6
12082else
12083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084/* end confdefs.h.  */
12085#if defined CRAY && ! defined CRAY2
12086webecray
12087#else
12088wenotbecray
12089#endif
12090
12091_ACEOF
12092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12093  $EGREP "webecray" >/dev/null 2>&1; then :
12094  ac_cv_os_cray=yes
12095else
12096  ac_cv_os_cray=no
12097fi
12098rm -f conftest*
12099
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12102$as_echo "$ac_cv_os_cray" >&6; }
12103if test $ac_cv_os_cray = yes; then
12104  for ac_func in _getb67 GETB67 getb67; do
12105    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12106ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12107eval as_val=\$$as_ac_var
12108   if test "x$as_val" = x""yes; then :
12109
12110cat >>confdefs.h <<_ACEOF
12111#define CRAY_STACKSEG_END $ac_func
12112_ACEOF
12113
12114    break
12115fi
12116
12117  done
12118fi
12119
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12121$as_echo_n "checking stack direction for C alloca... " >&6; }
12122if test "${ac_cv_c_stack_direction+set}" = set; then :
12123  $as_echo_n "(cached) " >&6
12124else
12125  if test "$cross_compiling" = yes; then :
12126  ac_cv_c_stack_direction=0
12127else
12128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h.  */
12130$ac_includes_default
12131int
12132find_stack_direction ()
12133{
12134  static char *addr = 0;
12135  auto char dummy;
12136  if (addr == 0)
12137    {
12138      addr = &dummy;
12139      return find_stack_direction ();
12140    }
12141  else
12142    return (&dummy > addr) ? 1 : -1;
12143}
12144
12145int
12146main ()
12147{
12148  return find_stack_direction () < 0;
12149}
12150_ACEOF
12151if ac_fn_c_try_run "$LINENO"; then :
12152  ac_cv_c_stack_direction=1
12153else
12154  ac_cv_c_stack_direction=-1
12155fi
12156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12157  conftest.$ac_objext conftest.beam conftest.$ac_ext
12158fi
12159
12160fi
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12162$as_echo "$ac_cv_c_stack_direction" >&6; }
12163cat >>confdefs.h <<_ACEOF
12164#define STACK_DIRECTION $ac_cv_c_stack_direction
12165_ACEOF
12166
12167
12168fi
12169
12170
12171# The cast to long int works around a bug in the HP C Compiler
12172# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12173# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12174# This bug is HP SR number 8606223364.
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12176$as_echo_n "checking size of double... " >&6; }
12177if test "${ac_cv_sizeof_double+set}" = set; then :
12178  $as_echo_n "(cached) " >&6
12179else
12180  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
12181
12182else
12183  if test "$ac_cv_type_double" = yes; then
12184     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12186{ as_fn_set_status 77
12187as_fn_error "cannot compute sizeof (double)
12188See \`config.log' for more details." "$LINENO" 5; }; }
12189   else
12190     ac_cv_sizeof_double=0
12191   fi
12192fi
12193
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12196$as_echo "$ac_cv_sizeof_double" >&6; }
12197
12198
12199
12200cat >>confdefs.h <<_ACEOF
12201#define SIZEOF_DOUBLE $ac_cv_sizeof_double
12202_ACEOF
12203
12204
12205# The cast to long int works around a bug in the HP C Compiler
12206# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12207# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12208# This bug is HP SR number 8606223364.
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12210$as_echo_n "checking size of long double... " >&6; }
12211if test "${ac_cv_sizeof_long_double+set}" = set; then :
12212  $as_echo_n "(cached) " >&6
12213else
12214  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
12215
12216else
12217  if test "$ac_cv_type_long_double" = yes; then
12218     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12220{ as_fn_set_status 77
12221as_fn_error "cannot compute sizeof (long double)
12222See \`config.log' for more details." "$LINENO" 5; }; }
12223   else
12224     ac_cv_sizeof_long_double=0
12225   fi
12226fi
12227
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12230$as_echo "$ac_cv_sizeof_long_double" >&6; }
12231
12232
12233
12234cat >>confdefs.h <<_ACEOF
12235#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12236_ACEOF
12237
12238
12239
12240# Also AC_SUBST this variable for ffi.h.
12241if test -z "$HAVE_LONG_DOUBLE"; then
12242  HAVE_LONG_DOUBLE=0
12243  if test $ac_cv_sizeof_long_double != 0; then
12244    if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
12245
12246$as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
12247
12248      HAVE_LONG_DOUBLE=1
12249    else
12250      if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12251        HAVE_LONG_DOUBLE=1
12252
12253$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12254
12255      fi
12256    fi
12257  fi
12258fi
12259
12260
12261
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12263$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12264if test "${ac_cv_c_bigendian+set}" = set; then :
12265  $as_echo_n "(cached) " >&6
12266else
12267  ac_cv_c_bigendian=unknown
12268    # See if we're dealing with a universal compiler.
12269    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h.  */
12271#ifndef __APPLE_CC__
12272	       not a universal capable compiler
12273	     #endif
12274	     typedef int dummy;
12275
12276_ACEOF
12277if ac_fn_c_try_compile "$LINENO"; then :
12278
12279	# Check for potential -arch flags.  It is not universal unless
12280	# there are at least two -arch flags with different values.
12281	ac_arch=
12282	ac_prev=
12283	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12284	 if test -n "$ac_prev"; then
12285	   case $ac_word in
12286	     i?86 | x86_64 | ppc | ppc64)
12287	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12288		 ac_arch=$ac_word
12289	       else
12290		 ac_cv_c_bigendian=universal
12291		 break
12292	       fi
12293	       ;;
12294	   esac
12295	   ac_prev=
12296	 elif test "x$ac_word" = "x-arch"; then
12297	   ac_prev=arch
12298	 fi
12299       done
12300fi
12301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302    if test $ac_cv_c_bigendian = unknown; then
12303      # See if sys/param.h defines the BYTE_ORDER macro.
12304      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h.  */
12306#include <sys/types.h>
12307	     #include <sys/param.h>
12308
12309int
12310main ()
12311{
12312#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12313		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12314		     && LITTLE_ENDIAN)
12315	      bogus endian macros
12316	     #endif
12317
12318  ;
12319  return 0;
12320}
12321_ACEOF
12322if ac_fn_c_try_compile "$LINENO"; then :
12323  # It does; now see whether it defined to BIG_ENDIAN or not.
12324	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325/* end confdefs.h.  */
12326#include <sys/types.h>
12327		#include <sys/param.h>
12328
12329int
12330main ()
12331{
12332#if BYTE_ORDER != BIG_ENDIAN
12333		 not big endian
12334		#endif
12335
12336  ;
12337  return 0;
12338}
12339_ACEOF
12340if ac_fn_c_try_compile "$LINENO"; then :
12341  ac_cv_c_bigendian=yes
12342else
12343  ac_cv_c_bigendian=no
12344fi
12345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346fi
12347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348    fi
12349    if test $ac_cv_c_bigendian = unknown; then
12350      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12351      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353#include <limits.h>
12354
12355int
12356main ()
12357{
12358#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12359	      bogus endian macros
12360	     #endif
12361
12362  ;
12363  return 0;
12364}
12365_ACEOF
12366if ac_fn_c_try_compile "$LINENO"; then :
12367  # It does; now see whether it defined to _BIG_ENDIAN or not.
12368	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369/* end confdefs.h.  */
12370#include <limits.h>
12371
12372int
12373main ()
12374{
12375#ifndef _BIG_ENDIAN
12376		 not big endian
12377		#endif
12378
12379  ;
12380  return 0;
12381}
12382_ACEOF
12383if ac_fn_c_try_compile "$LINENO"; then :
12384  ac_cv_c_bigendian=yes
12385else
12386  ac_cv_c_bigendian=no
12387fi
12388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389fi
12390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391    fi
12392    if test $ac_cv_c_bigendian = unknown; then
12393      # Compile a test program.
12394      if test "$cross_compiling" = yes; then :
12395  # Try to guess by grepping values from an object file.
12396	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397/* end confdefs.h.  */
12398short int ascii_mm[] =
12399		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12400		short int ascii_ii[] =
12401		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12402		int use_ascii (int i) {
12403		  return ascii_mm[i] + ascii_ii[i];
12404		}
12405		short int ebcdic_ii[] =
12406		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12407		short int ebcdic_mm[] =
12408		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12409		int use_ebcdic (int i) {
12410		  return ebcdic_mm[i] + ebcdic_ii[i];
12411		}
12412		extern int foo;
12413
12414int
12415main ()
12416{
12417return use_ascii (foo) == use_ebcdic (foo);
12418  ;
12419  return 0;
12420}
12421_ACEOF
12422if ac_fn_c_try_compile "$LINENO"; then :
12423  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12424	      ac_cv_c_bigendian=yes
12425	    fi
12426	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12427	      if test "$ac_cv_c_bigendian" = unknown; then
12428		ac_cv_c_bigendian=no
12429	      else
12430		# finding both strings is unlikely to happen, but who knows?
12431		ac_cv_c_bigendian=unknown
12432	      fi
12433	    fi
12434fi
12435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436else
12437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h.  */
12439$ac_includes_default
12440int
12441main ()
12442{
12443
12444	     /* Are we little or big endian?  From Harbison&Steele.  */
12445	     union
12446	     {
12447	       long int l;
12448	       char c[sizeof (long int)];
12449	     } u;
12450	     u.l = 1;
12451	     return u.c[sizeof (long int) - 1] == 1;
12452
12453  ;
12454  return 0;
12455}
12456_ACEOF
12457if ac_fn_c_try_run "$LINENO"; then :
12458  ac_cv_c_bigendian=no
12459else
12460  ac_cv_c_bigendian=yes
12461fi
12462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12463  conftest.$ac_objext conftest.beam conftest.$ac_ext
12464fi
12465
12466    fi
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12469$as_echo "$ac_cv_c_bigendian" >&6; }
12470 case $ac_cv_c_bigendian in #(
12471   yes)
12472     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12473;; #(
12474   no)
12475      ;; #(
12476   universal)
12477
12478$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12479
12480     ;; #(
12481   *)
12482     as_fn_error "unknown endianness
12483 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12484 esac
12485
12486
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12488$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12489if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492
12493    gcc_cv_as_cfi_pseudo_op=unknown
12494    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h.  */
12496asm (".cfi_startproc\n\t.cfi_endproc");
12497int
12498main ()
12499{
12500
12501  ;
12502  return 0;
12503}
12504_ACEOF
12505if ac_fn_c_try_compile "$LINENO"; then :
12506  gcc_cv_as_cfi_pseudo_op=yes
12507else
12508  gcc_cv_as_cfi_pseudo_op=no
12509fi
12510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511
12512fi
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
12514$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
12515 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
12516
12517$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12518
12519 fi
12520
12521
12522if test x$TARGET = xSPARC; then
12523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12524$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12525if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12526  $as_echo_n "(cached) " >&6
12527else
12528
12529	save_CFLAGS="$CFLAGS"
12530	save_LDFLAGS="$LDFLAGS"
12531	CFLAGS="$CFLAGS -fpic"
12532	LDFLAGS="$LDFLAGS -shared"
12533	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534/* end confdefs.h.  */
12535asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12536int
12537main ()
12538{
12539
12540  ;
12541  return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then :
12545  libffi_cv_as_sparc_ua_pcrel=yes
12546else
12547  libffi_cv_as_sparc_ua_pcrel=no
12548fi
12549rm -f core conftest.err conftest.$ac_objext \
12550    conftest$ac_exeext conftest.$ac_ext
12551	CFLAGS="$save_CFLAGS"
12552	LDFLAGS="$save_LDFLAGS"
12553fi
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12555$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12556    if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12557
12558$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12559
12560    fi
12561
12562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12563$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12564if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12565  $as_echo_n "(cached) " >&6
12566else
12567
12568       libffi_cv_as_register_pseudo_op=unknown
12569       # Check if we have .register
12570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572asm (".register %g2, #scratch");
12573int
12574main ()
12575{
12576
12577  ;
12578  return 0;
12579}
12580_ACEOF
12581if ac_fn_c_try_compile "$LINENO"; then :
12582  libffi_cv_as_register_pseudo_op=yes
12583else
12584  libffi_cv_as_register_pseudo_op=no
12585fi
12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587
12588fi
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12590$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12591    if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12592
12593$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12594
12595    fi
12596fi
12597
12598if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12600$as_echo_n "checking assembler supports pc related relocs... " >&6; }
12601if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12602  $as_echo_n "(cached) " >&6
12603else
12604
12605	libffi_cv_as_x86_pcrel=yes
12606	echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12607	if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12608	    libffi_cv_as_x86_pcrel=no
12609	fi
12610
12611fi
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12613$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12614    if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12615
12616$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12617
12618    fi
12619
12620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12621$as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12622if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12623  $as_echo_n "(cached) " >&6
12624else
12625
12626       libffi_cv_as_ascii_pseudo_op=unknown
12627       # Check if we have .ascii
12628       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629/* end confdefs.h.  */
12630asm (".ascii \\"string\\"");
12631int
12632main ()
12633{
12634
12635  ;
12636  return 0;
12637}
12638_ACEOF
12639if ac_fn_c_try_compile "$LINENO"; then :
12640  libffi_cv_as_ascii_pseudo_op=yes
12641else
12642  libffi_cv_as_ascii_pseudo_op=no
12643fi
12644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645
12646fi
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12648$as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12649    if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12650
12651$as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12652
12653    fi
12654
12655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12656$as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12657if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12658  $as_echo_n "(cached) " >&6
12659else
12660
12661       libffi_cv_as_string_pseudo_op=unknown
12662       # Check if we have .string
12663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664/* end confdefs.h.  */
12665asm (".string \\"string\\"");
12666int
12667main ()
12668{
12669
12670  ;
12671  return 0;
12672}
12673_ACEOF
12674if ac_fn_c_try_compile "$LINENO"; then :
12675  libffi_cv_as_string_pseudo_op=yes
12676else
12677  libffi_cv_as_string_pseudo_op=no
12678fi
12679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12683$as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12684    if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12685
12686$as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12687
12688    fi
12689fi
12690
12691# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
12692# Check whether --enable-pax_emutramp was given.
12693if test "${enable_pax_emutramp+set}" = set; then :
12694  enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
12695
12696$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
12697
12698  fi
12699fi
12700
12701
12702FFI_EXEC_TRAMPOLINE_TABLE=0
12703case "$target" in
12704     *arm*-apple-darwin*)
12705       FFI_EXEC_TRAMPOLINE_TABLE=1
12706
12707$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
12708
12709     ;;
12710     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
12711
12712$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12713
12714     ;;
12715esac
12716 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
12717  FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
12718  FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
12719else
12720  FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
12721  FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
12722fi
12723
12724
12725
12726if test x$TARGET = xX86_64; then
12727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12728$as_echo_n "checking assembler supports unwind section type... " >&6; }
12729if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12730  $as_echo_n "(cached) " >&6
12731else
12732
12733	libffi_cv_as_x86_64_unwind_section_type=yes
12734	echo '.section .eh_frame,"a",@unwind' > conftest.s
12735	if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12736	    libffi_cv_as_x86_64_unwind_section_type=no
12737	fi
12738
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12741$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12742    if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12743
12744$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12745
12746    fi
12747fi
12748
12749if test "x$GCC" = "xyes"; then
12750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12751$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12752if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12753  $as_echo_n "(cached) " >&6
12754else
12755
12756  	libffi_cv_ro_eh_frame=no
12757  	echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12758  	if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12759  	    if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12760  		libffi_cv_ro_eh_frame=yes
12761  	    elif grep '.section.*eh_frame.*#alloc' conftest.c \
12762  		 | grep -v '#write' > /dev/null; then
12763  		libffi_cv_ro_eh_frame=yes
12764  	    fi
12765  	fi
12766  	rm -f conftest.*
12767
12768fi
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12770$as_echo "$libffi_cv_ro_eh_frame" >&6; }
12771  if test "x$libffi_cv_ro_eh_frame" = xyes; then
12772
12773$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12774
12775
12776$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12777
12778  else
12779
12780$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12781
12782  fi
12783
12784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12785$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12786if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12787  $as_echo_n "(cached) " >&6
12788else
12789
12790  	echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
12791  	libffi_cv_hidden_visibility_attribute=no
12792  	if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12793  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12794  (eval $ac_try) 2>&5
12795  ac_status=$?
12796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12797  test $ac_status = 0; }; }; then
12798  	    if grep '\.hidden.*foo' conftest.s >/dev/null; then
12799  		libffi_cv_hidden_visibility_attribute=yes
12800  	    fi
12801  	fi
12802  	rm -f conftest.*
12803
12804fi
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12806$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12807  if test $libffi_cv_hidden_visibility_attribute = yes; then
12808
12809$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12810
12811  fi
12812fi
12813
12814
12815
12816
12817
12818
12819
12820
12821# Check whether --enable-debug was given.
12822if test "${enable_debug+set}" = set; then :
12823  enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12824
12825$as_echo "#define FFI_DEBUG 1" >>confdefs.h
12826
12827  fi
12828fi
12829
12830 if test "$enable_debug" = "yes"; then
12831  FFI_DEBUG_TRUE=
12832  FFI_DEBUG_FALSE='#'
12833else
12834  FFI_DEBUG_TRUE='#'
12835  FFI_DEBUG_FALSE=
12836fi
12837
12838
12839# Check whether --enable-structs was given.
12840if test "${enable_structs+set}" = set; then :
12841  enableval=$enable_structs; if test "$enable_structs" = "no"; then
12842
12843$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12844
12845  fi
12846fi
12847
12848
12849# Check whether --enable-raw-api was given.
12850if test "${enable_raw_api+set}" = set; then :
12851  enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12852
12853$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12854
12855  fi
12856fi
12857
12858
12859# Check whether --enable-purify-safety was given.
12860if test "${enable_purify_safety+set}" = set; then :
12861  enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12862
12863$as_echo "#define USING_PURIFY 1" >>confdefs.h
12864
12865  fi
12866fi
12867
12868
12869if test -n "$with_cross_host" &&
12870   test x"$with_cross_host" != x"no"; then
12871  toolexecdir='$(exec_prefix)/$(target_alias)'
12872  toolexeclibdir='$(toolexecdir)/lib'
12873else
12874  toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12875  toolexeclibdir='$(libdir)'
12876fi
12877multi_os_directory=`$CC -print-multi-os-directory`
12878case $multi_os_directory in
12879  .) ;; # Avoid trailing /.
12880  *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12881esac
12882
12883
12884
12885if test "${multilib}" = "yes"; then
12886  multilib_arg="--enable-multilib"
12887else
12888  multilib_arg=
12889fi
12890
12891ac_config_commands="$ac_config_commands include"
12892
12893ac_config_commands="$ac_config_commands src"
12894
12895
12896ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12897
12898
12899ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12900
12901
12902cat >confcache <<\_ACEOF
12903# This file is a shell script that caches the results of configure
12904# tests run on this system so they can be shared between configure
12905# scripts and configure runs, see configure's option --config-cache.
12906# It is not useful on other systems.  If it contains results you don't
12907# want to keep, you may remove or edit it.
12908#
12909# config.status only pays attention to the cache file if you give it
12910# the --recheck option to rerun configure.
12911#
12912# `ac_cv_env_foo' variables (set or unset) will be overridden when
12913# loading this file, other *unset* `ac_cv_foo' will be assigned the
12914# following values.
12915
12916_ACEOF
12917
12918# The following way of writing the cache mishandles newlines in values,
12919# but we know of no workaround that is simple, portable, and efficient.
12920# So, we kill variables containing newlines.
12921# Ultrix sh set writes to stderr and can't be redirected directly,
12922# and sets the high bit in the cache file unless we assign to the vars.
12923(
12924  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12925    eval ac_val=\$$ac_var
12926    case $ac_val in #(
12927    *${as_nl}*)
12928      case $ac_var in #(
12929      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12930$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12931      esac
12932      case $ac_var in #(
12933      _ | IFS | as_nl) ;; #(
12934      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12935      *) { eval $ac_var=; unset $ac_var;} ;;
12936      esac ;;
12937    esac
12938  done
12939
12940  (set) 2>&1 |
12941    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12942    *${as_nl}ac_space=\ *)
12943      # `set' does not quote correctly, so add quotes: double-quote
12944      # substitution turns \\\\ into \\, and sed turns \\ into \.
12945      sed -n \
12946	"s/'/'\\\\''/g;
12947	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12948      ;; #(
12949    *)
12950      # `set' quotes correctly as required by POSIX, so do not add quotes.
12951      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12952      ;;
12953    esac |
12954    sort
12955) |
12956  sed '
12957     /^ac_cv_env_/b end
12958     t clear
12959     :clear
12960     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12961     t end
12962     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12963     :end' >>confcache
12964if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12965  if test -w "$cache_file"; then
12966    test "x$cache_file" != "x/dev/null" &&
12967      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12968$as_echo "$as_me: updating cache $cache_file" >&6;}
12969    cat confcache >$cache_file
12970  else
12971    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12972$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12973  fi
12974fi
12975rm -f confcache
12976
12977test "x$prefix" = xNONE && prefix=$ac_default_prefix
12978# Let make expand exec_prefix.
12979test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12980
12981DEFS=-DHAVE_CONFIG_H
12982
12983ac_libobjs=
12984ac_ltlibobjs=
12985for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12986  # 1. Remove the extension, and $U if already installed.
12987  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12988  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12989  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12990  #    will be set to the directory where LIBOBJS objects are built.
12991  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12992  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12993done
12994LIBOBJS=$ac_libobjs
12995
12996LTLIBOBJS=$ac_ltlibobjs
12997
12998
12999 if test -n "$EXEEXT"; then
13000  am__EXEEXT_TRUE=
13001  am__EXEEXT_FALSE='#'
13002else
13003  am__EXEEXT_TRUE='#'
13004  am__EXEEXT_FALSE=
13005fi
13006
13007if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13008  as_fn_error "conditional \"BUILD_INFO\" was never defined.
13009Usually this means the macro was only invoked conditionally." "$LINENO" 5
13010fi
13011if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13012  as_fn_error "conditional \"GENINSRC\" was never defined.
13013Usually this means the macro was only invoked conditionally." "$LINENO" 5
13014fi
13015if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13016  as_fn_error "conditional \"AMDEP\" was never defined.
13017Usually this means the macro was only invoked conditionally." "$LINENO" 5
13018fi
13019if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13020  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13021Usually this means the macro was only invoked conditionally." "$LINENO" 5
13022fi
13023if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13024  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13025Usually this means the macro was only invoked conditionally." "$LINENO" 5
13026fi
13027if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13028  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13029Usually this means the macro was only invoked conditionally." "$LINENO" 5
13030fi
13031if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13032  as_fn_error "conditional \"TESTSUBDIR\" was never defined.
13033Usually this means the macro was only invoked conditionally." "$LINENO" 5
13034fi
13035if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13036  as_fn_error "conditional \"MIPS\" was never defined.
13037Usually this means the macro was only invoked conditionally." "$LINENO" 5
13038fi
13039if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13040  as_fn_error "conditional \"BFIN\" was never defined.
13041Usually this means the macro was only invoked conditionally." "$LINENO" 5
13042fi
13043if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13044  as_fn_error "conditional \"SPARC\" was never defined.
13045Usually this means the macro was only invoked conditionally." "$LINENO" 5
13046fi
13047if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13048  as_fn_error "conditional \"X86\" was never defined.
13049Usually this means the macro was only invoked conditionally." "$LINENO" 5
13050fi
13051if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13052  as_fn_error "conditional \"X86_FREEBSD\" was never defined.
13053Usually this means the macro was only invoked conditionally." "$LINENO" 5
13054fi
13055if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13056  as_fn_error "conditional \"X86_WIN32\" was never defined.
13057Usually this means the macro was only invoked conditionally." "$LINENO" 5
13058fi
13059if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13060  as_fn_error "conditional \"X86_WIN64\" was never defined.
13061Usually this means the macro was only invoked conditionally." "$LINENO" 5
13062fi
13063if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13064  as_fn_error "conditional \"X86_DARWIN\" was never defined.
13065Usually this means the macro was only invoked conditionally." "$LINENO" 5
13066fi
13067if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13068  as_fn_error "conditional \"ALPHA\" was never defined.
13069Usually this means the macro was only invoked conditionally." "$LINENO" 5
13070fi
13071if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13072  as_fn_error "conditional \"IA64\" was never defined.
13073Usually this means the macro was only invoked conditionally." "$LINENO" 5
13074fi
13075if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13076  as_fn_error "conditional \"M32R\" was never defined.
13077Usually this means the macro was only invoked conditionally." "$LINENO" 5
13078fi
13079if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13080  as_fn_error "conditional \"M68K\" was never defined.
13081Usually this means the macro was only invoked conditionally." "$LINENO" 5
13082fi
13083if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13084  as_fn_error "conditional \"POWERPC\" was never defined.
13085Usually this means the macro was only invoked conditionally." "$LINENO" 5
13086fi
13087if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13088  as_fn_error "conditional \"POWERPC_AIX\" was never defined.
13089Usually this means the macro was only invoked conditionally." "$LINENO" 5
13090fi
13091if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13092  as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
13093Usually this means the macro was only invoked conditionally." "$LINENO" 5
13094fi
13095if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13096  as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
13097Usually this means the macro was only invoked conditionally." "$LINENO" 5
13098fi
13099if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
13100  as_fn_error "conditional \"AARCH64\" was never defined.
13101Usually this means the macro was only invoked conditionally." "$LINENO" 5
13102fi
13103if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13104  as_fn_error "conditional \"ARM\" was never defined.
13105Usually this means the macro was only invoked conditionally." "$LINENO" 5
13106fi
13107if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13108  as_fn_error "conditional \"AVR32\" was never defined.
13109Usually this means the macro was only invoked conditionally." "$LINENO" 5
13110fi
13111if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13112  as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
13113Usually this means the macro was only invoked conditionally." "$LINENO" 5
13114fi
13115if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13116  as_fn_error "conditional \"FRV\" was never defined.
13117Usually this means the macro was only invoked conditionally." "$LINENO" 5
13118fi
13119if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13120  as_fn_error "conditional \"S390\" was never defined.
13121Usually this means the macro was only invoked conditionally." "$LINENO" 5
13122fi
13123if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13124  as_fn_error "conditional \"X86_64\" was never defined.
13125Usually this means the macro was only invoked conditionally." "$LINENO" 5
13126fi
13127if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13128  as_fn_error "conditional \"SH\" was never defined.
13129Usually this means the macro was only invoked conditionally." "$LINENO" 5
13130fi
13131if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13132  as_fn_error "conditional \"SH64\" was never defined.
13133Usually this means the macro was only invoked conditionally." "$LINENO" 5
13134fi
13135if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13136  as_fn_error "conditional \"PA_LINUX\" was never defined.
13137Usually this means the macro was only invoked conditionally." "$LINENO" 5
13138fi
13139if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13140  as_fn_error "conditional \"PA_HPUX\" was never defined.
13141Usually this means the macro was only invoked conditionally." "$LINENO" 5
13142fi
13143if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13144  as_fn_error "conditional \"PA64_HPUX\" was never defined.
13145Usually this means the macro was only invoked conditionally." "$LINENO" 5
13146fi
13147if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13148  as_fn_error "conditional \"TILE\" was never defined.
13149Usually this means the macro was only invoked conditionally." "$LINENO" 5
13150fi
13151
13152if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13153  as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13154Usually this means the macro was only invoked conditionally." "$LINENO" 5
13155fi
13156if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13157  as_fn_error "conditional \"FFI_DEBUG\" was never defined.
13158Usually this means the macro was only invoked conditionally." "$LINENO" 5
13159fi
13160
13161: ${CONFIG_STATUS=./config.status}
13162ac_write_fail=0
13163ac_clean_files_save=$ac_clean_files
13164ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13166$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13167as_write_fail=0
13168cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13169#! $SHELL
13170# Generated by $as_me.
13171# Run this file to recreate the current configuration.
13172# Compiler output produced by configure, useful for debugging
13173# configure, is in config.log if it exists.
13174
13175debug=false
13176ac_cs_recheck=false
13177ac_cs_silent=false
13178
13179SHELL=\${CONFIG_SHELL-$SHELL}
13180export SHELL
13181_ASEOF
13182cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13183## -------------------- ##
13184## M4sh Initialization. ##
13185## -------------------- ##
13186
13187# Be more Bourne compatible
13188DUALCASE=1; export DUALCASE # for MKS sh
13189if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13190  emulate sh
13191  NULLCMD=:
13192  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13193  # is contrary to our usage.  Disable this feature.
13194  alias -g '${1+"$@"}'='"$@"'
13195  setopt NO_GLOB_SUBST
13196else
13197  case `(set -o) 2>/dev/null` in #(
13198  *posix*) :
13199    set -o posix ;; #(
13200  *) :
13201     ;;
13202esac
13203fi
13204
13205
13206as_nl='
13207'
13208export as_nl
13209# Printing a long string crashes Solaris 7 /usr/bin/printf.
13210as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13211as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13212as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13213# Prefer a ksh shell builtin over an external printf program on Solaris,
13214# but without wasting forks for bash or zsh.
13215if test -z "$BASH_VERSION$ZSH_VERSION" \
13216    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13217  as_echo='print -r --'
13218  as_echo_n='print -rn --'
13219elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13220  as_echo='printf %s\n'
13221  as_echo_n='printf %s'
13222else
13223  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13224    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13225    as_echo_n='/usr/ucb/echo -n'
13226  else
13227    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13228    as_echo_n_body='eval
13229      arg=$1;
13230      case $arg in #(
13231      *"$as_nl"*)
13232	expr "X$arg" : "X\\(.*\\)$as_nl";
13233	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13234      esac;
13235      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13236    '
13237    export as_echo_n_body
13238    as_echo_n='sh -c $as_echo_n_body as_echo'
13239  fi
13240  export as_echo_body
13241  as_echo='sh -c $as_echo_body as_echo'
13242fi
13243
13244# The user is always right.
13245if test "${PATH_SEPARATOR+set}" != set; then
13246  PATH_SEPARATOR=:
13247  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13248    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13249      PATH_SEPARATOR=';'
13250  }
13251fi
13252
13253
13254# IFS
13255# We need space, tab and new line, in precisely that order.  Quoting is
13256# there to prevent editors from complaining about space-tab.
13257# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13258# splitting by setting IFS to empty value.)
13259IFS=" ""	$as_nl"
13260
13261# Find who we are.  Look in the path if we contain no directory separator.
13262case $0 in #((
13263  *[\\/]* ) as_myself=$0 ;;
13264  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265for as_dir in $PATH
13266do
13267  IFS=$as_save_IFS
13268  test -z "$as_dir" && as_dir=.
13269    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13270  done
13271IFS=$as_save_IFS
13272
13273     ;;
13274esac
13275# We did not find ourselves, most probably we were run as `sh COMMAND'
13276# in which case we are not to be found in the path.
13277if test "x$as_myself" = x; then
13278  as_myself=$0
13279fi
13280if test ! -f "$as_myself"; then
13281  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13282  exit 1
13283fi
13284
13285# Unset variables that we do not need and which cause bugs (e.g. in
13286# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13287# suppresses any "Segmentation fault" message there.  '((' could
13288# trigger a bug in pdksh 5.2.14.
13289for as_var in BASH_ENV ENV MAIL MAILPATH
13290do eval test x\${$as_var+set} = xset \
13291  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13292done
13293PS1='$ '
13294PS2='> '
13295PS4='+ '
13296
13297# NLS nuisances.
13298LC_ALL=C
13299export LC_ALL
13300LANGUAGE=C
13301export LANGUAGE
13302
13303# CDPATH.
13304(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13305
13306
13307# as_fn_error ERROR [LINENO LOG_FD]
13308# ---------------------------------
13309# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13310# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13311# script with status $?, using 1 if that was 0.
13312as_fn_error ()
13313{
13314  as_status=$?; test $as_status -eq 0 && as_status=1
13315  if test "$3"; then
13316    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13317    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13318  fi
13319  $as_echo "$as_me: error: $1" >&2
13320  as_fn_exit $as_status
13321} # as_fn_error
13322
13323
13324# as_fn_set_status STATUS
13325# -----------------------
13326# Set $? to STATUS, without forking.
13327as_fn_set_status ()
13328{
13329  return $1
13330} # as_fn_set_status
13331
13332# as_fn_exit STATUS
13333# -----------------
13334# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13335as_fn_exit ()
13336{
13337  set +e
13338  as_fn_set_status $1
13339  exit $1
13340} # as_fn_exit
13341
13342# as_fn_unset VAR
13343# ---------------
13344# Portably unset VAR.
13345as_fn_unset ()
13346{
13347  { eval $1=; unset $1;}
13348}
13349as_unset=as_fn_unset
13350# as_fn_append VAR VALUE
13351# ----------------------
13352# Append the text in VALUE to the end of the definition contained in VAR. Take
13353# advantage of any shell optimizations that allow amortized linear growth over
13354# repeated appends, instead of the typical quadratic growth present in naive
13355# implementations.
13356if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13357  eval 'as_fn_append ()
13358  {
13359    eval $1+=\$2
13360  }'
13361else
13362  as_fn_append ()
13363  {
13364    eval $1=\$$1\$2
13365  }
13366fi # as_fn_append
13367
13368# as_fn_arith ARG...
13369# ------------------
13370# Perform arithmetic evaluation on the ARGs, and store the result in the
13371# global $as_val. Take advantage of shells that can avoid forks. The arguments
13372# must be portable across $(()) and expr.
13373if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13374  eval 'as_fn_arith ()
13375  {
13376    as_val=$(( $* ))
13377  }'
13378else
13379  as_fn_arith ()
13380  {
13381    as_val=`expr "$@" || test $? -eq 1`
13382  }
13383fi # as_fn_arith
13384
13385
13386if expr a : '\(a\)' >/dev/null 2>&1 &&
13387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13388  as_expr=expr
13389else
13390  as_expr=false
13391fi
13392
13393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13394  as_basename=basename
13395else
13396  as_basename=false
13397fi
13398
13399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13400  as_dirname=dirname
13401else
13402  as_dirname=false
13403fi
13404
13405as_me=`$as_basename -- "$0" ||
13406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13407	 X"$0" : 'X\(//\)$' \| \
13408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13409$as_echo X/"$0" |
13410    sed '/^.*\/\([^/][^/]*\)\/*$/{
13411	    s//\1/
13412	    q
13413	  }
13414	  /^X\/\(\/\/\)$/{
13415	    s//\1/
13416	    q
13417	  }
13418	  /^X\/\(\/\).*/{
13419	    s//\1/
13420	    q
13421	  }
13422	  s/.*/./; q'`
13423
13424# Avoid depending upon Character Ranges.
13425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13428as_cr_digits='0123456789'
13429as_cr_alnum=$as_cr_Letters$as_cr_digits
13430
13431ECHO_C= ECHO_N= ECHO_T=
13432case `echo -n x` in #(((((
13433-n*)
13434  case `echo 'xy\c'` in
13435  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13436  xy)  ECHO_C='\c';;
13437  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13438       ECHO_T='	';;
13439  esac;;
13440*)
13441  ECHO_N='-n';;
13442esac
13443
13444rm -f conf$$ conf$$.exe conf$$.file
13445if test -d conf$$.dir; then
13446  rm -f conf$$.dir/conf$$.file
13447else
13448  rm -f conf$$.dir
13449  mkdir conf$$.dir 2>/dev/null
13450fi
13451if (echo >conf$$.file) 2>/dev/null; then
13452  if ln -s conf$$.file conf$$ 2>/dev/null; then
13453    as_ln_s='ln -s'
13454    # ... but there are two gotchas:
13455    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13456    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13457    # In both cases, we have to default to `cp -p'.
13458    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13459      as_ln_s='cp -p'
13460  elif ln conf$$.file conf$$ 2>/dev/null; then
13461    as_ln_s=ln
13462  else
13463    as_ln_s='cp -p'
13464  fi
13465else
13466  as_ln_s='cp -p'
13467fi
13468rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13469rmdir conf$$.dir 2>/dev/null
13470
13471
13472# as_fn_mkdir_p
13473# -------------
13474# Create "$as_dir" as a directory, including parents if necessary.
13475as_fn_mkdir_p ()
13476{
13477
13478  case $as_dir in #(
13479  -*) as_dir=./$as_dir;;
13480  esac
13481  test -d "$as_dir" || eval $as_mkdir_p || {
13482    as_dirs=
13483    while :; do
13484      case $as_dir in #(
13485      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13486      *) as_qdir=$as_dir;;
13487      esac
13488      as_dirs="'$as_qdir' $as_dirs"
13489      as_dir=`$as_dirname -- "$as_dir" ||
13490$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13491	 X"$as_dir" : 'X\(//\)[^/]' \| \
13492	 X"$as_dir" : 'X\(//\)$' \| \
13493	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13494$as_echo X"$as_dir" |
13495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13496	    s//\1/
13497	    q
13498	  }
13499	  /^X\(\/\/\)[^/].*/{
13500	    s//\1/
13501	    q
13502	  }
13503	  /^X\(\/\/\)$/{
13504	    s//\1/
13505	    q
13506	  }
13507	  /^X\(\/\).*/{
13508	    s//\1/
13509	    q
13510	  }
13511	  s/.*/./; q'`
13512      test -d "$as_dir" && break
13513    done
13514    test -z "$as_dirs" || eval "mkdir $as_dirs"
13515  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13516
13517
13518} # as_fn_mkdir_p
13519if mkdir -p . 2>/dev/null; then
13520  as_mkdir_p='mkdir -p "$as_dir"'
13521else
13522  test -d ./-p && rmdir ./-p
13523  as_mkdir_p=false
13524fi
13525
13526if test -x / >/dev/null 2>&1; then
13527  as_test_x='test -x'
13528else
13529  if ls -dL / >/dev/null 2>&1; then
13530    as_ls_L_option=L
13531  else
13532    as_ls_L_option=
13533  fi
13534  as_test_x='
13535    eval sh -c '\''
13536      if test -d "$1"; then
13537	test -d "$1/.";
13538      else
13539	case $1 in #(
13540	-*)set "./$1";;
13541	esac;
13542	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13543	???[sx]*):;;*)false;;esac;fi
13544    '\'' sh
13545  '
13546fi
13547as_executable_p=$as_test_x
13548
13549# Sed expression to map a string onto a valid CPP name.
13550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13551
13552# Sed expression to map a string onto a valid variable name.
13553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13554
13555
13556exec 6>&1
13557## ----------------------------------- ##
13558## Main body of $CONFIG_STATUS script. ##
13559## ----------------------------------- ##
13560_ASEOF
13561test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13562
13563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13564# Save the log message, to keep $0 and so on meaningful, and to
13565# report actual input values of CONFIG_FILES etc. instead of their
13566# values after options handling.
13567ac_log="
13568This file was extended by libffi $as_me 3.0.11, which was
13569generated by GNU Autoconf 2.64.  Invocation command line was
13570
13571  CONFIG_FILES    = $CONFIG_FILES
13572  CONFIG_HEADERS  = $CONFIG_HEADERS
13573  CONFIG_LINKS    = $CONFIG_LINKS
13574  CONFIG_COMMANDS = $CONFIG_COMMANDS
13575  $ $0 $@
13576
13577on `(hostname || uname -n) 2>/dev/null | sed 1q`
13578"
13579
13580_ACEOF
13581
13582case $ac_config_files in *"
13583"*) set x $ac_config_files; shift; ac_config_files=$*;;
13584esac
13585
13586case $ac_config_headers in *"
13587"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13588esac
13589
13590
13591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13592# Files that config.status was made for.
13593config_files="$ac_config_files"
13594config_headers="$ac_config_headers"
13595config_links="$ac_config_links"
13596config_commands="$ac_config_commands"
13597
13598_ACEOF
13599
13600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601ac_cs_usage="\
13602\`$as_me' instantiates files and other configuration actions
13603from templates according to the current configuration.  Unless the files
13604and actions are specified as TAGs, all are instantiated by default.
13605
13606Usage: $0 [OPTION]... [TAG]...
13607
13608  -h, --help       print this help, then exit
13609  -V, --version    print version number and configuration settings, then exit
13610  -q, --quiet, --silent
13611                   do not print progress messages
13612  -d, --debug      don't remove temporary files
13613      --recheck    update $as_me by reconfiguring in the same conditions
13614      --file=FILE[:TEMPLATE]
13615                   instantiate the configuration file FILE
13616      --header=FILE[:TEMPLATE]
13617                   instantiate the configuration header FILE
13618
13619Configuration files:
13620$config_files
13621
13622Configuration headers:
13623$config_headers
13624
13625Configuration links:
13626$config_links
13627
13628Configuration commands:
13629$config_commands
13630
13631Report bugs to <http://gcc.gnu.org/bugs.html>."
13632
13633_ACEOF
13634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13635ac_cs_version="\\
13636libffi config.status 3.0.11
13637configured by $0, generated by GNU Autoconf 2.64,
13638  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13639
13640Copyright (C) 2009 Free Software Foundation, Inc.
13641This config.status script is free software; the Free Software Foundation
13642gives unlimited permission to copy, distribute and modify it."
13643
13644ac_pwd='$ac_pwd'
13645srcdir='$srcdir'
13646INSTALL='$INSTALL'
13647MKDIR_P='$MKDIR_P'
13648AWK='$AWK'
13649test -n "\$AWK" || AWK=awk
13650_ACEOF
13651
13652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13653# The default lists apply if the user does not specify any file.
13654ac_need_defaults=:
13655while test $# != 0
13656do
13657  case $1 in
13658  --*=*)
13659    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13660    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13661    ac_shift=:
13662    ;;
13663  *)
13664    ac_option=$1
13665    ac_optarg=$2
13666    ac_shift=shift
13667    ;;
13668  esac
13669
13670  case $ac_option in
13671  # Handling of the options.
13672  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13673    ac_cs_recheck=: ;;
13674  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13675    $as_echo "$ac_cs_version"; exit ;;
13676  --debug | --debu | --deb | --de | --d | -d )
13677    debug=: ;;
13678  --file | --fil | --fi | --f )
13679    $ac_shift
13680    case $ac_optarg in
13681    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13682    esac
13683    as_fn_append CONFIG_FILES " '$ac_optarg'"
13684    ac_need_defaults=false;;
13685  --header | --heade | --head | --hea )
13686    $ac_shift
13687    case $ac_optarg in
13688    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13689    esac
13690    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13691    ac_need_defaults=false;;
13692  --he | --h)
13693    # Conflict between --help and --header
13694    as_fn_error "ambiguous option: \`$1'
13695Try \`$0 --help' for more information.";;
13696  --help | --hel | -h )
13697    $as_echo "$ac_cs_usage"; exit ;;
13698  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13699  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13700    ac_cs_silent=: ;;
13701
13702  # This is an error.
13703  -*) as_fn_error "unrecognized option: \`$1'
13704Try \`$0 --help' for more information." ;;
13705
13706  *) as_fn_append ac_config_targets " $1"
13707     ac_need_defaults=false ;;
13708
13709  esac
13710  shift
13711done
13712
13713ac_configure_extra_args=
13714
13715if $ac_cs_silent; then
13716  exec 6>/dev/null
13717  ac_configure_extra_args="$ac_configure_extra_args --silent"
13718fi
13719
13720_ACEOF
13721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13722if \$ac_cs_recheck; then
13723  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13724  shift
13725  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13726  CONFIG_SHELL='$SHELL'
13727  export CONFIG_SHELL
13728  exec "\$@"
13729fi
13730
13731_ACEOF
13732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733exec 5>>config.log
13734{
13735  echo
13736  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13737## Running $as_me. ##
13738_ASBOX
13739  $as_echo "$ac_log"
13740} >&5
13741
13742_ACEOF
13743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13744#
13745# INIT-COMMANDS
13746#
13747
13748srcdir="$srcdir"
13749host="$host"
13750target="$target"
13751with_multisubdir="$with_multisubdir"
13752with_multisrctop="$with_multisrctop"
13753with_target_subdir="$with_target_subdir"
13754ac_configure_args="${multilib_arg} ${ac_configure_args}"
13755multi_basedir="$multi_basedir"
13756CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13757CC="$CC"
13758CXX="$CXX"
13759GFORTRAN="$GFORTRAN"
13760GCJ="$GCJ"
13761AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13762
13763
13764# The HP-UX ksh and POSIX shell print the target directory to stdout
13765# if CDPATH is set.
13766(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13767
13768sed_quote_subst='$sed_quote_subst'
13769double_quote_subst='$double_quote_subst'
13770delay_variable_subst='$delay_variable_subst'
13771macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13772macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13773enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13774enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13775pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13776enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13777SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13778ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13779host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13780host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13781host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13782build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13783build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13784build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13785SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13786Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13787GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13788EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13789FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13790LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13791NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13792LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13793max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13794ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13795exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13796lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13797lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13798lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13799reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13800reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13801OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13802deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13803file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13804AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13805AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13806STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13807RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13808old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13809old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13810old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13811lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13812CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13813CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13814compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13815GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13816lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13817lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13818lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13819lt_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"`'
13820objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13821MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13822lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13823lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13824lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13825lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13826lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13827need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13828DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13829NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13830LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13831OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13832OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13833libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13834shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13835extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13836archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13837enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13838export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13839whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13840compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13841old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13842old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13843archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13844archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13845module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13846module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13847with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13848allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13849no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13850hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13851hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13852hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13853hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13854hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13855hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13856hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13857hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13858inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13859link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13860fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13861always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13862export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13863exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13864include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13865prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13866file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13867variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13868need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13869need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13870version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13871runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13872shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13873shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13874libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13875library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13876soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13877install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13878postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13879postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13880finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13881finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13882hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13883sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13884sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13885hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13886enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13887enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13888enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13889old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13890striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13891
13892LTCC='$LTCC'
13893LTCFLAGS='$LTCFLAGS'
13894compiler='$compiler_DEFAULT'
13895
13896# A function that is used when there is no print builtin or printf.
13897func_fallback_echo ()
13898{
13899  eval 'cat <<_LTECHO_EOF
13900\$1
13901_LTECHO_EOF'
13902}
13903
13904# Quote evaled strings.
13905for var in SHELL \
13906ECHO \
13907SED \
13908GREP \
13909EGREP \
13910FGREP \
13911LD \
13912NM \
13913LN_S \
13914lt_SP2NL \
13915lt_NL2SP \
13916reload_flag \
13917OBJDUMP \
13918deplibs_check_method \
13919file_magic_cmd \
13920AR \
13921AR_FLAGS \
13922STRIP \
13923RANLIB \
13924CC \
13925CFLAGS \
13926compiler \
13927lt_cv_sys_global_symbol_pipe \
13928lt_cv_sys_global_symbol_to_cdecl \
13929lt_cv_sys_global_symbol_to_c_name_address \
13930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13931lt_prog_compiler_no_builtin_flag \
13932lt_prog_compiler_wl \
13933lt_prog_compiler_pic \
13934lt_prog_compiler_static \
13935lt_cv_prog_compiler_c_o \
13936need_locks \
13937DSYMUTIL \
13938NMEDIT \
13939LIPO \
13940OTOOL \
13941OTOOL64 \
13942shrext_cmds \
13943export_dynamic_flag_spec \
13944whole_archive_flag_spec \
13945compiler_needs_object \
13946with_gnu_ld \
13947allow_undefined_flag \
13948no_undefined_flag \
13949hardcode_libdir_flag_spec \
13950hardcode_libdir_flag_spec_ld \
13951hardcode_libdir_separator \
13952fix_srcfile_path \
13953exclude_expsyms \
13954include_expsyms \
13955file_list_spec \
13956variables_saved_for_relink \
13957libname_spec \
13958library_names_spec \
13959soname_spec \
13960install_override_mode \
13961finish_eval \
13962old_striplib \
13963striplib; do
13964    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13965    *[\\\\\\\`\\"\\\$]*)
13966      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13967      ;;
13968    *)
13969      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13970      ;;
13971    esac
13972done
13973
13974# Double-quote double-evaled strings.
13975for var in reload_cmds \
13976old_postinstall_cmds \
13977old_postuninstall_cmds \
13978old_archive_cmds \
13979extract_expsyms_cmds \
13980old_archive_from_new_cmds \
13981old_archive_from_expsyms_cmds \
13982archive_cmds \
13983archive_expsym_cmds \
13984module_cmds \
13985module_expsym_cmds \
13986export_symbols_cmds \
13987prelink_cmds \
13988postinstall_cmds \
13989postuninstall_cmds \
13990finish_cmds \
13991sys_lib_search_path_spec \
13992sys_lib_dlsearch_path_spec; do
13993    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13994    *[\\\\\\\`\\"\\\$]*)
13995      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13996      ;;
13997    *)
13998      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13999      ;;
14000    esac
14001done
14002
14003ac_aux_dir='$ac_aux_dir'
14004xsi_shell='$xsi_shell'
14005lt_shell_append='$lt_shell_append'
14006
14007# See if we are running on zsh, and set the options which allow our
14008# commands through without removal of \ escapes INIT.
14009if test -n "\${ZSH_VERSION+set}" ; then
14010   setopt NO_GLOB_SUBST
14011fi
14012
14013
14014    PACKAGE='$PACKAGE'
14015    VERSION='$VERSION'
14016    TIMESTAMP='$TIMESTAMP'
14017    RM='$RM'
14018    ofile='$ofile'
14019
14020
14021
14022TARGETDIR="$TARGETDIR"
14023
14024_ACEOF
14025
14026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14027
14028# Handling of arguments.
14029for ac_config_target in $ac_config_targets
14030do
14031  case $ac_config_target in
14032    "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14033    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14034    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14035    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14036    "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14037    "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14038    "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14039    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14040    "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14041    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14042    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14043    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14044
14045  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14046  esac
14047done
14048
14049
14050# If the user did not use the arguments to specify the items to instantiate,
14051# then the envvar interface is used.  Set only those that are not.
14052# We use the long form for the default assignment because of an extremely
14053# bizarre bug on SunOS 4.1.3.
14054if $ac_need_defaults; then
14055  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14056  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14057  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14058  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14059fi
14060
14061# Have a temporary directory for convenience.  Make it in the build tree
14062# simply because there is no reason against having it here, and in addition,
14063# creating and moving files from /tmp can sometimes cause problems.
14064# Hook for its removal unless debugging.
14065# Note that there is a small window in which the directory will not be cleaned:
14066# after its creation but before its name has been assigned to `$tmp'.
14067$debug ||
14068{
14069  tmp=
14070  trap 'exit_status=$?
14071  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14072' 0
14073  trap 'as_fn_exit 1' 1 2 13 15
14074}
14075# Create a (secure) tmp directory for tmp files.
14076
14077{
14078  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14079  test -n "$tmp" && test -d "$tmp"
14080}  ||
14081{
14082  tmp=./conf$$-$RANDOM
14083  (umask 077 && mkdir "$tmp")
14084} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14085
14086# Set up the scripts for CONFIG_FILES section.
14087# No need to generate them if there are no CONFIG_FILES.
14088# This happens for instance with `./config.status config.h'.
14089if test -n "$CONFIG_FILES"; then
14090
14091
14092ac_cr=`echo X | tr X '\015'`
14093# On cygwin, bash can eat \r inside `` if the user requested igncr.
14094# But we know of no other shell where ac_cr would be empty at this
14095# point, so we can use a bashism as a fallback.
14096if test "x$ac_cr" = x; then
14097  eval ac_cr=\$\'\\r\'
14098fi
14099ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14100if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14101  ac_cs_awk_cr='\r'
14102else
14103  ac_cs_awk_cr=$ac_cr
14104fi
14105
14106echo 'BEGIN {' >"$tmp/subs1.awk" &&
14107_ACEOF
14108
14109
14110{
14111  echo "cat >conf$$subs.awk <<_ACEOF" &&
14112  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14113  echo "_ACEOF"
14114} >conf$$subs.sh ||
14115  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14116ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14117ac_delim='%!_!# '
14118for ac_last_try in false false false false false :; do
14119  . ./conf$$subs.sh ||
14120    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14121
14122  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14123  if test $ac_delim_n = $ac_delim_num; then
14124    break
14125  elif $ac_last_try; then
14126    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14127  else
14128    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14129  fi
14130done
14131rm -f conf$$subs.sh
14132
14133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14134cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14135_ACEOF
14136sed -n '
14137h
14138s/^/S["/; s/!.*/"]=/
14139p
14140g
14141s/^[^!]*!//
14142:repl
14143t repl
14144s/'"$ac_delim"'$//
14145t delim
14146:nl
14147h
14148s/\(.\{148\}\).*/\1/
14149t more1
14150s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14151p
14152n
14153b repl
14154:more1
14155s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14156p
14157g
14158s/.\{148\}//
14159t nl
14160:delim
14161h
14162s/\(.\{148\}\).*/\1/
14163t more2
14164s/["\\]/\\&/g; s/^/"/; s/$/"/
14165p
14166b
14167:more2
14168s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14169p
14170g
14171s/.\{148\}//
14172t delim
14173' <conf$$subs.awk | sed '
14174/^[^""]/{
14175  N
14176  s/\n//
14177}
14178' >>$CONFIG_STATUS || ac_write_fail=1
14179rm -f conf$$subs.awk
14180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14181_ACAWK
14182cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14183  for (key in S) S_is_set[key] = 1
14184  FS = ""
14185
14186}
14187{
14188  line = $ 0
14189  nfields = split(line, field, "@")
14190  substed = 0
14191  len = length(field[1])
14192  for (i = 2; i < nfields; i++) {
14193    key = field[i]
14194    keylen = length(key)
14195    if (S_is_set[key]) {
14196      value = S[key]
14197      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14198      len += length(value) + length(field[++i])
14199      substed = 1
14200    } else
14201      len += 1 + keylen
14202  }
14203
14204  print line
14205}
14206
14207_ACAWK
14208_ACEOF
14209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14210if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14211  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14212else
14213  cat
14214fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14215  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14216_ACEOF
14217
14218# VPATH may cause trouble with some makes, so we remove $(srcdir),
14219# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14220# trailing colons and then remove the whole line if VPATH becomes empty
14221# (actually we leave an empty line to preserve line numbers).
14222if test "x$srcdir" = x.; then
14223  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14224s/:*\$(srcdir):*/:/
14225s/:*\${srcdir}:*/:/
14226s/:*@srcdir@:*/:/
14227s/^\([^=]*=[	 ]*\):*/\1/
14228s/:*$//
14229s/^[^=]*=[	 ]*$//
14230}'
14231fi
14232
14233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14234fi # test -n "$CONFIG_FILES"
14235
14236# Set up the scripts for CONFIG_HEADERS section.
14237# No need to generate them if there are no CONFIG_HEADERS.
14238# This happens for instance with `./config.status Makefile'.
14239if test -n "$CONFIG_HEADERS"; then
14240cat >"$tmp/defines.awk" <<\_ACAWK ||
14241BEGIN {
14242_ACEOF
14243
14244# Transform confdefs.h into an awk script `defines.awk', embedded as
14245# here-document in config.status, that substitutes the proper values into
14246# config.h.in to produce config.h.
14247
14248# Create a delimiter string that does not exist in confdefs.h, to ease
14249# handling of long lines.
14250ac_delim='%!_!# '
14251for ac_last_try in false false :; do
14252  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14253  if test -z "$ac_t"; then
14254    break
14255  elif $ac_last_try; then
14256    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14257  else
14258    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14259  fi
14260done
14261
14262# For the awk script, D is an array of macro values keyed by name,
14263# likewise P contains macro parameters if any.  Preserve backslash
14264# newline sequences.
14265
14266ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14267sed -n '
14268s/.\{148\}/&'"$ac_delim"'/g
14269t rset
14270:rset
14271s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14272t def
14273d
14274:def
14275s/\\$//
14276t bsnl
14277s/["\\]/\\&/g
14278s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14279D["\1"]=" \3"/p
14280s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14281d
14282:bsnl
14283s/["\\]/\\&/g
14284s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14285D["\1"]=" \3\\\\\\n"\\/p
14286t cont
14287s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14288t cont
14289d
14290:cont
14291n
14292s/.\{148\}/&'"$ac_delim"'/g
14293t clear
14294:clear
14295s/\\$//
14296t bsnlc
14297s/["\\]/\\&/g; s/^/"/; s/$/"/p
14298d
14299:bsnlc
14300s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14301b cont
14302' <confdefs.h | sed '
14303s/'"$ac_delim"'/"\\\
14304"/g' >>$CONFIG_STATUS || ac_write_fail=1
14305
14306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307  for (key in D) D_is_set[key] = 1
14308  FS = ""
14309}
14310/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14311  line = \$ 0
14312  split(line, arg, " ")
14313  if (arg[1] == "#") {
14314    defundef = arg[2]
14315    mac1 = arg[3]
14316  } else {
14317    defundef = substr(arg[1], 2)
14318    mac1 = arg[2]
14319  }
14320  split(mac1, mac2, "(") #)
14321  macro = mac2[1]
14322  prefix = substr(line, 1, index(line, defundef) - 1)
14323  if (D_is_set[macro]) {
14324    # Preserve the white space surrounding the "#".
14325    print prefix "define", macro P[macro] D[macro]
14326    next
14327  } else {
14328    # Replace #undef with comments.  This is necessary, for example,
14329    # in the case of _POSIX_SOURCE, which is predefined and required
14330    # on some systems where configure will not decide to define it.
14331    if (defundef == "undef") {
14332      print "/*", prefix defundef, macro, "*/"
14333      next
14334    }
14335  }
14336}
14337{ print }
14338_ACAWK
14339_ACEOF
14340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14341  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14342fi # test -n "$CONFIG_HEADERS"
14343
14344
14345eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
14346shift
14347for ac_tag
14348do
14349  case $ac_tag in
14350  :[FHLC]) ac_mode=$ac_tag; continue;;
14351  esac
14352  case $ac_mode$ac_tag in
14353  :[FHL]*:*);;
14354  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14355  :[FH]-) ac_tag=-:-;;
14356  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14357  esac
14358  ac_save_IFS=$IFS
14359  IFS=:
14360  set x $ac_tag
14361  IFS=$ac_save_IFS
14362  shift
14363  ac_file=$1
14364  shift
14365
14366  case $ac_mode in
14367  :L) ac_source=$1;;
14368  :[FH])
14369    ac_file_inputs=
14370    for ac_f
14371    do
14372      case $ac_f in
14373      -) ac_f="$tmp/stdin";;
14374      *) # Look for the file first in the build tree, then in the source tree
14375	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14376	 # because $ac_f cannot contain `:'.
14377	 test -f "$ac_f" ||
14378	   case $ac_f in
14379	   [\\/$]*) false;;
14380	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14381	   esac ||
14382	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14383      esac
14384      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14385      as_fn_append ac_file_inputs " '$ac_f'"
14386    done
14387
14388    # Let's still pretend it is `configure' which instantiates (i.e., don't
14389    # use $as_me), people would be surprised to read:
14390    #    /* config.h.  Generated by config.status.  */
14391    configure_input='Generated from '`
14392	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14393	`' by configure.'
14394    if test x"$ac_file" != x-; then
14395      configure_input="$ac_file.  $configure_input"
14396      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14397$as_echo "$as_me: creating $ac_file" >&6;}
14398    fi
14399    # Neutralize special characters interpreted by sed in replacement strings.
14400    case $configure_input in #(
14401    *\&* | *\|* | *\\* )
14402       ac_sed_conf_input=`$as_echo "$configure_input" |
14403       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14404    *) ac_sed_conf_input=$configure_input;;
14405    esac
14406
14407    case $ac_tag in
14408    *:-:* | *:-) cat >"$tmp/stdin" \
14409      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14410    esac
14411    ;;
14412  esac
14413
14414  ac_dir=`$as_dirname -- "$ac_file" ||
14415$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14416	 X"$ac_file" : 'X\(//\)[^/]' \| \
14417	 X"$ac_file" : 'X\(//\)$' \| \
14418	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14419$as_echo X"$ac_file" |
14420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14421	    s//\1/
14422	    q
14423	  }
14424	  /^X\(\/\/\)[^/].*/{
14425	    s//\1/
14426	    q
14427	  }
14428	  /^X\(\/\/\)$/{
14429	    s//\1/
14430	    q
14431	  }
14432	  /^X\(\/\).*/{
14433	    s//\1/
14434	    q
14435	  }
14436	  s/.*/./; q'`
14437  as_dir="$ac_dir"; as_fn_mkdir_p
14438  ac_builddir=.
14439
14440case "$ac_dir" in
14441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14442*)
14443  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14444  # A ".." for each directory in $ac_dir_suffix.
14445  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14446  case $ac_top_builddir_sub in
14447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14449  esac ;;
14450esac
14451ac_abs_top_builddir=$ac_pwd
14452ac_abs_builddir=$ac_pwd$ac_dir_suffix
14453# for backward compatibility:
14454ac_top_builddir=$ac_top_build_prefix
14455
14456case $srcdir in
14457  .)  # We are building in place.
14458    ac_srcdir=.
14459    ac_top_srcdir=$ac_top_builddir_sub
14460    ac_abs_top_srcdir=$ac_pwd ;;
14461  [\\/]* | ?:[\\/]* )  # Absolute name.
14462    ac_srcdir=$srcdir$ac_dir_suffix;
14463    ac_top_srcdir=$srcdir
14464    ac_abs_top_srcdir=$srcdir ;;
14465  *) # Relative name.
14466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14467    ac_top_srcdir=$ac_top_build_prefix$srcdir
14468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14469esac
14470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14471
14472
14473  case $ac_mode in
14474  :F)
14475  #
14476  # CONFIG_FILE
14477  #
14478
14479  case $INSTALL in
14480  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14481  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14482  esac
14483  ac_MKDIR_P=$MKDIR_P
14484  case $MKDIR_P in
14485  [\\/$]* | ?:[\\/]* ) ;;
14486  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14487  esac
14488_ACEOF
14489
14490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14491# If the template does not know about datarootdir, expand it.
14492# FIXME: This hack should be removed a few years after 2.60.
14493ac_datarootdir_hack=; ac_datarootdir_seen=
14494ac_sed_dataroot='
14495/datarootdir/ {
14496  p
14497  q
14498}
14499/@datadir@/p
14500/@docdir@/p
14501/@infodir@/p
14502/@localedir@/p
14503/@mandir@/p'
14504case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14505*datarootdir*) ac_datarootdir_seen=yes;;
14506*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14507  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14508$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14509_ACEOF
14510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14511  ac_datarootdir_hack='
14512  s&@datadir@&$datadir&g
14513  s&@docdir@&$docdir&g
14514  s&@infodir@&$infodir&g
14515  s&@localedir@&$localedir&g
14516  s&@mandir@&$mandir&g
14517  s&\\\${datarootdir}&$datarootdir&g' ;;
14518esac
14519_ACEOF
14520
14521# Neutralize VPATH when `$srcdir' = `.'.
14522# Shell code in configure.ac might set extrasub.
14523# FIXME: do we really want to maintain this feature?
14524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14525ac_sed_extra="$ac_vpsub
14526$extrasub
14527_ACEOF
14528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14529:t
14530/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14531s|@configure_input@|$ac_sed_conf_input|;t t
14532s&@top_builddir@&$ac_top_builddir_sub&;t t
14533s&@top_build_prefix@&$ac_top_build_prefix&;t t
14534s&@srcdir@&$ac_srcdir&;t t
14535s&@abs_srcdir@&$ac_abs_srcdir&;t t
14536s&@top_srcdir@&$ac_top_srcdir&;t t
14537s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14538s&@builddir@&$ac_builddir&;t t
14539s&@abs_builddir@&$ac_abs_builddir&;t t
14540s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14541s&@INSTALL@&$ac_INSTALL&;t t
14542s&@MKDIR_P@&$ac_MKDIR_P&;t t
14543$ac_datarootdir_hack
14544"
14545eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14546  || as_fn_error "could not create $ac_file" "$LINENO" 5
14547
14548test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14549  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14550  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14551  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14552which seems to be undefined.  Please make sure it is defined." >&5
14553$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14554which seems to be undefined.  Please make sure it is defined." >&2;}
14555
14556  rm -f "$tmp/stdin"
14557  case $ac_file in
14558  -) cat "$tmp/out" && rm -f "$tmp/out";;
14559  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14560  esac \
14561  || as_fn_error "could not create $ac_file" "$LINENO" 5
14562 ;;
14563  :H)
14564  #
14565  # CONFIG_HEADER
14566  #
14567  if test x"$ac_file" != x-; then
14568    {
14569      $as_echo "/* $configure_input  */" \
14570      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14571    } >"$tmp/config.h" \
14572      || as_fn_error "could not create $ac_file" "$LINENO" 5
14573    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14574      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14575$as_echo "$as_me: $ac_file is unchanged" >&6;}
14576    else
14577      rm -f "$ac_file"
14578      mv "$tmp/config.h" "$ac_file" \
14579	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14580    fi
14581  else
14582    $as_echo "/* $configure_input  */" \
14583      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14584      || as_fn_error "could not create -" "$LINENO" 5
14585  fi
14586# Compute "$ac_file"'s index in $config_headers.
14587_am_arg="$ac_file"
14588_am_stamp_count=1
14589for _am_header in $config_headers :; do
14590  case $_am_header in
14591    $_am_arg | $_am_arg:* )
14592      break ;;
14593    * )
14594      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14595  esac
14596done
14597echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14598$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14599	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14600	 X"$_am_arg" : 'X\(//\)$' \| \
14601	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14602$as_echo X"$_am_arg" |
14603    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14604	    s//\1/
14605	    q
14606	  }
14607	  /^X\(\/\/\)[^/].*/{
14608	    s//\1/
14609	    q
14610	  }
14611	  /^X\(\/\/\)$/{
14612	    s//\1/
14613	    q
14614	  }
14615	  /^X\(\/\).*/{
14616	    s//\1/
14617	    q
14618	  }
14619	  s/.*/./; q'`/stamp-h$_am_stamp_count
14620 ;;
14621  :L)
14622  #
14623  # CONFIG_LINK
14624  #
14625
14626  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14627    :
14628  else
14629    # Prefer the file from the source tree if names are identical.
14630    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14631      ac_source=$srcdir/$ac_source
14632    fi
14633
14634    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14635$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14636
14637    if test ! -r "$ac_source"; then
14638      as_fn_error "$ac_source: file not found" "$LINENO" 5
14639    fi
14640    rm -f "$ac_file"
14641
14642    # Try a relative symlink, then a hard link, then a copy.
14643    case $srcdir in
14644    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14645	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14646    esac
14647    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14648      ln "$ac_source" "$ac_file" 2>/dev/null ||
14649      cp -p "$ac_source" "$ac_file" ||
14650      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14651  fi
14652 ;;
14653  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14654$as_echo "$as_me: executing $ac_file commands" >&6;}
14655 ;;
14656  esac
14657
14658
14659  case $ac_file$ac_mode in
14660    "default-1":C)
14661# Only add multilib support code if we just rebuilt the top-level
14662# Makefile.
14663case " $CONFIG_FILES " in
14664 *" Makefile "*)
14665   ac_file=Makefile . ${multi_basedir}/config-ml.in
14666   ;;
14667esac ;;
14668    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14669  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14670  # are listed without --file.  Let's play safe and only enable the eval
14671  # if we detect the quoting.
14672  case $CONFIG_FILES in
14673  *\'*) eval set x "$CONFIG_FILES" ;;
14674  *)   set x $CONFIG_FILES ;;
14675  esac
14676  shift
14677  for mf
14678  do
14679    # Strip MF so we end up with the name of the file.
14680    mf=`echo "$mf" | sed -e 's/:.*$//'`
14681    # Check whether this is an Automake generated Makefile or not.
14682    # We used to match only the files named `Makefile.in', but
14683    # some people rename them; so instead we look at the file content.
14684    # Grep'ing the first line is not enough: some people post-process
14685    # each Makefile.in and add a new line on top of each file to say so.
14686    # Grep'ing the whole file is not good either: AIX grep has a line
14687    # limit of 2048, but all sed's we know have understand at least 4000.
14688    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14689      dirpart=`$as_dirname -- "$mf" ||
14690$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14691	 X"$mf" : 'X\(//\)[^/]' \| \
14692	 X"$mf" : 'X\(//\)$' \| \
14693	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14694$as_echo X"$mf" |
14695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14696	    s//\1/
14697	    q
14698	  }
14699	  /^X\(\/\/\)[^/].*/{
14700	    s//\1/
14701	    q
14702	  }
14703	  /^X\(\/\/\)$/{
14704	    s//\1/
14705	    q
14706	  }
14707	  /^X\(\/\).*/{
14708	    s//\1/
14709	    q
14710	  }
14711	  s/.*/./; q'`
14712    else
14713      continue
14714    fi
14715    # Extract the definition of DEPDIR, am__include, and am__quote
14716    # from the Makefile without running `make'.
14717    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14718    test -z "$DEPDIR" && continue
14719    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14720    test -z "am__include" && continue
14721    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14722    # When using ansi2knr, U may be empty or an underscore; expand it
14723    U=`sed -n 's/^U = //p' < "$mf"`
14724    # Find all dependency output files, they are included files with
14725    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14726    # simplest approach to changing $(DEPDIR) to its actual value in the
14727    # expansion.
14728    for file in `sed -n "
14729      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14730	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14731      # Make sure the directory exists.
14732      test -f "$dirpart/$file" && continue
14733      fdir=`$as_dirname -- "$file" ||
14734$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14735	 X"$file" : 'X\(//\)[^/]' \| \
14736	 X"$file" : 'X\(//\)$' \| \
14737	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14738$as_echo X"$file" |
14739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14740	    s//\1/
14741	    q
14742	  }
14743	  /^X\(\/\/\)[^/].*/{
14744	    s//\1/
14745	    q
14746	  }
14747	  /^X\(\/\/\)$/{
14748	    s//\1/
14749	    q
14750	  }
14751	  /^X\(\/\).*/{
14752	    s//\1/
14753	    q
14754	  }
14755	  s/.*/./; q'`
14756      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14757      # echo "creating $dirpart/$file"
14758      echo '# dummy' > "$dirpart/$file"
14759    done
14760  done
14761}
14762 ;;
14763    "libtool":C)
14764
14765    # See if we are running on zsh, and set the options which allow our
14766    # commands through without removal of \ escapes.
14767    if test -n "${ZSH_VERSION+set}" ; then
14768      setopt NO_GLOB_SUBST
14769    fi
14770
14771    cfgfile="${ofile}T"
14772    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14773    $RM "$cfgfile"
14774
14775    cat <<_LT_EOF >> "$cfgfile"
14776#! $SHELL
14777
14778# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14779# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14780# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14781# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14782#
14783#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14784#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14785#   Written by Gordon Matzigkeit, 1996
14786#
14787#   This file is part of GNU Libtool.
14788#
14789# GNU Libtool is free software; you can redistribute it and/or
14790# modify it under the terms of the GNU General Public License as
14791# published by the Free Software Foundation; either version 2 of
14792# the License, or (at your option) any later version.
14793#
14794# As a special exception to the GNU General Public License,
14795# if you distribute this file as part of a program or library that
14796# is built using GNU Libtool, you may include this file under the
14797# same distribution terms that you use for the rest of that program.
14798#
14799# GNU Libtool is distributed in the hope that it will be useful,
14800# but WITHOUT ANY WARRANTY; without even the implied warranty of
14801# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14802# GNU General Public License for more details.
14803#
14804# You should have received a copy of the GNU General Public License
14805# along with GNU Libtool; see the file COPYING.  If not, a copy
14806# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14807# obtained by writing to the Free Software Foundation, Inc.,
14808# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14809
14810
14811# The names of the tagged configurations supported by this script.
14812available_tags=""
14813
14814# ### BEGIN LIBTOOL CONFIG
14815
14816# Which release of libtool.m4 was used?
14817macro_version=$macro_version
14818macro_revision=$macro_revision
14819
14820# Whether or not to build shared libraries.
14821build_libtool_libs=$enable_shared
14822
14823# Whether or not to build static libraries.
14824build_old_libs=$enable_static
14825
14826# What type of objects to build.
14827pic_mode=$pic_mode
14828
14829# Whether or not to optimize for fast installation.
14830fast_install=$enable_fast_install
14831
14832# Shell to use when invoking shell scripts.
14833SHELL=$lt_SHELL
14834
14835# An echo program that protects backslashes.
14836ECHO=$lt_ECHO
14837
14838# The host system.
14839host_alias=$host_alias
14840host=$host
14841host_os=$host_os
14842
14843# The build system.
14844build_alias=$build_alias
14845build=$build
14846build_os=$build_os
14847
14848# A sed program that does not truncate output.
14849SED=$lt_SED
14850
14851# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14852Xsed="\$SED -e 1s/^X//"
14853
14854# A grep program that handles long lines.
14855GREP=$lt_GREP
14856
14857# An ERE matcher.
14858EGREP=$lt_EGREP
14859
14860# A literal string matcher.
14861FGREP=$lt_FGREP
14862
14863# A BSD- or MS-compatible name lister.
14864NM=$lt_NM
14865
14866# Whether we need soft or hard links.
14867LN_S=$lt_LN_S
14868
14869# What is the maximum length of a command?
14870max_cmd_len=$max_cmd_len
14871
14872# Object file suffix (normally "o").
14873objext=$ac_objext
14874
14875# Executable file suffix (normally "").
14876exeext=$exeext
14877
14878# whether the shell understands "unset".
14879lt_unset=$lt_unset
14880
14881# turn spaces into newlines.
14882SP2NL=$lt_lt_SP2NL
14883
14884# turn newlines into spaces.
14885NL2SP=$lt_lt_NL2SP
14886
14887# An object symbol dumper.
14888OBJDUMP=$lt_OBJDUMP
14889
14890# Method to check whether dependent libraries are shared objects.
14891deplibs_check_method=$lt_deplibs_check_method
14892
14893# Command to use when deplibs_check_method == "file_magic".
14894file_magic_cmd=$lt_file_magic_cmd
14895
14896# The archiver.
14897AR=$lt_AR
14898AR_FLAGS=$lt_AR_FLAGS
14899
14900# A symbol stripping program.
14901STRIP=$lt_STRIP
14902
14903# Commands used to install an old-style archive.
14904RANLIB=$lt_RANLIB
14905old_postinstall_cmds=$lt_old_postinstall_cmds
14906old_postuninstall_cmds=$lt_old_postuninstall_cmds
14907
14908# Whether to use a lock for old archive extraction.
14909lock_old_archive_extraction=$lock_old_archive_extraction
14910
14911# A C compiler.
14912LTCC=$lt_CC
14913
14914# LTCC compiler flags.
14915LTCFLAGS=$lt_CFLAGS
14916
14917# Take the output of nm and produce a listing of raw symbols and C names.
14918global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14919
14920# Transform the output of nm in a proper C declaration.
14921global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14922
14923# Transform the output of nm in a C name address pair.
14924global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14925
14926# Transform the output of nm in a C name address pair when lib prefix is needed.
14927global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14928
14929# The name of the directory that contains temporary libtool files.
14930objdir=$objdir
14931
14932# Used to examine libraries when file_magic_cmd begins with "file".
14933MAGIC_CMD=$MAGIC_CMD
14934
14935# Must we lock files when doing compilation?
14936need_locks=$lt_need_locks
14937
14938# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14939DSYMUTIL=$lt_DSYMUTIL
14940
14941# Tool to change global to local symbols on Mac OS X.
14942NMEDIT=$lt_NMEDIT
14943
14944# Tool to manipulate fat objects and archives on Mac OS X.
14945LIPO=$lt_LIPO
14946
14947# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14948OTOOL=$lt_OTOOL
14949
14950# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14951OTOOL64=$lt_OTOOL64
14952
14953# Old archive suffix (normally "a").
14954libext=$libext
14955
14956# Shared library suffix (normally ".so").
14957shrext_cmds=$lt_shrext_cmds
14958
14959# The commands to extract the exported symbol list from a shared archive.
14960extract_expsyms_cmds=$lt_extract_expsyms_cmds
14961
14962# Variables whose values should be saved in libtool wrapper scripts and
14963# restored at link time.
14964variables_saved_for_relink=$lt_variables_saved_for_relink
14965
14966# Do we need the "lib" prefix for modules?
14967need_lib_prefix=$need_lib_prefix
14968
14969# Do we need a version for libraries?
14970need_version=$need_version
14971
14972# Library versioning type.
14973version_type=$version_type
14974
14975# Shared library runtime path variable.
14976runpath_var=$runpath_var
14977
14978# Shared library path variable.
14979shlibpath_var=$shlibpath_var
14980
14981# Is shlibpath searched before the hard-coded library search path?
14982shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14983
14984# Format of library name prefix.
14985libname_spec=$lt_libname_spec
14986
14987# List of archive names.  First name is the real one, the rest are links.
14988# The last name is the one that the linker finds with -lNAME
14989library_names_spec=$lt_library_names_spec
14990
14991# The coded name of the library, if different from the real name.
14992soname_spec=$lt_soname_spec
14993
14994# Permission mode override for installation of shared libraries.
14995install_override_mode=$lt_install_override_mode
14996
14997# Command to use after installation of a shared archive.
14998postinstall_cmds=$lt_postinstall_cmds
14999
15000# Command to use after uninstallation of a shared archive.
15001postuninstall_cmds=$lt_postuninstall_cmds
15002
15003# Commands used to finish a libtool library installation in a directory.
15004finish_cmds=$lt_finish_cmds
15005
15006# As "finish_cmds", except a single script fragment to be evaled but
15007# not shown.
15008finish_eval=$lt_finish_eval
15009
15010# Whether we should hardcode library paths into libraries.
15011hardcode_into_libs=$hardcode_into_libs
15012
15013# Compile-time system search path for libraries.
15014sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15015
15016# Run-time system search path for libraries.
15017sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15018
15019# Whether dlopen is supported.
15020dlopen_support=$enable_dlopen
15021
15022# Whether dlopen of programs is supported.
15023dlopen_self=$enable_dlopen_self
15024
15025# Whether dlopen of statically linked programs is supported.
15026dlopen_self_static=$enable_dlopen_self_static
15027
15028# Commands to strip libraries.
15029old_striplib=$lt_old_striplib
15030striplib=$lt_striplib
15031
15032
15033# The linker used to build libraries.
15034LD=$lt_LD
15035
15036# How to create reloadable object files.
15037reload_flag=$lt_reload_flag
15038reload_cmds=$lt_reload_cmds
15039
15040# Commands used to build an old-style archive.
15041old_archive_cmds=$lt_old_archive_cmds
15042
15043# A language specific compiler.
15044CC=$lt_compiler
15045
15046# Is the compiler the GNU compiler?
15047with_gcc=$GCC
15048
15049# Compiler flag to turn off builtin functions.
15050no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15051
15052# How to pass a linker flag through the compiler.
15053wl=$lt_lt_prog_compiler_wl
15054
15055# Additional compiler flags for building library objects.
15056pic_flag=$lt_lt_prog_compiler_pic
15057
15058# Compiler flag to prevent dynamic linking.
15059link_static_flag=$lt_lt_prog_compiler_static
15060
15061# Does compiler simultaneously support -c and -o options?
15062compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15063
15064# Whether or not to add -lc for building shared libraries.
15065build_libtool_need_lc=$archive_cmds_need_lc
15066
15067# Whether or not to disallow shared libs when runtime libs are static.
15068allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15069
15070# Compiler flag to allow reflexive dlopens.
15071export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15072
15073# Compiler flag to generate shared objects directly from archives.
15074whole_archive_flag_spec=$lt_whole_archive_flag_spec
15075
15076# Whether the compiler copes with passing no objects directly.
15077compiler_needs_object=$lt_compiler_needs_object
15078
15079# Create an old-style archive from a shared archive.
15080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15081
15082# Create a temporary old-style archive to link instead of a shared archive.
15083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15084
15085# Commands used to build a shared archive.
15086archive_cmds=$lt_archive_cmds
15087archive_expsym_cmds=$lt_archive_expsym_cmds
15088
15089# Commands used to build a loadable module if different from building
15090# a shared archive.
15091module_cmds=$lt_module_cmds
15092module_expsym_cmds=$lt_module_expsym_cmds
15093
15094# Whether we are building with GNU ld or not.
15095with_gnu_ld=$lt_with_gnu_ld
15096
15097# Flag that allows shared libraries with undefined symbols to be built.
15098allow_undefined_flag=$lt_allow_undefined_flag
15099
15100# Flag that enforces no undefined symbols.
15101no_undefined_flag=$lt_no_undefined_flag
15102
15103# Flag to hardcode \$libdir into a binary during linking.
15104# This must work even if \$libdir does not exist
15105hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15106
15107# If ld is used when linking, flag to hardcode \$libdir into a binary
15108# during linking.  This must work even if \$libdir does not exist.
15109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15110
15111# Whether we need a single "-rpath" flag with a separated argument.
15112hardcode_libdir_separator=$lt_hardcode_libdir_separator
15113
15114# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15115# DIR into the resulting binary.
15116hardcode_direct=$hardcode_direct
15117
15118# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15119# DIR into the resulting binary and the resulting library dependency is
15120# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15121# library is relocated.
15122hardcode_direct_absolute=$hardcode_direct_absolute
15123
15124# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15125# into the resulting binary.
15126hardcode_minus_L=$hardcode_minus_L
15127
15128# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15129# into the resulting binary.
15130hardcode_shlibpath_var=$hardcode_shlibpath_var
15131
15132# Set to "yes" if building a shared library automatically hardcodes DIR
15133# into the library and all subsequent libraries and executables linked
15134# against it.
15135hardcode_automatic=$hardcode_automatic
15136
15137# Set to yes if linker adds runtime paths of dependent libraries
15138# to runtime path list.
15139inherit_rpath=$inherit_rpath
15140
15141# Whether libtool must link a program against all its dependency libraries.
15142link_all_deplibs=$link_all_deplibs
15143
15144# Fix the shell variable \$srcfile for the compiler.
15145fix_srcfile_path=$lt_fix_srcfile_path
15146
15147# Set to "yes" if exported symbols are required.
15148always_export_symbols=$always_export_symbols
15149
15150# The commands to list exported symbols.
15151export_symbols_cmds=$lt_export_symbols_cmds
15152
15153# Symbols that should not be listed in the preloaded symbols.
15154exclude_expsyms=$lt_exclude_expsyms
15155
15156# Symbols that must always be exported.
15157include_expsyms=$lt_include_expsyms
15158
15159# Commands necessary for linking programs (against libraries) with templates.
15160prelink_cmds=$lt_prelink_cmds
15161
15162# Specify filename containing input files.
15163file_list_spec=$lt_file_list_spec
15164
15165# How to hardcode a shared library path into an executable.
15166hardcode_action=$hardcode_action
15167
15168# ### END LIBTOOL CONFIG
15169
15170_LT_EOF
15171
15172  case $host_os in
15173  aix3*)
15174    cat <<\_LT_EOF >> "$cfgfile"
15175# AIX sometimes has problems with the GCC collect2 program.  For some
15176# reason, if we set the COLLECT_NAMES environment variable, the problems
15177# vanish in a puff of smoke.
15178if test "X${COLLECT_NAMES+set}" != Xset; then
15179  COLLECT_NAMES=
15180  export COLLECT_NAMES
15181fi
15182_LT_EOF
15183    ;;
15184  esac
15185
15186
15187ltmain="$ac_aux_dir/ltmain.sh"
15188
15189
15190  # We use sed instead of cat because bash on DJGPP gets confused if
15191  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15192  # text mode, it properly converts lines to CR/LF.  This bash problem
15193  # is reportedly fixed, but why not run on old versions too?
15194  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15195    || (rm -f "$cfgfile"; exit 1)
15196
15197  case $xsi_shell in
15198  yes)
15199    cat << \_LT_EOF >> "$cfgfile"
15200
15201# func_dirname file append nondir_replacement
15202# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15203# otherwise set result to NONDIR_REPLACEMENT.
15204func_dirname ()
15205{
15206  case ${1} in
15207    */*) func_dirname_result="${1%/*}${2}" ;;
15208    *  ) func_dirname_result="${3}" ;;
15209  esac
15210}
15211
15212# func_basename file
15213func_basename ()
15214{
15215  func_basename_result="${1##*/}"
15216}
15217
15218# func_dirname_and_basename file append nondir_replacement
15219# perform func_basename and func_dirname in a single function
15220# call:
15221#   dirname:  Compute the dirname of FILE.  If nonempty,
15222#             add APPEND to the result, otherwise set result
15223#             to NONDIR_REPLACEMENT.
15224#             value returned in "$func_dirname_result"
15225#   basename: Compute filename of FILE.
15226#             value retuned in "$func_basename_result"
15227# Implementation must be kept synchronized with func_dirname
15228# and func_basename. For efficiency, we do not delegate to
15229# those functions but instead duplicate the functionality here.
15230func_dirname_and_basename ()
15231{
15232  case ${1} in
15233    */*) func_dirname_result="${1%/*}${2}" ;;
15234    *  ) func_dirname_result="${3}" ;;
15235  esac
15236  func_basename_result="${1##*/}"
15237}
15238
15239# func_stripname prefix suffix name
15240# strip PREFIX and SUFFIX off of NAME.
15241# PREFIX and SUFFIX must not contain globbing or regex special
15242# characters, hashes, percent signs, but SUFFIX may contain a leading
15243# dot (in which case that matches only a dot).
15244func_stripname ()
15245{
15246  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15247  # positional parameters, so assign one to ordinary parameter first.
15248  func_stripname_result=${3}
15249  func_stripname_result=${func_stripname_result#"${1}"}
15250  func_stripname_result=${func_stripname_result%"${2}"}
15251}
15252
15253# func_opt_split
15254func_opt_split ()
15255{
15256  func_opt_split_opt=${1%%=*}
15257  func_opt_split_arg=${1#*=}
15258}
15259
15260# func_lo2o object
15261func_lo2o ()
15262{
15263  case ${1} in
15264    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15265    *)    func_lo2o_result=${1} ;;
15266  esac
15267}
15268
15269# func_xform libobj-or-source
15270func_xform ()
15271{
15272  func_xform_result=${1%.*}.lo
15273}
15274
15275# func_arith arithmetic-term...
15276func_arith ()
15277{
15278  func_arith_result=$(( $* ))
15279}
15280
15281# func_len string
15282# STRING may not start with a hyphen.
15283func_len ()
15284{
15285  func_len_result=${#1}
15286}
15287
15288_LT_EOF
15289    ;;
15290  *) # Bourne compatible functions.
15291    cat << \_LT_EOF >> "$cfgfile"
15292
15293# func_dirname file append nondir_replacement
15294# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15295# otherwise set result to NONDIR_REPLACEMENT.
15296func_dirname ()
15297{
15298  # Extract subdirectory from the argument.
15299  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15300  if test "X$func_dirname_result" = "X${1}"; then
15301    func_dirname_result="${3}"
15302  else
15303    func_dirname_result="$func_dirname_result${2}"
15304  fi
15305}
15306
15307# func_basename file
15308func_basename ()
15309{
15310  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15311}
15312
15313
15314# func_stripname prefix suffix name
15315# strip PREFIX and SUFFIX off of NAME.
15316# PREFIX and SUFFIX must not contain globbing or regex special
15317# characters, hashes, percent signs, but SUFFIX may contain a leading
15318# dot (in which case that matches only a dot).
15319# func_strip_suffix prefix name
15320func_stripname ()
15321{
15322  case ${2} in
15323    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15324    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15325  esac
15326}
15327
15328# sed scripts:
15329my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15330my_sed_long_arg='1s/^-[^=]*=//'
15331
15332# func_opt_split
15333func_opt_split ()
15334{
15335  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15336  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15337}
15338
15339# func_lo2o object
15340func_lo2o ()
15341{
15342  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15343}
15344
15345# func_xform libobj-or-source
15346func_xform ()
15347{
15348  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15349}
15350
15351# func_arith arithmetic-term...
15352func_arith ()
15353{
15354  func_arith_result=`expr "$@"`
15355}
15356
15357# func_len string
15358# STRING may not start with a hyphen.
15359func_len ()
15360{
15361  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15362}
15363
15364_LT_EOF
15365esac
15366
15367case $lt_shell_append in
15368  yes)
15369    cat << \_LT_EOF >> "$cfgfile"
15370
15371# func_append var value
15372# Append VALUE to the end of shell variable VAR.
15373func_append ()
15374{
15375  eval "$1+=\$2"
15376}
15377_LT_EOF
15378    ;;
15379  *)
15380    cat << \_LT_EOF >> "$cfgfile"
15381
15382# func_append var value
15383# Append VALUE to the end of shell variable VAR.
15384func_append ()
15385{
15386  eval "$1=\$$1\$2"
15387}
15388
15389_LT_EOF
15390    ;;
15391  esac
15392
15393
15394  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15395    || (rm -f "$cfgfile"; exit 1)
15396
15397  mv -f "$cfgfile" "$ofile" ||
15398    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15399  chmod +x "$ofile"
15400
15401 ;;
15402    "include":C) test -d include || mkdir include ;;
15403    "src":C)
15404test -d src || mkdir src
15405test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15406 ;;
15407
15408  esac
15409done # for ac_tag
15410
15411
15412as_fn_exit 0
15413_ACEOF
15414ac_clean_files=$ac_clean_files_save
15415
15416test $ac_write_fail = 0 ||
15417  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15418
15419
15420# configure is writing to config.log, and then calls config.status.
15421# config.status does its own redirection, appending to config.log.
15422# Unfortunately, on DOS this fails, as config.log is still kept open
15423# by configure, so config.status won't be able to write to it; its
15424# output is simply discarded.  So we exec the FD to /dev/null,
15425# effectively closing config.log, so it can be properly (re)opened and
15426# appended to by config.status.  When coming back to configure, we
15427# need to make the FD available again.
15428if test "$no_create" != yes; then
15429  ac_cs_success=:
15430  ac_config_status_args=
15431  test "$silent" = yes &&
15432    ac_config_status_args="$ac_config_status_args --quiet"
15433  exec 5>/dev/null
15434  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15435  exec 5>>config.log
15436  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15437  # would make configure fail if this is the last instruction.
15438  $ac_cs_success || as_fn_exit $?
15439fi
15440if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15442$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15443fi
15444
15445