1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for ld 2.25.51.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1
173
174  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178    PATH=/empty FPATH=/empty; export PATH FPATH
179    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='ld'
558PACKAGE_TARNAME='ld'
559PACKAGE_VERSION='2.25.51'
560PACKAGE_STRING='ld 2.25.51'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="ldmain.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
611STRINGIFY
612enable_initfini_array
613ENABLE_PLUGINS_FALSE
614ENABLE_PLUGINS_TRUE
615NATIVE_LIB_DIRS
616HOSTING_SLIBS
617HOSTING_LIBS
618HOSTING_SCRT0
619HOSTING_CRT0
620HDEFINES
621do_compare
622GENINSRC_NEVER_FALSE
623GENINSRC_NEVER_TRUE
624LEXLIB
625LEX_OUTPUT_ROOT
626LEX
627YFLAGS
628YACC
629MSGMERGE
630MSGFMT
631MKINSTALLDIRS
632CATOBJEXT
633GENCAT
634INSTOBJEXT
635DATADIRNAME
636CATALOGS
637POSUB
638GMSGFMT
639XGETTEXT
640INCINTL
641LIBINTL_DEP
642LIBINTL
643USE_NLS
644NO_WERROR
645WARN_CFLAGS
646installed_linker
647install_as_default
648TARGET_SYSTEM_ROOT_DEFINE
649TARGET_SYSTEM_ROOT
650use_sysroot
651CXXCPP
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
657RANLIB
658AR
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666SED
667LIBTOOL
668EGREP
669GREP
670CPP
671am__fastdepCXX_FALSE
672am__fastdepCXX_TRUE
673CXXDEPMODE
674ac_ct_CXX
675CXXFLAGS
676CXX
677MAINT
678MAINTAINER_MODE_FALSE
679MAINTAINER_MODE_TRUE
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719target_os
720target_vendor
721target_cpu
722target
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
769ac_subst_files='TDIRS'
770ac_user_opts='
771enable_option_checking
772enable_dependency_tracking
773enable_maintainer_mode
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778with_gnu_ld
779enable_libtool_lock
780enable_plugins
781enable_largefile
782with_lib_path
783enable_targets
784enable_64_bit_bfd
785with_sysroot
786enable_poison_system_directories
787enable_gold
788enable_got
789enable_werror
790enable_build_warnings
791enable_nls
792enable_initfini_array
793with_zlib
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CXX
804CXXFLAGS
805CCC
806CPP
807CXXCPP
808YACC
809YFLAGS'
810
811
812# Initialize some variables set by options.
813ac_init_help=
814ac_init_version=false
815ac_unrecognized_opts=
816ac_unrecognized_sep=
817# The variables have the same names as the options, with
818# dashes changed to underlines.
819cache_file=/dev/null
820exec_prefix=NONE
821no_create=
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
830verbose=
831x_includes=NONE
832x_libraries=NONE
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
839# (The list follows the same order as the GNU Coding Standards.)
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864  # If the previous option needs an argument, assign it.
865  if test -n "$ac_prev"; then
866    eval $ac_prev=\$ac_option
867    ac_prev=
868    continue
869  fi
870
871  case $ac_option in
872  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873  *)	ac_optarg=yes ;;
874  esac
875
876  # Accept the important Cygnus configure options, so we can diagnose typos.
877
878  case $ac_dashdash$ac_option in
879  --)
880    ac_dashdash=yes ;;
881
882  -bindir | --bindir | --bindi | --bind | --bin | --bi)
883    ac_prev=bindir ;;
884  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885    bindir=$ac_optarg ;;
886
887  -build | --build | --buil | --bui | --bu)
888    ac_prev=build_alias ;;
889  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890    build_alias=$ac_optarg ;;
891
892  -cache-file | --cache-file | --cache-fil | --cache-fi \
893  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894    ac_prev=cache_file ;;
895  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897    cache_file=$ac_optarg ;;
898
899  --config-cache | -C)
900    cache_file=config.cache ;;
901
902  -datadir | --datadir | --datadi | --datad)
903    ac_prev=datadir ;;
904  -datadir=* | --datadir=* | --datadi=* | --datad=*)
905    datadir=$ac_optarg ;;
906
907  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908  | --dataroo | --dataro | --datar)
909    ac_prev=datarootdir ;;
910  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912    datarootdir=$ac_optarg ;;
913
914  -disable-* | --disable-*)
915    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916    # Reject names that are not valid shell variable names.
917    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918      as_fn_error "invalid feature name: $ac_useropt"
919    ac_useropt_orig=$ac_useropt
920    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921    case $ac_user_opts in
922      *"
923"enable_$ac_useropt"
924"*) ;;
925      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926	 ac_unrecognized_sep=', ';;
927    esac
928    eval enable_$ac_useropt=no ;;
929
930  -docdir | --docdir | --docdi | --doc | --do)
931    ac_prev=docdir ;;
932  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933    docdir=$ac_optarg ;;
934
935  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936    ac_prev=dvidir ;;
937  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938    dvidir=$ac_optarg ;;
939
940  -enable-* | --enable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=\$ac_optarg ;;
955
956  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958  | --exec | --exe | --ex)
959    ac_prev=exec_prefix ;;
960  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962  | --exec=* | --exe=* | --ex=*)
963    exec_prefix=$ac_optarg ;;
964
965  -gas | --gas | --ga | --g)
966    # Obsolete; use --with-gas.
967    with_gas=yes ;;
968
969  -help | --help | --hel | --he | -h)
970    ac_init_help=long ;;
971  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972    ac_init_help=recursive ;;
973  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974    ac_init_help=short ;;
975
976  -host | --host | --hos | --ho)
977    ac_prev=host_alias ;;
978  -host=* | --host=* | --hos=* | --ho=*)
979    host_alias=$ac_optarg ;;
980
981  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982    ac_prev=htmldir ;;
983  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984  | --ht=*)
985    htmldir=$ac_optarg ;;
986
987  -includedir | --includedir | --includedi | --included | --include \
988  | --includ | --inclu | --incl | --inc)
989    ac_prev=includedir ;;
990  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991  | --includ=* | --inclu=* | --incl=* | --inc=*)
992    includedir=$ac_optarg ;;
993
994  -infodir | --infodir | --infodi | --infod | --info | --inf)
995    ac_prev=infodir ;;
996  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997    infodir=$ac_optarg ;;
998
999  -libdir | --libdir | --libdi | --libd)
1000    ac_prev=libdir ;;
1001  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002    libdir=$ac_optarg ;;
1003
1004  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005  | --libexe | --libex | --libe)
1006    ac_prev=libexecdir ;;
1007  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008  | --libexe=* | --libex=* | --libe=*)
1009    libexecdir=$ac_optarg ;;
1010
1011  -localedir | --localedir | --localedi | --localed | --locale)
1012    ac_prev=localedir ;;
1013  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014    localedir=$ac_optarg ;;
1015
1016  -localstatedir | --localstatedir | --localstatedi | --localstated \
1017  | --localstate | --localstat | --localsta | --localst | --locals)
1018    ac_prev=localstatedir ;;
1019  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021    localstatedir=$ac_optarg ;;
1022
1023  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024    ac_prev=mandir ;;
1025  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026    mandir=$ac_optarg ;;
1027
1028  -nfp | --nfp | --nf)
1029    # Obsolete; use --without-fp.
1030    with_fp=no ;;
1031
1032  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033  | --no-cr | --no-c | -n)
1034    no_create=yes ;;
1035
1036  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038    no_recursion=yes ;;
1039
1040  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042  | --oldin | --oldi | --old | --ol | --o)
1043    ac_prev=oldincludedir ;;
1044  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047    oldincludedir=$ac_optarg ;;
1048
1049  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050    ac_prev=prefix ;;
1051  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052    prefix=$ac_optarg ;;
1053
1054  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055  | --program-pre | --program-pr | --program-p)
1056    ac_prev=program_prefix ;;
1057  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059    program_prefix=$ac_optarg ;;
1060
1061  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062  | --program-suf | --program-su | --program-s)
1063    ac_prev=program_suffix ;;
1064  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066    program_suffix=$ac_optarg ;;
1067
1068  -program-transform-name | --program-transform-name \
1069  | --program-transform-nam | --program-transform-na \
1070  | --program-transform-n | --program-transform- \
1071  | --program-transform | --program-transfor \
1072  | --program-transfo | --program-transf \
1073  | --program-trans | --program-tran \
1074  | --progr-tra | --program-tr | --program-t)
1075    ac_prev=program_transform_name ;;
1076  -program-transform-name=* | --program-transform-name=* \
1077  | --program-transform-nam=* | --program-transform-na=* \
1078  | --program-transform-n=* | --program-transform-=* \
1079  | --program-transform=* | --program-transfor=* \
1080  | --program-transfo=* | --program-transf=* \
1081  | --program-trans=* | --program-tran=* \
1082  | --progr-tra=* | --program-tr=* | --program-t=*)
1083    program_transform_name=$ac_optarg ;;
1084
1085  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086    ac_prev=pdfdir ;;
1087  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088    pdfdir=$ac_optarg ;;
1089
1090  -psdir | --psdir | --psdi | --psd | --ps)
1091    ac_prev=psdir ;;
1092  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093    psdir=$ac_optarg ;;
1094
1095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096  | -silent | --silent | --silen | --sile | --sil)
1097    silent=yes ;;
1098
1099  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100    ac_prev=sbindir ;;
1101  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102  | --sbi=* | --sb=*)
1103    sbindir=$ac_optarg ;;
1104
1105  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107  | --sharedst | --shareds | --shared | --share | --shar \
1108  | --sha | --sh)
1109    ac_prev=sharedstatedir ;;
1110  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113  | --sha=* | --sh=*)
1114    sharedstatedir=$ac_optarg ;;
1115
1116  -site | --site | --sit)
1117    ac_prev=site ;;
1118  -site=* | --site=* | --sit=*)
1119    site=$ac_optarg ;;
1120
1121  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122    ac_prev=srcdir ;;
1123  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124    srcdir=$ac_optarg ;;
1125
1126  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127  | --syscon | --sysco | --sysc | --sys | --sy)
1128    ac_prev=sysconfdir ;;
1129  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131    sysconfdir=$ac_optarg ;;
1132
1133  -target | --target | --targe | --targ | --tar | --ta | --t)
1134    ac_prev=target_alias ;;
1135  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136    target_alias=$ac_optarg ;;
1137
1138  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139    verbose=yes ;;
1140
1141  -version | --version | --versio | --versi | --vers | -V)
1142    ac_init_version=: ;;
1143
1144  -with-* | --with-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=\$ac_optarg ;;
1159
1160  -without-* | --without-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=no ;;
1175
1176  --x)
1177    # Obsolete; use --with-x.
1178    with_x=yes ;;
1179
1180  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181  | --x-incl | --x-inc | --x-in | --x-i)
1182    ac_prev=x_includes ;;
1183  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185    x_includes=$ac_optarg ;;
1186
1187  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189    ac_prev=x_libraries ;;
1190  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192    x_libraries=$ac_optarg ;;
1193
1194  -*) as_fn_error "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information."
1196    ;;
1197
1198  *=*)
1199    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200    # Reject names that are not valid shell variable names.
1201    case $ac_envvar in #(
1202      '' | [0-9]* | *[!_$as_cr_alnum]* )
1203      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204    esac
1205    eval $ac_envvar=\$ac_optarg
1206    export $ac_envvar ;;
1207
1208  *)
1209    # FIXME: should be removed in autoconf 3.0.
1210    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214    ;;
1215
1216  esac
1217done
1218
1219if test -n "$ac_prev"; then
1220  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221  as_fn_error "missing argument to $ac_option"
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225  case $enable_option_checking in
1226    no) ;;
1227    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229  esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234		datadir sysconfdir sharedstatedir localstatedir includedir \
1235		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236		libdir localedir mandir
1237do
1238  eval ac_val=\$$ac_var
1239  # Remove trailing slashes.
1240  case $ac_val in
1241    */ )
1242      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243      eval $ac_var=\$ac_val;;
1244  esac
1245  # Be sure to have absolute directory names.
1246  case $ac_val in
1247    [\\/$]* | ?:[\\/]* )  continue;;
1248    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249  esac
1250  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262  if test "x$build_alias" = x; then
1263    cross_compiling=maybe
1264    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265    If a cross compiler is detected then cross compile mode will be used." >&2
1266  elif test "x$build_alias" != "x$host_alias"; then
1267    cross_compiling=yes
1268  fi
1269fi
1270
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
1275
1276
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280  as_fn_error "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282  as_fn_error "pwd does not report name of working directory"
1283
1284
1285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287  ac_srcdir_defaulted=yes
1288  # Try the directory containing this script, then the parent directory.
1289  ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291	 X"$as_myself" : 'X\(//\)[^/]' \| \
1292	 X"$as_myself" : 'X\(//\)$' \| \
1293	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294$as_echo X"$as_myself" |
1295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)[^/].*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\).*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  s/.*/./; q'`
1312  srcdir=$ac_confdir
1313  if test ! -r "$srcdir/$ac_unique_file"; then
1314    srcdir=..
1315  fi
1316else
1317  ac_srcdir_defaulted=no
1318fi
1319if test ! -r "$srcdir/$ac_unique_file"; then
1320  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326	pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329  srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_env_${ac_var}_value=\$${ac_var}
1340  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
1343
1344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348  # Omit some internal or obsolete options to make the list less imposing.
1349  # This message is too long to be a string in the A/UX 3.1 sh.
1350  cat <<_ACEOF
1351\`configure' configures ld 2.25.51 to adapt to many kinds of systems.
1352
1353Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE.  See below for descriptions of some of the useful variables.
1357
1358Defaults for the options are specified in brackets.
1359
1360Configuration:
1361  -h, --help              display this help and exit
1362      --help=short        display options specific to this package
1363      --help=recursive    display the short help of all the included packages
1364  -V, --version           display version information and exit
1365  -q, --quiet, --silent   do not print \`checking...' messages
1366      --cache-file=FILE   cache test results in FILE [disabled]
1367  -C, --config-cache      alias for \`--cache-file=config.cache'
1368  -n, --no-create         do not create output files
1369      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1370
1371Installation directories:
1372  --prefix=PREFIX         install architecture-independent files in PREFIX
1373                          [$ac_default_prefix]
1374  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1375                          [PREFIX]
1376
1377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
1381
1382For better control, use the options below.
1383
1384Fine tuning of the installation directories:
1385  --bindir=DIR            user executables [EPREFIX/bin]
1386  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1387  --libexecdir=DIR        program executables [EPREFIX/libexec]
1388  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1389  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1390  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1391  --libdir=DIR            object code libraries [EPREFIX/lib]
1392  --includedir=DIR        C header files [PREFIX/include]
1393  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396  --infodir=DIR           info documentation [DATAROOTDIR/info]
1397  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398  --mandir=DIR            man documentation [DATAROOTDIR/man]
1399  --docdir=DIR            documentation root [DATAROOTDIR/doc/ld]
1400  --htmldir=DIR           html documentation [DOCDIR]
1401  --dvidir=DIR            dvi documentation [DOCDIR]
1402  --pdfdir=DIR            pdf documentation [DOCDIR]
1403  --psdir=DIR             ps documentation [DOCDIR]
1404_ACEOF
1405
1406  cat <<\_ACEOF
1407
1408Program names:
1409  --program-prefix=PREFIX            prepend PREFIX to installed program names
1410  --program-suffix=SUFFIX            append SUFFIX to installed program names
1411  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1412
1413System types:
1414  --build=BUILD     configure for building on BUILD [guessed]
1415  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1416  --target=TARGET   configure for building compilers for TARGET [HOST]
1417_ACEOF
1418fi
1419
1420if test -n "$ac_init_help"; then
1421  case $ac_init_help in
1422     short | recursive ) echo "Configuration of ld 2.25.51:";;
1423   esac
1424  cat <<\_ACEOF
1425
1426Optional Features:
1427  --disable-option-checking  ignore unrecognized --enable/--with options
1428  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430  --disable-dependency-tracking  speeds up one-time build
1431  --enable-dependency-tracking   do not reject slow dependency extractors
1432  --enable-maintainer-mode  enable make rules and dependencies not useful
1433			  (and sometimes confusing) to the casual installer
1434  --enable-shared[=PKGS]  build shared libraries [default=yes]
1435  --enable-static[=PKGS]  build static libraries [default=yes]
1436  --enable-fast-install[=PKGS]
1437                          optimize for fast installation [default=yes]
1438  --disable-libtool-lock  avoid locking (might break parallel builds)
1439  --enable-plugins        Enable support for plugins
1440  --disable-largefile     omit support for large files
1441  --enable-targets        alternative target configurations
1442  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1443  --enable-poison-system-directories
1444                          warn for use of native system library directories
1445  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1446  --enable-got=<type>     GOT handling scheme (target, single, negative,
1447                          multigot)
1448  --enable-werror         treat compile warnings as errors
1449  --enable-build-warnings enable build-time compiler warnings
1450  --disable-nls           do not use Native Language Support
1451  --enable-initfini-array	use .init_array/.fini_array sections
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-pic              try to use only PIC/non-PIC objects [default=use
1457                          both]
1458  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459  --with-lib-path=dir1:dir2...  set default LIB_PATH
1460  --with-sysroot=DIR Search for usr/lib et al within DIR.
1461  --with-zlib             include zlib support (auto/yes/no) default=auto
1462
1463Some influential environment variables:
1464  CC          C compiler command
1465  CFLAGS      C compiler flags
1466  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1467              nonstandard directory <lib dir>
1468  LIBS        libraries to pass to the linker, e.g. -l<library>
1469  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1470              you have headers in a nonstandard directory <include dir>
1471  CXX         C++ compiler command
1472  CXXFLAGS    C++ compiler flags
1473  CPP         C preprocessor
1474  CXXCPP      C++ preprocessor
1475  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1476              the first program found out of: `bison -y', `byacc', `yacc'.
1477  YFLAGS      The list of arguments that will be passed by default to $YACC.
1478              This script will default YFLAGS to the empty string to avoid a
1479              default value of `-d' given by some make applications.
1480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
1484Report bugs to the package provider.
1485_ACEOF
1486ac_status=$?
1487fi
1488
1489if test "$ac_init_help" = "recursive"; then
1490  # If there are subdirs, report their specific --help.
1491  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492    test -d "$ac_dir" ||
1493      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494      continue
1495    ac_builddir=.
1496
1497case "$ac_dir" in
1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499*)
1500  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501  # A ".." for each directory in $ac_dir_suffix.
1502  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503  case $ac_top_builddir_sub in
1504  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506  esac ;;
1507esac
1508ac_abs_top_builddir=$ac_pwd
1509ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510# for backward compatibility:
1511ac_top_builddir=$ac_top_build_prefix
1512
1513case $srcdir in
1514  .)  # We are building in place.
1515    ac_srcdir=.
1516    ac_top_srcdir=$ac_top_builddir_sub
1517    ac_abs_top_srcdir=$ac_pwd ;;
1518  [\\/]* | ?:[\\/]* )  # Absolute name.
1519    ac_srcdir=$srcdir$ac_dir_suffix;
1520    ac_top_srcdir=$srcdir
1521    ac_abs_top_srcdir=$srcdir ;;
1522  *) # Relative name.
1523    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524    ac_top_srcdir=$ac_top_build_prefix$srcdir
1525    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526esac
1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529    cd "$ac_dir" || { ac_status=$?; continue; }
1530    # Check for guested configure.
1531    if test -f "$ac_srcdir/configure.gnu"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534    elif test -f "$ac_srcdir/configure"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure" --help=recursive
1537    else
1538      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539    fi || ac_status=$?
1540    cd "$ac_pwd" || { ac_status=$?; break; }
1541  done
1542fi
1543
1544test -n "$ac_init_help" && exit $ac_status
1545if $ac_init_version; then
1546  cat <<\_ACEOF
1547ld configure 2.25.51
1548generated by GNU Autoconf 2.64
1549
1550Copyright (C) 2009 Free Software Foundation, Inc.
1551This configure script is free software; the Free Software Foundation
1552gives unlimited permission to copy, distribute and modify it.
1553_ACEOF
1554  exit
1555fi
1556
1557## ------------------------ ##
1558## Autoconf initialization. ##
1559## ------------------------ ##
1560
1561# ac_fn_c_try_compile LINENO
1562# --------------------------
1563# Try to compile conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_compile ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  rm -f conftest.$ac_objext
1568  if { { ac_try="$ac_compile"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_compile") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } && {
1584	 test -z "$ac_c_werror_flag" ||
1585	 test ! -s conftest.err
1586       } && test -s conftest.$ac_objext; then :
1587  ac_retval=0
1588else
1589  $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592	ac_retval=1
1593fi
1594  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595  return $ac_retval
1596
1597} # ac_fn_c_try_compile
1598
1599# ac_fn_c_try_link LINENO
1600# -----------------------
1601# Try to link conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_link ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  rm -f conftest.$ac_objext conftest$ac_exeext
1606  if { { ac_try="$ac_link"
1607case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_link") 2>conftest.err
1614  ac_status=$?
1615  if test -s conftest.err; then
1616    grep -v '^ *+' conftest.err >conftest.er1
1617    cat conftest.er1 >&5
1618    mv -f conftest.er1 conftest.err
1619  fi
1620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621  test $ac_status = 0; } && {
1622	 test -z "$ac_c_werror_flag" ||
1623	 test ! -s conftest.err
1624       } && test -s conftest$ac_exeext && {
1625	 test "$cross_compiling" = yes ||
1626	 $as_test_x conftest$ac_exeext
1627       }; then :
1628  ac_retval=0
1629else
1630  $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633	ac_retval=1
1634fi
1635  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637  # interfere with the next link command; also delete a directory that is
1638  # left behind by Apple's compiler.  We do this before executing the actions.
1639  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641  return $ac_retval
1642
1643} # ac_fn_c_try_link
1644
1645# ac_fn_cxx_try_compile LINENO
1646# ----------------------------
1647# Try to compile conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_cxx_try_compile ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  rm -f conftest.$ac_objext
1652  if { { ac_try="$ac_compile"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_compile") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && {
1668	 test -z "$ac_cxx_werror_flag" ||
1669	 test ! -s conftest.err
1670       } && test -s conftest.$ac_objext; then :
1671  ac_retval=0
1672else
1673  $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676	ac_retval=1
1677fi
1678  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679  return $ac_retval
1680
1681} # ac_fn_cxx_try_compile
1682
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { { ac_try="$ac_cpp conftest.$ac_ext"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } >/dev/null && {
1705	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       }; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713    ac_retval=1
1714fi
1715  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716  return $ac_retval
1717
1718} # ac_fn_c_try_cpp
1719
1720# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721# -------------------------------------------------------
1722# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723# the include files in INCLUDES and setting the cache variable VAR
1724# accordingly.
1725ac_fn_c_check_header_mongrel ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732  $as_echo_n "(cached) " >&6
1733fi
1734eval ac_res=\$$3
1735	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737else
1738  # Is the header compilable?
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740$as_echo_n "checking $2 usability... " >&6; }
1741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h.  */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747  ac_header_compiler=yes
1748else
1749  ac_header_compiler=no
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753$as_echo "$ac_header_compiler" >&6; }
1754
1755# Is the header present?
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757$as_echo_n "checking $2 presence... " >&6; }
1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h.  */
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_cpp "$LINENO"; then :
1763  ac_header_preproc=yes
1764else
1765  ac_header_preproc=no
1766fi
1767rm -f conftest.err conftest.$ac_ext
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769$as_echo "$ac_header_preproc" >&6; }
1770
1771# So?  What about this header?
1772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773  yes:no: )
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778    ;;
1779  no:yes:* )
1780    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1783$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1787$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790    ;;
1791esac
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  eval "$3=\$ac_header_compiler"
1798fi
1799eval ac_res=\$$3
1800	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802fi
1803  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805} # ac_fn_c_check_header_mongrel
1806
1807# ac_fn_c_try_run LINENO
1808# ----------------------
1809# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1810# that executables *can* be run.
1811ac_fn_c_try_run ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  if { { ac_try="$ac_link"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_link") 2>&5
1822  ac_status=$?
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1825  { { case "(($ac_try" in
1826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827  *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831  (eval "$ac_try") 2>&5
1832  ac_status=$?
1833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834  test $ac_status = 0; }; }; then :
1835  ac_retval=0
1836else
1837  $as_echo "$as_me: program exited with status $ac_status" >&5
1838       $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841       ac_retval=$ac_status
1842fi
1843  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845  return $ac_retval
1846
1847} # ac_fn_c_try_run
1848
1849# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1850# -------------------------------------------------------
1851# Tests whether HEADER exists and can be compiled using the include files in
1852# INCLUDES, setting the cache variable VAR accordingly.
1853ac_fn_c_check_header_compile ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859  $as_echo_n "(cached) " >&6
1860else
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863$4
1864#include <$2>
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867  eval "$3=yes"
1868else
1869  eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877
1878} # ac_fn_c_check_header_compile
1879
1880# ac_fn_c_check_func LINENO FUNC VAR
1881# ----------------------------------
1882# Tests whether FUNC exists, setting the cache variable VAR accordingly
1883ac_fn_c_check_func ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889  $as_echo_n "(cached) " >&6
1890else
1891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1895#define $2 innocuous_$2
1896
1897/* System header to define __stub macros and hopefully few prototypes,
1898    which can conflict with char $2 (); below.
1899    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900    <limits.h> exists even on freestanding compilers.  */
1901
1902#ifdef __STDC__
1903# include <limits.h>
1904#else
1905# include <assert.h>
1906#endif
1907
1908#undef $2
1909
1910/* Override any GCC internal prototype to avoid an error.
1911   Use char because int might match the return type of a GCC
1912   builtin and then its argument prototype would still apply.  */
1913#ifdef __cplusplus
1914extern "C"
1915#endif
1916char $2 ();
1917/* The GNU C library defines this for functions which it implements
1918    to always fail with ENOSYS.  Some functions are actually named
1919    something starting with __ and the normal name is an alias.  */
1920#if defined __stub_$2 || defined __stub___$2
1921choke me
1922#endif
1923
1924int
1925main ()
1926{
1927return $2 ();
1928  ;
1929  return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_link "$LINENO"; then :
1933  eval "$3=yes"
1934else
1935  eval "$3=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext \
1938    conftest$ac_exeext conftest.$ac_ext
1939fi
1940eval ac_res=\$$3
1941	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945} # ac_fn_c_check_func
1946
1947# ac_fn_cxx_try_cpp LINENO
1948# ------------------------
1949# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1950ac_fn_cxx_try_cpp ()
1951{
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  if { { ac_try="$ac_cpp conftest.$ac_ext"
1954case "(($ac_try" in
1955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956  *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1961  ac_status=$?
1962  if test -s conftest.err; then
1963    grep -v '^ *+' conftest.err >conftest.er1
1964    cat conftest.er1 >&5
1965    mv -f conftest.er1 conftest.err
1966  fi
1967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968  test $ac_status = 0; } >/dev/null && {
1969	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1970	 test ! -s conftest.err
1971       }; then :
1972  ac_retval=0
1973else
1974  $as_echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977    ac_retval=1
1978fi
1979  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980  return $ac_retval
1981
1982} # ac_fn_cxx_try_cpp
1983
1984# ac_fn_cxx_try_link LINENO
1985# -------------------------
1986# Try to link conftest.$ac_ext, and return whether this succeeded.
1987ac_fn_cxx_try_link ()
1988{
1989  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990  rm -f conftest.$ac_objext conftest$ac_exeext
1991  if { { ac_try="$ac_link"
1992case "(($ac_try" in
1993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994  *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998  (eval "$ac_link") 2>conftest.err
1999  ac_status=$?
2000  if test -s conftest.err; then
2001    grep -v '^ *+' conftest.err >conftest.er1
2002    cat conftest.er1 >&5
2003    mv -f conftest.er1 conftest.err
2004  fi
2005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006  test $ac_status = 0; } && {
2007	 test -z "$ac_cxx_werror_flag" ||
2008	 test ! -s conftest.err
2009       } && test -s conftest$ac_exeext && {
2010	 test "$cross_compiling" = yes ||
2011	 $as_test_x conftest$ac_exeext
2012       }; then :
2013  ac_retval=0
2014else
2015  $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018	ac_retval=1
2019fi
2020  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2021  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2022  # interfere with the next link command; also delete a directory that is
2023  # left behind by Apple's compiler.  We do this before executing the actions.
2024  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2025  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026  return $ac_retval
2027
2028} # ac_fn_cxx_try_link
2029
2030# ac_fn_c_check_decl LINENO SYMBOL VAR
2031# ------------------------------------
2032# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2033ac_fn_c_check_decl ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  as_decl_name=`echo $2|sed 's/ *(.*//'`
2037  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2039$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2040if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2041  $as_echo_n "(cached) " >&6
2042else
2043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h.  */
2045$4
2046int
2047main ()
2048{
2049#ifndef $as_decl_name
2050#ifdef __cplusplus
2051  (void) $as_decl_use;
2052#else
2053  (void) $as_decl_name;
2054#endif
2055#endif
2056
2057  ;
2058  return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062  eval "$3=yes"
2063else
2064  eval "$3=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072
2073} # ac_fn_c_check_decl
2074
2075# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076# --------------------------------------------
2077# Tries to find the compile-time value of EXPR in a program that includes
2078# INCLUDES, setting VAR accordingly. Returns whether the value could be
2079# computed
2080ac_fn_c_compute_int ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  if test "$cross_compiling" = yes; then
2084    # Depending upon the size, compute the lo and hi bounds.
2085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h.  */
2087$4
2088int
2089main ()
2090{
2091static int test_array [1 - 2 * !(($2) >= 0)];
2092test_array [0] = 0
2093
2094  ;
2095  return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099  ac_lo=0 ac_mid=0
2100  while :; do
2101    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h.  */
2103$4
2104int
2105main ()
2106{
2107static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108test_array [0] = 0
2109
2110  ;
2111  return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115  ac_hi=$ac_mid; break
2116else
2117  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118			if test $ac_lo -le $ac_mid; then
2119			  ac_lo= ac_hi=
2120			  break
2121			fi
2122			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125  done
2126else
2127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) < 0)];
2134test_array [0] = 0
2135
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141  ac_hi=-1 ac_mid=-1
2142  while :; do
2143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$4
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150test_array [0] = 0
2151
2152  ;
2153  return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157  ac_lo=$ac_mid; break
2158else
2159  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160			if test $ac_mid -le $ac_hi; then
2161			  ac_lo= ac_hi=
2162			  break
2163			fi
2164			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167  done
2168else
2169  ac_lo= ac_hi=
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174# Binary search between lo and hi bounds.
2175while test "x$ac_lo" != "x$ac_hi"; do
2176  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184test_array [0] = 0
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191  ac_hi=$ac_mid
2192else
2193  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196done
2197case $ac_lo in #((
2198?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199'') ac_retval=1 ;;
2200esac
2201  else
2202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$4
2205static long int longval () { return $2; }
2206static unsigned long int ulongval () { return $2; }
2207#include <stdio.h>
2208#include <stdlib.h>
2209int
2210main ()
2211{
2212
2213  FILE *f = fopen ("conftest.val", "w");
2214  if (! f)
2215    return 1;
2216  if (($2) < 0)
2217    {
2218      long int i = longval ();
2219      if (i != ($2))
2220	return 1;
2221      fprintf (f, "%ld", i);
2222    }
2223  else
2224    {
2225      unsigned long int i = ulongval ();
2226      if (i != ($2))
2227	return 1;
2228      fprintf (f, "%lu", i);
2229    }
2230  /* Do not output a trailing newline, as this causes \r\n confusion
2231     on some platforms.  */
2232  return ferror (f) || fclose (f) != 0;
2233
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_run "$LINENO"; then :
2239  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240else
2241  ac_retval=1
2242fi
2243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244  conftest.$ac_objext conftest.beam conftest.$ac_ext
2245rm -f conftest.val
2246
2247  fi
2248  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249  return $ac_retval
2250
2251} # ac_fn_c_compute_int
2252cat >config.log <<_ACEOF
2253This file contains any messages produced by compilers while
2254running configure, to aid debugging if configure makes a mistake.
2255
2256It was created by ld $as_me 2.25.51, which was
2257generated by GNU Autoconf 2.64.  Invocation command line was
2258
2259  $ $0 $@
2260
2261_ACEOF
2262exec 5>>config.log
2263{
2264cat <<_ASUNAME
2265## --------- ##
2266## Platform. ##
2267## --------- ##
2268
2269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274
2275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2277
2278/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2279/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2282/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2283/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2284/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2285
2286_ASUNAME
2287
2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH
2290do
2291  IFS=$as_save_IFS
2292  test -z "$as_dir" && as_dir=.
2293    $as_echo "PATH: $as_dir"
2294  done
2295IFS=$as_save_IFS
2296
2297} >&5
2298
2299cat >&5 <<_ACEOF
2300
2301
2302## ----------- ##
2303## Core tests. ##
2304## ----------- ##
2305
2306_ACEOF
2307
2308
2309# Keep a trace of the command line.
2310# Strip out --no-create and --no-recursion so they do not pile up.
2311# Strip out --silent because we don't want to record it for future runs.
2312# Also quote any args containing shell meta-characters.
2313# Make two passes to allow for proper duplicate-argument suppression.
2314ac_configure_args=
2315ac_configure_args0=
2316ac_configure_args1=
2317ac_must_keep_next=false
2318for ac_pass in 1 2
2319do
2320  for ac_arg
2321  do
2322    case $ac_arg in
2323    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325    | -silent | --silent | --silen | --sile | --sil)
2326      continue ;;
2327    *\'*)
2328      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329    esac
2330    case $ac_pass in
2331    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332    2)
2333      as_fn_append ac_configure_args1 " '$ac_arg'"
2334      if test $ac_must_keep_next = true; then
2335	ac_must_keep_next=false # Got value, back to normal.
2336      else
2337	case $ac_arg in
2338	  *=* | --config-cache | -C | -disable-* | --disable-* \
2339	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341	  | -with-* | --with-* | -without-* | --without-* | --x)
2342	    case "$ac_configure_args0 " in
2343	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344	    esac
2345	    ;;
2346	  -* ) ac_must_keep_next=true ;;
2347	esac
2348      fi
2349      as_fn_append ac_configure_args " '$ac_arg'"
2350      ;;
2351    esac
2352  done
2353done
2354{ ac_configure_args0=; unset ac_configure_args0;}
2355{ ac_configure_args1=; unset ac_configure_args1;}
2356
2357# When interrupted or exit'd, cleanup temporary files, and complete
2358# config.log.  We remove comments because anyway the quotes in there
2359# would cause problems or look ugly.
2360# WARNING: Use '\'' to represent an apostrophe within the trap.
2361# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362trap 'exit_status=$?
2363  # Save into config.log some information that might help in debugging.
2364  {
2365    echo
2366
2367    cat <<\_ASBOX
2368## ---------------- ##
2369## Cache variables. ##
2370## ---------------- ##
2371_ASBOX
2372    echo
2373    # The following way of writing the cache mishandles newlines in values,
2374(
2375  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376    eval ac_val=\$$ac_var
2377    case $ac_val in #(
2378    *${as_nl}*)
2379      case $ac_var in #(
2380      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382      esac
2383      case $ac_var in #(
2384      _ | IFS | as_nl) ;; #(
2385      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386      *) { eval $ac_var=; unset $ac_var;} ;;
2387      esac ;;
2388    esac
2389  done
2390  (set) 2>&1 |
2391    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392    *${as_nl}ac_space=\ *)
2393      sed -n \
2394	"s/'\''/'\''\\\\'\'''\''/g;
2395	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396      ;; #(
2397    *)
2398      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399      ;;
2400    esac |
2401    sort
2402)
2403    echo
2404
2405    cat <<\_ASBOX
2406## ----------------- ##
2407## Output variables. ##
2408## ----------------- ##
2409_ASBOX
2410    echo
2411    for ac_var in $ac_subst_vars
2412    do
2413      eval ac_val=\$$ac_var
2414      case $ac_val in
2415      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416      esac
2417      $as_echo "$ac_var='\''$ac_val'\''"
2418    done | sort
2419    echo
2420
2421    if test -n "$ac_subst_files"; then
2422      cat <<\_ASBOX
2423## ------------------- ##
2424## File substitutions. ##
2425## ------------------- ##
2426_ASBOX
2427      echo
2428      for ac_var in $ac_subst_files
2429      do
2430	eval ac_val=\$$ac_var
2431	case $ac_val in
2432	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433	esac
2434	$as_echo "$ac_var='\''$ac_val'\''"
2435      done | sort
2436      echo
2437    fi
2438
2439    if test -s confdefs.h; then
2440      cat <<\_ASBOX
2441## ----------- ##
2442## confdefs.h. ##
2443## ----------- ##
2444_ASBOX
2445      echo
2446      cat confdefs.h
2447      echo
2448    fi
2449    test "$ac_signal" != 0 &&
2450      $as_echo "$as_me: caught signal $ac_signal"
2451    $as_echo "$as_me: exit $exit_status"
2452  } >&5
2453  rm -f core *.core core.conftest.* &&
2454    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455    exit $exit_status
2456' 0
2457for ac_signal in 1 2 13 15; do
2458  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459done
2460ac_signal=0
2461
2462# confdefs.h avoids OS command line length limits that DEFS can exceed.
2463rm -f -r conftest* confdefs.h
2464
2465$as_echo "/* confdefs.h */" > confdefs.h
2466
2467# Predefined preprocessor variables.
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_NAME "$PACKAGE_NAME"
2471_ACEOF
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_VERSION "$PACKAGE_VERSION"
2479_ACEOF
2480
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_STRING "$PACKAGE_STRING"
2483_ACEOF
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_URL "$PACKAGE_URL"
2491_ACEOF
2492
2493
2494# Let the site file select an alternate cache file if it wants to.
2495# Prefer an explicitly selected file to automatically selected ones.
2496ac_site_file1=NONE
2497ac_site_file2=NONE
2498if test -n "$CONFIG_SITE"; then
2499  ac_site_file1=$CONFIG_SITE
2500elif test "x$prefix" != xNONE; then
2501  ac_site_file1=$prefix/share/config.site
2502  ac_site_file2=$prefix/etc/config.site
2503else
2504  ac_site_file1=$ac_default_prefix/share/config.site
2505  ac_site_file2=$ac_default_prefix/etc/config.site
2506fi
2507for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508do
2509  test "x$ac_site_file" = xNONE && continue
2510  if test -r "$ac_site_file"; then
2511    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2512$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2513    sed 's/^/| /' "$ac_site_file" >&5
2514    . "$ac_site_file"
2515  fi
2516done
2517
2518if test -r "$cache_file"; then
2519  # Some versions of bash will fail to source /dev/null (special
2520  # files actually), so we avoid doing that.
2521  if test -f "$cache_file"; then
2522    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523$as_echo "$as_me: loading cache $cache_file" >&6;}
2524    case $cache_file in
2525      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526      *)                      . "./$cache_file";;
2527    esac
2528  fi
2529else
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531$as_echo "$as_me: creating cache $cache_file" >&6;}
2532  >$cache_file
2533fi
2534
2535# Check that the precious variables saved in the cache have kept the same
2536# value.
2537ac_cache_corrupted=false
2538for ac_var in $ac_precious_vars; do
2539  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540  eval ac_new_set=\$ac_env_${ac_var}_set
2541  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542  eval ac_new_val=\$ac_env_${ac_var}_value
2543  case $ac_old_set,$ac_new_set in
2544    set,)
2545      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2546$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547      ac_cache_corrupted=: ;;
2548    ,set)
2549      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2550$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2551      ac_cache_corrupted=: ;;
2552    ,);;
2553    *)
2554      if test "x$ac_old_val" != "x$ac_new_val"; then
2555	# differences in whitespace do not lead to failure.
2556	ac_old_val_w=`echo x $ac_old_val`
2557	ac_new_val_w=`echo x $ac_new_val`
2558	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561	  ac_cache_corrupted=:
2562	else
2563	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2564$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565	  eval $ac_var=\$ac_old_val
2566	fi
2567	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2568$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2569	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2570$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2571      fi;;
2572  esac
2573  # Pass precious variables to config.status.
2574  if test "$ac_new_set" = set; then
2575    case $ac_new_val in
2576    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577    *) ac_arg=$ac_var=$ac_new_val ;;
2578    esac
2579    case " $ac_configure_args " in
2580      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2581      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582    esac
2583  fi
2584done
2585if $ac_cache_corrupted; then
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2590  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2591fi
2592## -------------------- ##
2593## Main body of script. ##
2594## -------------------- ##
2595
2596ac_ext=c
2597ac_cpp='$CPP $CPPFLAGS'
2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601
2602
2603
2604
2605
2606
2607
2608ac_aux_dir=
2609for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2610  for ac_t in install-sh install.sh shtool; do
2611    if test -f "$ac_dir/$ac_t"; then
2612      ac_aux_dir=$ac_dir
2613      ac_install_sh="$ac_aux_dir/$ac_t -c"
2614      break 2
2615    fi
2616  done
2617done
2618if test -z "$ac_aux_dir"; then
2619  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2620fi
2621
2622# These three variables are undocumented and unsupported,
2623# and are intended to be withdrawn in a future Autoconf release.
2624# They can cause serious problems if a builder's source tree is in a directory
2625# whose full name contains unusual characters.
2626ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2627ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2628ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2629
2630
2631# Make sure we can run config.sub.
2632$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2633  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2634
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2636$as_echo_n "checking build system type... " >&6; }
2637if test "${ac_cv_build+set}" = set; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  ac_build_alias=$build_alias
2641test "x$ac_build_alias" = x &&
2642  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2643test "x$ac_build_alias" = x &&
2644  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2645ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2646  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2647
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2650$as_echo "$ac_cv_build" >&6; }
2651case $ac_cv_build in
2652*-*-*) ;;
2653*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2654esac
2655build=$ac_cv_build
2656ac_save_IFS=$IFS; IFS='-'
2657set x $ac_cv_build
2658shift
2659build_cpu=$1
2660build_vendor=$2
2661shift; shift
2662# Remember, the first character of IFS is used to create $*,
2663# except with old shells:
2664build_os=$*
2665IFS=$ac_save_IFS
2666case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2667
2668
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2670$as_echo_n "checking host system type... " >&6; }
2671if test "${ac_cv_host+set}" = set; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test "x$host_alias" = x; then
2675  ac_cv_host=$ac_cv_build
2676else
2677  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2678    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679fi
2680
2681fi
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2683$as_echo "$ac_cv_host" >&6; }
2684case $ac_cv_host in
2685*-*-*) ;;
2686*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2687esac
2688host=$ac_cv_host
2689ac_save_IFS=$IFS; IFS='-'
2690set x $ac_cv_host
2691shift
2692host_cpu=$1
2693host_vendor=$2
2694shift; shift
2695# Remember, the first character of IFS is used to create $*,
2696# except with old shells:
2697host_os=$*
2698IFS=$ac_save_IFS
2699case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2703$as_echo_n "checking target system type... " >&6; }
2704if test "${ac_cv_target+set}" = set; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  if test "x$target_alias" = x; then
2708  ac_cv_target=$ac_cv_host
2709else
2710  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2711    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2712fi
2713
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2716$as_echo "$ac_cv_target" >&6; }
2717case $ac_cv_target in
2718*-*-*) ;;
2719*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2720esac
2721target=$ac_cv_target
2722ac_save_IFS=$IFS; IFS='-'
2723set x $ac_cv_target
2724shift
2725target_cpu=$1
2726target_vendor=$2
2727shift; shift
2728# Remember, the first character of IFS is used to create $*,
2729# except with old shells:
2730target_os=$*
2731IFS=$ac_save_IFS
2732case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2733
2734
2735# The aliases save the names the user supplied, while $host etc.
2736# will get canonicalized.
2737test -n "$target_alias" &&
2738  test "$program_prefix$program_suffix$program_transform_name" = \
2739    NONENONEs,x,x, &&
2740  program_prefix=${target_alias}-
2741
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747if test -n "$ac_tool_prefix"; then
2748  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if test "${ac_cv_prog_CC+set}" = set; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if test -n "$CC"; then
2756  ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763    for ac_exec_ext in '' $ac_executable_extensions; do
2764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767    break 2
2768  fi
2769done
2770  done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778$as_echo "$CC" >&6; }
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785fi
2786if test -z "$ac_cv_prog_CC"; then
2787  ac_ct_CC=$CC
2788  # Extract the first word of "gcc", so it can be a program name with args.
2789set dummy gcc; ac_word=$2
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  if test -n "$ac_ct_CC"; then
2796  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805    ac_cv_prog_ac_ct_CC="gcc"
2806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816if test -n "$ac_ct_CC"; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818$as_echo "$ac_ct_CC" >&6; }
2819else
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824  if test "x$ac_ct_CC" = x; then
2825    CC=""
2826  else
2827    case $cross_compiling:$ac_tool_warned in
2828yes:)
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831ac_tool_warned=yes ;;
2832esac
2833    CC=$ac_ct_CC
2834  fi
2835else
2836  CC="$ac_cv_prog_CC"
2837fi
2838
2839if test -z "$CC"; then
2840          if test -n "$ac_tool_prefix"; then
2841    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842set dummy ${ac_tool_prefix}cc; ac_word=$2
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if test "${ac_cv_prog_CC+set}" = set; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$CC"; then
2849  ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_exec_ext in '' $ac_executable_extensions; do
2857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858    ac_cv_prog_CC="${ac_tool_prefix}cc"
2859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863  done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871$as_echo "$CC" >&6; }
2872else
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877
2878  fi
2879fi
2880if test -z "$CC"; then
2881  # Extract the first word of "cc", so it can be a program name with args.
2882set dummy cc; ac_word=$2
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884$as_echo_n "checking for $ac_word... " >&6; }
2885if test "${ac_cv_prog_CC+set}" = set; then :
2886  $as_echo_n "(cached) " >&6
2887else
2888  if test -n "$CC"; then
2889  ac_cv_prog_CC="$CC" # Let the user override the test.
2890else
2891  ac_prog_rejected=no
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_exec_ext in '' $ac_executable_extensions; do
2898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900       ac_prog_rejected=yes
2901       continue
2902     fi
2903    ac_cv_prog_CC="cc"
2904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905    break 2
2906  fi
2907done
2908  done
2909IFS=$as_save_IFS
2910
2911if test $ac_prog_rejected = yes; then
2912  # We found a bogon in the path, so make sure we never use it.
2913  set dummy $ac_cv_prog_CC
2914  shift
2915  if test $# != 0; then
2916    # We chose a different compiler from the bogus one.
2917    # However, it has the same basename, so the bogon will be chosen
2918    # first if we set CC to just the basename; use the full file name.
2919    shift
2920    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921  fi
2922fi
2923fi
2924fi
2925CC=$ac_cv_prog_CC
2926if test -n "$CC"; then
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928$as_echo "$CC" >&6; }
2929else
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934
2935fi
2936if test -z "$CC"; then
2937  if test -n "$ac_tool_prefix"; then
2938  for ac_prog in cl.exe
2939  do
2940    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if test "${ac_cv_prog_CC+set}" = set; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$CC"; then
2948  ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967CC=$ac_cv_prog_CC
2968if test -n "$CC"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970$as_echo "$CC" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977    test -n "$CC" && break
2978  done
2979fi
2980if test -z "$CC"; then
2981  ac_ct_CC=$CC
2982  for ac_prog in cl.exe
2983do
2984  # Extract the first word of "$ac_prog", so it can be a program name with args.
2985set dummy $ac_prog; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$ac_ct_CC"; then
2992  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999    for ac_exec_ext in '' $ac_executable_extensions; do
3000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001    ac_cv_prog_ac_ct_CC="$ac_prog"
3002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006  done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012if test -n "$ac_ct_CC"; then
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014$as_echo "$ac_ct_CC" >&6; }
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020
3021  test -n "$ac_ct_CC" && break
3022done
3023
3024  if test "x$ac_ct_CC" = x; then
3025    CC=""
3026  else
3027    case $cross_compiling:$ac_tool_warned in
3028yes:)
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031ac_tool_warned=yes ;;
3032esac
3033    CC=$ac_ct_CC
3034  fi
3035fi
3036
3037fi
3038
3039
3040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042as_fn_error "no acceptable C compiler found in \$PATH
3043See \`config.log' for more details." "$LINENO" 5; }
3044
3045# Provide some information about the compiler.
3046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047set X $ac_compile
3048ac_compiler=$2
3049for ac_option in --version -v -V -qversion; do
3050  { { ac_try="$ac_compiler $ac_option >&5"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056$as_echo "$ac_try_echo"; } >&5
3057  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3058  ac_status=$?
3059  if test -s conftest.err; then
3060    sed '10a\
3061... rest of stderr output deleted ...
3062         10q' conftest.err >conftest.er1
3063    cat conftest.er1 >&5
3064    rm -f conftest.er1 conftest.err
3065  fi
3066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067  test $ac_status = 0; }
3068done
3069
3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081ac_clean_files_save=$ac_clean_files
3082ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3083# Try to create an executable without -o first, disregard a.out.
3084# It will help us diagnose broken compilers, and finding out an intuition
3085# of exeext.
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087$as_echo_n "checking for C compiler default output file name... " >&6; }
3088ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3089
3090# The possible output files:
3091ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092
3093ac_rmfiles=
3094for ac_file in $ac_files
3095do
3096  case $ac_file in
3097    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099  esac
3100done
3101rm -f $ac_rmfiles
3102
3103if { { ac_try="$ac_link_default"
3104case "(($ac_try" in
3105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106  *) ac_try_echo=$ac_try;;
3107esac
3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109$as_echo "$ac_try_echo"; } >&5
3110  (eval "$ac_link_default") 2>&5
3111  ac_status=$?
3112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113  test $ac_status = 0; }; then :
3114  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3117# so that the user can short-circuit this test for compilers unknown to
3118# Autoconf.
3119for ac_file in $ac_files ''
3120do
3121  test -f "$ac_file" || continue
3122  case $ac_file in
3123    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3124	;;
3125    [ab].out )
3126	# We found the default executable, but exeext='' is most
3127	# certainly right.
3128	break;;
3129    *.* )
3130	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3131	then :; else
3132	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133	fi
3134	# We set ac_cv_exeext here because the later test for it is not
3135	# safe: cross compilers may not add the suffix if given an `-o'
3136	# argument, so we may need to know it at that point already.
3137	# Even if this section looks crufty: it has the advantage of
3138	# actually working.
3139	break;;
3140    * )
3141	break;;
3142  esac
3143done
3144test "$ac_cv_exeext" = no && ac_cv_exeext=
3145
3146else
3147  ac_file=''
3148fi
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3150$as_echo "$ac_file" >&6; }
3151if test -z "$ac_file"; then :
3152  $as_echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157{ as_fn_set_status 77
3158as_fn_error "C compiler cannot create executables
3159See \`config.log' for more details." "$LINENO" 5; }; }
3160fi
3161ac_exeext=$ac_cv_exeext
3162
3163# Check that the compiler produces executables we can run.  If not, either
3164# the compiler is broken, or we cross compile.
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3166$as_echo_n "checking whether the C compiler works... " >&6; }
3167# If not cross compiling, check that we can run a simple program.
3168if test "$cross_compiling" != yes; then
3169  if { ac_try='./$ac_file'
3170  { { case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175$as_echo "$ac_try_echo"; } >&5
3176  (eval "$ac_try") 2>&5
3177  ac_status=$?
3178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179  test $ac_status = 0; }; }; then
3180    cross_compiling=no
3181  else
3182    if test "$cross_compiling" = maybe; then
3183	cross_compiling=yes
3184    else
3185	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187as_fn_error "cannot run C compiled programs.
3188If you meant to cross compile, use \`--host'.
3189See \`config.log' for more details." "$LINENO" 5; }
3190    fi
3191  fi
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194$as_echo "yes" >&6; }
3195
3196rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3197ac_clean_files=$ac_clean_files_save
3198# Check that the compiler produces executables we can run.  If not, either
3199# the compiler is broken, or we cross compile.
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3201$as_echo_n "checking whether we are cross compiling... " >&6; }
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3203$as_echo "$cross_compiling" >&6; }
3204
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206$as_echo_n "checking for suffix of executables... " >&6; }
3207if { { ac_try="$ac_link"
3208case "(($ac_try" in
3209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210  *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213$as_echo "$ac_try_echo"; } >&5
3214  (eval "$ac_link") 2>&5
3215  ac_status=$?
3216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217  test $ac_status = 0; }; then :
3218  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3220# work properly (i.e., refer to `conftest.exe'), while it won't with
3221# `rm'.
3222for ac_file in conftest.exe conftest conftest.*; do
3223  test -f "$ac_file" || continue
3224  case $ac_file in
3225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227	  break;;
3228    * ) break;;
3229  esac
3230done
3231else
3232  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error "cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details." "$LINENO" 5; }
3236fi
3237rm -f conftest$ac_cv_exeext
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239$as_echo "$ac_cv_exeext" >&6; }
3240
3241rm -f conftest.$ac_ext
3242EXEEXT=$ac_cv_exeext
3243ac_exeext=$EXEEXT
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3245$as_echo_n "checking for suffix of object files... " >&6; }
3246if test "${ac_cv_objext+set}" = set; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250/* end confdefs.h.  */
3251
3252int
3253main ()
3254{
3255
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260rm -f conftest.o conftest.obj
3261if { { ac_try="$ac_compile"
3262case "(($ac_try" in
3263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264  *) ac_try_echo=$ac_try;;
3265esac
3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267$as_echo "$ac_try_echo"; } >&5
3268  (eval "$ac_compile") 2>&5
3269  ac_status=$?
3270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271  test $ac_status = 0; }; then :
3272  for ac_file in conftest.o conftest.obj conftest.*; do
3273  test -f "$ac_file" || continue;
3274  case $ac_file in
3275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3276    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3277       break;;
3278  esac
3279done
3280else
3281  $as_echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error "cannot compute suffix of object files: cannot compile
3287See \`config.log' for more details." "$LINENO" 5; }
3288fi
3289rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290fi
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3292$as_echo "$ac_cv_objext" >&6; }
3293OBJEXT=$ac_cv_objext
3294ac_objext=$OBJEXT
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3296$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3297if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306#ifndef __GNUC__
3307       choke me
3308#endif
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314if ac_fn_c_try_compile "$LINENO"; then :
3315  ac_compiler_gnu=yes
3316else
3317  ac_compiler_gnu=no
3318fi
3319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320ac_cv_c_compiler_gnu=$ac_compiler_gnu
3321
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3324$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3325if test $ac_compiler_gnu = yes; then
3326  GCC=yes
3327else
3328  GCC=
3329fi
3330ac_test_CFLAGS=${CFLAGS+set}
3331ac_save_CFLAGS=$CFLAGS
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3333$as_echo_n "checking whether $CC accepts -g... " >&6; }
3334if test "${ac_cv_prog_cc_g+set}" = set; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  ac_save_c_werror_flag=$ac_c_werror_flag
3338   ac_c_werror_flag=yes
3339   ac_cv_prog_cc_g=no
3340   CFLAGS="-g"
3341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h.  */
3343
3344int
3345main ()
3346{
3347
3348  ;
3349  return 0;
3350}
3351_ACEOF
3352if ac_fn_c_try_compile "$LINENO"; then :
3353  ac_cv_prog_cc_g=yes
3354else
3355  CFLAGS=""
3356      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358
3359int
3360main ()
3361{
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367if ac_fn_c_try_compile "$LINENO"; then :
3368
3369else
3370  ac_c_werror_flag=$ac_save_c_werror_flag
3371	 CFLAGS="-g"
3372	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374
3375int
3376main ()
3377{
3378
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383if ac_fn_c_try_compile "$LINENO"; then :
3384  ac_cv_prog_cc_g=yes
3385fi
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389fi
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391   ac_c_werror_flag=$ac_save_c_werror_flag
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3394$as_echo "$ac_cv_prog_cc_g" >&6; }
3395if test "$ac_test_CFLAGS" = set; then
3396  CFLAGS=$ac_save_CFLAGS
3397elif test $ac_cv_prog_cc_g = yes; then
3398  if test "$GCC" = yes; then
3399    CFLAGS="-g -O2"
3400  else
3401    CFLAGS="-g"
3402  fi
3403else
3404  if test "$GCC" = yes; then
3405    CFLAGS="-O2"
3406  else
3407    CFLAGS=
3408  fi
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3411$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3412if test "${ac_cv_prog_cc_c89+set}" = set; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  ac_cv_prog_cc_c89=no
3416ac_save_CC=$CC
3417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419#include <stdarg.h>
3420#include <stdio.h>
3421#include <sys/types.h>
3422#include <sys/stat.h>
3423/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3424struct buf { int x; };
3425FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426static char *e (p, i)
3427     char **p;
3428     int i;
3429{
3430  return p[i];
3431}
3432static char *f (char * (*g) (char **, int), char **p, ...)
3433{
3434  char *s;
3435  va_list v;
3436  va_start (v,p);
3437  s = g (p, va_arg (v,int));
3438  va_end (v);
3439  return s;
3440}
3441
3442/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3443   function prototypes and stuff, but not '\xHH' hex character constants.
3444   These don't provoke an error unfortunately, instead are silently treated
3445   as 'x'.  The following induces an error, until -std is added to get
3446   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3447   array size at least.  It's necessary to write '\x00'==0 to get something
3448   that's true only with -std.  */
3449int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450
3451/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3452   inside strings and character constants.  */
3453#define FOO(x) 'x'
3454int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3455
3456int test (int i, double x);
3457struct s1 {int (*f) (int a);};
3458struct s2 {int (*f) (double a);};
3459int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460int argc;
3461char **argv;
3462int
3463main ()
3464{
3465return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3466  ;
3467  return 0;
3468}
3469_ACEOF
3470for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3471	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3472do
3473  CC="$ac_save_CC $ac_arg"
3474  if ac_fn_c_try_compile "$LINENO"; then :
3475  ac_cv_prog_cc_c89=$ac_arg
3476fi
3477rm -f core conftest.err conftest.$ac_objext
3478  test "x$ac_cv_prog_cc_c89" != "xno" && break
3479done
3480rm -f conftest.$ac_ext
3481CC=$ac_save_CC
3482
3483fi
3484# AC_CACHE_VAL
3485case "x$ac_cv_prog_cc_c89" in
3486  x)
3487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3488$as_echo "none needed" >&6; } ;;
3489  xno)
3490    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3491$as_echo "unsupported" >&6; } ;;
3492  *)
3493    CC="$CC $ac_cv_prog_cc_c89"
3494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3495$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3496esac
3497if test "x$ac_cv_prog_cc_c89" != xno; then :
3498
3499fi
3500
3501ac_ext=c
3502ac_cpp='$CPP $CPPFLAGS'
3503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3509$as_echo_n "checking for library containing strerror... " >&6; }
3510if test "${ac_cv_search_strerror+set}" = set; then :
3511  $as_echo_n "(cached) " >&6
3512else
3513  ac_func_search_save_LIBS=$LIBS
3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516
3517/* Override any GCC internal prototype to avoid an error.
3518   Use char because int might match the return type of a GCC
3519   builtin and then its argument prototype would still apply.  */
3520#ifdef __cplusplus
3521extern "C"
3522#endif
3523char strerror ();
3524int
3525main ()
3526{
3527return strerror ();
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532for ac_lib in '' cposix; do
3533  if test -z "$ac_lib"; then
3534    ac_res="none required"
3535  else
3536    ac_res=-l$ac_lib
3537    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3538  fi
3539  if ac_fn_c_try_link "$LINENO"; then :
3540  ac_cv_search_strerror=$ac_res
3541fi
3542rm -f core conftest.err conftest.$ac_objext \
3543    conftest$ac_exeext
3544  if test "${ac_cv_search_strerror+set}" = set; then :
3545  break
3546fi
3547done
3548if test "${ac_cv_search_strerror+set}" = set; then :
3549
3550else
3551  ac_cv_search_strerror=no
3552fi
3553rm conftest.$ac_ext
3554LIBS=$ac_func_search_save_LIBS
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3557$as_echo "$ac_cv_search_strerror" >&6; }
3558ac_res=$ac_cv_search_strerror
3559if test "$ac_res" != no; then :
3560  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3561
3562fi
3563
3564
3565am__api_version='1.11'
3566
3567# Find a good install program.  We prefer a C program (faster),
3568# so one script is as good as another.  But avoid the broken or
3569# incompatible versions:
3570# SysV /etc/install, /usr/sbin/install
3571# SunOS /usr/etc/install
3572# IRIX /sbin/install
3573# AIX /bin/install
3574# AmigaOS /C/install, which installs bootblocks on floppy discs
3575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3576# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3578# OS/2's system install, which has a completely different semantic
3579# ./install, which can be erroneously created by make from ./install.sh.
3580# Reject install programs that cannot install multiple files.
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3582$as_echo_n "checking for a BSD-compatible install... " >&6; }
3583if test -z "$INSTALL"; then
3584if test "${ac_cv_path_install+set}" = set; then :
3585  $as_echo_n "(cached) " >&6
3586else
3587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590  IFS=$as_save_IFS
3591  test -z "$as_dir" && as_dir=.
3592    # Account for people who put trailing slashes in PATH elements.
3593case $as_dir/ in #((
3594  ./ | .// | /[cC]/* | \
3595  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3596  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3597  /usr/ucb/* ) ;;
3598  *)
3599    # OSF1 and SCO ODT 3.0 have their own names for install.
3600    # Don't use installbsd from OSF since it installs stuff as root
3601    # by default.
3602    for ac_prog in ginstall scoinst install; do
3603      for ac_exec_ext in '' $ac_executable_extensions; do
3604	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3605	  if test $ac_prog = install &&
3606	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3607	    # AIX install.  It has an incompatible calling convention.
3608	    :
3609	  elif test $ac_prog = install &&
3610	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3611	    # program-specific install script used by HP pwplus--don't use.
3612	    :
3613	  else
3614	    rm -rf conftest.one conftest.two conftest.dir
3615	    echo one > conftest.one
3616	    echo two > conftest.two
3617	    mkdir conftest.dir
3618	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3619	      test -s conftest.one && test -s conftest.two &&
3620	      test -s conftest.dir/conftest.one &&
3621	      test -s conftest.dir/conftest.two
3622	    then
3623	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3624	      break 3
3625	    fi
3626	  fi
3627	fi
3628      done
3629    done
3630    ;;
3631esac
3632
3633  done
3634IFS=$as_save_IFS
3635
3636rm -rf conftest.one conftest.two conftest.dir
3637
3638fi
3639  if test "${ac_cv_path_install+set}" = set; then
3640    INSTALL=$ac_cv_path_install
3641  else
3642    # As a last resort, use the slow shell script.  Don't cache a
3643    # value for INSTALL within a source directory, because that will
3644    # break other packages using the cache if that directory is
3645    # removed, or if the value is a relative name.
3646    INSTALL=$ac_install_sh
3647  fi
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3650$as_echo "$INSTALL" >&6; }
3651
3652# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3653# It thinks the first close brace ends the variable substitution.
3654test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
3656test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657
3658test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3659
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3661$as_echo_n "checking whether build environment is sane... " >&6; }
3662# Just in case
3663sleep 1
3664echo timestamp > conftest.file
3665# Reject unsafe characters in $srcdir or the absolute working directory
3666# name.  Accept space and tab only in the latter.
3667am_lf='
3668'
3669case `pwd` in
3670  *[\\\"\#\$\&\'\`$am_lf]*)
3671    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3672esac
3673case $srcdir in
3674  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3675    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3676esac
3677
3678# Do `set' in a subshell so we don't clobber the current shell's
3679# arguments.  Must try -L first in case configure is actually a
3680# symlink; some systems play weird games with the mod time of symlinks
3681# (eg FreeBSD returns the mod time of the symlink's containing
3682# directory).
3683if (
3684   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3685   if test "$*" = "X"; then
3686      # -L didn't work.
3687      set X `ls -t "$srcdir/configure" conftest.file`
3688   fi
3689   rm -f conftest.file
3690   if test "$*" != "X $srcdir/configure conftest.file" \
3691      && test "$*" != "X conftest.file $srcdir/configure"; then
3692
3693      # If neither matched, then we have a broken ls.  This can happen
3694      # if, for instance, CONFIG_SHELL is bash and it inherits a
3695      # broken ls alias from the environment.  This has actually
3696      # happened.  Such a system could not be considered "sane".
3697      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3698alias in your environment" "$LINENO" 5
3699   fi
3700
3701   test "$2" = conftest.file
3702   )
3703then
3704   # Ok.
3705   :
3706else
3707   as_fn_error "newly created file is older than distributed files!
3708Check your system clock" "$LINENO" 5
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3711$as_echo "yes" >&6; }
3712test "$program_prefix" != NONE &&
3713  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3714# Use a double $ so make ignores it.
3715test "$program_suffix" != NONE &&
3716  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3717# Double any \ or $.
3718# By default was `s,x,x', remove it if useless.
3719ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3720program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3721
3722# expand $ac_aux_dir to an absolute path
3723am_aux_dir=`cd $ac_aux_dir && pwd`
3724
3725if test x"${MISSING+set}" != xset; then
3726  case $am_aux_dir in
3727  *\ * | *\	*)
3728    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3729  *)
3730    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3731  esac
3732fi
3733# Use eval to expand $SHELL
3734if eval "$MISSING --run true"; then
3735  am_missing_run="$MISSING --run "
3736else
3737  am_missing_run=
3738  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3739$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3740fi
3741
3742if test x"${install_sh}" != xset; then
3743  case $am_aux_dir in
3744  *\ * | *\	*)
3745    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3746  *)
3747    install_sh="\${SHELL} $am_aux_dir/install-sh"
3748  esac
3749fi
3750
3751# Installed binaries are usually stripped using `strip' when the user
3752# run `make install-strip'.  However `strip' might not be the right
3753# tool to use in cross-compilation environments, therefore Automake
3754# will honor the `STRIP' environment variable to overrule this program.
3755if test "$cross_compiling" != no; then
3756  if test -n "$ac_tool_prefix"; then
3757  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}strip; ac_word=$2
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
3761if test "${ac_cv_prog_STRIP+set}" = set; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  if test -n "$STRIP"; then
3765  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772    for ac_exec_ext in '' $ac_executable_extensions; do
3773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776    break 2
3777  fi
3778done
3779  done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784STRIP=$ac_cv_prog_STRIP
3785if test -n "$STRIP"; then
3786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3787$as_echo "$STRIP" >&6; }
3788else
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
3792
3793
3794fi
3795if test -z "$ac_cv_prog_STRIP"; then
3796  ac_ct_STRIP=$STRIP
3797  # Extract the first word of "strip", so it can be a program name with args.
3798set dummy strip; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
3801if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  if test -n "$ac_ct_STRIP"; then
3805  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810  IFS=$as_save_IFS
3811  test -z "$as_dir" && as_dir=.
3812    for ac_exec_ext in '' $ac_executable_extensions; do
3813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814    ac_cv_prog_ac_ct_STRIP="strip"
3815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816    break 2
3817  fi
3818done
3819  done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3825if test -n "$ac_ct_STRIP"; then
3826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3827$as_echo "$ac_ct_STRIP" >&6; }
3828else
3829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831fi
3832
3833  if test "x$ac_ct_STRIP" = x; then
3834    STRIP=":"
3835  else
3836    case $cross_compiling:$ac_tool_warned in
3837yes:)
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840ac_tool_warned=yes ;;
3841esac
3842    STRIP=$ac_ct_STRIP
3843  fi
3844else
3845  STRIP="$ac_cv_prog_STRIP"
3846fi
3847
3848fi
3849INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3850
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3852$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3853if test -z "$MKDIR_P"; then
3854  if test "${ac_cv_path_mkdir+set}" = set; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3859do
3860  IFS=$as_save_IFS
3861  test -z "$as_dir" && as_dir=.
3862    for ac_prog in mkdir gmkdir; do
3863	 for ac_exec_ext in '' $ac_executable_extensions; do
3864	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3865	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3866	     'mkdir (GNU coreutils) '* | \
3867	     'mkdir (coreutils) '* | \
3868	     'mkdir (fileutils) '4.1*)
3869	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3870	       break 3;;
3871	   esac
3872	 done
3873       done
3874  done
3875IFS=$as_save_IFS
3876
3877fi
3878
3879  if test "${ac_cv_path_mkdir+set}" = set; then
3880    MKDIR_P="$ac_cv_path_mkdir -p"
3881  else
3882    # As a last resort, use the slow shell script.  Don't cache a
3883    # value for MKDIR_P within a source directory, because that will
3884    # break other packages using the cache if that directory is
3885    # removed, or if the value is a relative name.
3886    test -d ./--version && rmdir ./--version
3887    MKDIR_P="$ac_install_sh -d"
3888  fi
3889fi
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3891$as_echo "$MKDIR_P" >&6; }
3892
3893mkdir_p="$MKDIR_P"
3894case $mkdir_p in
3895  [\\/$]* | ?:[\\/]*) ;;
3896  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3897esac
3898
3899for ac_prog in gawk mawk nawk awk
3900do
3901  # Extract the first word of "$ac_prog", so it can be a program name with args.
3902set dummy $ac_prog; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
3905if test "${ac_cv_prog_AWK+set}" = set; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -n "$AWK"; then
3909  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918    ac_cv_prog_AWK="$ac_prog"
3919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920    break 2
3921  fi
3922done
3923  done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928AWK=$ac_cv_prog_AWK
3929if test -n "$AWK"; then
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3931$as_echo "$AWK" >&6; }
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938  test -n "$AWK" && break
3939done
3940
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3942$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3943set x ${MAKE-make}
3944ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3945if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  cat >conftest.make <<\_ACEOF
3949SHELL = /bin/sh
3950all:
3951	@echo '@@@%%%=$(MAKE)=@@@%%%'
3952_ACEOF
3953# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3954case `${MAKE-make} -f conftest.make 2>/dev/null` in
3955  *@@@%%%=?*=@@@%%%*)
3956    eval ac_cv_prog_make_${ac_make}_set=yes;;
3957  *)
3958    eval ac_cv_prog_make_${ac_make}_set=no;;
3959esac
3960rm -f conftest.make
3961fi
3962if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964$as_echo "yes" >&6; }
3965  SET_MAKE=
3966else
3967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
3969  SET_MAKE="MAKE=${MAKE-make}"
3970fi
3971
3972rm -rf .tst 2>/dev/null
3973mkdir .tst 2>/dev/null
3974if test -d .tst; then
3975  am__leading_dot=.
3976else
3977  am__leading_dot=_
3978fi
3979rmdir .tst 2>/dev/null
3980
3981DEPDIR="${am__leading_dot}deps"
3982
3983ac_config_commands="$ac_config_commands depfiles"
3984
3985
3986am_make=${MAKE-make}
3987cat > confinc << 'END'
3988am__doit:
3989	@echo this is the am__doit target
3990.PHONY: am__doit
3991END
3992# If we don't find an include directive, just comment out the code.
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3994$as_echo_n "checking for style of include used by $am_make... " >&6; }
3995am__include="#"
3996am__quote=
3997_am_result=none
3998# First try GNU make style include.
3999echo "include confinc" > confmf
4000# Ignore all kinds of additional output from `make'.
4001case `$am_make -s -f confmf 2> /dev/null` in #(
4002*the\ am__doit\ target*)
4003  am__include=include
4004  am__quote=
4005  _am_result=GNU
4006  ;;
4007esac
4008# Now try BSD make style include.
4009if test "$am__include" = "#"; then
4010   echo '.include "confinc"' > confmf
4011   case `$am_make -s -f confmf 2> /dev/null` in #(
4012   *the\ am__doit\ target*)
4013     am__include=.include
4014     am__quote="\""
4015     _am_result=BSD
4016     ;;
4017   esac
4018fi
4019
4020
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4022$as_echo "$_am_result" >&6; }
4023rm -f confinc confmf
4024
4025# Check whether --enable-dependency-tracking was given.
4026if test "${enable_dependency_tracking+set}" = set; then :
4027  enableval=$enable_dependency_tracking;
4028fi
4029
4030if test "x$enable_dependency_tracking" != xno; then
4031  am_depcomp="$ac_aux_dir/depcomp"
4032  AMDEPBACKSLASH='\'
4033fi
4034 if test "x$enable_dependency_tracking" != xno; then
4035  AMDEP_TRUE=
4036  AMDEP_FALSE='#'
4037else
4038  AMDEP_TRUE='#'
4039  AMDEP_FALSE=
4040fi
4041
4042
4043if test "`cd $srcdir && pwd`" != "`pwd`"; then
4044  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4045  # is not polluted with repeated "-I."
4046  am__isrc=' -I$(srcdir)'
4047  # test to see if srcdir already configured
4048  if test -f $srcdir/config.status; then
4049    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4050  fi
4051fi
4052
4053# test whether we have cygpath
4054if test -z "$CYGPATH_W"; then
4055  if (cygpath --version) >/dev/null 2>/dev/null; then
4056    CYGPATH_W='cygpath -w'
4057  else
4058    CYGPATH_W=echo
4059  fi
4060fi
4061
4062
4063# Define the identity of the package.
4064 PACKAGE='ld'
4065 VERSION='2.25.51'
4066
4067
4068cat >>confdefs.h <<_ACEOF
4069#define PACKAGE "$PACKAGE"
4070_ACEOF
4071
4072
4073cat >>confdefs.h <<_ACEOF
4074#define VERSION "$VERSION"
4075_ACEOF
4076
4077# Some tools Automake needs.
4078
4079ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4080
4081
4082AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4083
4084
4085AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4086
4087
4088AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4089
4090
4091MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4092
4093# We need awk for the "check" target.  The system "awk" is bad on
4094# some platforms.
4095# Always define AMTAR for backward compatibility.
4096
4097AMTAR=${AMTAR-"${am_missing_run}tar"}
4098
4099am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4100
4101
4102
4103
4104depcc="$CC"   am_compiler_list=
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107$as_echo_n "checking dependency style of $depcc... " >&6; }
4108if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4109  $as_echo_n "(cached) " >&6
4110else
4111  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112  # We make a subdir and do the tests there.  Otherwise we can end up
4113  # making bogus files that we don't know about and never remove.  For
4114  # instance it was reported that on HP-UX the gcc test will end up
4115  # making a dummy file named `D' -- because `-MD' means `put the output
4116  # in D'.
4117  mkdir conftest.dir
4118  # Copy depcomp to subdir because otherwise we won't find it if we're
4119  # using a relative directory.
4120  cp "$am_depcomp" conftest.dir
4121  cd conftest.dir
4122  # We will build objects and dependencies in a subdirectory because
4123  # it helps to detect inapplicable dependency modes.  For instance
4124  # both Tru64's cc and ICC support -MD to output dependencies as a
4125  # side effect of compilation, but ICC will put the dependencies in
4126  # the current directory while Tru64 will put them in the object
4127  # directory.
4128  mkdir sub
4129
4130  am_cv_CC_dependencies_compiler_type=none
4131  if test "$am_compiler_list" = ""; then
4132     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4133  fi
4134  am__universal=false
4135  case " $depcc " in #(
4136     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4137     esac
4138
4139  for depmode in $am_compiler_list; do
4140    # Setup a source with many dependencies, because some compilers
4141    # like to wrap large dependency lists on column 80 (with \), and
4142    # we should not choose a depcomp mode which is confused by this.
4143    #
4144    # We need to recreate these files for each test, as the compiler may
4145    # overwrite some of them when testing with obscure command lines.
4146    # This happens at least with the AIX C compiler.
4147    : > sub/conftest.c
4148    for i in 1 2 3 4 5 6; do
4149      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4151      # Solaris 8's {/usr,}/bin/sh.
4152      touch sub/conftst$i.h
4153    done
4154    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4155
4156    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4157    # mode.  It turns out that the SunPro C++ compiler does not properly
4158    # handle `-M -o', and we need to detect this.  Also, some Intel
4159    # versions had trouble with output in subdirs
4160    am__obj=sub/conftest.${OBJEXT-o}
4161    am__minus_obj="-o $am__obj"
4162    case $depmode in
4163    gcc)
4164      # This depmode causes a compiler race in universal mode.
4165      test "$am__universal" = false || continue
4166      ;;
4167    nosideeffect)
4168      # after this tag, mechanisms are not by side-effect, so they'll
4169      # only be used when explicitly requested
4170      if test "x$enable_dependency_tracking" = xyes; then
4171	continue
4172      else
4173	break
4174      fi
4175      ;;
4176    msvisualcpp | msvcmsys)
4177      # This compiler won't grok `-c -o', but also, the minuso test has
4178      # not run yet.  These depmodes are late enough in the game, and
4179      # so weak that their functioning should not be impacted.
4180      am__obj=conftest.${OBJEXT-o}
4181      am__minus_obj=
4182      ;;
4183    none) break ;;
4184    esac
4185    if depmode=$depmode \
4186       source=sub/conftest.c object=$am__obj \
4187       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4188       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4189         >/dev/null 2>conftest.err &&
4190       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4191       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4192       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4193       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4194      # icc doesn't choke on unknown options, it will just issue warnings
4195      # or remarks (even with -Werror).  So we grep stderr for any message
4196      # that says an option was ignored or not supported.
4197      # When given -MP, icc 7.0 and 7.1 complain thusly:
4198      #   icc: Command line warning: ignoring option '-M'; no argument required
4199      # The diagnosis changed in icc 8.0:
4200      #   icc: Command line remark: option '-MP' not supported
4201      if (grep 'ignoring option' conftest.err ||
4202          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4203        am_cv_CC_dependencies_compiler_type=$depmode
4204        break
4205      fi
4206    fi
4207  done
4208
4209  cd ..
4210  rm -rf conftest.dir
4211else
4212  am_cv_CC_dependencies_compiler_type=none
4213fi
4214
4215fi
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4217$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4218CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4219
4220 if
4221  test "x$enable_dependency_tracking" != xno \
4222  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4223  am__fastdepCC_TRUE=
4224  am__fastdepCC_FALSE='#'
4225else
4226  am__fastdepCC_TRUE='#'
4227  am__fastdepCC_FALSE=
4228fi
4229
4230
4231
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4234$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4235    # Check whether --enable-maintainer-mode was given.
4236if test "${enable_maintainer_mode+set}" = set; then :
4237  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4238else
4239  USE_MAINTAINER_MODE=no
4240fi
4241
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4243$as_echo "$USE_MAINTAINER_MODE" >&6; }
4244   if test $USE_MAINTAINER_MODE = yes; then
4245  MAINTAINER_MODE_TRUE=
4246  MAINTAINER_MODE_FALSE='#'
4247else
4248  MAINTAINER_MODE_TRUE='#'
4249  MAINTAINER_MODE_FALSE=
4250fi
4251
4252  MAINT=$MAINTAINER_MODE_TRUE
4253
4254
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261if test -n "$ac_tool_prefix"; then
4262  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4263set dummy ${ac_tool_prefix}gcc; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if test "${ac_cv_prog_CC+set}" = set; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  if test -n "$CC"; then
4270  ac_cv_prog_CC="$CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284  done
4285IFS=$as_save_IFS
4286
4287fi
4288fi
4289CC=$ac_cv_prog_CC
4290if test -n "$CC"; then
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292$as_echo "$CC" >&6; }
4293else
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
4297
4298
4299fi
4300if test -z "$ac_cv_prog_CC"; then
4301  ac_ct_CC=$CC
4302  # Extract the first word of "gcc", so it can be a program name with args.
4303set dummy gcc; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  if test -n "$ac_ct_CC"; then
4310  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317    for ac_exec_ext in '' $ac_executable_extensions; do
4318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319    ac_cv_prog_ac_ct_CC="gcc"
4320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321    break 2
4322  fi
4323done
4324  done
4325IFS=$as_save_IFS
4326
4327fi
4328fi
4329ac_ct_CC=$ac_cv_prog_ac_ct_CC
4330if test -n "$ac_ct_CC"; then
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4332$as_echo "$ac_ct_CC" >&6; }
4333else
4334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335$as_echo "no" >&6; }
4336fi
4337
4338  if test "x$ac_ct_CC" = x; then
4339    CC=""
4340  else
4341    case $cross_compiling:$ac_tool_warned in
4342yes:)
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345ac_tool_warned=yes ;;
4346esac
4347    CC=$ac_ct_CC
4348  fi
4349else
4350  CC="$ac_cv_prog_CC"
4351fi
4352
4353if test -z "$CC"; then
4354          if test -n "$ac_tool_prefix"; then
4355    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4356set dummy ${ac_tool_prefix}cc; ac_word=$2
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358$as_echo_n "checking for $ac_word... " >&6; }
4359if test "${ac_cv_prog_CC+set}" = set; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  if test -n "$CC"; then
4363  ac_cv_prog_CC="$CC" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368  IFS=$as_save_IFS
4369  test -z "$as_dir" && as_dir=.
4370    for ac_exec_ext in '' $ac_executable_extensions; do
4371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372    ac_cv_prog_CC="${ac_tool_prefix}cc"
4373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374    break 2
4375  fi
4376done
4377  done
4378IFS=$as_save_IFS
4379
4380fi
4381fi
4382CC=$ac_cv_prog_CC
4383if test -n "$CC"; then
4384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385$as_echo "$CC" >&6; }
4386else
4387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388$as_echo "no" >&6; }
4389fi
4390
4391
4392  fi
4393fi
4394if test -z "$CC"; then
4395  # Extract the first word of "cc", so it can be a program name with args.
4396set dummy cc; ac_word=$2
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398$as_echo_n "checking for $ac_word... " >&6; }
4399if test "${ac_cv_prog_CC+set}" = set; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  if test -n "$CC"; then
4403  ac_cv_prog_CC="$CC" # Let the user override the test.
4404else
4405  ac_prog_rejected=no
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411    for ac_exec_ext in '' $ac_executable_extensions; do
4412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4414       ac_prog_rejected=yes
4415       continue
4416     fi
4417    ac_cv_prog_CC="cc"
4418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419    break 2
4420  fi
4421done
4422  done
4423IFS=$as_save_IFS
4424
4425if test $ac_prog_rejected = yes; then
4426  # We found a bogon in the path, so make sure we never use it.
4427  set dummy $ac_cv_prog_CC
4428  shift
4429  if test $# != 0; then
4430    # We chose a different compiler from the bogus one.
4431    # However, it has the same basename, so the bogon will be chosen
4432    # first if we set CC to just the basename; use the full file name.
4433    shift
4434    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4435  fi
4436fi
4437fi
4438fi
4439CC=$ac_cv_prog_CC
4440if test -n "$CC"; then
4441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4442$as_echo "$CC" >&6; }
4443else
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
4446fi
4447
4448
4449fi
4450if test -z "$CC"; then
4451  if test -n "$ac_tool_prefix"; then
4452  for ac_prog in cl.exe
4453  do
4454    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if test "${ac_cv_prog_CC+set}" = set; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  if test -n "$CC"; then
4462  ac_cv_prog_CC="$CC" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467  IFS=$as_save_IFS
4468  test -z "$as_dir" && as_dir=.
4469    for ac_exec_ext in '' $ac_executable_extensions; do
4470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473    break 2
4474  fi
4475done
4476  done
4477IFS=$as_save_IFS
4478
4479fi
4480fi
4481CC=$ac_cv_prog_CC
4482if test -n "$CC"; then
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4484$as_echo "$CC" >&6; }
4485else
4486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488fi
4489
4490
4491    test -n "$CC" && break
4492  done
4493fi
4494if test -z "$CC"; then
4495  ac_ct_CC=$CC
4496  for ac_prog in cl.exe
4497do
4498  # Extract the first word of "$ac_prog", so it can be a program name with args.
4499set dummy $ac_prog; ac_word=$2
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501$as_echo_n "checking for $ac_word... " >&6; }
4502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  if test -n "$ac_ct_CC"; then
4506  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4507else
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513    for ac_exec_ext in '' $ac_executable_extensions; do
4514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515    ac_cv_prog_ac_ct_CC="$ac_prog"
4516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517    break 2
4518  fi
4519done
4520  done
4521IFS=$as_save_IFS
4522
4523fi
4524fi
4525ac_ct_CC=$ac_cv_prog_ac_ct_CC
4526if test -n "$ac_ct_CC"; then
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4528$as_echo "$ac_ct_CC" >&6; }
4529else
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531$as_echo "no" >&6; }
4532fi
4533
4534
4535  test -n "$ac_ct_CC" && break
4536done
4537
4538  if test "x$ac_ct_CC" = x; then
4539    CC=""
4540  else
4541    case $cross_compiling:$ac_tool_warned in
4542yes:)
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545ac_tool_warned=yes ;;
4546esac
4547    CC=$ac_ct_CC
4548  fi
4549fi
4550
4551fi
4552
4553
4554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556as_fn_error "no acceptable C compiler found in \$PATH
4557See \`config.log' for more details." "$LINENO" 5; }
4558
4559# Provide some information about the compiler.
4560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4561set X $ac_compile
4562ac_compiler=$2
4563for ac_option in --version -v -V -qversion; do
4564  { { ac_try="$ac_compiler $ac_option >&5"
4565case "(($ac_try" in
4566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567  *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4572  ac_status=$?
4573  if test -s conftest.err; then
4574    sed '10a\
4575... rest of stderr output deleted ...
4576         10q' conftest.err >conftest.er1
4577    cat conftest.er1 >&5
4578    rm -f conftest.er1 conftest.err
4579  fi
4580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581  test $ac_status = 0; }
4582done
4583
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4585$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4586if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4587  $as_echo_n "(cached) " >&6
4588else
4589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h.  */
4591
4592int
4593main ()
4594{
4595#ifndef __GNUC__
4596       choke me
4597#endif
4598
4599  ;
4600  return 0;
4601}
4602_ACEOF
4603if ac_fn_c_try_compile "$LINENO"; then :
4604  ac_compiler_gnu=yes
4605else
4606  ac_compiler_gnu=no
4607fi
4608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609ac_cv_c_compiler_gnu=$ac_compiler_gnu
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4613$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4614if test $ac_compiler_gnu = yes; then
4615  GCC=yes
4616else
4617  GCC=
4618fi
4619ac_test_CFLAGS=${CFLAGS+set}
4620ac_save_CFLAGS=$CFLAGS
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4622$as_echo_n "checking whether $CC accepts -g... " >&6; }
4623if test "${ac_cv_prog_cc_g+set}" = set; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626  ac_save_c_werror_flag=$ac_c_werror_flag
4627   ac_c_werror_flag=yes
4628   ac_cv_prog_cc_g=no
4629   CFLAGS="-g"
4630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632
4633int
4634main ()
4635{
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"; then :
4642  ac_cv_prog_cc_g=yes
4643else
4644  CFLAGS=""
4645      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h.  */
4647
4648int
4649main ()
4650{
4651
4652  ;
4653  return 0;
4654}
4655_ACEOF
4656if ac_fn_c_try_compile "$LINENO"; then :
4657
4658else
4659  ac_c_werror_flag=$ac_save_c_werror_flag
4660	 CFLAGS="-g"
4661	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h.  */
4663
4664int
4665main ()
4666{
4667
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_compile "$LINENO"; then :
4673  ac_cv_prog_cc_g=yes
4674fi
4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680   ac_c_werror_flag=$ac_save_c_werror_flag
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4683$as_echo "$ac_cv_prog_cc_g" >&6; }
4684if test "$ac_test_CFLAGS" = set; then
4685  CFLAGS=$ac_save_CFLAGS
4686elif test $ac_cv_prog_cc_g = yes; then
4687  if test "$GCC" = yes; then
4688    CFLAGS="-g -O2"
4689  else
4690    CFLAGS="-g"
4691  fi
4692else
4693  if test "$GCC" = yes; then
4694    CFLAGS="-O2"
4695  else
4696    CFLAGS=
4697  fi
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4701if test "${ac_cv_prog_cc_c89+set}" = set; then :
4702  $as_echo_n "(cached) " >&6
4703else
4704  ac_cv_prog_cc_c89=no
4705ac_save_CC=$CC
4706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708#include <stdarg.h>
4709#include <stdio.h>
4710#include <sys/types.h>
4711#include <sys/stat.h>
4712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4713struct buf { int x; };
4714FILE * (*rcsopen) (struct buf *, struct stat *, int);
4715static char *e (p, i)
4716     char **p;
4717     int i;
4718{
4719  return p[i];
4720}
4721static char *f (char * (*g) (char **, int), char **p, ...)
4722{
4723  char *s;
4724  va_list v;
4725  va_start (v,p);
4726  s = g (p, va_arg (v,int));
4727  va_end (v);
4728  return s;
4729}
4730
4731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4732   function prototypes and stuff, but not '\xHH' hex character constants.
4733   These don't provoke an error unfortunately, instead are silently treated
4734   as 'x'.  The following induces an error, until -std is added to get
4735   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4736   array size at least.  It's necessary to write '\x00'==0 to get something
4737   that's true only with -std.  */
4738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4739
4740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4741   inside strings and character constants.  */
4742#define FOO(x) 'x'
4743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4744
4745int test (int i, double x);
4746struct s1 {int (*f) (int a);};
4747struct s2 {int (*f) (double a);};
4748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4749int argc;
4750char **argv;
4751int
4752main ()
4753{
4754return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4755  ;
4756  return 0;
4757}
4758_ACEOF
4759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4760	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4761do
4762  CC="$ac_save_CC $ac_arg"
4763  if ac_fn_c_try_compile "$LINENO"; then :
4764  ac_cv_prog_cc_c89=$ac_arg
4765fi
4766rm -f core conftest.err conftest.$ac_objext
4767  test "x$ac_cv_prog_cc_c89" != "xno" && break
4768done
4769rm -f conftest.$ac_ext
4770CC=$ac_save_CC
4771
4772fi
4773# AC_CACHE_VAL
4774case "x$ac_cv_prog_cc_c89" in
4775  x)
4776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777$as_echo "none needed" >&6; } ;;
4778  xno)
4779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4780$as_echo "unsupported" >&6; } ;;
4781  *)
4782    CC="$CC $ac_cv_prog_cc_c89"
4783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4785esac
4786if test "x$ac_cv_prog_cc_c89" != xno; then :
4787
4788fi
4789
4790ac_ext=c
4791ac_cpp='$CPP $CPPFLAGS'
4792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796ac_ext=cpp
4797ac_cpp='$CXXCPP $CPPFLAGS'
4798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801if test -z "$CXX"; then
4802  if test -n "$CCC"; then
4803    CXX=$CCC
4804  else
4805    if test -n "$ac_tool_prefix"; then
4806  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4807  do
4808    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
4812if test "${ac_cv_prog_CXX+set}" = set; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  if test -n "$CXX"; then
4816  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821  IFS=$as_save_IFS
4822  test -z "$as_dir" && as_dir=.
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827    break 2
4828  fi
4829done
4830  done
4831IFS=$as_save_IFS
4832
4833fi
4834fi
4835CXX=$ac_cv_prog_CXX
4836if test -n "$CXX"; then
4837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4838$as_echo "$CXX" >&6; }
4839else
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
4842fi
4843
4844
4845    test -n "$CXX" && break
4846  done
4847fi
4848if test -z "$CXX"; then
4849  ac_ct_CXX=$CXX
4850  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4851do
4852  # Extract the first word of "$ac_prog", so it can be a program name with args.
4853set dummy $ac_prog; ac_word=$2
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  if test -n "$ac_ct_CXX"; then
4860  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867    for ac_exec_ext in '' $ac_executable_extensions; do
4868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869    ac_cv_prog_ac_ct_CXX="$ac_prog"
4870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871    break 2
4872  fi
4873done
4874  done
4875IFS=$as_save_IFS
4876
4877fi
4878fi
4879ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4880if test -n "$ac_ct_CXX"; then
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4882$as_echo "$ac_ct_CXX" >&6; }
4883else
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
4886fi
4887
4888
4889  test -n "$ac_ct_CXX" && break
4890done
4891
4892  if test "x$ac_ct_CXX" = x; then
4893    CXX="g++"
4894  else
4895    case $cross_compiling:$ac_tool_warned in
4896yes:)
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899ac_tool_warned=yes ;;
4900esac
4901    CXX=$ac_ct_CXX
4902  fi
4903fi
4904
4905  fi
4906fi
4907# Provide some information about the compiler.
4908$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4909set X $ac_compile
4910ac_compiler=$2
4911for ac_option in --version -v -V -qversion; do
4912  { { ac_try="$ac_compiler $ac_option >&5"
4913case "(($ac_try" in
4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915  *) ac_try_echo=$ac_try;;
4916esac
4917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918$as_echo "$ac_try_echo"; } >&5
4919  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4920  ac_status=$?
4921  if test -s conftest.err; then
4922    sed '10a\
4923... rest of stderr output deleted ...
4924         10q' conftest.err >conftest.er1
4925    cat conftest.er1 >&5
4926    rm -f conftest.er1 conftest.err
4927  fi
4928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929  test $ac_status = 0; }
4930done
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4933$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4934if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h.  */
4939
4940int
4941main ()
4942{
4943#ifndef __GNUC__
4944       choke me
4945#endif
4946
4947  ;
4948  return 0;
4949}
4950_ACEOF
4951if ac_fn_cxx_try_compile "$LINENO"; then :
4952  ac_compiler_gnu=yes
4953else
4954  ac_compiler_gnu=no
4955fi
4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4958
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4961$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4962if test $ac_compiler_gnu = yes; then
4963  GXX=yes
4964else
4965  GXX=
4966fi
4967ac_test_CXXFLAGS=${CXXFLAGS+set}
4968ac_save_CXXFLAGS=$CXXFLAGS
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4970$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4971if test "${ac_cv_prog_cxx_g+set}" = set; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4975   ac_cxx_werror_flag=yes
4976   ac_cv_prog_cxx_g=no
4977   CXXFLAGS="-g"
4978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h.  */
4980
4981int
4982main ()
4983{
4984
4985  ;
4986  return 0;
4987}
4988_ACEOF
4989if ac_fn_cxx_try_compile "$LINENO"; then :
4990  ac_cv_prog_cxx_g=yes
4991else
4992  CXXFLAGS=""
4993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h.  */
4995
4996int
4997main ()
4998{
4999
5000  ;
5001  return 0;
5002}
5003_ACEOF
5004if ac_fn_cxx_try_compile "$LINENO"; then :
5005
5006else
5007  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5008	 CXXFLAGS="-g"
5009	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011
5012int
5013main ()
5014{
5015
5016  ;
5017  return 0;
5018}
5019_ACEOF
5020if ac_fn_cxx_try_compile "$LINENO"; then :
5021  ac_cv_prog_cxx_g=yes
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5031$as_echo "$ac_cv_prog_cxx_g" >&6; }
5032if test "$ac_test_CXXFLAGS" = set; then
5033  CXXFLAGS=$ac_save_CXXFLAGS
5034elif test $ac_cv_prog_cxx_g = yes; then
5035  if test "$GXX" = yes; then
5036    CXXFLAGS="-g -O2"
5037  else
5038    CXXFLAGS="-g"
5039  fi
5040else
5041  if test "$GXX" = yes; then
5042    CXXFLAGS="-O2"
5043  else
5044    CXXFLAGS=
5045  fi
5046fi
5047ac_ext=c
5048ac_cpp='$CPP $CPPFLAGS'
5049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052
5053depcc="$CXX"  am_compiler_list=
5054
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5056$as_echo_n "checking dependency style of $depcc... " >&6; }
5057if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5061  # We make a subdir and do the tests there.  Otherwise we can end up
5062  # making bogus files that we don't know about and never remove.  For
5063  # instance it was reported that on HP-UX the gcc test will end up
5064  # making a dummy file named `D' -- because `-MD' means `put the output
5065  # in D'.
5066  mkdir conftest.dir
5067  # Copy depcomp to subdir because otherwise we won't find it if we're
5068  # using a relative directory.
5069  cp "$am_depcomp" conftest.dir
5070  cd conftest.dir
5071  # We will build objects and dependencies in a subdirectory because
5072  # it helps to detect inapplicable dependency modes.  For instance
5073  # both Tru64's cc and ICC support -MD to output dependencies as a
5074  # side effect of compilation, but ICC will put the dependencies in
5075  # the current directory while Tru64 will put them in the object
5076  # directory.
5077  mkdir sub
5078
5079  am_cv_CXX_dependencies_compiler_type=none
5080  if test "$am_compiler_list" = ""; then
5081     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5082  fi
5083  am__universal=false
5084  case " $depcc " in #(
5085     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5086     esac
5087
5088  for depmode in $am_compiler_list; do
5089    # Setup a source with many dependencies, because some compilers
5090    # like to wrap large dependency lists on column 80 (with \), and
5091    # we should not choose a depcomp mode which is confused by this.
5092    #
5093    # We need to recreate these files for each test, as the compiler may
5094    # overwrite some of them when testing with obscure command lines.
5095    # This happens at least with the AIX C compiler.
5096    : > sub/conftest.c
5097    for i in 1 2 3 4 5 6; do
5098      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5099      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5100      # Solaris 8's {/usr,}/bin/sh.
5101      touch sub/conftst$i.h
5102    done
5103    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5104
5105    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5106    # mode.  It turns out that the SunPro C++ compiler does not properly
5107    # handle `-M -o', and we need to detect this.  Also, some Intel
5108    # versions had trouble with output in subdirs
5109    am__obj=sub/conftest.${OBJEXT-o}
5110    am__minus_obj="-o $am__obj"
5111    case $depmode in
5112    gcc)
5113      # This depmode causes a compiler race in universal mode.
5114      test "$am__universal" = false || continue
5115      ;;
5116    nosideeffect)
5117      # after this tag, mechanisms are not by side-effect, so they'll
5118      # only be used when explicitly requested
5119      if test "x$enable_dependency_tracking" = xyes; then
5120	continue
5121      else
5122	break
5123      fi
5124      ;;
5125    msvisualcpp | msvcmsys)
5126      # This compiler won't grok `-c -o', but also, the minuso test has
5127      # not run yet.  These depmodes are late enough in the game, and
5128      # so weak that their functioning should not be impacted.
5129      am__obj=conftest.${OBJEXT-o}
5130      am__minus_obj=
5131      ;;
5132    none) break ;;
5133    esac
5134    if depmode=$depmode \
5135       source=sub/conftest.c object=$am__obj \
5136       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5137       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5138         >/dev/null 2>conftest.err &&
5139       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5140       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5141       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5142       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5143      # icc doesn't choke on unknown options, it will just issue warnings
5144      # or remarks (even with -Werror).  So we grep stderr for any message
5145      # that says an option was ignored or not supported.
5146      # When given -MP, icc 7.0 and 7.1 complain thusly:
5147      #   icc: Command line warning: ignoring option '-M'; no argument required
5148      # The diagnosis changed in icc 8.0:
5149      #   icc: Command line remark: option '-MP' not supported
5150      if (grep 'ignoring option' conftest.err ||
5151          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5152        am_cv_CXX_dependencies_compiler_type=$depmode
5153        break
5154      fi
5155    fi
5156  done
5157
5158  cd ..
5159  rm -rf conftest.dir
5160else
5161  am_cv_CXX_dependencies_compiler_type=none
5162fi
5163
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5166$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5167CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5168
5169 if
5170  test "x$enable_dependency_tracking" != xno \
5171  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5172  am__fastdepCXX_TRUE=
5173  am__fastdepCXX_FALSE='#'
5174else
5175  am__fastdepCXX_TRUE='#'
5176  am__fastdepCXX_FALSE=
5177fi
5178
5179
5180ac_ext=c
5181ac_cpp='$CPP $CPPFLAGS'
5182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5186$as_echo_n "checking how to run the C preprocessor... " >&6; }
5187# On Suns, sometimes $CPP names a directory.
5188if test -n "$CPP" && test -d "$CPP"; then
5189  CPP=
5190fi
5191if test -z "$CPP"; then
5192  if test "${ac_cv_prog_CPP+set}" = set; then :
5193  $as_echo_n "(cached) " >&6
5194else
5195      # Double quotes because CPP needs to be expanded
5196    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5197    do
5198      ac_preproc_ok=false
5199for ac_c_preproc_warn_flag in '' yes
5200do
5201  # Use a header file that comes with gcc, so configuring glibc
5202  # with a fresh cross-compiler works.
5203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204  # <limits.h> exists even on freestanding compilers.
5205  # On the NeXT, cc -E runs the code through the compiler's parser,
5206  # not just through cpp. "Syntax error" is here to catch this case.
5207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209#ifdef __STDC__
5210# include <limits.h>
5211#else
5212# include <assert.h>
5213#endif
5214		     Syntax error
5215_ACEOF
5216if ac_fn_c_try_cpp "$LINENO"; then :
5217
5218else
5219  # Broken: fails on valid input.
5220continue
5221fi
5222rm -f conftest.err conftest.$ac_ext
5223
5224  # OK, works on sane cases.  Now check whether nonexistent headers
5225  # can be detected and how.
5226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h.  */
5228#include <ac_nonexistent.h>
5229_ACEOF
5230if ac_fn_c_try_cpp "$LINENO"; then :
5231  # Broken: success on invalid input.
5232continue
5233else
5234  # Passes both tests.
5235ac_preproc_ok=:
5236break
5237fi
5238rm -f conftest.err conftest.$ac_ext
5239
5240done
5241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5242rm -f conftest.err conftest.$ac_ext
5243if $ac_preproc_ok; then :
5244  break
5245fi
5246
5247    done
5248    ac_cv_prog_CPP=$CPP
5249
5250fi
5251  CPP=$ac_cv_prog_CPP
5252else
5253  ac_cv_prog_CPP=$CPP
5254fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5256$as_echo "$CPP" >&6; }
5257ac_preproc_ok=false
5258for ac_c_preproc_warn_flag in '' yes
5259do
5260  # Use a header file that comes with gcc, so configuring glibc
5261  # with a fresh cross-compiler works.
5262  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5263  # <limits.h> exists even on freestanding compilers.
5264  # On the NeXT, cc -E runs the code through the compiler's parser,
5265  # not just through cpp. "Syntax error" is here to catch this case.
5266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268#ifdef __STDC__
5269# include <limits.h>
5270#else
5271# include <assert.h>
5272#endif
5273		     Syntax error
5274_ACEOF
5275if ac_fn_c_try_cpp "$LINENO"; then :
5276
5277else
5278  # Broken: fails on valid input.
5279continue
5280fi
5281rm -f conftest.err conftest.$ac_ext
5282
5283  # OK, works on sane cases.  Now check whether nonexistent headers
5284  # can be detected and how.
5285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287#include <ac_nonexistent.h>
5288_ACEOF
5289if ac_fn_c_try_cpp "$LINENO"; then :
5290  # Broken: success on invalid input.
5291continue
5292else
5293  # Passes both tests.
5294ac_preproc_ok=:
5295break
5296fi
5297rm -f conftest.err conftest.$ac_ext
5298
5299done
5300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301rm -f conftest.err conftest.$ac_ext
5302if $ac_preproc_ok; then :
5303
5304else
5305  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5307as_fn_error "C preprocessor \"$CPP\" fails sanity check
5308See \`config.log' for more details." "$LINENO" 5; }
5309fi
5310
5311ac_ext=c
5312ac_cpp='$CPP $CPPFLAGS'
5313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315ac_compiler_gnu=$ac_cv_c_compiler_gnu
5316
5317
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5319$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5320if test "${ac_cv_path_GREP+set}" = set; then :
5321  $as_echo_n "(cached) " >&6
5322else
5323  if test -z "$GREP"; then
5324  ac_path_GREP_found=false
5325  # Loop through the user's path and test for each of PROGNAME-LIST
5326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5328do
5329  IFS=$as_save_IFS
5330  test -z "$as_dir" && as_dir=.
5331    for ac_prog in grep ggrep; do
5332    for ac_exec_ext in '' $ac_executable_extensions; do
5333      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5334      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5335# Check for GNU ac_path_GREP and select it if it is found.
5336  # Check for GNU $ac_path_GREP
5337case `"$ac_path_GREP" --version 2>&1` in
5338*GNU*)
5339  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5340*)
5341  ac_count=0
5342  $as_echo_n 0123456789 >"conftest.in"
5343  while :
5344  do
5345    cat "conftest.in" "conftest.in" >"conftest.tmp"
5346    mv "conftest.tmp" "conftest.in"
5347    cp "conftest.in" "conftest.nl"
5348    $as_echo 'GREP' >> "conftest.nl"
5349    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351    as_fn_arith $ac_count + 1 && ac_count=$as_val
5352    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5353      # Best one so far, save it but keep looking for a better one
5354      ac_cv_path_GREP="$ac_path_GREP"
5355      ac_path_GREP_max=$ac_count
5356    fi
5357    # 10*(2^10) chars as input seems more than enough
5358    test $ac_count -gt 10 && break
5359  done
5360  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361esac
5362
5363      $ac_path_GREP_found && break 3
5364    done
5365  done
5366  done
5367IFS=$as_save_IFS
5368  if test -z "$ac_cv_path_GREP"; then
5369    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5370  fi
5371else
5372  ac_cv_path_GREP=$GREP
5373fi
5374
5375fi
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5377$as_echo "$ac_cv_path_GREP" >&6; }
5378 GREP="$ac_cv_path_GREP"
5379
5380
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5382$as_echo_n "checking for egrep... " >&6; }
5383if test "${ac_cv_path_EGREP+set}" = set; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5387   then ac_cv_path_EGREP="$GREP -E"
5388   else
5389     if test -z "$EGREP"; then
5390  ac_path_EGREP_found=false
5391  # Loop through the user's path and test for each of PROGNAME-LIST
5392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394do
5395  IFS=$as_save_IFS
5396  test -z "$as_dir" && as_dir=.
5397    for ac_prog in egrep; do
5398    for ac_exec_ext in '' $ac_executable_extensions; do
5399      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5400      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5401# Check for GNU ac_path_EGREP and select it if it is found.
5402  # Check for GNU $ac_path_EGREP
5403case `"$ac_path_EGREP" --version 2>&1` in
5404*GNU*)
5405  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5406*)
5407  ac_count=0
5408  $as_echo_n 0123456789 >"conftest.in"
5409  while :
5410  do
5411    cat "conftest.in" "conftest.in" >"conftest.tmp"
5412    mv "conftest.tmp" "conftest.in"
5413    cp "conftest.in" "conftest.nl"
5414    $as_echo 'EGREP' >> "conftest.nl"
5415    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417    as_fn_arith $ac_count + 1 && ac_count=$as_val
5418    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5419      # Best one so far, save it but keep looking for a better one
5420      ac_cv_path_EGREP="$ac_path_EGREP"
5421      ac_path_EGREP_max=$ac_count
5422    fi
5423    # 10*(2^10) chars as input seems more than enough
5424    test $ac_count -gt 10 && break
5425  done
5426  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5427esac
5428
5429      $ac_path_EGREP_found && break 3
5430    done
5431  done
5432  done
5433IFS=$as_save_IFS
5434  if test -z "$ac_cv_path_EGREP"; then
5435    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5436  fi
5437else
5438  ac_cv_path_EGREP=$EGREP
5439fi
5440
5441   fi
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5444$as_echo "$ac_cv_path_EGREP" >&6; }
5445 EGREP="$ac_cv_path_EGREP"
5446
5447
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5449$as_echo_n "checking for ANSI C header files... " >&6; }
5450if test "${ac_cv_header_stdc+set}" = set; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455#include <stdlib.h>
5456#include <stdarg.h>
5457#include <string.h>
5458#include <float.h>
5459
5460int
5461main ()
5462{
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_compile "$LINENO"; then :
5469  ac_cv_header_stdc=yes
5470else
5471  ac_cv_header_stdc=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474
5475if test $ac_cv_header_stdc = yes; then
5476  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h.  */
5479#include <string.h>
5480
5481_ACEOF
5482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483  $EGREP "memchr" >/dev/null 2>&1; then :
5484
5485else
5486  ac_cv_header_stdc=no
5487fi
5488rm -f conftest*
5489
5490fi
5491
5492if test $ac_cv_header_stdc = yes; then
5493  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496#include <stdlib.h>
5497
5498_ACEOF
5499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500  $EGREP "free" >/dev/null 2>&1; then :
5501
5502else
5503  ac_cv_header_stdc=no
5504fi
5505rm -f conftest*
5506
5507fi
5508
5509if test $ac_cv_header_stdc = yes; then
5510  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5511  if test "$cross_compiling" = yes; then :
5512  :
5513else
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516#include <ctype.h>
5517#include <stdlib.h>
5518#if ((' ' & 0x0FF) == 0x020)
5519# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5520# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5521#else
5522# define ISLOWER(c) \
5523		   (('a' <= (c) && (c) <= 'i') \
5524		     || ('j' <= (c) && (c) <= 'r') \
5525		     || ('s' <= (c) && (c) <= 'z'))
5526# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5527#endif
5528
5529#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5530int
5531main ()
5532{
5533  int i;
5534  for (i = 0; i < 256; i++)
5535    if (XOR (islower (i), ISLOWER (i))
5536	|| toupper (i) != TOUPPER (i))
5537      return 2;
5538  return 0;
5539}
5540_ACEOF
5541if ac_fn_c_try_run "$LINENO"; then :
5542
5543else
5544  ac_cv_header_stdc=no
5545fi
5546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5547  conftest.$ac_objext conftest.beam conftest.$ac_ext
5548fi
5549
5550fi
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5553$as_echo "$ac_cv_header_stdc" >&6; }
5554if test $ac_cv_header_stdc = yes; then
5555
5556$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5557
5558fi
5559
5560# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5561for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5562		  inttypes.h stdint.h unistd.h
5563do :
5564  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5565ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5566"
5567eval as_val=\$$as_ac_Header
5568   if test "x$as_val" = x""yes; then :
5569  cat >>confdefs.h <<_ACEOF
5570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571_ACEOF
5572
5573fi
5574
5575done
5576
5577
5578
5579  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5580if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5581  MINIX=yes
5582else
5583  MINIX=
5584fi
5585
5586
5587  if test "$MINIX" = yes; then
5588
5589$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5590
5591
5592$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5593
5594
5595$as_echo "#define _MINIX 1" >>confdefs.h
5596
5597  fi
5598
5599
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5601$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5602if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607
5608#	  define __EXTENSIONS__ 1
5609	  $ac_includes_default
5610int
5611main ()
5612{
5613
5614  ;
5615  return 0;
5616}
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"; then :
5619  ac_cv_safe_to_define___extensions__=yes
5620else
5621  ac_cv_safe_to_define___extensions__=no
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5626$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5627  test $ac_cv_safe_to_define___extensions__ = yes &&
5628    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5629
5630  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5631
5632  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5633
5634  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5635
5636  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5637
5638
5639
5640
5641
5642
5643case `pwd` in
5644  *\ * | *\	*)
5645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5646$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5647esac
5648
5649
5650
5651macro_version='2.2.7a'
5652macro_revision='1.3134'
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666ltmain="$ac_aux_dir/ltmain.sh"
5667
5668# Backslashify metacharacters that are still active within
5669# double-quoted strings.
5670sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5671
5672# Same as above, but do not quote variable references.
5673double_quote_subst='s/\(["`\\]\)/\\\1/g'
5674
5675# Sed substitution to delay expansion of an escaped shell variable in a
5676# double_quote_subst'ed string.
5677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5678
5679# Sed substitution to delay expansion of an escaped single quote.
5680delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5681
5682# Sed substitution to avoid accidental globbing in evaled expressions
5683no_glob_subst='s/\*/\\\*/g'
5684
5685ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5686ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5688
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5690$as_echo_n "checking how to print strings... " >&6; }
5691# Test print first, because it will be a builtin if present.
5692if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5693   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5694  ECHO='print -r --'
5695elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5696  ECHO='printf %s\n'
5697else
5698  # Use this function as a fallback that always works.
5699  func_fallback_echo ()
5700  {
5701    eval 'cat <<_LTECHO_EOF
5702$1
5703_LTECHO_EOF'
5704  }
5705  ECHO='func_fallback_echo'
5706fi
5707
5708# func_echo_all arg...
5709# Invoke $ECHO with all args, space-separated.
5710func_echo_all ()
5711{
5712    $ECHO ""
5713}
5714
5715case "$ECHO" in
5716  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5717$as_echo "printf" >&6; } ;;
5718  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5719$as_echo "print -r" >&6; } ;;
5720  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5721$as_echo "cat" >&6; } ;;
5722esac
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5738$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5739if test "${ac_cv_path_SED+set}" = set; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5743     for ac_i in 1 2 3 4 5 6 7; do
5744       ac_script="$ac_script$as_nl$ac_script"
5745     done
5746     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5747     { ac_script=; unset ac_script;}
5748     if test -z "$SED"; then
5749  ac_path_SED_found=false
5750  # Loop through the user's path and test for each of PROGNAME-LIST
5751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754  IFS=$as_save_IFS
5755  test -z "$as_dir" && as_dir=.
5756    for ac_prog in sed gsed; do
5757    for ac_exec_ext in '' $ac_executable_extensions; do
5758      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5759      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5760# Check for GNU ac_path_SED and select it if it is found.
5761  # Check for GNU $ac_path_SED
5762case `"$ac_path_SED" --version 2>&1` in
5763*GNU*)
5764  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5765*)
5766  ac_count=0
5767  $as_echo_n 0123456789 >"conftest.in"
5768  while :
5769  do
5770    cat "conftest.in" "conftest.in" >"conftest.tmp"
5771    mv "conftest.tmp" "conftest.in"
5772    cp "conftest.in" "conftest.nl"
5773    $as_echo '' >> "conftest.nl"
5774    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5775    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5776    as_fn_arith $ac_count + 1 && ac_count=$as_val
5777    if test $ac_count -gt ${ac_path_SED_max-0}; then
5778      # Best one so far, save it but keep looking for a better one
5779      ac_cv_path_SED="$ac_path_SED"
5780      ac_path_SED_max=$ac_count
5781    fi
5782    # 10*(2^10) chars as input seems more than enough
5783    test $ac_count -gt 10 && break
5784  done
5785  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5786esac
5787
5788      $ac_path_SED_found && break 3
5789    done
5790  done
5791  done
5792IFS=$as_save_IFS
5793  if test -z "$ac_cv_path_SED"; then
5794    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5795  fi
5796else
5797  ac_cv_path_SED=$SED
5798fi
5799
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5802$as_echo "$ac_cv_path_SED" >&6; }
5803 SED="$ac_cv_path_SED"
5804  rm -f conftest.sed
5805
5806test -z "$SED" && SED=sed
5807Xsed="$SED -e 1s/^X//"
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5820$as_echo_n "checking for fgrep... " >&6; }
5821if test "${ac_cv_path_FGREP+set}" = set; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5825   then ac_cv_path_FGREP="$GREP -F"
5826   else
5827     if test -z "$FGREP"; then
5828  ac_path_FGREP_found=false
5829  # Loop through the user's path and test for each of PROGNAME-LIST
5830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835    for ac_prog in fgrep; do
5836    for ac_exec_ext in '' $ac_executable_extensions; do
5837      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5838      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5839# Check for GNU ac_path_FGREP and select it if it is found.
5840  # Check for GNU $ac_path_FGREP
5841case `"$ac_path_FGREP" --version 2>&1` in
5842*GNU*)
5843  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5844*)
5845  ac_count=0
5846  $as_echo_n 0123456789 >"conftest.in"
5847  while :
5848  do
5849    cat "conftest.in" "conftest.in" >"conftest.tmp"
5850    mv "conftest.tmp" "conftest.in"
5851    cp "conftest.in" "conftest.nl"
5852    $as_echo 'FGREP' >> "conftest.nl"
5853    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5854    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5855    as_fn_arith $ac_count + 1 && ac_count=$as_val
5856    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5857      # Best one so far, save it but keep looking for a better one
5858      ac_cv_path_FGREP="$ac_path_FGREP"
5859      ac_path_FGREP_max=$ac_count
5860    fi
5861    # 10*(2^10) chars as input seems more than enough
5862    test $ac_count -gt 10 && break
5863  done
5864  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5865esac
5866
5867      $ac_path_FGREP_found && break 3
5868    done
5869  done
5870  done
5871IFS=$as_save_IFS
5872  if test -z "$ac_cv_path_FGREP"; then
5873    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5874  fi
5875else
5876  ac_cv_path_FGREP=$FGREP
5877fi
5878
5879   fi
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5882$as_echo "$ac_cv_path_FGREP" >&6; }
5883 FGREP="$ac_cv_path_FGREP"
5884
5885
5886test -z "$GREP" && GREP=grep
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906# Check whether --with-gnu-ld was given.
5907if test "${with_gnu_ld+set}" = set; then :
5908  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5909else
5910  with_gnu_ld=no
5911fi
5912
5913ac_prog=ld
5914if test "$GCC" = yes; then
5915  # Check if gcc -print-prog-name=ld gives a path.
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5917$as_echo_n "checking for ld used by $CC... " >&6; }
5918  case $host in
5919  *-*-mingw*)
5920    # gcc leaves a trailing carriage return which upsets mingw
5921    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5922  *)
5923    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5924  esac
5925  case $ac_prog in
5926    # Accept absolute paths.
5927    [\\/]* | ?:[\\/]*)
5928      re_direlt='/[^/][^/]*/\.\./'
5929      # Canonicalize the pathname of ld
5930      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5931      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5932	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5933      done
5934      test -z "$LD" && LD="$ac_prog"
5935      ;;
5936  "")
5937    # If it fails, then pretend we aren't using GCC.
5938    ac_prog=ld
5939    ;;
5940  *)
5941    # If it is relative, then search for the first ld in PATH.
5942    with_gnu_ld=unknown
5943    ;;
5944  esac
5945elif test "$with_gnu_ld" = yes; then
5946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5947$as_echo_n "checking for GNU ld... " >&6; }
5948else
5949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5950$as_echo_n "checking for non-GNU ld... " >&6; }
5951fi
5952if test "${lt_cv_path_LD+set}" = set; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955  if test -z "$LD"; then
5956  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5957  for ac_dir in $PATH; do
5958    IFS="$lt_save_ifs"
5959    test -z "$ac_dir" && ac_dir=.
5960    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5961      lt_cv_path_LD="$ac_dir/$ac_prog"
5962      # Check to see if the program is GNU ld.  I'd rather use --version,
5963      # but apparently some variants of GNU ld only accept -v.
5964      # Break only if it was the GNU/non-GNU ld that we prefer.
5965      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5966      *GNU* | *'with BFD'*)
5967	test "$with_gnu_ld" != no && break
5968	;;
5969      *)
5970	test "$with_gnu_ld" != yes && break
5971	;;
5972      esac
5973    fi
5974  done
5975  IFS="$lt_save_ifs"
5976else
5977  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5978fi
5979fi
5980
5981LD="$lt_cv_path_LD"
5982if test -n "$LD"; then
5983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5984$as_echo "$LD" >&6; }
5985else
5986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988fi
5989test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5991$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5992if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5996case `$LD -v 2>&1 </dev/null` in
5997*GNU* | *'with BFD'*)
5998  lt_cv_prog_gnu_ld=yes
5999  ;;
6000*)
6001  lt_cv_prog_gnu_ld=no
6002  ;;
6003esac
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6006$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6007with_gnu_ld=$lt_cv_prog_gnu_ld
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6018$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6019if test "${lt_cv_path_NM+set}" = set; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022  if test -n "$NM"; then
6023  # Let the user override the test.
6024  lt_cv_path_NM="$NM"
6025else
6026  lt_nm_to_check="${ac_tool_prefix}nm"
6027  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6028    lt_nm_to_check="$lt_nm_to_check nm"
6029  fi
6030  for lt_tmp_nm in $lt_nm_to_check; do
6031    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6033      IFS="$lt_save_ifs"
6034      test -z "$ac_dir" && ac_dir=.
6035      tmp_nm="$ac_dir/$lt_tmp_nm"
6036      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6037	# Check to see if the nm accepts a BSD-compat flag.
6038	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6039	#   nm: unknown option "B" ignored
6040	# Tru64's nm complains that /dev/null is an invalid object file
6041	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6042	*/dev/null* | *'Invalid file or object type'*)
6043	  lt_cv_path_NM="$tmp_nm -B"
6044	  break
6045	  ;;
6046	*)
6047	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6048	  */dev/null*)
6049	    lt_cv_path_NM="$tmp_nm -p"
6050	    break
6051	    ;;
6052	  *)
6053	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6054	    continue # so that we can try to find one that supports BSD flags
6055	    ;;
6056	  esac
6057	  ;;
6058	esac
6059      fi
6060    done
6061    IFS="$lt_save_ifs"
6062  done
6063  : ${lt_cv_path_NM=no}
6064fi
6065fi
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6067$as_echo "$lt_cv_path_NM" >&6; }
6068if test "$lt_cv_path_NM" != "no"; then
6069  NM="$lt_cv_path_NM"
6070else
6071  # Didn't find any BSD compatible name lister, look for dumpbin.
6072  if test -n "$DUMPBIN"; then :
6073    # Let the user override the test.
6074  else
6075    if test -n "$ac_tool_prefix"; then
6076  for ac_prog in dumpbin "link -dump"
6077  do
6078    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085  if test -n "$DUMPBIN"; then
6086  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091  IFS=$as_save_IFS
6092  test -z "$as_dir" && as_dir=.
6093    for ac_exec_ext in '' $ac_executable_extensions; do
6094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097    break 2
6098  fi
6099done
6100  done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105DUMPBIN=$ac_cv_prog_DUMPBIN
6106if test -n "$DUMPBIN"; then
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6108$as_echo "$DUMPBIN" >&6; }
6109else
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115    test -n "$DUMPBIN" && break
6116  done
6117fi
6118if test -z "$DUMPBIN"; then
6119  ac_ct_DUMPBIN=$DUMPBIN
6120  for ac_prog in dumpbin "link -dump"
6121do
6122  # Extract the first word of "$ac_prog", so it can be a program name with args.
6123set dummy $ac_prog; ac_word=$2
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125$as_echo_n "checking for $ac_word... " >&6; }
6126if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  if test -n "$ac_ct_DUMPBIN"; then
6130  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6131else
6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133for as_dir in $PATH
6134do
6135  IFS=$as_save_IFS
6136  test -z "$as_dir" && as_dir=.
6137    for ac_exec_ext in '' $ac_executable_extensions; do
6138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141    break 2
6142  fi
6143done
6144  done
6145IFS=$as_save_IFS
6146
6147fi
6148fi
6149ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6150if test -n "$ac_ct_DUMPBIN"; then
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6152$as_echo "$ac_ct_DUMPBIN" >&6; }
6153else
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155$as_echo "no" >&6; }
6156fi
6157
6158
6159  test -n "$ac_ct_DUMPBIN" && break
6160done
6161
6162  if test "x$ac_ct_DUMPBIN" = x; then
6163    DUMPBIN=":"
6164  else
6165    case $cross_compiling:$ac_tool_warned in
6166yes:)
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169ac_tool_warned=yes ;;
6170esac
6171    DUMPBIN=$ac_ct_DUMPBIN
6172  fi
6173fi
6174
6175    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6176    *COFF*)
6177      DUMPBIN="$DUMPBIN -symbols"
6178      ;;
6179    *)
6180      DUMPBIN=:
6181      ;;
6182    esac
6183  fi
6184
6185  if test "$DUMPBIN" != ":"; then
6186    NM="$DUMPBIN"
6187  fi
6188fi
6189test -z "$NM" && NM=nm
6190
6191
6192
6193
6194
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6197$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6198if test "${lt_cv_nm_interface+set}" = set; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  lt_cv_nm_interface="BSD nm"
6202  echo "int some_variable = 0;" > conftest.$ac_ext
6203  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6204  (eval "$ac_compile" 2>conftest.err)
6205  cat conftest.err >&5
6206  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6207  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6208  cat conftest.err >&5
6209  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6210  cat conftest.out >&5
6211  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6212    lt_cv_nm_interface="MS dumpbin"
6213  fi
6214  rm -f conftest*
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6217$as_echo "$lt_cv_nm_interface" >&6; }
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6220$as_echo_n "checking whether ln -s works... " >&6; }
6221LN_S=$as_ln_s
6222if test "$LN_S" = "ln -s"; then
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6224$as_echo "yes" >&6; }
6225else
6226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6227$as_echo "no, using $LN_S" >&6; }
6228fi
6229
6230# find the maximum length of command line arguments
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6232$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6233if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236    i=0
6237  teststring="ABCD"
6238
6239  case $build_os in
6240  msdosdjgpp*)
6241    # On DJGPP, this test can blow up pretty badly due to problems in libc
6242    # (any single argument exceeding 2000 bytes causes a buffer overrun
6243    # during glob expansion).  Even if it were fixed, the result of this
6244    # check would be larger than it should be.
6245    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6246    ;;
6247
6248  gnu*)
6249    # Under GNU Hurd, this test is not required because there is
6250    # no limit to the length of command line arguments.
6251    # Libtool will interpret -1 as no limit whatsoever
6252    lt_cv_sys_max_cmd_len=-1;
6253    ;;
6254
6255  cygwin* | mingw* | cegcc*)
6256    # On Win9x/ME, this test blows up -- it succeeds, but takes
6257    # about 5 minutes as the teststring grows exponentially.
6258    # Worse, since 9x/ME are not pre-emptively multitasking,
6259    # you end up with a "frozen" computer, even though with patience
6260    # the test eventually succeeds (with a max line length of 256k).
6261    # Instead, let's just punt: use the minimum linelength reported by
6262    # all of the supported platforms: 8192 (on NT/2K/XP).
6263    lt_cv_sys_max_cmd_len=8192;
6264    ;;
6265
6266  mint*)
6267    # On MiNT this can take a long time and run out of memory.
6268    lt_cv_sys_max_cmd_len=8192;
6269    ;;
6270
6271  amigaos*)
6272    # On AmigaOS with pdksh, this test takes hours, literally.
6273    # So we just punt and use a minimum line length of 8192.
6274    lt_cv_sys_max_cmd_len=8192;
6275    ;;
6276
6277  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6278    # This has been around since 386BSD, at least.  Likely further.
6279    if test -x /sbin/sysctl; then
6280      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6281    elif test -x /usr/sbin/sysctl; then
6282      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6283    else
6284      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6285    fi
6286    # And add a safety zone
6287    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289    ;;
6290
6291  interix*)
6292    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6293    lt_cv_sys_max_cmd_len=196608
6294    ;;
6295
6296  osf*)
6297    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6298    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6299    # nice to cause kernel panics so lets avoid the loop below.
6300    # First set a reasonable default.
6301    lt_cv_sys_max_cmd_len=16384
6302    #
6303    if test -x /sbin/sysconfig; then
6304      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6305        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6306      esac
6307    fi
6308    ;;
6309  sco3.2v5*)
6310    lt_cv_sys_max_cmd_len=102400
6311    ;;
6312  sysv5* | sco5v6* | sysv4.2uw2*)
6313    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6314    if test -n "$kargmax"; then
6315      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6316    else
6317      lt_cv_sys_max_cmd_len=32768
6318    fi
6319    ;;
6320  *)
6321    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6322    if test -n "$lt_cv_sys_max_cmd_len"; then
6323      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6325    else
6326      # Make teststring a little bigger before we do anything with it.
6327      # a 1K string should be a reasonable start.
6328      for i in 1 2 3 4 5 6 7 8 ; do
6329        teststring=$teststring$teststring
6330      done
6331      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6332      # If test is not a shell built-in, we'll probably end up computing a
6333      # maximum length that is only half of the actual maximum length, but
6334      # we can't tell.
6335      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6336	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6337	      test $i != 17 # 1/2 MB should be enough
6338      do
6339        i=`expr $i + 1`
6340        teststring=$teststring$teststring
6341      done
6342      # Only check the string length outside the loop.
6343      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6344      teststring=
6345      # Add a significant safety factor because C++ compilers can tack on
6346      # massive amounts of additional arguments before passing them to the
6347      # linker.  It appears as though 1/2 is a usable value.
6348      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6349    fi
6350    ;;
6351  esac
6352
6353fi
6354
6355if test -n $lt_cv_sys_max_cmd_len ; then
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6357$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6358else
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6360$as_echo "none" >&6; }
6361fi
6362max_cmd_len=$lt_cv_sys_max_cmd_len
6363
6364
6365
6366
6367
6368
6369: ${CP="cp -f"}
6370: ${MV="mv -f"}
6371: ${RM="rm -f"}
6372
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6374$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6375# Try some XSI features
6376xsi_shell=no
6377( _lt_dummy="a/b/c"
6378  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6379      = c,a/b,, \
6380    && eval 'test $(( 1 + 1 )) -eq 2 \
6381    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6382  && xsi_shell=yes
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6384$as_echo "$xsi_shell" >&6; }
6385
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6388$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6389lt_shell_append=no
6390( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6391    >/dev/null 2>&1 \
6392  && lt_shell_append=yes
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6394$as_echo "$lt_shell_append" >&6; }
6395
6396
6397if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6398  lt_unset=unset
6399else
6400  lt_unset=false
6401fi
6402
6403
6404
6405
6406
6407# test EBCDIC or ASCII
6408case `echo X|tr X '\101'` in
6409 A) # ASCII based system
6410    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6411  lt_SP2NL='tr \040 \012'
6412  lt_NL2SP='tr \015\012 \040\040'
6413  ;;
6414 *) # EBCDIC based system
6415  lt_SP2NL='tr \100 \n'
6416  lt_NL2SP='tr \r\n \100\100'
6417  ;;
6418esac
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6429$as_echo_n "checking for $LD option to reload object files... " >&6; }
6430if test "${lt_cv_ld_reload_flag+set}" = set; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  lt_cv_ld_reload_flag='-r'
6434fi
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6436$as_echo "$lt_cv_ld_reload_flag" >&6; }
6437reload_flag=$lt_cv_ld_reload_flag
6438case $reload_flag in
6439"" | " "*) ;;
6440*) reload_flag=" $reload_flag" ;;
6441esac
6442reload_cmds='$LD$reload_flag -o $output$reload_objs'
6443case $host_os in
6444  darwin*)
6445    if test "$GCC" = yes; then
6446      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6447    else
6448      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6449    fi
6450    ;;
6451esac
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461if test -n "$ac_tool_prefix"; then
6462  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6463set dummy ${ac_tool_prefix}objdump; ac_word=$2
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465$as_echo_n "checking for $ac_word... " >&6; }
6466if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6467  $as_echo_n "(cached) " >&6
6468else
6469  if test -n "$OBJDUMP"; then
6470  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475  IFS=$as_save_IFS
6476  test -z "$as_dir" && as_dir=.
6477    for ac_exec_ext in '' $ac_executable_extensions; do
6478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481    break 2
6482  fi
6483done
6484  done
6485IFS=$as_save_IFS
6486
6487fi
6488fi
6489OBJDUMP=$ac_cv_prog_OBJDUMP
6490if test -n "$OBJDUMP"; then
6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6492$as_echo "$OBJDUMP" >&6; }
6493else
6494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495$as_echo "no" >&6; }
6496fi
6497
6498
6499fi
6500if test -z "$ac_cv_prog_OBJDUMP"; then
6501  ac_ct_OBJDUMP=$OBJDUMP
6502  # Extract the first word of "objdump", so it can be a program name with args.
6503set dummy objdump; ac_word=$2
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505$as_echo_n "checking for $ac_word... " >&6; }
6506if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  if test -n "$ac_ct_OBJDUMP"; then
6510  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515  IFS=$as_save_IFS
6516  test -z "$as_dir" && as_dir=.
6517    for ac_exec_ext in '' $ac_executable_extensions; do
6518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521    break 2
6522  fi
6523done
6524  done
6525IFS=$as_save_IFS
6526
6527fi
6528fi
6529ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6530if test -n "$ac_ct_OBJDUMP"; then
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6532$as_echo "$ac_ct_OBJDUMP" >&6; }
6533else
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535$as_echo "no" >&6; }
6536fi
6537
6538  if test "x$ac_ct_OBJDUMP" = x; then
6539    OBJDUMP="false"
6540  else
6541    case $cross_compiling:$ac_tool_warned in
6542yes:)
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545ac_tool_warned=yes ;;
6546esac
6547    OBJDUMP=$ac_ct_OBJDUMP
6548  fi
6549else
6550  OBJDUMP="$ac_cv_prog_OBJDUMP"
6551fi
6552
6553test -z "$OBJDUMP" && OBJDUMP=objdump
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6564$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6565if test "${lt_cv_deplibs_check_method+set}" = set; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  lt_cv_file_magic_cmd='$MAGIC_CMD'
6569lt_cv_file_magic_test_file=
6570lt_cv_deplibs_check_method='unknown'
6571# Need to set the preceding variable on all platforms that support
6572# interlibrary dependencies.
6573# 'none' -- dependencies not supported.
6574# `unknown' -- same as none, but documents that we really don't know.
6575# 'pass_all' -- all dependencies passed with no checks.
6576# 'test_compile' -- check by making test program.
6577# 'file_magic [[regex]]' -- check by looking for files in library path
6578# which responds to the $file_magic_cmd with a given extended regex.
6579# If you have `file' or equivalent on your system and you're not sure
6580# whether `pass_all' will *always* work, you probably want this one.
6581
6582case $host_os in
6583aix[4-9]*)
6584  lt_cv_deplibs_check_method=pass_all
6585  ;;
6586
6587beos*)
6588  lt_cv_deplibs_check_method=pass_all
6589  ;;
6590
6591bsdi[45]*)
6592  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6593  lt_cv_file_magic_cmd='/usr/bin/file -L'
6594  lt_cv_file_magic_test_file=/shlib/libc.so
6595  ;;
6596
6597cygwin*)
6598  # func_win32_libid is a shell function defined in ltmain.sh
6599  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6600  lt_cv_file_magic_cmd='func_win32_libid'
6601  ;;
6602
6603mingw* | pw32*)
6604  # Base MSYS/MinGW do not provide the 'file' command needed by
6605  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6606  # unless we find 'file', for example because we are cross-compiling.
6607  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6608  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6609    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6610    lt_cv_file_magic_cmd='func_win32_libid'
6611  else
6612    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6613    lt_cv_file_magic_cmd='$OBJDUMP -f'
6614  fi
6615  ;;
6616
6617cegcc*)
6618  # use the weaker test based on 'objdump'. See mingw*.
6619  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6620  lt_cv_file_magic_cmd='$OBJDUMP -f'
6621  ;;
6622
6623darwin* | rhapsody*)
6624  lt_cv_deplibs_check_method=pass_all
6625  ;;
6626
6627freebsd* | dragonfly*)
6628  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6629    case $host_cpu in
6630    i*86 )
6631      # Not sure whether the presence of OpenBSD here was a mistake.
6632      # Let's accept both of them until this is cleared up.
6633      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6634      lt_cv_file_magic_cmd=/usr/bin/file
6635      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6636      ;;
6637    esac
6638  else
6639    lt_cv_deplibs_check_method=pass_all
6640  fi
6641  ;;
6642
6643gnu*)
6644  lt_cv_deplibs_check_method=pass_all
6645  ;;
6646
6647haiku*)
6648  lt_cv_deplibs_check_method=pass_all
6649  ;;
6650
6651hpux10.20* | hpux11*)
6652  lt_cv_file_magic_cmd=/usr/bin/file
6653  case $host_cpu in
6654  ia64*)
6655    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6656    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6657    ;;
6658  hppa*64*)
6659    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]'
6660    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6661    ;;
6662  *)
6663    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6664    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6665    ;;
6666  esac
6667  ;;
6668
6669interix[3-9]*)
6670  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6671  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6672  ;;
6673
6674irix5* | irix6* | nonstopux*)
6675  case $LD in
6676  *-32|*"-32 ") libmagic=32-bit;;
6677  *-n32|*"-n32 ") libmagic=N32;;
6678  *-64|*"-64 ") libmagic=64-bit;;
6679  *) libmagic=never-match;;
6680  esac
6681  lt_cv_deplibs_check_method=pass_all
6682  ;;
6683
6684# This must be Linux ELF.
6685linux* | k*bsd*-gnu | kopensolaris*-gnu)
6686  lt_cv_deplibs_check_method=pass_all
6687  ;;
6688
6689netbsd*)
6690  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6691    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6692  else
6693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6694  fi
6695  ;;
6696
6697newos6*)
6698  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6699  lt_cv_file_magic_cmd=/usr/bin/file
6700  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6701  ;;
6702
6703*nto* | *qnx*)
6704  lt_cv_deplibs_check_method=pass_all
6705  ;;
6706
6707openbsd*)
6708  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6709    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6710  else
6711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712  fi
6713  ;;
6714
6715osf3* | osf4* | osf5*)
6716  lt_cv_deplibs_check_method=pass_all
6717  ;;
6718
6719rdos*)
6720  lt_cv_deplibs_check_method=pass_all
6721  ;;
6722
6723solaris*)
6724  lt_cv_deplibs_check_method=pass_all
6725  ;;
6726
6727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6728  lt_cv_deplibs_check_method=pass_all
6729  ;;
6730
6731sysv4 | sysv4.3*)
6732  case $host_vendor in
6733  motorola)
6734    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]'
6735    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6736    ;;
6737  ncr)
6738    lt_cv_deplibs_check_method=pass_all
6739    ;;
6740  sequent)
6741    lt_cv_file_magic_cmd='/bin/file'
6742    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6743    ;;
6744  sni)
6745    lt_cv_file_magic_cmd='/bin/file'
6746    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6747    lt_cv_file_magic_test_file=/lib/libc.so
6748    ;;
6749  siemens)
6750    lt_cv_deplibs_check_method=pass_all
6751    ;;
6752  pc)
6753    lt_cv_deplibs_check_method=pass_all
6754    ;;
6755  esac
6756  ;;
6757
6758tpf*)
6759  lt_cv_deplibs_check_method=pass_all
6760  ;;
6761esac
6762
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6765$as_echo "$lt_cv_deplibs_check_method" >&6; }
6766file_magic_cmd=$lt_cv_file_magic_cmd
6767deplibs_check_method=$lt_cv_deplibs_check_method
6768test -z "$deplibs_check_method" && deplibs_check_method=unknown
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781if test -n "$ac_tool_prefix"; then
6782  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6783set dummy ${ac_tool_prefix}ar; ac_word=$2
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785$as_echo_n "checking for $ac_word... " >&6; }
6786if test "${ac_cv_prog_AR+set}" = set; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  if test -n "$AR"; then
6790  ac_cv_prog_AR="$AR" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795  IFS=$as_save_IFS
6796  test -z "$as_dir" && as_dir=.
6797    for ac_exec_ext in '' $ac_executable_extensions; do
6798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799    ac_cv_prog_AR="${ac_tool_prefix}ar"
6800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801    break 2
6802  fi
6803done
6804  done
6805IFS=$as_save_IFS
6806
6807fi
6808fi
6809AR=$ac_cv_prog_AR
6810if test -n "$AR"; then
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6812$as_echo "$AR" >&6; }
6813else
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
6816fi
6817
6818
6819fi
6820if test -z "$ac_cv_prog_AR"; then
6821  ac_ct_AR=$AR
6822  # Extract the first word of "ar", so it can be a program name with args.
6823set dummy ar; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$ac_ct_AR"; then
6830  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839    ac_cv_prog_ac_ct_AR="ar"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849ac_ct_AR=$ac_cv_prog_ac_ct_AR
6850if test -n "$ac_ct_AR"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6852$as_echo "$ac_ct_AR" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858  if test "x$ac_ct_AR" = x; then
6859    AR="false"
6860  else
6861    case $cross_compiling:$ac_tool_warned in
6862yes:)
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865ac_tool_warned=yes ;;
6866esac
6867    AR=$ac_ct_AR
6868  fi
6869else
6870  AR="$ac_cv_prog_AR"
6871fi
6872
6873test -z "$AR" && AR=ar
6874test -z "$AR_FLAGS" && AR_FLAGS=cru
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886if test -n "$ac_tool_prefix"; then
6887  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888set dummy ${ac_tool_prefix}strip; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if test "${ac_cv_prog_STRIP+set}" = set; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  if test -n "$STRIP"; then
6895  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900  IFS=$as_save_IFS
6901  test -z "$as_dir" && as_dir=.
6902    for ac_exec_ext in '' $ac_executable_extensions; do
6903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909  done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914STRIP=$ac_cv_prog_STRIP
6915if test -n "$STRIP"; then
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6917$as_echo "$STRIP" >&6; }
6918else
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923
6924fi
6925if test -z "$ac_cv_prog_STRIP"; then
6926  ac_ct_STRIP=$STRIP
6927  # Extract the first word of "strip", so it can be a program name with args.
6928set dummy strip; ac_word=$2
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934  if test -n "$ac_ct_STRIP"; then
6935  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940  IFS=$as_save_IFS
6941  test -z "$as_dir" && as_dir=.
6942    for ac_exec_ext in '' $ac_executable_extensions; do
6943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944    ac_cv_prog_ac_ct_STRIP="strip"
6945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946    break 2
6947  fi
6948done
6949  done
6950IFS=$as_save_IFS
6951
6952fi
6953fi
6954ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6955if test -n "$ac_ct_STRIP"; then
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6957$as_echo "$ac_ct_STRIP" >&6; }
6958else
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
6961fi
6962
6963  if test "x$ac_ct_STRIP" = x; then
6964    STRIP=":"
6965  else
6966    case $cross_compiling:$ac_tool_warned in
6967yes:)
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970ac_tool_warned=yes ;;
6971esac
6972    STRIP=$ac_ct_STRIP
6973  fi
6974else
6975  STRIP="$ac_cv_prog_STRIP"
6976fi
6977
6978test -z "$STRIP" && STRIP=:
6979
6980
6981
6982
6983
6984
6985if test -n "$ac_tool_prefix"; then
6986  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if test "${ac_cv_prog_RANLIB+set}" = set; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  if test -n "$RANLIB"; then
6994  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001    for ac_exec_ext in '' $ac_executable_extensions; do
7002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008  done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013RANLIB=$ac_cv_prog_RANLIB
7014if test -n "$RANLIB"; then
7015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7016$as_echo "$RANLIB" >&6; }
7017else
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023fi
7024if test -z "$ac_cv_prog_RANLIB"; then
7025  ac_ct_RANLIB=$RANLIB
7026  # Extract the first word of "ranlib", so it can be a program name with args.
7027set dummy ranlib; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$ac_ct_RANLIB"; then
7034  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043    ac_cv_prog_ac_ct_RANLIB="ranlib"
7044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7054if test -n "$ac_ct_RANLIB"; then
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7056$as_echo "$ac_ct_RANLIB" >&6; }
7057else
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062  if test "x$ac_ct_RANLIB" = x; then
7063    RANLIB=":"
7064  else
7065    case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071    RANLIB=$ac_ct_RANLIB
7072  fi
7073else
7074  RANLIB="$ac_cv_prog_RANLIB"
7075fi
7076
7077test -z "$RANLIB" && RANLIB=:
7078
7079
7080
7081
7082
7083
7084# Determine commands to create old-style static archives.
7085old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7086old_postinstall_cmds='chmod 644 $oldlib'
7087old_postuninstall_cmds=
7088
7089if test -n "$RANLIB"; then
7090  case $host_os in
7091  openbsd*)
7092    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7093    ;;
7094  *)
7095    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7096    ;;
7097  esac
7098  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7099fi
7100
7101case $host_os in
7102  darwin*)
7103    lock_old_archive_extraction=yes ;;
7104  *)
7105    lock_old_archive_extraction=no ;;
7106esac
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146# If no C compiler was specified, use CC.
7147LTCC=${LTCC-"$CC"}
7148
7149# If no C compiler flags were specified, use CFLAGS.
7150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7151
7152# Allow CC to be a program name with arguments.
7153compiler=$CC
7154
7155
7156# Check for command to grab the raw symbol name followed by C symbol from nm.
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7158$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7159if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162
7163# These are sane defaults that work on at least a few old systems.
7164# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7165
7166# Character class describing NM global symbol codes.
7167symcode='[BCDEGRST]'
7168
7169# Regexp to match symbols that can be accessed directly from C.
7170sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7171
7172# Define system-specific variables.
7173case $host_os in
7174aix*)
7175  symcode='[BCDT]'
7176  ;;
7177cygwin* | mingw* | pw32* | cegcc*)
7178  symcode='[ABCDGISTW]'
7179  ;;
7180hpux*)
7181  if test "$host_cpu" = ia64; then
7182    symcode='[ABCDEGRST]'
7183  fi
7184  ;;
7185irix* | nonstopux*)
7186  symcode='[BCDEGRST]'
7187  ;;
7188osf*)
7189  symcode='[BCDEGQRST]'
7190  ;;
7191solaris*)
7192  symcode='[BDRT]'
7193  ;;
7194sco3.2v5*)
7195  symcode='[DT]'
7196  ;;
7197sysv4.2uw2*)
7198  symcode='[DT]'
7199  ;;
7200sysv5* | sco5v6* | unixware* | OpenUNIX*)
7201  symcode='[ABDT]'
7202  ;;
7203sysv4)
7204  symcode='[DFNSTU]'
7205  ;;
7206esac
7207
7208# If we're using GNU nm, then use its standard symbol codes.
7209case `$NM -V 2>&1` in
7210*GNU* | *'with BFD'*)
7211  symcode='[ABCDGIRSTW]' ;;
7212esac
7213
7214# Transform an extracted symbol line into a proper C declaration.
7215# Some systems (esp. on ia64) link data and code symbols differently,
7216# so use this general approach.
7217lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7218
7219# Transform an extracted symbol line into symbol name and symbol address
7220lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7221lt_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'"
7222
7223# Handle CRLF in mingw tool chain
7224opt_cr=
7225case $build_os in
7226mingw*)
7227  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7228  ;;
7229esac
7230
7231# Try without a prefix underscore, then with it.
7232for ac_symprfx in "" "_"; do
7233
7234  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7235  symxfrm="\\1 $ac_symprfx\\2 \\2"
7236
7237  # Write the raw and C identifiers.
7238  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7239    # Fake it for dumpbin and say T for any non-static function
7240    # and D for any global variable.
7241    # Also find C++ and __fastcall symbols from MSVC++,
7242    # which start with @ or ?.
7243    lt_cv_sys_global_symbol_pipe="$AWK '"\
7244"     {last_section=section; section=\$ 3};"\
7245"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7246"     \$ 0!~/External *\|/{next};"\
7247"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7248"     {if(hide[section]) next};"\
7249"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7250"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7251"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7252"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7253"     ' prfx=^$ac_symprfx"
7254  else
7255    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7256  fi
7257
7258  # Check to see that the pipe works correctly.
7259  pipe_works=no
7260
7261  rm -f conftest*
7262  cat > conftest.$ac_ext <<_LT_EOF
7263#ifdef __cplusplus
7264extern "C" {
7265#endif
7266char nm_test_var;
7267void nm_test_func(void);
7268void nm_test_func(void){}
7269#ifdef __cplusplus
7270}
7271#endif
7272int main(){nm_test_var='a';nm_test_func();return(0);}
7273_LT_EOF
7274
7275  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7276  (eval $ac_compile) 2>&5
7277  ac_status=$?
7278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279  test $ac_status = 0; }; then
7280    # Now try to grab the symbols.
7281    nlist=conftest.nm
7282    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7283  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7284  ac_status=$?
7285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286  test $ac_status = 0; } && test -s "$nlist"; then
7287      # Try sorting and uniquifying the output.
7288      if sort "$nlist" | uniq > "$nlist"T; then
7289	mv -f "$nlist"T "$nlist"
7290      else
7291	rm -f "$nlist"T
7292      fi
7293
7294      # Make sure that we snagged all the symbols we need.
7295      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7296	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7297	  cat <<_LT_EOF > conftest.$ac_ext
7298#ifdef __cplusplus
7299extern "C" {
7300#endif
7301
7302_LT_EOF
7303	  # Now generate the symbol file.
7304	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7305
7306	  cat <<_LT_EOF >> conftest.$ac_ext
7307
7308/* The mapping between symbol names and symbols.  */
7309const struct {
7310  const char *name;
7311  void       *address;
7312}
7313lt__PROGRAM__LTX_preloaded_symbols[] =
7314{
7315  { "@PROGRAM@", (void *) 0 },
7316_LT_EOF
7317	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7318	  cat <<\_LT_EOF >> conftest.$ac_ext
7319  {0, (void *) 0}
7320};
7321
7322/* This works around a problem in FreeBSD linker */
7323#ifdef FREEBSD_WORKAROUND
7324static const void *lt_preloaded_setup() {
7325  return lt__PROGRAM__LTX_preloaded_symbols;
7326}
7327#endif
7328
7329#ifdef __cplusplus
7330}
7331#endif
7332_LT_EOF
7333	  # Now try linking the two files.
7334	  mv conftest.$ac_objext conftstm.$ac_objext
7335	  lt_save_LIBS="$LIBS"
7336	  lt_save_CFLAGS="$CFLAGS"
7337	  LIBS="conftstm.$ac_objext"
7338	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7339	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7340  (eval $ac_link) 2>&5
7341  ac_status=$?
7342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7344	    pipe_works=yes
7345	  fi
7346	  LIBS="$lt_save_LIBS"
7347	  CFLAGS="$lt_save_CFLAGS"
7348	else
7349	  echo "cannot find nm_test_func in $nlist" >&5
7350	fi
7351      else
7352	echo "cannot find nm_test_var in $nlist" >&5
7353      fi
7354    else
7355      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7356    fi
7357  else
7358    echo "$progname: failed program was:" >&5
7359    cat conftest.$ac_ext >&5
7360  fi
7361  rm -rf conftest* conftst*
7362
7363  # Do not use the global_symbol_pipe unless it works.
7364  if test "$pipe_works" = yes; then
7365    break
7366  else
7367    lt_cv_sys_global_symbol_pipe=
7368  fi
7369done
7370
7371fi
7372
7373if test -z "$lt_cv_sys_global_symbol_pipe"; then
7374  lt_cv_sys_global_symbol_to_cdecl=
7375fi
7376if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7378$as_echo "failed" >&6; }
7379else
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7381$as_echo "ok" >&6; }
7382fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405# Check whether --enable-libtool-lock was given.
7406if test "${enable_libtool_lock+set}" = set; then :
7407  enableval=$enable_libtool_lock;
7408fi
7409
7410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7411
7412# Some flags need to be propagated to the compiler or linker for good
7413# libtool support.
7414case $host in
7415ia64-*-hpux*)
7416  # Find out which ABI we are using.
7417  echo 'int i;' > conftest.$ac_ext
7418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7419  (eval $ac_compile) 2>&5
7420  ac_status=$?
7421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422  test $ac_status = 0; }; then
7423    case `/usr/bin/file conftest.$ac_objext` in
7424      *ELF-32*)
7425	HPUX_IA64_MODE="32"
7426	;;
7427      *ELF-64*)
7428	HPUX_IA64_MODE="64"
7429	;;
7430    esac
7431  fi
7432  rm -rf conftest*
7433  ;;
7434*-*-irix6*)
7435  # Find out which ABI we are using.
7436  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7437  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438  (eval $ac_compile) 2>&5
7439  ac_status=$?
7440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441  test $ac_status = 0; }; then
7442    if test "$lt_cv_prog_gnu_ld" = yes; then
7443      case `/usr/bin/file conftest.$ac_objext` in
7444	*32-bit*)
7445	  LD="${LD-ld} -melf32bsmip"
7446	  ;;
7447	*N32*)
7448	  LD="${LD-ld} -melf32bmipn32"
7449	  ;;
7450	*64-bit*)
7451	  LD="${LD-ld} -melf64bmip"
7452	;;
7453      esac
7454    else
7455      case `/usr/bin/file conftest.$ac_objext` in
7456	*32-bit*)
7457	  LD="${LD-ld} -32"
7458	  ;;
7459	*N32*)
7460	  LD="${LD-ld} -n32"
7461	  ;;
7462	*64-bit*)
7463	  LD="${LD-ld} -64"
7464	  ;;
7465      esac
7466    fi
7467  fi
7468  rm -rf conftest*
7469  ;;
7470
7471x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7472s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7473  # Find out which ABI we are using.
7474  echo 'int i;' > conftest.$ac_ext
7475  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7476  (eval $ac_compile) 2>&5
7477  ac_status=$?
7478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479  test $ac_status = 0; }; then
7480    case `/usr/bin/file conftest.o` in
7481      *32-bit*)
7482	case $host in
7483	  x86_64-*kfreebsd*-gnu)
7484	    LD="${LD-ld} -m elf_i386_fbsd"
7485	    ;;
7486	  x86_64-*linux*)
7487	    case `/usr/bin/file conftest.o` in
7488	      *x86-64*)
7489		LD="${LD-ld} -m elf32_x86_64"
7490		;;
7491	      *)
7492		LD="${LD-ld} -m elf_i386"
7493		;;
7494	    esac
7495	    ;;
7496	  powerpc64le-*linux*)
7497	    LD="${LD-ld} -m elf32lppclinux"
7498	    ;;
7499	  powerpc64-*linux*)
7500	    LD="${LD-ld} -m elf32ppclinux"
7501	    ;;
7502	  s390x-*linux*)
7503	    LD="${LD-ld} -m elf_s390"
7504	    ;;
7505	  sparc64-*linux*)
7506	    LD="${LD-ld} -m elf32_sparc"
7507	    ;;
7508	esac
7509	;;
7510      *64-bit*)
7511	case $host in
7512	  x86_64-*kfreebsd*-gnu)
7513	    LD="${LD-ld} -m elf_x86_64_fbsd"
7514	    ;;
7515	  x86_64-*linux*)
7516	    LD="${LD-ld} -m elf_x86_64"
7517	    ;;
7518	  powerpcle-*linux*)
7519	    LD="${LD-ld} -m elf64lppc"
7520	    ;;
7521	  powerpc-*linux*)
7522	    LD="${LD-ld} -m elf64ppc"
7523	    ;;
7524	  s390*-*linux*|s390*-*tpf*)
7525	    LD="${LD-ld} -m elf64_s390"
7526	    ;;
7527	  sparc*-*linux*)
7528	    LD="${LD-ld} -m elf64_sparc"
7529	    ;;
7530	esac
7531	;;
7532    esac
7533  fi
7534  rm -rf conftest*
7535  ;;
7536
7537*-*-sco3.2v5*)
7538  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7539  SAVE_CFLAGS="$CFLAGS"
7540  CFLAGS="$CFLAGS -belf"
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7542$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7543if test "${lt_cv_cc_needs_belf+set}" = set; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  ac_ext=c
7547ac_cpp='$CPP $CPPFLAGS'
7548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551
7552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554
7555int
7556main ()
7557{
7558
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563if ac_fn_c_try_link "$LINENO"; then :
7564  lt_cv_cc_needs_belf=yes
7565else
7566  lt_cv_cc_needs_belf=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext \
7569    conftest$ac_exeext conftest.$ac_ext
7570     ac_ext=c
7571ac_cpp='$CPP $CPPFLAGS'
7572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574ac_compiler_gnu=$ac_cv_c_compiler_gnu
7575
7576fi
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7578$as_echo "$lt_cv_cc_needs_belf" >&6; }
7579  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7580    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7581    CFLAGS="$SAVE_CFLAGS"
7582  fi
7583  ;;
7584sparc*-*solaris*)
7585  # Find out which ABI we are using.
7586  echo 'int i;' > conftest.$ac_ext
7587  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7588  (eval $ac_compile) 2>&5
7589  ac_status=$?
7590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591  test $ac_status = 0; }; then
7592    case `/usr/bin/file conftest.o` in
7593    *64-bit*)
7594      case $lt_cv_prog_gnu_ld in
7595      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7596      *)
7597	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7598	  LD="${LD-ld} -64"
7599	fi
7600	;;
7601      esac
7602      ;;
7603    esac
7604  fi
7605  rm -rf conftest*
7606  ;;
7607esac
7608
7609need_locks="$enable_libtool_lock"
7610
7611
7612  case $host_os in
7613    rhapsody* | darwin*)
7614    if test -n "$ac_tool_prefix"; then
7615  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7616set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618$as_echo_n "checking for $ac_word... " >&6; }
7619if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  if test -n "$DSYMUTIL"; then
7623  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628  IFS=$as_save_IFS
7629  test -z "$as_dir" && as_dir=.
7630    for ac_exec_ext in '' $ac_executable_extensions; do
7631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634    break 2
7635  fi
7636done
7637  done
7638IFS=$as_save_IFS
7639
7640fi
7641fi
7642DSYMUTIL=$ac_cv_prog_DSYMUTIL
7643if test -n "$DSYMUTIL"; then
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7645$as_echo "$DSYMUTIL" >&6; }
7646else
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
7649fi
7650
7651
7652fi
7653if test -z "$ac_cv_prog_DSYMUTIL"; then
7654  ac_ct_DSYMUTIL=$DSYMUTIL
7655  # Extract the first word of "dsymutil", so it can be a program name with args.
7656set dummy dsymutil; ac_word=$2
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658$as_echo_n "checking for $ac_word... " >&6; }
7659if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7660  $as_echo_n "(cached) " >&6
7661else
7662  if test -n "$ac_ct_DSYMUTIL"; then
7663  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7664else
7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668  IFS=$as_save_IFS
7669  test -z "$as_dir" && as_dir=.
7670    for ac_exec_ext in '' $ac_executable_extensions; do
7671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674    break 2
7675  fi
7676done
7677  done
7678IFS=$as_save_IFS
7679
7680fi
7681fi
7682ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7683if test -n "$ac_ct_DSYMUTIL"; then
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7685$as_echo "$ac_ct_DSYMUTIL" >&6; }
7686else
7687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688$as_echo "no" >&6; }
7689fi
7690
7691  if test "x$ac_ct_DSYMUTIL" = x; then
7692    DSYMUTIL=":"
7693  else
7694    case $cross_compiling:$ac_tool_warned in
7695yes:)
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698ac_tool_warned=yes ;;
7699esac
7700    DSYMUTIL=$ac_ct_DSYMUTIL
7701  fi
7702else
7703  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7704fi
7705
7706    if test -n "$ac_tool_prefix"; then
7707  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7708set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
7711if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  if test -n "$NMEDIT"; then
7715  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720  IFS=$as_save_IFS
7721  test -z "$as_dir" && as_dir=.
7722    for ac_exec_ext in '' $ac_executable_extensions; do
7723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726    break 2
7727  fi
7728done
7729  done
7730IFS=$as_save_IFS
7731
7732fi
7733fi
7734NMEDIT=$ac_cv_prog_NMEDIT
7735if test -n "$NMEDIT"; then
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7737$as_echo "$NMEDIT" >&6; }
7738else
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
7742
7743
7744fi
7745if test -z "$ac_cv_prog_NMEDIT"; then
7746  ac_ct_NMEDIT=$NMEDIT
7747  # Extract the first word of "nmedit", so it can be a program name with args.
7748set dummy nmedit; ac_word=$2
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750$as_echo_n "checking for $ac_word... " >&6; }
7751if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  if test -n "$ac_ct_NMEDIT"; then
7755  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7756else
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760  IFS=$as_save_IFS
7761  test -z "$as_dir" && as_dir=.
7762    for ac_exec_ext in '' $ac_executable_extensions; do
7763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766    break 2
7767  fi
7768done
7769  done
7770IFS=$as_save_IFS
7771
7772fi
7773fi
7774ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7775if test -n "$ac_ct_NMEDIT"; then
7776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7777$as_echo "$ac_ct_NMEDIT" >&6; }
7778else
7779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
7781fi
7782
7783  if test "x$ac_ct_NMEDIT" = x; then
7784    NMEDIT=":"
7785  else
7786    case $cross_compiling:$ac_tool_warned in
7787yes:)
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7790ac_tool_warned=yes ;;
7791esac
7792    NMEDIT=$ac_ct_NMEDIT
7793  fi
7794else
7795  NMEDIT="$ac_cv_prog_NMEDIT"
7796fi
7797
7798    if test -n "$ac_tool_prefix"; then
7799  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7800set dummy ${ac_tool_prefix}lipo; ac_word=$2
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
7803if test "${ac_cv_prog_LIPO+set}" = set; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  if test -n "$LIPO"; then
7807  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812  IFS=$as_save_IFS
7813  test -z "$as_dir" && as_dir=.
7814    for ac_exec_ext in '' $ac_executable_extensions; do
7815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818    break 2
7819  fi
7820done
7821  done
7822IFS=$as_save_IFS
7823
7824fi
7825fi
7826LIPO=$ac_cv_prog_LIPO
7827if test -n "$LIPO"; then
7828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7829$as_echo "$LIPO" >&6; }
7830else
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
7834
7835
7836fi
7837if test -z "$ac_cv_prog_LIPO"; then
7838  ac_ct_LIPO=$LIPO
7839  # Extract the first word of "lipo", so it can be a program name with args.
7840set dummy lipo; ac_word=$2
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842$as_echo_n "checking for $ac_word... " >&6; }
7843if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7844  $as_echo_n "(cached) " >&6
7845else
7846  if test -n "$ac_ct_LIPO"; then
7847  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852  IFS=$as_save_IFS
7853  test -z "$as_dir" && as_dir=.
7854    for ac_exec_ext in '' $ac_executable_extensions; do
7855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856    ac_cv_prog_ac_ct_LIPO="lipo"
7857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858    break 2
7859  fi
7860done
7861  done
7862IFS=$as_save_IFS
7863
7864fi
7865fi
7866ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7867if test -n "$ac_ct_LIPO"; then
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7869$as_echo "$ac_ct_LIPO" >&6; }
7870else
7871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
7873fi
7874
7875  if test "x$ac_ct_LIPO" = x; then
7876    LIPO=":"
7877  else
7878    case $cross_compiling:$ac_tool_warned in
7879yes:)
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7882ac_tool_warned=yes ;;
7883esac
7884    LIPO=$ac_ct_LIPO
7885  fi
7886else
7887  LIPO="$ac_cv_prog_LIPO"
7888fi
7889
7890    if test -n "$ac_tool_prefix"; then
7891  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7892set dummy ${ac_tool_prefix}otool; ac_word=$2
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if test "${ac_cv_prog_OTOOL+set}" = set; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  if test -n "$OTOOL"; then
7899  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904  IFS=$as_save_IFS
7905  test -z "$as_dir" && as_dir=.
7906    for ac_exec_ext in '' $ac_executable_extensions; do
7907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910    break 2
7911  fi
7912done
7913  done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
7918OTOOL=$ac_cv_prog_OTOOL
7919if test -n "$OTOOL"; then
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7921$as_echo "$OTOOL" >&6; }
7922else
7923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925fi
7926
7927
7928fi
7929if test -z "$ac_cv_prog_OTOOL"; then
7930  ac_ct_OTOOL=$OTOOL
7931  # Extract the first word of "otool", so it can be a program name with args.
7932set dummy otool; ac_word=$2
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  if test -n "$ac_ct_OTOOL"; then
7939  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944  IFS=$as_save_IFS
7945  test -z "$as_dir" && as_dir=.
7946    for ac_exec_ext in '' $ac_executable_extensions; do
7947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948    ac_cv_prog_ac_ct_OTOOL="otool"
7949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950    break 2
7951  fi
7952done
7953  done
7954IFS=$as_save_IFS
7955
7956fi
7957fi
7958ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7959if test -n "$ac_ct_OTOOL"; then
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7961$as_echo "$ac_ct_OTOOL" >&6; }
7962else
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
7965fi
7966
7967  if test "x$ac_ct_OTOOL" = x; then
7968    OTOOL=":"
7969  else
7970    case $cross_compiling:$ac_tool_warned in
7971yes:)
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7974ac_tool_warned=yes ;;
7975esac
7976    OTOOL=$ac_ct_OTOOL
7977  fi
7978else
7979  OTOOL="$ac_cv_prog_OTOOL"
7980fi
7981
7982    if test -n "$ac_tool_prefix"; then
7983  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7984set dummy ${ac_tool_prefix}otool64; ac_word=$2
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986$as_echo_n "checking for $ac_word... " >&6; }
7987if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7988  $as_echo_n "(cached) " >&6
7989else
7990  if test -n "$OTOOL64"; then
7991  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7992else
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996  IFS=$as_save_IFS
7997  test -z "$as_dir" && as_dir=.
7998    for ac_exec_ext in '' $ac_executable_extensions; do
7999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8000    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002    break 2
8003  fi
8004done
8005  done
8006IFS=$as_save_IFS
8007
8008fi
8009fi
8010OTOOL64=$ac_cv_prog_OTOOL64
8011if test -n "$OTOOL64"; then
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8013$as_echo "$OTOOL64" >&6; }
8014else
8015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
8017fi
8018
8019
8020fi
8021if test -z "$ac_cv_prog_OTOOL64"; then
8022  ac_ct_OTOOL64=$OTOOL64
8023  # Extract the first word of "otool64", so it can be a program name with args.
8024set dummy otool64; ac_word=$2
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026$as_echo_n "checking for $ac_word... " >&6; }
8027if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030  if test -n "$ac_ct_OTOOL64"; then
8031  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8032else
8033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036  IFS=$as_save_IFS
8037  test -z "$as_dir" && as_dir=.
8038    for ac_exec_ext in '' $ac_executable_extensions; do
8039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040    ac_cv_prog_ac_ct_OTOOL64="otool64"
8041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042    break 2
8043  fi
8044done
8045  done
8046IFS=$as_save_IFS
8047
8048fi
8049fi
8050ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8051if test -n "$ac_ct_OTOOL64"; then
8052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8053$as_echo "$ac_ct_OTOOL64" >&6; }
8054else
8055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
8057fi
8058
8059  if test "x$ac_ct_OTOOL64" = x; then
8060    OTOOL64=":"
8061  else
8062    case $cross_compiling:$ac_tool_warned in
8063yes:)
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8066ac_tool_warned=yes ;;
8067esac
8068    OTOOL64=$ac_ct_OTOOL64
8069  fi
8070else
8071  OTOOL64="$ac_cv_prog_OTOOL64"
8072fi
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8101$as_echo_n "checking for -single_module linker flag... " >&6; }
8102if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8103  $as_echo_n "(cached) " >&6
8104else
8105  lt_cv_apple_cc_single_mod=no
8106      if test -z "${LT_MULTI_MODULE}"; then
8107	# By default we will add the -single_module flag. You can override
8108	# by either setting the environment variable LT_MULTI_MODULE
8109	# non-empty at configure time, or by adding -multi_module to the
8110	# link flags.
8111	rm -rf libconftest.dylib*
8112	echo "int foo(void){return 1;}" > conftest.c
8113	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114-dynamiclib -Wl,-single_module conftest.c" >&5
8115	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8117        _lt_result=$?
8118	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8119	  lt_cv_apple_cc_single_mod=yes
8120	else
8121	  cat conftest.err >&5
8122	fi
8123	rm -rf libconftest.dylib*
8124	rm -f conftest.*
8125      fi
8126fi
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8128$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8130$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8131if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8132  $as_echo_n "(cached) " >&6
8133else
8134  lt_cv_ld_exported_symbols_list=no
8135      save_LDFLAGS=$LDFLAGS
8136      echo "_main" > conftest.sym
8137      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8138      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140
8141int
8142main ()
8143{
8144
8145  ;
8146  return 0;
8147}
8148_ACEOF
8149if ac_fn_c_try_link "$LINENO"; then :
8150  lt_cv_ld_exported_symbols_list=yes
8151else
8152  lt_cv_ld_exported_symbols_list=no
8153fi
8154rm -f core conftest.err conftest.$ac_objext \
8155    conftest$ac_exeext conftest.$ac_ext
8156	LDFLAGS="$save_LDFLAGS"
8157
8158fi
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8160$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8162$as_echo_n "checking for -force_load linker flag... " >&6; }
8163if test "${lt_cv_ld_force_load+set}" = set; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  lt_cv_ld_force_load=no
8167      cat > conftest.c << _LT_EOF
8168int forced_loaded() { return 2;}
8169_LT_EOF
8170      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8171      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8172      echo "$AR cru libconftest.a conftest.o" >&5
8173      $AR cru libconftest.a conftest.o 2>&5
8174      cat > conftest.c << _LT_EOF
8175int main() { return 0;}
8176_LT_EOF
8177      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8178      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8179      _lt_result=$?
8180      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8181	lt_cv_ld_force_load=yes
8182      else
8183	cat conftest.err >&5
8184      fi
8185        rm -f conftest.err libconftest.a conftest conftest.c
8186        rm -rf conftest.dSYM
8187
8188fi
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8190$as_echo "$lt_cv_ld_force_load" >&6; }
8191    case $host_os in
8192    rhapsody* | darwin1.[012])
8193      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8194    darwin1.*)
8195      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8196    darwin*) # darwin 5.x on
8197      # if running on 10.5 or later, the deployment target defaults
8198      # to the OS version, if on x86, and 10.4, the deployment
8199      # target defaults to 10.4. Don't you love it?
8200      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8201	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8202	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8203	10.[012]*)
8204	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8205	10.*)
8206	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8207      esac
8208    ;;
8209  esac
8210    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8211      _lt_dar_single_mod='$single_module'
8212    fi
8213    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8214      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8215    else
8216      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8217    fi
8218    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8219      _lt_dsymutil='~$DSYMUTIL $lib || :'
8220    else
8221      _lt_dsymutil=
8222    fi
8223    ;;
8224  esac
8225
8226for ac_header in dlfcn.h
8227do :
8228  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8229"
8230if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8231  cat >>confdefs.h <<_ACEOF
8232#define HAVE_DLFCN_H 1
8233_ACEOF
8234
8235fi
8236
8237done
8238
8239
8240
8241
8242
8243
8244# Set options
8245
8246
8247
8248        enable_dlopen=no
8249
8250
8251  enable_win32_dll=no
8252
8253
8254            # Check whether --enable-shared was given.
8255if test "${enable_shared+set}" = set; then :
8256  enableval=$enable_shared; p=${PACKAGE-default}
8257    case $enableval in
8258    yes) enable_shared=yes ;;
8259    no) enable_shared=no ;;
8260    *)
8261      enable_shared=no
8262      # Look at the argument we got.  We use all the common list separators.
8263      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8264      for pkg in $enableval; do
8265	IFS="$lt_save_ifs"
8266	if test "X$pkg" = "X$p"; then
8267	  enable_shared=yes
8268	fi
8269      done
8270      IFS="$lt_save_ifs"
8271      ;;
8272    esac
8273else
8274  enable_shared=yes
8275fi
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285  # Check whether --enable-static was given.
8286if test "${enable_static+set}" = set; then :
8287  enableval=$enable_static; p=${PACKAGE-default}
8288    case $enableval in
8289    yes) enable_static=yes ;;
8290    no) enable_static=no ;;
8291    *)
8292     enable_static=no
8293      # Look at the argument we got.  We use all the common list separators.
8294      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295      for pkg in $enableval; do
8296	IFS="$lt_save_ifs"
8297	if test "X$pkg" = "X$p"; then
8298	  enable_static=yes
8299	fi
8300      done
8301      IFS="$lt_save_ifs"
8302      ;;
8303    esac
8304else
8305  enable_static=yes
8306fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317# Check whether --with-pic was given.
8318if test "${with_pic+set}" = set; then :
8319  withval=$with_pic; pic_mode="$withval"
8320else
8321  pic_mode=default
8322fi
8323
8324
8325test -z "$pic_mode" && pic_mode=default
8326
8327
8328
8329
8330
8331
8332
8333  # Check whether --enable-fast-install was given.
8334if test "${enable_fast_install+set}" = set; then :
8335  enableval=$enable_fast_install; p=${PACKAGE-default}
8336    case $enableval in
8337    yes) enable_fast_install=yes ;;
8338    no) enable_fast_install=no ;;
8339    *)
8340      enable_fast_install=no
8341      # Look at the argument we got.  We use all the common list separators.
8342      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8343      for pkg in $enableval; do
8344	IFS="$lt_save_ifs"
8345	if test "X$pkg" = "X$p"; then
8346	  enable_fast_install=yes
8347	fi
8348      done
8349      IFS="$lt_save_ifs"
8350      ;;
8351    esac
8352else
8353  enable_fast_install=yes
8354fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366# This can be used to rebuild libtool when needed
8367LIBTOOL_DEPS="$ltmain"
8368
8369# Always use our own libtool.
8370LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397test -z "$LN_S" && LN_S="ln -s"
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412if test -n "${ZSH_VERSION+set}" ; then
8413   setopt NO_GLOB_SUBST
8414fi
8415
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8417$as_echo_n "checking for objdir... " >&6; }
8418if test "${lt_cv_objdir+set}" = set; then :
8419  $as_echo_n "(cached) " >&6
8420else
8421  rm -f .libs 2>/dev/null
8422mkdir .libs 2>/dev/null
8423if test -d .libs; then
8424  lt_cv_objdir=.libs
8425else
8426  # MS-DOS does not allow filenames that begin with a dot.
8427  lt_cv_objdir=_libs
8428fi
8429rmdir .libs 2>/dev/null
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8432$as_echo "$lt_cv_objdir" >&6; }
8433objdir=$lt_cv_objdir
8434
8435
8436
8437
8438
8439cat >>confdefs.h <<_ACEOF
8440#define LT_OBJDIR "$lt_cv_objdir/"
8441_ACEOF
8442
8443
8444
8445
8446case $host_os in
8447aix3*)
8448  # AIX sometimes has problems with the GCC collect2 program.  For some
8449  # reason, if we set the COLLECT_NAMES environment variable, the problems
8450  # vanish in a puff of smoke.
8451  if test "X${COLLECT_NAMES+set}" != Xset; then
8452    COLLECT_NAMES=
8453    export COLLECT_NAMES
8454  fi
8455  ;;
8456esac
8457
8458# Global variables:
8459ofile=libtool
8460can_build_shared=yes
8461
8462# All known linkers require a `.a' archive for static linking (except MSVC,
8463# which needs '.lib').
8464libext=a
8465
8466with_gnu_ld="$lt_cv_prog_gnu_ld"
8467
8468old_CC="$CC"
8469old_CFLAGS="$CFLAGS"
8470
8471# Set sane defaults for various variables
8472test -z "$CC" && CC=cc
8473test -z "$LTCC" && LTCC=$CC
8474test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8475test -z "$LD" && LD=ld
8476test -z "$ac_objext" && ac_objext=o
8477
8478for cc_temp in $compiler""; do
8479  case $cc_temp in
8480    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8482    \-*) ;;
8483    *) break;;
8484  esac
8485done
8486cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8487
8488
8489# Only perform the check for file, if the check method requires it
8490test -z "$MAGIC_CMD" && MAGIC_CMD=file
8491case $deplibs_check_method in
8492file_magic*)
8493  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8495$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8496if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8497  $as_echo_n "(cached) " >&6
8498else
8499  case $MAGIC_CMD in
8500[\\/*] |  ?:[\\/]*)
8501  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8502  ;;
8503*)
8504  lt_save_MAGIC_CMD="$MAGIC_CMD"
8505  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8506  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8507  for ac_dir in $ac_dummy; do
8508    IFS="$lt_save_ifs"
8509    test -z "$ac_dir" && ac_dir=.
8510    if test -f $ac_dir/${ac_tool_prefix}file; then
8511      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8512      if test -n "$file_magic_test_file"; then
8513	case $deplibs_check_method in
8514	"file_magic "*)
8515	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8516	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8517	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8518	    $EGREP "$file_magic_regex" > /dev/null; then
8519	    :
8520	  else
8521	    cat <<_LT_EOF 1>&2
8522
8523*** Warning: the command libtool uses to detect shared libraries,
8524*** $file_magic_cmd, produces output that libtool cannot recognize.
8525*** The result is that libtool may fail to recognize shared libraries
8526*** as such.  This will affect the creation of libtool libraries that
8527*** depend on shared libraries, but programs linked with such libtool
8528*** libraries will work regardless of this problem.  Nevertheless, you
8529*** may want to report the problem to your system manager and/or to
8530*** bug-libtool@gnu.org
8531
8532_LT_EOF
8533	  fi ;;
8534	esac
8535      fi
8536      break
8537    fi
8538  done
8539  IFS="$lt_save_ifs"
8540  MAGIC_CMD="$lt_save_MAGIC_CMD"
8541  ;;
8542esac
8543fi
8544
8545MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8546if test -n "$MAGIC_CMD"; then
8547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8548$as_echo "$MAGIC_CMD" >&6; }
8549else
8550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
8552fi
8553
8554
8555
8556
8557
8558if test -z "$lt_cv_path_MAGIC_CMD"; then
8559  if test -n "$ac_tool_prefix"; then
8560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8561$as_echo_n "checking for file... " >&6; }
8562if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  case $MAGIC_CMD in
8566[\\/*] |  ?:[\\/]*)
8567  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8568  ;;
8569*)
8570  lt_save_MAGIC_CMD="$MAGIC_CMD"
8571  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8572  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8573  for ac_dir in $ac_dummy; do
8574    IFS="$lt_save_ifs"
8575    test -z "$ac_dir" && ac_dir=.
8576    if test -f $ac_dir/file; then
8577      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8578      if test -n "$file_magic_test_file"; then
8579	case $deplibs_check_method in
8580	"file_magic "*)
8581	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8582	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8583	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8584	    $EGREP "$file_magic_regex" > /dev/null; then
8585	    :
8586	  else
8587	    cat <<_LT_EOF 1>&2
8588
8589*** Warning: the command libtool uses to detect shared libraries,
8590*** $file_magic_cmd, produces output that libtool cannot recognize.
8591*** The result is that libtool may fail to recognize shared libraries
8592*** as such.  This will affect the creation of libtool libraries that
8593*** depend on shared libraries, but programs linked with such libtool
8594*** libraries will work regardless of this problem.  Nevertheless, you
8595*** may want to report the problem to your system manager and/or to
8596*** bug-libtool@gnu.org
8597
8598_LT_EOF
8599	  fi ;;
8600	esac
8601      fi
8602      break
8603    fi
8604  done
8605  IFS="$lt_save_ifs"
8606  MAGIC_CMD="$lt_save_MAGIC_CMD"
8607  ;;
8608esac
8609fi
8610
8611MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8612if test -n "$MAGIC_CMD"; then
8613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8614$as_echo "$MAGIC_CMD" >&6; }
8615else
8616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
8618fi
8619
8620
8621  else
8622    MAGIC_CMD=:
8623  fi
8624fi
8625
8626  fi
8627  ;;
8628esac
8629
8630# Use C for the default configuration in the libtool script
8631
8632lt_save_CC="$CC"
8633ac_ext=c
8634ac_cpp='$CPP $CPPFLAGS'
8635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637ac_compiler_gnu=$ac_cv_c_compiler_gnu
8638
8639
8640# Source file extension for C test sources.
8641ac_ext=c
8642
8643# Object file extension for compiled C test sources.
8644objext=o
8645objext=$objext
8646
8647# Code to be used in simple compile tests
8648lt_simple_compile_test_code="int some_variable = 0;"
8649
8650# Code to be used in simple link tests
8651lt_simple_link_test_code='int main(){return(0);}'
8652
8653
8654
8655
8656
8657
8658
8659# If no C compiler was specified, use CC.
8660LTCC=${LTCC-"$CC"}
8661
8662# If no C compiler flags were specified, use CFLAGS.
8663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8664
8665# Allow CC to be a program name with arguments.
8666compiler=$CC
8667
8668# Save the default compiler, since it gets overwritten when the other
8669# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8670compiler_DEFAULT=$CC
8671
8672# save warnings/boilerplate of simple test code
8673ac_outfile=conftest.$ac_objext
8674echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8675eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8676_lt_compiler_boilerplate=`cat conftest.err`
8677$RM conftest*
8678
8679ac_outfile=conftest.$ac_objext
8680echo "$lt_simple_link_test_code" >conftest.$ac_ext
8681eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8682_lt_linker_boilerplate=`cat conftest.err`
8683$RM -r conftest*
8684
8685
8686## CAVEAT EMPTOR:
8687## There is no encapsulation within the following macros, do not change
8688## the running order or otherwise move them around unless you know exactly
8689## what you are doing...
8690if test -n "$compiler"; then
8691
8692lt_prog_compiler_no_builtin_flag=
8693
8694if test "$GCC" = yes; then
8695  case $cc_basename in
8696  nvcc*)
8697    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8698  *)
8699    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8700  esac
8701
8702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8703$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8704if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  lt_cv_prog_compiler_rtti_exceptions=no
8708   ac_outfile=conftest.$ac_objext
8709   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8710   lt_compiler_flag="-fno-rtti -fno-exceptions"
8711   # Insert the option either (1) after the last *FLAGS variable, or
8712   # (2) before a word containing "conftest.", or (3) at the end.
8713   # Note that $ac_compile itself does not contain backslashes and begins
8714   # with a dollar sign (not a hyphen), so the echo should work correctly.
8715   # The option is referenced via a variable to avoid confusing sed.
8716   lt_compile=`echo "$ac_compile" | $SED \
8717   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8718   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8719   -e 's:$: $lt_compiler_flag:'`
8720   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8721   (eval "$lt_compile" 2>conftest.err)
8722   ac_status=$?
8723   cat conftest.err >&5
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   if (exit $ac_status) && test -s "$ac_outfile"; then
8726     # The compiler can only warn and ignore the option if not recognized
8727     # So say no if there are warnings other than the usual output.
8728     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8729     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8731       lt_cv_prog_compiler_rtti_exceptions=yes
8732     fi
8733   fi
8734   $RM conftest*
8735
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8738$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8739
8740if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8741    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8742else
8743    :
8744fi
8745
8746fi
8747
8748
8749
8750
8751
8752
8753  lt_prog_compiler_wl=
8754lt_prog_compiler_pic=
8755lt_prog_compiler_static=
8756
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8758$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8759
8760  if test "$GCC" = yes; then
8761    lt_prog_compiler_wl='-Wl,'
8762    lt_prog_compiler_static='-static'
8763
8764    case $host_os in
8765      aix*)
8766      # All AIX code is PIC.
8767      if test "$host_cpu" = ia64; then
8768	# AIX 5 now supports IA64 processor
8769	lt_prog_compiler_static='-Bstatic'
8770      fi
8771      lt_prog_compiler_pic='-fPIC'
8772      ;;
8773
8774    amigaos*)
8775      case $host_cpu in
8776      powerpc)
8777            # see comment about AmigaOS4 .so support
8778            lt_prog_compiler_pic='-fPIC'
8779        ;;
8780      m68k)
8781            # FIXME: we need at least 68020 code to build shared libraries, but
8782            # adding the `-m68020' flag to GCC prevents building anything better,
8783            # like `-m68040'.
8784            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8785        ;;
8786      esac
8787      ;;
8788
8789    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8790      # PIC is the default for these OSes.
8791      ;;
8792
8793    mingw* | cygwin* | pw32* | os2* | cegcc*)
8794      # This hack is so that the source file can tell whether it is being
8795      # built for inclusion in a dll (and should export symbols for example).
8796      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8797      # (--disable-auto-import) libraries
8798      lt_prog_compiler_pic='-DDLL_EXPORT'
8799      ;;
8800
8801    darwin* | rhapsody*)
8802      # PIC is the default on this platform
8803      # Common symbols not allowed in MH_DYLIB files
8804      lt_prog_compiler_pic='-fno-common'
8805      ;;
8806
8807    haiku*)
8808      # PIC is the default for Haiku.
8809      # The "-static" flag exists, but is broken.
8810      lt_prog_compiler_static=
8811      ;;
8812
8813    hpux*)
8814      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8815      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8816      # sets the default TLS model and affects inlining.
8817      case $host_cpu in
8818      hppa*64*)
8819	# +Z the default
8820	;;
8821      *)
8822	lt_prog_compiler_pic='-fPIC'
8823	;;
8824      esac
8825      ;;
8826
8827    interix[3-9]*)
8828      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8829      # Instead, we relocate shared libraries at runtime.
8830      ;;
8831
8832    msdosdjgpp*)
8833      # Just because we use GCC doesn't mean we suddenly get shared libraries
8834      # on systems that don't support them.
8835      lt_prog_compiler_can_build_shared=no
8836      enable_shared=no
8837      ;;
8838
8839    *nto* | *qnx*)
8840      # QNX uses GNU C++, but need to define -shared option too, otherwise
8841      # it will coredump.
8842      lt_prog_compiler_pic='-fPIC -shared'
8843      ;;
8844
8845    sysv4*MP*)
8846      if test -d /usr/nec; then
8847	lt_prog_compiler_pic=-Kconform_pic
8848      fi
8849      ;;
8850
8851    *)
8852      lt_prog_compiler_pic='-fPIC'
8853      ;;
8854    esac
8855
8856    case $cc_basename in
8857    nvcc*) # Cuda Compiler Driver 2.2
8858      lt_prog_compiler_wl='-Xlinker '
8859      lt_prog_compiler_pic='-Xcompiler -fPIC'
8860      ;;
8861    esac
8862  else
8863    # PORTME Check for flag to pass linker flags through the system compiler.
8864    case $host_os in
8865    aix*)
8866      lt_prog_compiler_wl='-Wl,'
8867      if test "$host_cpu" = ia64; then
8868	# AIX 5 now supports IA64 processor
8869	lt_prog_compiler_static='-Bstatic'
8870      else
8871	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8872      fi
8873      ;;
8874
8875    mingw* | cygwin* | pw32* | os2* | cegcc*)
8876      # This hack is so that the source file can tell whether it is being
8877      # built for inclusion in a dll (and should export symbols for example).
8878      lt_prog_compiler_pic='-DDLL_EXPORT'
8879      ;;
8880
8881    hpux9* | hpux10* | hpux11*)
8882      lt_prog_compiler_wl='-Wl,'
8883      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8884      # not for PA HP-UX.
8885      case $host_cpu in
8886      hppa*64*|ia64*)
8887	# +Z the default
8888	;;
8889      *)
8890	lt_prog_compiler_pic='+Z'
8891	;;
8892      esac
8893      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8894      lt_prog_compiler_static='${wl}-a ${wl}archive'
8895      ;;
8896
8897    irix5* | irix6* | nonstopux*)
8898      lt_prog_compiler_wl='-Wl,'
8899      # PIC (with -KPIC) is the default.
8900      lt_prog_compiler_static='-non_shared'
8901      ;;
8902
8903    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8904      case $cc_basename in
8905      # old Intel for x86_64 which still supported -KPIC.
8906      ecc*)
8907	lt_prog_compiler_wl='-Wl,'
8908	lt_prog_compiler_pic='-KPIC'
8909	lt_prog_compiler_static='-static'
8910        ;;
8911      # icc used to be incompatible with GCC.
8912      # ICC 10 doesn't accept -KPIC any more.
8913      icc* | ifort*)
8914	lt_prog_compiler_wl='-Wl,'
8915	lt_prog_compiler_pic='-fPIC'
8916	lt_prog_compiler_static='-static'
8917        ;;
8918      # Lahey Fortran 8.1.
8919      lf95*)
8920	lt_prog_compiler_wl='-Wl,'
8921	lt_prog_compiler_pic='--shared'
8922	lt_prog_compiler_static='--static'
8923	;;
8924      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8925        # Portland Group compilers (*not* the Pentium gcc compiler,
8926	# which looks to be a dead project)
8927	lt_prog_compiler_wl='-Wl,'
8928	lt_prog_compiler_pic='-fpic'
8929	lt_prog_compiler_static='-Bstatic'
8930        ;;
8931      ccc*)
8932        lt_prog_compiler_wl='-Wl,'
8933        # All Alpha code is PIC.
8934        lt_prog_compiler_static='-non_shared'
8935        ;;
8936      xl* | bgxl* | bgf* | mpixl*)
8937	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8938	lt_prog_compiler_wl='-Wl,'
8939	lt_prog_compiler_pic='-qpic'
8940	lt_prog_compiler_static='-qstaticlink'
8941	;;
8942      *)
8943	case `$CC -V 2>&1 | sed 5q` in
8944	*Sun\ F* | *Sun*Fortran*)
8945	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8946	  lt_prog_compiler_pic='-KPIC'
8947	  lt_prog_compiler_static='-Bstatic'
8948	  lt_prog_compiler_wl=''
8949	  ;;
8950	*Sun\ C*)
8951	  # Sun C 5.9
8952	  lt_prog_compiler_pic='-KPIC'
8953	  lt_prog_compiler_static='-Bstatic'
8954	  lt_prog_compiler_wl='-Wl,'
8955	  ;;
8956	esac
8957	;;
8958      esac
8959      ;;
8960
8961    newsos6)
8962      lt_prog_compiler_pic='-KPIC'
8963      lt_prog_compiler_static='-Bstatic'
8964      ;;
8965
8966    *nto* | *qnx*)
8967      # QNX uses GNU C++, but need to define -shared option too, otherwise
8968      # it will coredump.
8969      lt_prog_compiler_pic='-fPIC -shared'
8970      ;;
8971
8972    osf3* | osf4* | osf5*)
8973      lt_prog_compiler_wl='-Wl,'
8974      # All OSF/1 code is PIC.
8975      lt_prog_compiler_static='-non_shared'
8976      ;;
8977
8978    rdos*)
8979      lt_prog_compiler_static='-non_shared'
8980      ;;
8981
8982    solaris*)
8983      lt_prog_compiler_pic='-KPIC'
8984      lt_prog_compiler_static='-Bstatic'
8985      case $cc_basename in
8986      f77* | f90* | f95*)
8987	lt_prog_compiler_wl='-Qoption ld ';;
8988      *)
8989	lt_prog_compiler_wl='-Wl,';;
8990      esac
8991      ;;
8992
8993    sunos4*)
8994      lt_prog_compiler_wl='-Qoption ld '
8995      lt_prog_compiler_pic='-PIC'
8996      lt_prog_compiler_static='-Bstatic'
8997      ;;
8998
8999    sysv4 | sysv4.2uw2* | sysv4.3*)
9000      lt_prog_compiler_wl='-Wl,'
9001      lt_prog_compiler_pic='-KPIC'
9002      lt_prog_compiler_static='-Bstatic'
9003      ;;
9004
9005    sysv4*MP*)
9006      if test -d /usr/nec ;then
9007	lt_prog_compiler_pic='-Kconform_pic'
9008	lt_prog_compiler_static='-Bstatic'
9009      fi
9010      ;;
9011
9012    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9013      lt_prog_compiler_wl='-Wl,'
9014      lt_prog_compiler_pic='-KPIC'
9015      lt_prog_compiler_static='-Bstatic'
9016      ;;
9017
9018    unicos*)
9019      lt_prog_compiler_wl='-Wl,'
9020      lt_prog_compiler_can_build_shared=no
9021      ;;
9022
9023    uts4*)
9024      lt_prog_compiler_pic='-pic'
9025      lt_prog_compiler_static='-Bstatic'
9026      ;;
9027
9028    *)
9029      lt_prog_compiler_can_build_shared=no
9030      ;;
9031    esac
9032  fi
9033
9034case $host_os in
9035  # For platforms which do not support PIC, -DPIC is meaningless:
9036  *djgpp*)
9037    lt_prog_compiler_pic=
9038    ;;
9039  *)
9040    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9041    ;;
9042esac
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9044$as_echo "$lt_prog_compiler_pic" >&6; }
9045
9046
9047
9048
9049
9050
9051#
9052# Check to make sure the PIC flag actually works.
9053#
9054if test -n "$lt_prog_compiler_pic"; then
9055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9056$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9057if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  lt_cv_prog_compiler_pic_works=no
9061   ac_outfile=conftest.$ac_objext
9062   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9064   # Insert the option either (1) after the last *FLAGS variable, or
9065   # (2) before a word containing "conftest.", or (3) at the end.
9066   # Note that $ac_compile itself does not contain backslashes and begins
9067   # with a dollar sign (not a hyphen), so the echo should work correctly.
9068   # The option is referenced via a variable to avoid confusing sed.
9069   lt_compile=`echo "$ac_compile" | $SED \
9070   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072   -e 's:$: $lt_compiler_flag:'`
9073   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074   (eval "$lt_compile" 2>conftest.err)
9075   ac_status=$?
9076   cat conftest.err >&5
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   if (exit $ac_status) && test -s "$ac_outfile"; then
9079     # The compiler can only warn and ignore the option if not recognized
9080     # So say no if there are warnings other than the usual output.
9081     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9082     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9084       lt_cv_prog_compiler_pic_works=yes
9085     fi
9086   fi
9087   $RM conftest*
9088
9089fi
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9091$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9092
9093if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9094    case $lt_prog_compiler_pic in
9095     "" | " "*) ;;
9096     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9097     esac
9098else
9099    lt_prog_compiler_pic=
9100     lt_prog_compiler_can_build_shared=no
9101fi
9102
9103fi
9104
9105
9106
9107
9108
9109
9110#
9111# Check to make sure the static flag actually works.
9112#
9113wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9115$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9116if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  lt_cv_prog_compiler_static_works=no
9120   save_LDFLAGS="$LDFLAGS"
9121   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9122   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124     # The linker can only warn and ignore the option if not recognized
9125     # So say no if there are warnings
9126     if test -s conftest.err; then
9127       # Append any errors to the config.log.
9128       cat conftest.err 1>&5
9129       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9130       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131       if diff conftest.exp conftest.er2 >/dev/null; then
9132         lt_cv_prog_compiler_static_works=yes
9133       fi
9134     else
9135       lt_cv_prog_compiler_static_works=yes
9136     fi
9137   fi
9138   $RM -r conftest*
9139   LDFLAGS="$save_LDFLAGS"
9140
9141fi
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9143$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9144
9145if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9146    :
9147else
9148    lt_prog_compiler_static=
9149fi
9150
9151
9152
9153
9154
9155
9156
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9158$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9159if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9160  $as_echo_n "(cached) " >&6
9161else
9162  lt_cv_prog_compiler_c_o=no
9163   $RM -r conftest 2>/dev/null
9164   mkdir conftest
9165   cd conftest
9166   mkdir out
9167   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9168
9169   lt_compiler_flag="-o out/conftest2.$ac_objext"
9170   # Insert the option either (1) after the last *FLAGS variable, or
9171   # (2) before a word containing "conftest.", or (3) at the end.
9172   # Note that $ac_compile itself does not contain backslashes and begins
9173   # with a dollar sign (not a hyphen), so the echo should work correctly.
9174   lt_compile=`echo "$ac_compile" | $SED \
9175   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9176   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9177   -e 's:$: $lt_compiler_flag:'`
9178   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9179   (eval "$lt_compile" 2>out/conftest.err)
9180   ac_status=$?
9181   cat out/conftest.err >&5
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9184   then
9185     # The compiler can only warn and ignore the option if not recognized
9186     # So say no if there are warnings
9187     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9188     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9189     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9190       lt_cv_prog_compiler_c_o=yes
9191     fi
9192   fi
9193   chmod u+w . 2>&5
9194   $RM conftest*
9195   # SGI C++ compiler will create directory out/ii_files/ for
9196   # template instantiation
9197   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9198   $RM out/* && rmdir out
9199   cd ..
9200   $RM -r conftest
9201   $RM conftest*
9202
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9205$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9206
9207
9208
9209
9210
9211
9212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9213$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9214if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9215  $as_echo_n "(cached) " >&6
9216else
9217  lt_cv_prog_compiler_c_o=no
9218   $RM -r conftest 2>/dev/null
9219   mkdir conftest
9220   cd conftest
9221   mkdir out
9222   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223
9224   lt_compiler_flag="-o out/conftest2.$ac_objext"
9225   # Insert the option either (1) after the last *FLAGS variable, or
9226   # (2) before a word containing "conftest.", or (3) at the end.
9227   # Note that $ac_compile itself does not contain backslashes and begins
9228   # with a dollar sign (not a hyphen), so the echo should work correctly.
9229   lt_compile=`echo "$ac_compile" | $SED \
9230   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9231   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9232   -e 's:$: $lt_compiler_flag:'`
9233   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9234   (eval "$lt_compile" 2>out/conftest.err)
9235   ac_status=$?
9236   cat out/conftest.err >&5
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9239   then
9240     # The compiler can only warn and ignore the option if not recognized
9241     # So say no if there are warnings
9242     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9243     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9244     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9245       lt_cv_prog_compiler_c_o=yes
9246     fi
9247   fi
9248   chmod u+w . 2>&5
9249   $RM conftest*
9250   # SGI C++ compiler will create directory out/ii_files/ for
9251   # template instantiation
9252   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9253   $RM out/* && rmdir out
9254   cd ..
9255   $RM -r conftest
9256   $RM conftest*
9257
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9260$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9261
9262
9263
9264
9265hard_links="nottested"
9266if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9267  # do not overwrite the value of need_locks provided by the user
9268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9269$as_echo_n "checking if we can lock with hard links... " >&6; }
9270  hard_links=yes
9271  $RM conftest*
9272  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273  touch conftest.a
9274  ln conftest.a conftest.b 2>&5 || hard_links=no
9275  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9277$as_echo "$hard_links" >&6; }
9278  if test "$hard_links" = no; then
9279    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9280$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9281    need_locks=warn
9282  fi
9283else
9284  need_locks=no
9285fi
9286
9287
9288
9289
9290
9291
9292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9293$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9294
9295  runpath_var=
9296  allow_undefined_flag=
9297  always_export_symbols=no
9298  archive_cmds=
9299  archive_expsym_cmds=
9300  compiler_needs_object=no
9301  enable_shared_with_static_runtimes=no
9302  export_dynamic_flag_spec=
9303  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9304  hardcode_automatic=no
9305  hardcode_direct=no
9306  hardcode_direct_absolute=no
9307  hardcode_libdir_flag_spec=
9308  hardcode_libdir_flag_spec_ld=
9309  hardcode_libdir_separator=
9310  hardcode_minus_L=no
9311  hardcode_shlibpath_var=unsupported
9312  inherit_rpath=no
9313  link_all_deplibs=unknown
9314  module_cmds=
9315  module_expsym_cmds=
9316  old_archive_from_new_cmds=
9317  old_archive_from_expsyms_cmds=
9318  thread_safe_flag_spec=
9319  whole_archive_flag_spec=
9320  # include_expsyms should be a list of space-separated symbols to be *always*
9321  # included in the symbol list
9322  include_expsyms=
9323  # exclude_expsyms can be an extended regexp of symbols to exclude
9324  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9325  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9326  # as well as any symbol that contains `d'.
9327  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9328  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9329  # platforms (ab)use it in PIC code, but their linkers get confused if
9330  # the symbol is explicitly referenced.  Since portable code cannot
9331  # rely on this symbol name, it's probably fine to never include it in
9332  # preloaded symbol tables.
9333  # Exclude shared library initialization/finalization symbols.
9334  extract_expsyms_cmds=
9335
9336  case $host_os in
9337  cygwin* | mingw* | pw32* | cegcc*)
9338    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9339    # When not using gcc, we currently assume that we are using
9340    # Microsoft Visual C++.
9341    if test "$GCC" != yes; then
9342      with_gnu_ld=no
9343    fi
9344    ;;
9345  interix*)
9346    # we just hope/assume this is gcc and not c89 (= MSVC++)
9347    with_gnu_ld=yes
9348    ;;
9349  openbsd*)
9350    with_gnu_ld=no
9351    ;;
9352  esac
9353
9354  ld_shlibs=yes
9355
9356  # On some targets, GNU ld is compatible enough with the native linker
9357  # that we're better off using the native interface for both.
9358  lt_use_gnu_ld_interface=no
9359  if test "$with_gnu_ld" = yes; then
9360    case $host_os in
9361      aix*)
9362	# The AIX port of GNU ld has always aspired to compatibility
9363	# with the native linker.  However, as the warning in the GNU ld
9364	# block says, versions before 2.19.5* couldn't really create working
9365	# shared libraries, regardless of the interface used.
9366	case `$LD -v 2>&1` in
9367	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9368	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9369	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9370	  *)
9371	    lt_use_gnu_ld_interface=yes
9372	    ;;
9373	esac
9374	;;
9375      *)
9376	lt_use_gnu_ld_interface=yes
9377	;;
9378    esac
9379  fi
9380
9381  if test "$lt_use_gnu_ld_interface" = yes; then
9382    # If archive_cmds runs LD, not CC, wlarc should be empty
9383    wlarc='${wl}'
9384
9385    # Set some defaults for GNU ld with shared library support. These
9386    # are reset later if shared libraries are not supported. Putting them
9387    # here allows them to be overridden if necessary.
9388    runpath_var=LD_RUN_PATH
9389    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390    export_dynamic_flag_spec='${wl}--export-dynamic'
9391    # ancient GNU ld didn't support --whole-archive et. al.
9392    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9393      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9394    else
9395      whole_archive_flag_spec=
9396    fi
9397    supports_anon_versioning=no
9398    case `$LD -v 2>&1` in
9399      *GNU\ gold*) supports_anon_versioning=yes ;;
9400      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9401      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9402      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9403      *\ 2.11.*) ;; # other 2.11 versions
9404      *) supports_anon_versioning=yes ;;
9405    esac
9406
9407    # See if GNU ld supports shared libraries.
9408    case $host_os in
9409    aix[3-9]*)
9410      # On AIX/PPC, the GNU linker is very broken
9411      if test "$host_cpu" != ia64; then
9412	ld_shlibs=no
9413	cat <<_LT_EOF 1>&2
9414
9415*** Warning: the GNU linker, at least up to release 2.19, is reported
9416*** to be unable to reliably create shared libraries on AIX.
9417*** Therefore, libtool is disabling shared libraries support.  If you
9418*** really care for shared libraries, you may want to install binutils
9419*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9420*** You will then need to restart the configuration process.
9421
9422_LT_EOF
9423      fi
9424      ;;
9425
9426    amigaos*)
9427      case $host_cpu in
9428      powerpc)
9429            # see comment about AmigaOS4 .so support
9430            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431            archive_expsym_cmds=''
9432        ;;
9433      m68k)
9434            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)'
9435            hardcode_libdir_flag_spec='-L$libdir'
9436            hardcode_minus_L=yes
9437        ;;
9438      esac
9439      ;;
9440
9441    beos*)
9442      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443	allow_undefined_flag=unsupported
9444	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9445	# support --undefined.  This deserves some investigation.  FIXME
9446	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447      else
9448	ld_shlibs=no
9449      fi
9450      ;;
9451
9452    cygwin* | mingw* | pw32* | cegcc*)
9453      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9454      # as there is no search path for DLLs.
9455      hardcode_libdir_flag_spec='-L$libdir'
9456      export_dynamic_flag_spec='${wl}--export-all-symbols'
9457      allow_undefined_flag=unsupported
9458      always_export_symbols=no
9459      enable_shared_with_static_runtimes=yes
9460      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9461
9462      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464	# If the export-symbols file already is a .def file (1st line
9465	# is EXPORTS), use it as is; otherwise, prepend...
9466	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9467	  cp $export_symbols $output_objdir/$soname.def;
9468	else
9469	  echo EXPORTS > $output_objdir/$soname.def;
9470	  cat $export_symbols >> $output_objdir/$soname.def;
9471	fi~
9472	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473      else
9474	ld_shlibs=no
9475      fi
9476      ;;
9477
9478    haiku*)
9479      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480      link_all_deplibs=yes
9481      ;;
9482
9483    interix[3-9]*)
9484      hardcode_direct=no
9485      hardcode_shlibpath_var=no
9486      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487      export_dynamic_flag_spec='${wl}-E'
9488      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489      # Instead, shared libraries are loaded at an image base (0x10000000 by
9490      # default) and relocated if they conflict, which is a slow very memory
9491      # consuming and fragmenting process.  To avoid this, we pick a random,
9492      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9494      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495      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'
9496      ;;
9497
9498    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9499      tmp_diet=no
9500      if test "$host_os" = linux-dietlibc; then
9501	case $cc_basename in
9502	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9503	esac
9504      fi
9505      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506	 && test "$tmp_diet" = no
9507      then
9508	tmp_addflag=
9509	tmp_sharedflag='-shared'
9510	case $cc_basename,$host_cpu in
9511        pgcc*)				# Portland Group C compiler
9512	  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'
9513	  tmp_addflag=' $pic_flag'
9514	  ;;
9515	pgf77* | pgf90* | pgf95* | pgfortran*)
9516					# Portland Group f77 and f90 compilers
9517	  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'
9518	  tmp_addflag=' $pic_flag -Mnomain' ;;
9519	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9520	  tmp_addflag=' -i_dynamic' ;;
9521	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9522	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9523	ifc* | ifort*)			# Intel Fortran compiler
9524	  tmp_addflag=' -nofor_main' ;;
9525	lf95*)				# Lahey Fortran 8.1
9526	  whole_archive_flag_spec=
9527	  tmp_sharedflag='--shared' ;;
9528	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529	  tmp_sharedflag='-qmkshrobj'
9530	  tmp_addflag= ;;
9531	nvcc*)	# Cuda Compiler Driver 2.2
9532	  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'
9533	  compiler_needs_object=yes
9534	  ;;
9535	esac
9536	case `$CC -V 2>&1 | sed 5q` in
9537	*Sun\ C*)			# Sun C 5.9
9538	  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'
9539	  compiler_needs_object=yes
9540	  tmp_sharedflag='-G' ;;
9541	*Sun\ F*)			# Sun Fortran 8.3
9542	  tmp_sharedflag='-G' ;;
9543	esac
9544	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545
9546        if test "x$supports_anon_versioning" = xyes; then
9547          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549	    echo "local: *; };" >> $output_objdir/$libname.ver~
9550	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551        fi
9552
9553	case $cc_basename in
9554	xlf* | bgf* | bgxlf* | mpixlf*)
9555	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557	  hardcode_libdir_flag_spec=
9558	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9559	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9560	  if test "x$supports_anon_versioning" = xyes; then
9561	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9562	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9563	      echo "local: *; };" >> $output_objdir/$libname.ver~
9564	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9565	  fi
9566	  ;;
9567	esac
9568      else
9569        ld_shlibs=no
9570      fi
9571      ;;
9572
9573    netbsd*)
9574      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9575	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9576	wlarc=
9577      else
9578	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9580      fi
9581      ;;
9582
9583    solaris*)
9584      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9585	ld_shlibs=no
9586	cat <<_LT_EOF 1>&2
9587
9588*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9589*** create shared libraries on Solaris systems.  Therefore, libtool
9590*** is disabling shared libraries support.  We urge you to upgrade GNU
9591*** binutils to release 2.9.1 or newer.  Another option is to modify
9592*** your PATH or compiler configuration so that the native linker is
9593*** used, and then restart.
9594
9595_LT_EOF
9596      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9597	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9599      else
9600	ld_shlibs=no
9601      fi
9602      ;;
9603
9604    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9605      case `$LD -v 2>&1` in
9606        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9607	ld_shlibs=no
9608	cat <<_LT_EOF 1>&2
9609
9610*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9611*** reliably create shared libraries on SCO systems.  Therefore, libtool
9612*** is disabling shared libraries support.  We urge you to upgrade GNU
9613*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9614*** your PATH or compiler configuration so that the native linker is
9615*** used, and then restart.
9616
9617_LT_EOF
9618	;;
9619	*)
9620	  # For security reasons, it is highly recommended that you always
9621	  # use absolute paths for naming shared libraries, and exclude the
9622	  # DT_RUNPATH tag from executables and libraries.  But doing so
9623	  # requires that you compile everything twice, which is a pain.
9624	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9628	  else
9629	    ld_shlibs=no
9630	  fi
9631	;;
9632      esac
9633      ;;
9634
9635    sunos4*)
9636      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637      wlarc=
9638      hardcode_direct=yes
9639      hardcode_shlibpath_var=no
9640      ;;
9641
9642    *)
9643      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9644	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9646      else
9647	ld_shlibs=no
9648      fi
9649      ;;
9650    esac
9651
9652    if test "$ld_shlibs" = no; then
9653      runpath_var=
9654      hardcode_libdir_flag_spec=
9655      export_dynamic_flag_spec=
9656      whole_archive_flag_spec=
9657    fi
9658  else
9659    # PORTME fill in a description of your system's linker (not GNU ld)
9660    case $host_os in
9661    aix3*)
9662      allow_undefined_flag=unsupported
9663      always_export_symbols=yes
9664      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'
9665      # Note: this linker hardcodes the directories in LIBPATH if there
9666      # are no directories specified by -L.
9667      hardcode_minus_L=yes
9668      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9669	# Neither direct hardcoding nor static linking is supported with a
9670	# broken collect2.
9671	hardcode_direct=unsupported
9672      fi
9673      ;;
9674
9675    aix[4-9]*)
9676      if test "$host_cpu" = ia64; then
9677	# On IA64, the linker does run time linking by default, so we don't
9678	# have to do anything special.
9679	aix_use_runtimelinking=no
9680	exp_sym_flag='-Bexport'
9681	no_entry_flag=""
9682      else
9683	# If we're using GNU nm, then we don't want the "-C" option.
9684	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9685	# Also, AIX nm treats weak defined symbols like other global
9686	# defined symbols, whereas GNU nm marks them as "W".
9687	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9688	  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'
9689	else
9690	  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'
9691	fi
9692	aix_use_runtimelinking=no
9693
9694	# Test if we are trying to use run time linking or normal
9695	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9696	# need to do runtime linking.
9697	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9698	  for ld_flag in $LDFLAGS; do
9699	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9700	    aix_use_runtimelinking=yes
9701	    break
9702	  fi
9703	  done
9704	  ;;
9705	esac
9706
9707	exp_sym_flag='-bexport'
9708	no_entry_flag='-bnoentry'
9709      fi
9710
9711      # When large executables or shared objects are built, AIX ld can
9712      # have problems creating the table of contents.  If linking a library
9713      # or program results in "error TOC overflow" add -mminimal-toc to
9714      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9715      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9716
9717      archive_cmds=''
9718      hardcode_direct=yes
9719      hardcode_direct_absolute=yes
9720      hardcode_libdir_separator=':'
9721      link_all_deplibs=yes
9722      file_list_spec='${wl}-f,'
9723
9724      if test "$GCC" = yes; then
9725	case $host_os in aix4.[012]|aix4.[012].*)
9726	# We only want to do this on AIX 4.2 and lower, the check
9727	# below for broken collect2 doesn't work under 4.3+
9728	  collect2name=`${CC} -print-prog-name=collect2`
9729	  if test -f "$collect2name" &&
9730	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9731	  then
9732	  # We have reworked collect2
9733	  :
9734	  else
9735	  # We have old collect2
9736	  hardcode_direct=unsupported
9737	  # It fails to find uninstalled libraries when the uninstalled
9738	  # path is not listed in the libpath.  Setting hardcode_minus_L
9739	  # to unsupported forces relinking
9740	  hardcode_minus_L=yes
9741	  hardcode_libdir_flag_spec='-L$libdir'
9742	  hardcode_libdir_separator=
9743	  fi
9744	  ;;
9745	esac
9746	shared_flag='-shared'
9747	if test "$aix_use_runtimelinking" = yes; then
9748	  shared_flag="$shared_flag "'${wl}-G'
9749	fi
9750      else
9751	# not using gcc
9752	if test "$host_cpu" = ia64; then
9753	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754	# chokes on -Wl,-G. The following line is correct:
9755	  shared_flag='-G'
9756	else
9757	  if test "$aix_use_runtimelinking" = yes; then
9758	    shared_flag='${wl}-G'
9759	  else
9760	    shared_flag='${wl}-bM:SRE'
9761	  fi
9762	fi
9763      fi
9764
9765      export_dynamic_flag_spec='${wl}-bexpall'
9766      # It seems that -bexpall does not export symbols beginning with
9767      # underscore (_), so it is better to generate a list of symbols to export.
9768      always_export_symbols=yes
9769      if test "$aix_use_runtimelinking" = yes; then
9770	# Warning - without using the other runtime loading flags (-brtl),
9771	# -berok will link without error, but may produce a broken library.
9772	allow_undefined_flag='-berok'
9773        # Determine the default libpath from the value encoded in an
9774        # empty executable.
9775        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777
9778int
9779main ()
9780{
9781
9782  ;
9783  return 0;
9784}
9785_ACEOF
9786if ac_fn_c_try_link "$LINENO"; then :
9787
9788lt_aix_libpath_sed='
9789    /Import File Strings/,/^$/ {
9790	/^0/ {
9791	    s/^0  *\(.*\)$/\1/
9792	    p
9793	}
9794    }'
9795aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796# Check for a 64-bit object if we didn't find anything.
9797if test -z "$aix_libpath"; then
9798  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799fi
9800fi
9801rm -f core conftest.err conftest.$ac_objext \
9802    conftest$ac_exeext conftest.$ac_ext
9803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9804
9805        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9806        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"
9807      else
9808	if test "$host_cpu" = ia64; then
9809	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9810	  allow_undefined_flag="-z nodefs"
9811	  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"
9812	else
9813	 # Determine the default libpath from the value encoded in an
9814	 # empty executable.
9815	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h.  */
9817
9818int
9819main ()
9820{
9821
9822  ;
9823  return 0;
9824}
9825_ACEOF
9826if ac_fn_c_try_link "$LINENO"; then :
9827
9828lt_aix_libpath_sed='
9829    /Import File Strings/,/^$/ {
9830	/^0/ {
9831	    s/^0  *\(.*\)$/\1/
9832	    p
9833	}
9834    }'
9835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9836# Check for a 64-bit object if we didn't find anything.
9837if test -z "$aix_libpath"; then
9838  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9839fi
9840fi
9841rm -f core conftest.err conftest.$ac_objext \
9842    conftest$ac_exeext conftest.$ac_ext
9843if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9844
9845	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9846	  # Warning - without using the other run time loading flags,
9847	  # -berok will link without error, but may produce a broken library.
9848	  no_undefined_flag=' ${wl}-bernotok'
9849	  allow_undefined_flag=' ${wl}-berok'
9850	  if test "$with_gnu_ld" = yes; then
9851	    # We only use this code for GNU lds that support --whole-archive.
9852	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9853	  else
9854	    # Exported symbols can be pulled into shared objects from archives
9855	    whole_archive_flag_spec='$convenience'
9856	  fi
9857	  archive_cmds_need_lc=yes
9858	  # This is similar to how AIX traditionally builds its shared libraries.
9859	  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'
9860	fi
9861      fi
9862      ;;
9863
9864    amigaos*)
9865      case $host_cpu in
9866      powerpc)
9867            # see comment about AmigaOS4 .so support
9868            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869            archive_expsym_cmds=''
9870        ;;
9871      m68k)
9872            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)'
9873            hardcode_libdir_flag_spec='-L$libdir'
9874            hardcode_minus_L=yes
9875        ;;
9876      esac
9877      ;;
9878
9879    bsdi[45]*)
9880      export_dynamic_flag_spec=-rdynamic
9881      ;;
9882
9883    cygwin* | mingw* | pw32* | cegcc*)
9884      # When not using gcc, we currently assume that we are using
9885      # Microsoft Visual C++.
9886      # hardcode_libdir_flag_spec is actually meaningless, as there is
9887      # no search path for DLLs.
9888      hardcode_libdir_flag_spec=' '
9889      allow_undefined_flag=unsupported
9890      # Tell ltmain to make .lib files, not .a files.
9891      libext=lib
9892      # Tell ltmain to make .dll files, not .so files.
9893      shrext_cmds=".dll"
9894      # FIXME: Setting linknames here is a bad hack.
9895      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9896      # The linker will automatically build a .lib file if we build a DLL.
9897      old_archive_from_new_cmds='true'
9898      # FIXME: Should let the user specify the lib program.
9899      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9900      fix_srcfile_path='`cygpath -w "$srcfile"`'
9901      enable_shared_with_static_runtimes=yes
9902      ;;
9903
9904    darwin* | rhapsody*)
9905
9906
9907  archive_cmds_need_lc=no
9908  hardcode_direct=no
9909  hardcode_automatic=yes
9910  hardcode_shlibpath_var=unsupported
9911  if test "$lt_cv_ld_force_load" = "yes"; then
9912    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\"`'
9913  else
9914    whole_archive_flag_spec=''
9915  fi
9916  link_all_deplibs=yes
9917  allow_undefined_flag="$_lt_dar_allow_undefined"
9918  case $cc_basename in
9919     ifort*) _lt_dar_can_shared=yes ;;
9920     *) _lt_dar_can_shared=$GCC ;;
9921  esac
9922  if test "$_lt_dar_can_shared" = "yes"; then
9923    output_verbose_link_cmd=func_echo_all
9924    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9925    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9926    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}"
9927    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}"
9928
9929  else
9930  ld_shlibs=no
9931  fi
9932
9933      ;;
9934
9935    dgux*)
9936      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937      hardcode_libdir_flag_spec='-L$libdir'
9938      hardcode_shlibpath_var=no
9939      ;;
9940
9941    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9942    # support.  Future versions do this automatically, but an explicit c++rt0.o
9943    # does not break anything, and helps significantly (at the cost of a little
9944    # extra space).
9945    freebsd2.2*)
9946      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9947      hardcode_libdir_flag_spec='-R$libdir'
9948      hardcode_direct=yes
9949      hardcode_shlibpath_var=no
9950      ;;
9951
9952    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9953    freebsd2.*)
9954      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9955      hardcode_direct=yes
9956      hardcode_minus_L=yes
9957      hardcode_shlibpath_var=no
9958      ;;
9959
9960    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9961    freebsd* | dragonfly*)
9962      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9963      hardcode_libdir_flag_spec='-R$libdir'
9964      hardcode_direct=yes
9965      hardcode_shlibpath_var=no
9966      ;;
9967
9968    hpux9*)
9969      if test "$GCC" = yes; then
9970	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'
9971      else
9972	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'
9973      fi
9974      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9975      hardcode_libdir_separator=:
9976      hardcode_direct=yes
9977
9978      # hardcode_minus_L: Not really in the search PATH,
9979      # but as the default location of the library.
9980      hardcode_minus_L=yes
9981      export_dynamic_flag_spec='${wl}-E'
9982      ;;
9983
9984    hpux10*)
9985      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9986	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987      else
9988	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9989      fi
9990      if test "$with_gnu_ld" = no; then
9991	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992	hardcode_libdir_flag_spec_ld='+b $libdir'
9993	hardcode_libdir_separator=:
9994	hardcode_direct=yes
9995	hardcode_direct_absolute=yes
9996	export_dynamic_flag_spec='${wl}-E'
9997	# hardcode_minus_L: Not really in the search PATH,
9998	# but as the default location of the library.
9999	hardcode_minus_L=yes
10000      fi
10001      ;;
10002
10003    hpux11*)
10004      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10005	case $host_cpu in
10006	hppa*64*)
10007	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10008	  ;;
10009	ia64*)
10010	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10011	  ;;
10012	*)
10013	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014	  ;;
10015	esac
10016      else
10017	case $host_cpu in
10018	hppa*64*)
10019	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020	  ;;
10021	ia64*)
10022	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023	  ;;
10024	*)
10025
10026	  # Older versions of the 11.00 compiler do not understand -b yet
10027	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10028	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10029$as_echo_n "checking if $CC understands -b... " >&6; }
10030if test "${lt_cv_prog_compiler__b+set}" = set; then :
10031  $as_echo_n "(cached) " >&6
10032else
10033  lt_cv_prog_compiler__b=no
10034   save_LDFLAGS="$LDFLAGS"
10035   LDFLAGS="$LDFLAGS -b"
10036   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10037   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10038     # The linker can only warn and ignore the option if not recognized
10039     # So say no if there are warnings
10040     if test -s conftest.err; then
10041       # Append any errors to the config.log.
10042       cat conftest.err 1>&5
10043       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10044       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10045       if diff conftest.exp conftest.er2 >/dev/null; then
10046         lt_cv_prog_compiler__b=yes
10047       fi
10048     else
10049       lt_cv_prog_compiler__b=yes
10050     fi
10051   fi
10052   $RM -r conftest*
10053   LDFLAGS="$save_LDFLAGS"
10054
10055fi
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10057$as_echo "$lt_cv_prog_compiler__b" >&6; }
10058
10059if test x"$lt_cv_prog_compiler__b" = xyes; then
10060    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10061else
10062    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10063fi
10064
10065	  ;;
10066	esac
10067      fi
10068      if test "$with_gnu_ld" = no; then
10069	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10070	hardcode_libdir_separator=:
10071
10072	case $host_cpu in
10073	hppa*64*|ia64*)
10074	  hardcode_direct=no
10075	  hardcode_shlibpath_var=no
10076	  ;;
10077	*)
10078	  hardcode_direct=yes
10079	  hardcode_direct_absolute=yes
10080	  export_dynamic_flag_spec='${wl}-E'
10081
10082	  # hardcode_minus_L: Not really in the search PATH,
10083	  # but as the default location of the library.
10084	  hardcode_minus_L=yes
10085	  ;;
10086	esac
10087      fi
10088      ;;
10089
10090    irix5* | irix6* | nonstopux*)
10091      if test "$GCC" = yes; then
10092	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'
10093	# Try to use the -exported_symbol ld option, if it does not
10094	# work, assume that -exports_file does not work either and
10095	# implicitly export all symbols.
10096        save_LDFLAGS="$LDFLAGS"
10097        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10098        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h.  */
10100int foo(void) {}
10101_ACEOF
10102if ac_fn_c_try_link "$LINENO"; then :
10103  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'
10104
10105fi
10106rm -f core conftest.err conftest.$ac_objext \
10107    conftest$ac_exeext conftest.$ac_ext
10108        LDFLAGS="$save_LDFLAGS"
10109      else
10110	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'
10111	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'
10112      fi
10113      archive_cmds_need_lc='no'
10114      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115      hardcode_libdir_separator=:
10116      inherit_rpath=yes
10117      link_all_deplibs=yes
10118      ;;
10119
10120    netbsd*)
10121      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10122	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10123      else
10124	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10125      fi
10126      hardcode_libdir_flag_spec='-R$libdir'
10127      hardcode_direct=yes
10128      hardcode_shlibpath_var=no
10129      ;;
10130
10131    newsos6)
10132      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133      hardcode_direct=yes
10134      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135      hardcode_libdir_separator=:
10136      hardcode_shlibpath_var=no
10137      ;;
10138
10139    *nto* | *qnx*)
10140      ;;
10141
10142    openbsd*)
10143      if test -f /usr/libexec/ld.so; then
10144	hardcode_direct=yes
10145	hardcode_shlibpath_var=no
10146	hardcode_direct_absolute=yes
10147	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10148	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10149	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10150	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10151	  export_dynamic_flag_spec='${wl}-E'
10152	else
10153	  case $host_os in
10154	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10155	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10156	     hardcode_libdir_flag_spec='-R$libdir'
10157	     ;;
10158	   *)
10159	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10160	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10161	     ;;
10162	  esac
10163	fi
10164      else
10165	ld_shlibs=no
10166      fi
10167      ;;
10168
10169    os2*)
10170      hardcode_libdir_flag_spec='-L$libdir'
10171      hardcode_minus_L=yes
10172      allow_undefined_flag=unsupported
10173      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'
10174      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10175      ;;
10176
10177    osf3*)
10178      if test "$GCC" = yes; then
10179	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10180	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'
10181      else
10182	allow_undefined_flag=' -expect_unresolved \*'
10183	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'
10184      fi
10185      archive_cmds_need_lc='no'
10186      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187      hardcode_libdir_separator=:
10188      ;;
10189
10190    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10191      if test "$GCC" = yes; then
10192	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10193	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'
10194	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195      else
10196	allow_undefined_flag=' -expect_unresolved \*'
10197	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'
10198	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~
10199	$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'
10200
10201	# Both c and cxx compiler support -rpath directly
10202	hardcode_libdir_flag_spec='-rpath $libdir'
10203      fi
10204      archive_cmds_need_lc='no'
10205      hardcode_libdir_separator=:
10206      ;;
10207
10208    solaris*)
10209      no_undefined_flag=' -z defs'
10210      if test "$GCC" = yes; then
10211	wlarc='${wl}'
10212	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10213	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10214	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10215      else
10216	case `$CC -V 2>&1` in
10217	*"Compilers 5.0"*)
10218	  wlarc=''
10219	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10221	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10222	  ;;
10223	*)
10224	  wlarc='${wl}'
10225	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10226	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10227	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10228	  ;;
10229	esac
10230      fi
10231      hardcode_libdir_flag_spec='-R$libdir'
10232      hardcode_shlibpath_var=no
10233      case $host_os in
10234      solaris2.[0-5] | solaris2.[0-5].*) ;;
10235      *)
10236	# The compiler driver will combine and reorder linker options,
10237	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10238	# but is careful enough not to reorder.
10239	# Supported since Solaris 2.6 (maybe 2.5.1?)
10240	if test "$GCC" = yes; then
10241	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10242	else
10243	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10244	fi
10245	;;
10246      esac
10247      link_all_deplibs=yes
10248      ;;
10249
10250    sunos4*)
10251      if test "x$host_vendor" = xsequent; then
10252	# Use $CC to link under sequent, because it throws in some extra .o
10253	# files that make .init and .fini sections work.
10254	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10255      else
10256	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10257      fi
10258      hardcode_libdir_flag_spec='-L$libdir'
10259      hardcode_direct=yes
10260      hardcode_minus_L=yes
10261      hardcode_shlibpath_var=no
10262      ;;
10263
10264    sysv4)
10265      case $host_vendor in
10266	sni)
10267	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268	  hardcode_direct=yes # is this really true???
10269	;;
10270	siemens)
10271	  ## LD is ld it makes a PLAMLIB
10272	  ## CC just makes a GrossModule.
10273	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10274	  reload_cmds='$CC -r -o $output$reload_objs'
10275	  hardcode_direct=no
10276        ;;
10277	motorola)
10278	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10280	;;
10281      esac
10282      runpath_var='LD_RUN_PATH'
10283      hardcode_shlibpath_var=no
10284      ;;
10285
10286    sysv4.3*)
10287      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288      hardcode_shlibpath_var=no
10289      export_dynamic_flag_spec='-Bexport'
10290      ;;
10291
10292    sysv4*MP*)
10293      if test -d /usr/nec; then
10294	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295	hardcode_shlibpath_var=no
10296	runpath_var=LD_RUN_PATH
10297	hardcode_runpath_var=yes
10298	ld_shlibs=yes
10299      fi
10300      ;;
10301
10302    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10303      no_undefined_flag='${wl}-z,text'
10304      archive_cmds_need_lc=no
10305      hardcode_shlibpath_var=no
10306      runpath_var='LD_RUN_PATH'
10307
10308      if test "$GCC" = yes; then
10309	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311      else
10312	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314      fi
10315      ;;
10316
10317    sysv5* | sco3.2v5* | sco5v6*)
10318      # Note: We can NOT use -z defs as we might desire, because we do not
10319      # link with -lc, and that would cause any symbols used from libc to
10320      # always be unresolved, which means just about no library would
10321      # ever link correctly.  If we're not using GNU ld we use -z text
10322      # though, which does catch some bad symbols but isn't as heavy-handed
10323      # as -z defs.
10324      no_undefined_flag='${wl}-z,text'
10325      allow_undefined_flag='${wl}-z,nodefs'
10326      archive_cmds_need_lc=no
10327      hardcode_shlibpath_var=no
10328      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10329      hardcode_libdir_separator=':'
10330      link_all_deplibs=yes
10331      export_dynamic_flag_spec='${wl}-Bexport'
10332      runpath_var='LD_RUN_PATH'
10333
10334      if test "$GCC" = yes; then
10335	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337      else
10338	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340      fi
10341      ;;
10342
10343    uts4*)
10344      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345      hardcode_libdir_flag_spec='-L$libdir'
10346      hardcode_shlibpath_var=no
10347      ;;
10348
10349    *)
10350      ld_shlibs=no
10351      ;;
10352    esac
10353
10354    if test x$host_vendor = xsni; then
10355      case $host in
10356      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10357	export_dynamic_flag_spec='${wl}-Blargedynsym'
10358	;;
10359      esac
10360    fi
10361  fi
10362
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10364$as_echo "$ld_shlibs" >&6; }
10365test "$ld_shlibs" = no && can_build_shared=no
10366
10367with_gnu_ld=$with_gnu_ld
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383#
10384# Do we need to explicitly link libc?
10385#
10386case "x$archive_cmds_need_lc" in
10387x|xyes)
10388  # Assume -lc should be added
10389  archive_cmds_need_lc=yes
10390
10391  if test "$enable_shared" = yes && test "$GCC" = yes; then
10392    case $archive_cmds in
10393    *'~'*)
10394      # FIXME: we may have to deal with multi-command sequences.
10395      ;;
10396    '$CC '*)
10397      # Test whether the compiler implicitly links with -lc since on some
10398      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10399      # to ld, don't add -lc before -lgcc.
10400      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10401$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10402if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10403  $as_echo_n "(cached) " >&6
10404else
10405  $RM conftest*
10406	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10407
10408	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10409  (eval $ac_compile) 2>&5
10410  ac_status=$?
10411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10412  test $ac_status = 0; } 2>conftest.err; then
10413	  soname=conftest
10414	  lib=conftest
10415	  libobjs=conftest.$ac_objext
10416	  deplibs=
10417	  wl=$lt_prog_compiler_wl
10418	  pic_flag=$lt_prog_compiler_pic
10419	  compiler_flags=-v
10420	  linker_flags=-v
10421	  verstring=
10422	  output_objdir=.
10423	  libname=conftest
10424	  lt_save_allow_undefined_flag=$allow_undefined_flag
10425	  allow_undefined_flag=
10426	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10427  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10428  ac_status=$?
10429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10430  test $ac_status = 0; }
10431	  then
10432	    lt_cv_archive_cmds_need_lc=no
10433	  else
10434	    lt_cv_archive_cmds_need_lc=yes
10435	  fi
10436	  allow_undefined_flag=$lt_save_allow_undefined_flag
10437	else
10438	  cat conftest.err 1>&5
10439	fi
10440	$RM conftest*
10441
10442fi
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10444$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10445      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10446      ;;
10447    esac
10448  fi
10449  ;;
10450esac
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
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
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10609$as_echo_n "checking dynamic linker characteristics... " >&6; }
10610
10611if test "$GCC" = yes; then
10612  case $host_os in
10613    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10614    *) lt_awk_arg="/^libraries:/" ;;
10615  esac
10616  case $host_os in
10617    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10618    *) lt_sed_strip_eq="s,=/,/,g" ;;
10619  esac
10620  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10621  case $lt_search_path_spec in
10622  *\;*)
10623    # if the path contains ";" then we assume it to be the separator
10624    # otherwise default to the standard path separator (i.e. ":") - it is
10625    # assumed that no part of a normal pathname contains ";" but that should
10626    # okay in the real world where ";" in dirpaths is itself problematic.
10627    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10628    ;;
10629  *)
10630    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10631    ;;
10632  esac
10633  # Ok, now we have the path, separated by spaces, we can step through it
10634  # and add multilib dir if necessary.
10635  lt_tmp_lt_search_path_spec=
10636  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10637  for lt_sys_path in $lt_search_path_spec; do
10638    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10639      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10640    else
10641      test -d "$lt_sys_path" && \
10642	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10643    fi
10644  done
10645  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10646BEGIN {RS=" "; FS="/|\n";} {
10647  lt_foo="";
10648  lt_count=0;
10649  for (lt_i = NF; lt_i > 0; lt_i--) {
10650    if ($lt_i != "" && $lt_i != ".") {
10651      if ($lt_i == "..") {
10652        lt_count++;
10653      } else {
10654        if (lt_count == 0) {
10655          lt_foo="/" $lt_i lt_foo;
10656        } else {
10657          lt_count--;
10658        }
10659      }
10660    }
10661  }
10662  if (lt_foo != "") { lt_freq[lt_foo]++; }
10663  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10664}'`
10665  # AWK program above erroneously prepends '/' to C:/dos/paths
10666  # for these hosts.
10667  case $host_os in
10668    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10669      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10670  esac
10671  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10672else
10673  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10674fi
10675library_names_spec=
10676libname_spec='lib$name'
10677soname_spec=
10678shrext_cmds=".so"
10679postinstall_cmds=
10680postuninstall_cmds=
10681finish_cmds=
10682finish_eval=
10683shlibpath_var=
10684shlibpath_overrides_runpath=unknown
10685version_type=none
10686dynamic_linker="$host_os ld.so"
10687sys_lib_dlsearch_path_spec="/lib /usr/lib"
10688need_lib_prefix=unknown
10689hardcode_into_libs=no
10690
10691# when you set need_version to no, make sure it does not cause -set_version
10692# flags to be left without arguments
10693need_version=unknown
10694
10695case $host_os in
10696aix3*)
10697  version_type=linux
10698  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10699  shlibpath_var=LIBPATH
10700
10701  # AIX 3 has no versioning support, so we append a major version to the name.
10702  soname_spec='${libname}${release}${shared_ext}$major'
10703  ;;
10704
10705aix[4-9]*)
10706  version_type=linux
10707  need_lib_prefix=no
10708  need_version=no
10709  hardcode_into_libs=yes
10710  if test "$host_cpu" = ia64; then
10711    # AIX 5 supports IA64
10712    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10713    shlibpath_var=LD_LIBRARY_PATH
10714  else
10715    # With GCC up to 2.95.x, collect2 would create an import file
10716    # for dependence libraries.  The import file would start with
10717    # the line `#! .'.  This would cause the generated library to
10718    # depend on `.', always an invalid library.  This was fixed in
10719    # development snapshots of GCC prior to 3.0.
10720    case $host_os in
10721      aix4 | aix4.[01] | aix4.[01].*)
10722      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10723	   echo ' yes '
10724	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10725	:
10726      else
10727	can_build_shared=no
10728      fi
10729      ;;
10730    esac
10731    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10732    # soname into executable. Probably we can add versioning support to
10733    # collect2, so additional links can be useful in future.
10734    if test "$aix_use_runtimelinking" = yes; then
10735      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10736      # instead of lib<name>.a to let people know that these are not
10737      # typical AIX shared libraries.
10738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739    else
10740      # We preserve .a as extension for shared libraries through AIX4.2
10741      # and later when we are not doing run time linking.
10742      library_names_spec='${libname}${release}.a $libname.a'
10743      soname_spec='${libname}${release}${shared_ext}$major'
10744    fi
10745    shlibpath_var=LIBPATH
10746  fi
10747  ;;
10748
10749amigaos*)
10750  case $host_cpu in
10751  powerpc)
10752    # Since July 2007 AmigaOS4 officially supports .so libraries.
10753    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10754    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755    ;;
10756  m68k)
10757    library_names_spec='$libname.ixlibrary $libname.a'
10758    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10759    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'
10760    ;;
10761  esac
10762  ;;
10763
10764beos*)
10765  library_names_spec='${libname}${shared_ext}'
10766  dynamic_linker="$host_os ld.so"
10767  shlibpath_var=LIBRARY_PATH
10768  ;;
10769
10770bsdi[45]*)
10771  version_type=linux
10772  need_version=no
10773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774  soname_spec='${libname}${release}${shared_ext}$major'
10775  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10776  shlibpath_var=LD_LIBRARY_PATH
10777  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10778  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10779  # the default ld.so.conf also contains /usr/contrib/lib and
10780  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10781  # libtool to hard-code these into programs
10782  ;;
10783
10784cygwin* | mingw* | pw32* | cegcc*)
10785  version_type=windows
10786  shrext_cmds=".dll"
10787  need_version=no
10788  need_lib_prefix=no
10789
10790  case $GCC,$host_os in
10791  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10792    library_names_spec='$libname.dll.a'
10793    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10794    postinstall_cmds='base_file=`basename \${file}`~
10795      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10796      dldir=$destdir/`dirname \$dlpath`~
10797      test -d \$dldir || mkdir -p \$dldir~
10798      $install_prog $dir/$dlname \$dldir/$dlname~
10799      chmod a+x \$dldir/$dlname~
10800      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10801        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10802      fi'
10803    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10804      dlpath=$dir/\$dldll~
10805       $RM \$dlpath'
10806    shlibpath_overrides_runpath=yes
10807
10808    case $host_os in
10809    cygwin*)
10810      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10811      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10812
10813      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10814      ;;
10815    mingw* | cegcc*)
10816      # MinGW DLLs use traditional 'lib' prefix
10817      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10818      ;;
10819    pw32*)
10820      # pw32 DLLs use 'pw' prefix rather than 'lib'
10821      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10822      ;;
10823    esac
10824    ;;
10825
10826  *)
10827    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10828    ;;
10829  esac
10830  dynamic_linker='Win32 ld.exe'
10831  # FIXME: first we should search . and the directory the executable is in
10832  shlibpath_var=PATH
10833  ;;
10834
10835darwin* | rhapsody*)
10836  dynamic_linker="$host_os dyld"
10837  version_type=darwin
10838  need_lib_prefix=no
10839  need_version=no
10840  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10841  soname_spec='${libname}${release}${major}$shared_ext'
10842  shlibpath_overrides_runpath=yes
10843  shlibpath_var=DYLD_LIBRARY_PATH
10844  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10845
10846  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10847  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10848  ;;
10849
10850dgux*)
10851  version_type=linux
10852  need_lib_prefix=no
10853  need_version=no
10854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10855  soname_spec='${libname}${release}${shared_ext}$major'
10856  shlibpath_var=LD_LIBRARY_PATH
10857  ;;
10858
10859freebsd* | dragonfly*)
10860  # DragonFly does not have aout.  When/if they implement a new
10861  # versioning mechanism, adjust this.
10862  if test -x /usr/bin/objformat; then
10863    objformat=`/usr/bin/objformat`
10864  else
10865    case $host_os in
10866    freebsd[23].*) objformat=aout ;;
10867    *) objformat=elf ;;
10868    esac
10869  fi
10870  version_type=freebsd-$objformat
10871  case $version_type in
10872    freebsd-elf*)
10873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10874      need_version=no
10875      need_lib_prefix=no
10876      ;;
10877    freebsd-*)
10878      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10879      need_version=yes
10880      ;;
10881  esac
10882  shlibpath_var=LD_LIBRARY_PATH
10883  case $host_os in
10884  freebsd2.*)
10885    shlibpath_overrides_runpath=yes
10886    ;;
10887  freebsd3.[01]* | freebsdelf3.[01]*)
10888    shlibpath_overrides_runpath=yes
10889    hardcode_into_libs=yes
10890    ;;
10891  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10892  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10893    shlibpath_overrides_runpath=no
10894    hardcode_into_libs=yes
10895    ;;
10896  *) # from 4.6 on, and DragonFly
10897    shlibpath_overrides_runpath=yes
10898    hardcode_into_libs=yes
10899    ;;
10900  esac
10901  ;;
10902
10903gnu*)
10904  version_type=linux
10905  need_lib_prefix=no
10906  need_version=no
10907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10908  soname_spec='${libname}${release}${shared_ext}$major'
10909  shlibpath_var=LD_LIBRARY_PATH
10910  hardcode_into_libs=yes
10911  ;;
10912
10913haiku*)
10914  version_type=linux
10915  need_lib_prefix=no
10916  need_version=no
10917  dynamic_linker="$host_os runtime_loader"
10918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10919  soname_spec='${libname}${release}${shared_ext}$major'
10920  shlibpath_var=LIBRARY_PATH
10921  shlibpath_overrides_runpath=yes
10922  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10923  hardcode_into_libs=yes
10924  ;;
10925
10926hpux9* | hpux10* | hpux11*)
10927  # Give a soname corresponding to the major version so that dld.sl refuses to
10928  # link against other versions.
10929  version_type=sunos
10930  need_lib_prefix=no
10931  need_version=no
10932  case $host_cpu in
10933  ia64*)
10934    shrext_cmds='.so'
10935    hardcode_into_libs=yes
10936    dynamic_linker="$host_os dld.so"
10937    shlibpath_var=LD_LIBRARY_PATH
10938    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940    soname_spec='${libname}${release}${shared_ext}$major'
10941    if test "X$HPUX_IA64_MODE" = X32; then
10942      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10943    else
10944      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10945    fi
10946    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10947    ;;
10948  hppa*64*)
10949    shrext_cmds='.sl'
10950    hardcode_into_libs=yes
10951    dynamic_linker="$host_os dld.sl"
10952    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10953    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955    soname_spec='${libname}${release}${shared_ext}$major'
10956    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10957    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10958    ;;
10959  *)
10960    shrext_cmds='.sl'
10961    dynamic_linker="$host_os dld.sl"
10962    shlibpath_var=SHLIB_PATH
10963    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965    soname_spec='${libname}${release}${shared_ext}$major'
10966    ;;
10967  esac
10968  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10969  postinstall_cmds='chmod 555 $lib'
10970  # or fails outright, so override atomically:
10971  install_override_mode=555
10972  ;;
10973
10974interix[3-9]*)
10975  version_type=linux
10976  need_lib_prefix=no
10977  need_version=no
10978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10979  soname_spec='${libname}${release}${shared_ext}$major'
10980  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10981  shlibpath_var=LD_LIBRARY_PATH
10982  shlibpath_overrides_runpath=no
10983  hardcode_into_libs=yes
10984  ;;
10985
10986irix5* | irix6* | nonstopux*)
10987  case $host_os in
10988    nonstopux*) version_type=nonstopux ;;
10989    *)
10990	if test "$lt_cv_prog_gnu_ld" = yes; then
10991		version_type=linux
10992	else
10993		version_type=irix
10994	fi ;;
10995  esac
10996  need_lib_prefix=no
10997  need_version=no
10998  soname_spec='${libname}${release}${shared_ext}$major'
10999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11000  case $host_os in
11001  irix5* | nonstopux*)
11002    libsuff= shlibsuff=
11003    ;;
11004  *)
11005    case $LD in # libtool.m4 will add one of these switches to LD
11006    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11007      libsuff= shlibsuff= libmagic=32-bit;;
11008    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11009      libsuff=32 shlibsuff=N32 libmagic=N32;;
11010    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11011      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11012    *) libsuff= shlibsuff= libmagic=never-match;;
11013    esac
11014    ;;
11015  esac
11016  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11017  shlibpath_overrides_runpath=no
11018  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11019  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11020  hardcode_into_libs=yes
11021  ;;
11022
11023# No shared lib support for Linux oldld, aout, or coff.
11024linux*oldld* | linux*aout* | linux*coff*)
11025  dynamic_linker=no
11026  ;;
11027
11028# This must be Linux ELF.
11029linux* | k*bsd*-gnu | kopensolaris*-gnu)
11030  version_type=linux
11031  need_lib_prefix=no
11032  need_version=no
11033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034  soname_spec='${libname}${release}${shared_ext}$major'
11035  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11036  shlibpath_var=LD_LIBRARY_PATH
11037  shlibpath_overrides_runpath=no
11038
11039  # Some binutils ld are patched to set DT_RUNPATH
11040  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11041  $as_echo_n "(cached) " >&6
11042else
11043  lt_cv_shlibpath_overrides_runpath=no
11044    save_LDFLAGS=$LDFLAGS
11045    save_libdir=$libdir
11046    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11047	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049/* end confdefs.h.  */
11050
11051int
11052main ()
11053{
11054
11055  ;
11056  return 0;
11057}
11058_ACEOF
11059if ac_fn_c_try_link "$LINENO"; then :
11060  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11061  lt_cv_shlibpath_overrides_runpath=yes
11062fi
11063fi
11064rm -f core conftest.err conftest.$ac_objext \
11065    conftest$ac_exeext conftest.$ac_ext
11066    LDFLAGS=$save_LDFLAGS
11067    libdir=$save_libdir
11068
11069fi
11070
11071  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11072
11073  # This implies no fast_install, which is unacceptable.
11074  # Some rework will be needed to allow for fast_install
11075  # before this can be enabled.
11076  hardcode_into_libs=yes
11077
11078  # Append ld.so.conf contents to the search path
11079  if test -f /etc/ld.so.conf; then
11080    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' ' '`
11081    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11082  fi
11083
11084  # We used to test for /lib/ld.so.1 and disable shared libraries on
11085  # powerpc, because MkLinux only supported shared libraries with the
11086  # GNU dynamic linker.  Since this was broken with cross compilers,
11087  # most powerpc-linux boxes support dynamic linking these days and
11088  # people can always --disable-shared, the test was removed, and we
11089  # assume the GNU/Linux dynamic linker is in use.
11090  dynamic_linker='GNU/Linux ld.so'
11091  ;;
11092
11093netbsd*)
11094  version_type=sunos
11095  need_lib_prefix=no
11096  need_version=no
11097  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11100    dynamic_linker='NetBSD (a.out) ld.so'
11101  else
11102    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103    soname_spec='${libname}${release}${shared_ext}$major'
11104    dynamic_linker='NetBSD ld.elf_so'
11105  fi
11106  shlibpath_var=LD_LIBRARY_PATH
11107  shlibpath_overrides_runpath=yes
11108  hardcode_into_libs=yes
11109  ;;
11110
11111newsos6)
11112  version_type=linux
11113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114  shlibpath_var=LD_LIBRARY_PATH
11115  shlibpath_overrides_runpath=yes
11116  ;;
11117
11118*nto* | *qnx*)
11119  version_type=qnx
11120  need_lib_prefix=no
11121  need_version=no
11122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123  soname_spec='${libname}${release}${shared_ext}$major'
11124  shlibpath_var=LD_LIBRARY_PATH
11125  shlibpath_overrides_runpath=no
11126  hardcode_into_libs=yes
11127  dynamic_linker='ldqnx.so'
11128  ;;
11129
11130openbsd*)
11131  version_type=sunos
11132  sys_lib_dlsearch_path_spec="/usr/lib"
11133  need_lib_prefix=no
11134  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11135  case $host_os in
11136    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11137    *)				need_version=no  ;;
11138  esac
11139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141  shlibpath_var=LD_LIBRARY_PATH
11142  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11143    case $host_os in
11144      openbsd2.[89] | openbsd2.[89].*)
11145	shlibpath_overrides_runpath=no
11146	;;
11147      *)
11148	shlibpath_overrides_runpath=yes
11149	;;
11150      esac
11151  else
11152    shlibpath_overrides_runpath=yes
11153  fi
11154  ;;
11155
11156os2*)
11157  libname_spec='$name'
11158  shrext_cmds=".dll"
11159  need_lib_prefix=no
11160  library_names_spec='$libname${shared_ext} $libname.a'
11161  dynamic_linker='OS/2 ld.exe'
11162  shlibpath_var=LIBPATH
11163  ;;
11164
11165osf3* | osf4* | osf5*)
11166  version_type=osf
11167  need_lib_prefix=no
11168  need_version=no
11169  soname_spec='${libname}${release}${shared_ext}$major'
11170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171  shlibpath_var=LD_LIBRARY_PATH
11172  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11173  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11174  ;;
11175
11176rdos*)
11177  dynamic_linker=no
11178  ;;
11179
11180solaris*)
11181  version_type=linux
11182  need_lib_prefix=no
11183  need_version=no
11184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185  soname_spec='${libname}${release}${shared_ext}$major'
11186  shlibpath_var=LD_LIBRARY_PATH
11187  shlibpath_overrides_runpath=yes
11188  hardcode_into_libs=yes
11189  # ldd complains unless libraries are executable
11190  postinstall_cmds='chmod +x $lib'
11191  ;;
11192
11193sunos4*)
11194  version_type=sunos
11195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11196  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11197  shlibpath_var=LD_LIBRARY_PATH
11198  shlibpath_overrides_runpath=yes
11199  if test "$with_gnu_ld" = yes; then
11200    need_lib_prefix=no
11201  fi
11202  need_version=yes
11203  ;;
11204
11205sysv4 | sysv4.3*)
11206  version_type=linux
11207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208  soname_spec='${libname}${release}${shared_ext}$major'
11209  shlibpath_var=LD_LIBRARY_PATH
11210  case $host_vendor in
11211    sni)
11212      shlibpath_overrides_runpath=no
11213      need_lib_prefix=no
11214      runpath_var=LD_RUN_PATH
11215      ;;
11216    siemens)
11217      need_lib_prefix=no
11218      ;;
11219    motorola)
11220      need_lib_prefix=no
11221      need_version=no
11222      shlibpath_overrides_runpath=no
11223      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11224      ;;
11225  esac
11226  ;;
11227
11228sysv4*MP*)
11229  if test -d /usr/nec ;then
11230    version_type=linux
11231    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11232    soname_spec='$libname${shared_ext}.$major'
11233    shlibpath_var=LD_LIBRARY_PATH
11234  fi
11235  ;;
11236
11237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238  version_type=freebsd-elf
11239  need_lib_prefix=no
11240  need_version=no
11241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11242  soname_spec='${libname}${release}${shared_ext}$major'
11243  shlibpath_var=LD_LIBRARY_PATH
11244  shlibpath_overrides_runpath=yes
11245  hardcode_into_libs=yes
11246  if test "$with_gnu_ld" = yes; then
11247    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11248  else
11249    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250    case $host_os in
11251      sco3.2v5*)
11252        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253	;;
11254    esac
11255  fi
11256  sys_lib_dlsearch_path_spec='/usr/lib'
11257  ;;
11258
11259tpf*)
11260  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11261  version_type=linux
11262  need_lib_prefix=no
11263  need_version=no
11264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265  shlibpath_var=LD_LIBRARY_PATH
11266  shlibpath_overrides_runpath=no
11267  hardcode_into_libs=yes
11268  ;;
11269
11270uts4*)
11271  version_type=linux
11272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273  soname_spec='${libname}${release}${shared_ext}$major'
11274  shlibpath_var=LD_LIBRARY_PATH
11275  ;;
11276
11277*)
11278  dynamic_linker=no
11279  ;;
11280esac
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11282$as_echo "$dynamic_linker" >&6; }
11283test "$dynamic_linker" = no && can_build_shared=no
11284
11285variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286if test "$GCC" = yes; then
11287  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11288fi
11289
11290if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11291  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11292fi
11293if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11294  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11295fi
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11389$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11390hardcode_action=
11391if test -n "$hardcode_libdir_flag_spec" ||
11392   test -n "$runpath_var" ||
11393   test "X$hardcode_automatic" = "Xyes" ; then
11394
11395  # We can hardcode non-existent directories.
11396  if test "$hardcode_direct" != no &&
11397     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11398     # have to relink, otherwise we might link with an installed library
11399     # when we should be linking with a yet-to-be-installed one
11400     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11401     test "$hardcode_minus_L" != no; then
11402    # Linking always hardcodes the temporary library directory.
11403    hardcode_action=relink
11404  else
11405    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11406    hardcode_action=immediate
11407  fi
11408else
11409  # We cannot hardcode anything, or else we can only hardcode existing
11410  # directories.
11411  hardcode_action=unsupported
11412fi
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11414$as_echo "$hardcode_action" >&6; }
11415
11416if test "$hardcode_action" = relink ||
11417   test "$inherit_rpath" = yes; then
11418  # Fast installation is not supported
11419  enable_fast_install=no
11420elif test "$shlibpath_overrides_runpath" = yes ||
11421     test "$enable_shared" = no; then
11422  # Fast installation is not necessary
11423  enable_fast_install=needless
11424fi
11425
11426
11427
11428
11429
11430
11431  if test "x$enable_dlopen" != xyes; then
11432  enable_dlopen=unknown
11433  enable_dlopen_self=unknown
11434  enable_dlopen_self_static=unknown
11435else
11436  lt_cv_dlopen=no
11437  lt_cv_dlopen_libs=
11438
11439  case $host_os in
11440  beos*)
11441    lt_cv_dlopen="load_add_on"
11442    lt_cv_dlopen_libs=
11443    lt_cv_dlopen_self=yes
11444    ;;
11445
11446  mingw* | pw32* | cegcc*)
11447    lt_cv_dlopen="LoadLibrary"
11448    lt_cv_dlopen_libs=
11449    ;;
11450
11451  cygwin*)
11452    lt_cv_dlopen="dlopen"
11453    lt_cv_dlopen_libs=
11454    ;;
11455
11456  darwin*)
11457  # if libdl is installed we need to link against it
11458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459$as_echo_n "checking for dlopen in -ldl... " >&6; }
11460if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11461  $as_echo_n "(cached) " >&6
11462else
11463  ac_check_lib_save_LIBS=$LIBS
11464LIBS="-ldl  $LIBS"
11465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466/* end confdefs.h.  */
11467
11468/* Override any GCC internal prototype to avoid an error.
11469   Use char because int might match the return type of a GCC
11470   builtin and then its argument prototype would still apply.  */
11471#ifdef __cplusplus
11472extern "C"
11473#endif
11474char dlopen ();
11475int
11476main ()
11477{
11478return dlopen ();
11479  ;
11480  return 0;
11481}
11482_ACEOF
11483if ac_fn_c_try_link "$LINENO"; then :
11484  ac_cv_lib_dl_dlopen=yes
11485else
11486  ac_cv_lib_dl_dlopen=no
11487fi
11488rm -f core conftest.err conftest.$ac_objext \
11489    conftest$ac_exeext conftest.$ac_ext
11490LIBS=$ac_check_lib_save_LIBS
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11495  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11496else
11497
11498    lt_cv_dlopen="dyld"
11499    lt_cv_dlopen_libs=
11500    lt_cv_dlopen_self=yes
11501
11502fi
11503
11504    ;;
11505
11506  *)
11507    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11508if test "x$ac_cv_func_shl_load" = x""yes; then :
11509  lt_cv_dlopen="shl_load"
11510else
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11512$as_echo_n "checking for shl_load in -ldld... " >&6; }
11513if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11514  $as_echo_n "(cached) " >&6
11515else
11516  ac_check_lib_save_LIBS=$LIBS
11517LIBS="-ldld  $LIBS"
11518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519/* end confdefs.h.  */
11520
11521/* Override any GCC internal prototype to avoid an error.
11522   Use char because int might match the return type of a GCC
11523   builtin and then its argument prototype would still apply.  */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char shl_load ();
11528int
11529main ()
11530{
11531return shl_load ();
11532  ;
11533  return 0;
11534}
11535_ACEOF
11536if ac_fn_c_try_link "$LINENO"; then :
11537  ac_cv_lib_dld_shl_load=yes
11538else
11539  ac_cv_lib_dld_shl_load=no
11540fi
11541rm -f core conftest.err conftest.$ac_objext \
11542    conftest$ac_exeext conftest.$ac_ext
11543LIBS=$ac_check_lib_save_LIBS
11544fi
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11546$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11547if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11548  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11549else
11550  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11551if test "x$ac_cv_func_dlopen" = x""yes; then :
11552  lt_cv_dlopen="dlopen"
11553else
11554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11555$as_echo_n "checking for dlopen in -ldl... " >&6; }
11556if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559  ac_check_lib_save_LIBS=$LIBS
11560LIBS="-ldl  $LIBS"
11561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562/* end confdefs.h.  */
11563
11564/* Override any GCC internal prototype to avoid an error.
11565   Use char because int might match the return type of a GCC
11566   builtin and then its argument prototype would still apply.  */
11567#ifdef __cplusplus
11568extern "C"
11569#endif
11570char dlopen ();
11571int
11572main ()
11573{
11574return dlopen ();
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579if ac_fn_c_try_link "$LINENO"; then :
11580  ac_cv_lib_dl_dlopen=yes
11581else
11582  ac_cv_lib_dl_dlopen=no
11583fi
11584rm -f core conftest.err conftest.$ac_objext \
11585    conftest$ac_exeext conftest.$ac_ext
11586LIBS=$ac_check_lib_save_LIBS
11587fi
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11589$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11590if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11591  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11592else
11593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11594$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11595if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11596  $as_echo_n "(cached) " >&6
11597else
11598  ac_check_lib_save_LIBS=$LIBS
11599LIBS="-lsvld  $LIBS"
11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601/* end confdefs.h.  */
11602
11603/* Override any GCC internal prototype to avoid an error.
11604   Use char because int might match the return type of a GCC
11605   builtin and then its argument prototype would still apply.  */
11606#ifdef __cplusplus
11607extern "C"
11608#endif
11609char dlopen ();
11610int
11611main ()
11612{
11613return dlopen ();
11614  ;
11615  return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_link "$LINENO"; then :
11619  ac_cv_lib_svld_dlopen=yes
11620else
11621  ac_cv_lib_svld_dlopen=no
11622fi
11623rm -f core conftest.err conftest.$ac_objext \
11624    conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11628$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11629if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11630  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11631else
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11633$as_echo_n "checking for dld_link in -ldld... " >&6; }
11634if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  ac_check_lib_save_LIBS=$LIBS
11638LIBS="-ldld  $LIBS"
11639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640/* end confdefs.h.  */
11641
11642/* Override any GCC internal prototype to avoid an error.
11643   Use char because int might match the return type of a GCC
11644   builtin and then its argument prototype would still apply.  */
11645#ifdef __cplusplus
11646extern "C"
11647#endif
11648char dld_link ();
11649int
11650main ()
11651{
11652return dld_link ();
11653  ;
11654  return 0;
11655}
11656_ACEOF
11657if ac_fn_c_try_link "$LINENO"; then :
11658  ac_cv_lib_dld_dld_link=yes
11659else
11660  ac_cv_lib_dld_dld_link=no
11661fi
11662rm -f core conftest.err conftest.$ac_objext \
11663    conftest$ac_exeext conftest.$ac_ext
11664LIBS=$ac_check_lib_save_LIBS
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11667$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11668if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11669  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11670fi
11671
11672
11673fi
11674
11675
11676fi
11677
11678
11679fi
11680
11681
11682fi
11683
11684
11685fi
11686
11687    ;;
11688  esac
11689
11690  if test "x$lt_cv_dlopen" != xno; then
11691    enable_dlopen=yes
11692  else
11693    enable_dlopen=no
11694  fi
11695
11696  case $lt_cv_dlopen in
11697  dlopen)
11698    save_CPPFLAGS="$CPPFLAGS"
11699    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11700
11701    save_LDFLAGS="$LDFLAGS"
11702    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11703
11704    save_LIBS="$LIBS"
11705    LIBS="$lt_cv_dlopen_libs $LIBS"
11706
11707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11708$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11709if test "${lt_cv_dlopen_self+set}" = set; then :
11710  $as_echo_n "(cached) " >&6
11711else
11712  	  if test "$cross_compiling" = yes; then :
11713  lt_cv_dlopen_self=cross
11714else
11715  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11716  lt_status=$lt_dlunknown
11717  cat > conftest.$ac_ext <<_LT_EOF
11718#line 11718 "configure"
11719#include "confdefs.h"
11720
11721#if HAVE_DLFCN_H
11722#include <dlfcn.h>
11723#endif
11724
11725#include <stdio.h>
11726
11727#ifdef RTLD_GLOBAL
11728#  define LT_DLGLOBAL		RTLD_GLOBAL
11729#else
11730#  ifdef DL_GLOBAL
11731#    define LT_DLGLOBAL		DL_GLOBAL
11732#  else
11733#    define LT_DLGLOBAL		0
11734#  endif
11735#endif
11736
11737/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11738   find out it does not work in some platform. */
11739#ifndef LT_DLLAZY_OR_NOW
11740#  ifdef RTLD_LAZY
11741#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11742#  else
11743#    ifdef DL_LAZY
11744#      define LT_DLLAZY_OR_NOW		DL_LAZY
11745#    else
11746#      ifdef RTLD_NOW
11747#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11748#      else
11749#        ifdef DL_NOW
11750#          define LT_DLLAZY_OR_NOW	DL_NOW
11751#        else
11752#          define LT_DLLAZY_OR_NOW	0
11753#        endif
11754#      endif
11755#    endif
11756#  endif
11757#endif
11758
11759/* When -fvisbility=hidden is used, assume the code has been annotated
11760   correspondingly for the symbols needed.  */
11761#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11762void fnord () __attribute__((visibility("default")));
11763#endif
11764
11765void fnord () { int i=42; }
11766int main ()
11767{
11768  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11769  int status = $lt_dlunknown;
11770
11771  if (self)
11772    {
11773      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11774      else
11775        {
11776	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11777          else puts (dlerror ());
11778	}
11779      /* dlclose (self); */
11780    }
11781  else
11782    puts (dlerror ());
11783
11784  return status;
11785}
11786_LT_EOF
11787  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11788  (eval $ac_link) 2>&5
11789  ac_status=$?
11790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11791  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11792    (./conftest; exit; ) >&5 2>/dev/null
11793    lt_status=$?
11794    case x$lt_status in
11795      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11796      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11797      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11798    esac
11799  else :
11800    # compilation failed
11801    lt_cv_dlopen_self=no
11802  fi
11803fi
11804rm -fr conftest*
11805
11806
11807fi
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11809$as_echo "$lt_cv_dlopen_self" >&6; }
11810
11811    if test "x$lt_cv_dlopen_self" = xyes; then
11812      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11813      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11814$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11815if test "${lt_cv_dlopen_self_static+set}" = set; then :
11816  $as_echo_n "(cached) " >&6
11817else
11818  	  if test "$cross_compiling" = yes; then :
11819  lt_cv_dlopen_self_static=cross
11820else
11821  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11822  lt_status=$lt_dlunknown
11823  cat > conftest.$ac_ext <<_LT_EOF
11824#line 11824 "configure"
11825#include "confdefs.h"
11826
11827#if HAVE_DLFCN_H
11828#include <dlfcn.h>
11829#endif
11830
11831#include <stdio.h>
11832
11833#ifdef RTLD_GLOBAL
11834#  define LT_DLGLOBAL		RTLD_GLOBAL
11835#else
11836#  ifdef DL_GLOBAL
11837#    define LT_DLGLOBAL		DL_GLOBAL
11838#  else
11839#    define LT_DLGLOBAL		0
11840#  endif
11841#endif
11842
11843/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11844   find out it does not work in some platform. */
11845#ifndef LT_DLLAZY_OR_NOW
11846#  ifdef RTLD_LAZY
11847#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11848#  else
11849#    ifdef DL_LAZY
11850#      define LT_DLLAZY_OR_NOW		DL_LAZY
11851#    else
11852#      ifdef RTLD_NOW
11853#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11854#      else
11855#        ifdef DL_NOW
11856#          define LT_DLLAZY_OR_NOW	DL_NOW
11857#        else
11858#          define LT_DLLAZY_OR_NOW	0
11859#        endif
11860#      endif
11861#    endif
11862#  endif
11863#endif
11864
11865/* When -fvisbility=hidden is used, assume the code has been annotated
11866   correspondingly for the symbols needed.  */
11867#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11868void fnord () __attribute__((visibility("default")));
11869#endif
11870
11871void fnord () { int i=42; }
11872int main ()
11873{
11874  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11875  int status = $lt_dlunknown;
11876
11877  if (self)
11878    {
11879      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11880      else
11881        {
11882	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11883          else puts (dlerror ());
11884	}
11885      /* dlclose (self); */
11886    }
11887  else
11888    puts (dlerror ());
11889
11890  return status;
11891}
11892_LT_EOF
11893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11894  (eval $ac_link) 2>&5
11895  ac_status=$?
11896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11897  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11898    (./conftest; exit; ) >&5 2>/dev/null
11899    lt_status=$?
11900    case x$lt_status in
11901      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11902      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11903      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11904    esac
11905  else :
11906    # compilation failed
11907    lt_cv_dlopen_self_static=no
11908  fi
11909fi
11910rm -fr conftest*
11911
11912
11913fi
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11915$as_echo "$lt_cv_dlopen_self_static" >&6; }
11916    fi
11917
11918    CPPFLAGS="$save_CPPFLAGS"
11919    LDFLAGS="$save_LDFLAGS"
11920    LIBS="$save_LIBS"
11921    ;;
11922  esac
11923
11924  case $lt_cv_dlopen_self in
11925  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11926  *) enable_dlopen_self=unknown ;;
11927  esac
11928
11929  case $lt_cv_dlopen_self_static in
11930  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11931  *) enable_dlopen_self_static=unknown ;;
11932  esac
11933fi
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951striplib=
11952old_striplib=
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11954$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11955if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11956  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11957  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959$as_echo "yes" >&6; }
11960else
11961# FIXME - insert some real tests, host_os isn't really good enough
11962  case $host_os in
11963  darwin*)
11964    if test -n "$STRIP" ; then
11965      striplib="$STRIP -x"
11966      old_striplib="$STRIP -S"
11967      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968$as_echo "yes" >&6; }
11969    else
11970      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
11972    fi
11973    ;;
11974  *)
11975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
11977    ;;
11978  esac
11979fi
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992  # Report which library types will actually be built
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11994$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11996$as_echo "$can_build_shared" >&6; }
11997
11998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11999$as_echo_n "checking whether to build shared libraries... " >&6; }
12000  test "$can_build_shared" = "no" && enable_shared=no
12001
12002  # On AIX, shared libraries and static libraries use the same namespace, and
12003  # are all built from PIC.
12004  case $host_os in
12005  aix3*)
12006    test "$enable_shared" = yes && enable_static=no
12007    if test -n "$RANLIB"; then
12008      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12009      postinstall_cmds='$RANLIB $lib'
12010    fi
12011    ;;
12012
12013  aix[4-9]*)
12014    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12015      test "$enable_shared" = yes && enable_static=no
12016    fi
12017    ;;
12018  esac
12019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12020$as_echo "$enable_shared" >&6; }
12021
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12023$as_echo_n "checking whether to build static libraries... " >&6; }
12024  # Make sure either enable_shared or enable_static is yes.
12025  test "$enable_shared" = yes || enable_static=yes
12026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12027$as_echo "$enable_static" >&6; }
12028
12029
12030
12031
12032fi
12033ac_ext=c
12034ac_cpp='$CPP $CPPFLAGS'
12035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12037ac_compiler_gnu=$ac_cv_c_compiler_gnu
12038
12039CC="$lt_save_CC"
12040
12041      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12042    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12043    (test "X$CXX" != "Xg++"))) ; then
12044  ac_ext=cpp
12045ac_cpp='$CXXCPP $CPPFLAGS'
12046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12050$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12051if test -z "$CXXCPP"; then
12052  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12053  $as_echo_n "(cached) " >&6
12054else
12055      # Double quotes because CXXCPP needs to be expanded
12056    for CXXCPP in "$CXX -E" "/lib/cpp"
12057    do
12058      ac_preproc_ok=false
12059for ac_cxx_preproc_warn_flag in '' yes
12060do
12061  # Use a header file that comes with gcc, so configuring glibc
12062  # with a fresh cross-compiler works.
12063  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064  # <limits.h> exists even on freestanding compilers.
12065  # On the NeXT, cc -E runs the code through the compiler's parser,
12066  # not just through cpp. "Syntax error" is here to catch this case.
12067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h.  */
12069#ifdef __STDC__
12070# include <limits.h>
12071#else
12072# include <assert.h>
12073#endif
12074		     Syntax error
12075_ACEOF
12076if ac_fn_cxx_try_cpp "$LINENO"; then :
12077
12078else
12079  # Broken: fails on valid input.
12080continue
12081fi
12082rm -f conftest.err conftest.$ac_ext
12083
12084  # OK, works on sane cases.  Now check whether nonexistent headers
12085  # can be detected and how.
12086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087/* end confdefs.h.  */
12088#include <ac_nonexistent.h>
12089_ACEOF
12090if ac_fn_cxx_try_cpp "$LINENO"; then :
12091  # Broken: success on invalid input.
12092continue
12093else
12094  # Passes both tests.
12095ac_preproc_ok=:
12096break
12097fi
12098rm -f conftest.err conftest.$ac_ext
12099
12100done
12101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12102rm -f conftest.err conftest.$ac_ext
12103if $ac_preproc_ok; then :
12104  break
12105fi
12106
12107    done
12108    ac_cv_prog_CXXCPP=$CXXCPP
12109
12110fi
12111  CXXCPP=$ac_cv_prog_CXXCPP
12112else
12113  ac_cv_prog_CXXCPP=$CXXCPP
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12116$as_echo "$CXXCPP" >&6; }
12117ac_preproc_ok=false
12118for ac_cxx_preproc_warn_flag in '' yes
12119do
12120  # Use a header file that comes with gcc, so configuring glibc
12121  # with a fresh cross-compiler works.
12122  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12123  # <limits.h> exists even on freestanding compilers.
12124  # On the NeXT, cc -E runs the code through the compiler's parser,
12125  # not just through cpp. "Syntax error" is here to catch this case.
12126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127/* end confdefs.h.  */
12128#ifdef __STDC__
12129# include <limits.h>
12130#else
12131# include <assert.h>
12132#endif
12133		     Syntax error
12134_ACEOF
12135if ac_fn_cxx_try_cpp "$LINENO"; then :
12136
12137else
12138  # Broken: fails on valid input.
12139continue
12140fi
12141rm -f conftest.err conftest.$ac_ext
12142
12143  # OK, works on sane cases.  Now check whether nonexistent headers
12144  # can be detected and how.
12145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h.  */
12147#include <ac_nonexistent.h>
12148_ACEOF
12149if ac_fn_cxx_try_cpp "$LINENO"; then :
12150  # Broken: success on invalid input.
12151continue
12152else
12153  # Passes both tests.
12154ac_preproc_ok=:
12155break
12156fi
12157rm -f conftest.err conftest.$ac_ext
12158
12159done
12160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12161rm -f conftest.err conftest.$ac_ext
12162if $ac_preproc_ok; then :
12163
12164else
12165  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12167as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12168See \`config.log' for more details." "$LINENO" 5; }
12169fi
12170
12171ac_ext=c
12172ac_cpp='$CPP $CPPFLAGS'
12173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12175ac_compiler_gnu=$ac_cv_c_compiler_gnu
12176
12177else
12178  _lt_caught_CXX_error=yes
12179fi
12180
12181ac_ext=cpp
12182ac_cpp='$CXXCPP $CPPFLAGS'
12183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12186
12187archive_cmds_need_lc_CXX=no
12188allow_undefined_flag_CXX=
12189always_export_symbols_CXX=no
12190archive_expsym_cmds_CXX=
12191compiler_needs_object_CXX=no
12192export_dynamic_flag_spec_CXX=
12193hardcode_direct_CXX=no
12194hardcode_direct_absolute_CXX=no
12195hardcode_libdir_flag_spec_CXX=
12196hardcode_libdir_flag_spec_ld_CXX=
12197hardcode_libdir_separator_CXX=
12198hardcode_minus_L_CXX=no
12199hardcode_shlibpath_var_CXX=unsupported
12200hardcode_automatic_CXX=no
12201inherit_rpath_CXX=no
12202module_cmds_CXX=
12203module_expsym_cmds_CXX=
12204link_all_deplibs_CXX=unknown
12205old_archive_cmds_CXX=$old_archive_cmds
12206reload_flag_CXX=$reload_flag
12207reload_cmds_CXX=$reload_cmds
12208no_undefined_flag_CXX=
12209whole_archive_flag_spec_CXX=
12210enable_shared_with_static_runtimes_CXX=no
12211
12212# Source file extension for C++ test sources.
12213ac_ext=cpp
12214
12215# Object file extension for compiled C++ test sources.
12216objext=o
12217objext_CXX=$objext
12218
12219# No sense in running all these tests if we already determined that
12220# the CXX compiler isn't working.  Some variables (like enable_shared)
12221# are currently assumed to apply to all compilers on this platform,
12222# and will be corrupted by setting them based on a non-working compiler.
12223if test "$_lt_caught_CXX_error" != yes; then
12224  # Code to be used in simple compile tests
12225  lt_simple_compile_test_code="int some_variable = 0;"
12226
12227  # Code to be used in simple link tests
12228  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12229
12230  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12231
12232
12233
12234
12235
12236
12237# If no C compiler was specified, use CC.
12238LTCC=${LTCC-"$CC"}
12239
12240# If no C compiler flags were specified, use CFLAGS.
12241LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12242
12243# Allow CC to be a program name with arguments.
12244compiler=$CC
12245
12246
12247  # save warnings/boilerplate of simple test code
12248  ac_outfile=conftest.$ac_objext
12249echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12250eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12251_lt_compiler_boilerplate=`cat conftest.err`
12252$RM conftest*
12253
12254  ac_outfile=conftest.$ac_objext
12255echo "$lt_simple_link_test_code" >conftest.$ac_ext
12256eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12257_lt_linker_boilerplate=`cat conftest.err`
12258$RM -r conftest*
12259
12260
12261  # Allow CC to be a program name with arguments.
12262  lt_save_CC=$CC
12263  lt_save_LD=$LD
12264  lt_save_GCC=$GCC
12265  GCC=$GXX
12266  lt_save_with_gnu_ld=$with_gnu_ld
12267  lt_save_path_LD=$lt_cv_path_LD
12268  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12269    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12270  else
12271    $as_unset lt_cv_prog_gnu_ld
12272  fi
12273  if test -n "${lt_cv_path_LDCXX+set}"; then
12274    lt_cv_path_LD=$lt_cv_path_LDCXX
12275  else
12276    $as_unset lt_cv_path_LD
12277  fi
12278  test -z "${LDCXX+set}" || LD=$LDCXX
12279  CC=${CXX-"c++"}
12280  compiler=$CC
12281  compiler_CXX=$CC
12282  for cc_temp in $compiler""; do
12283  case $cc_temp in
12284    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12285    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12286    \-*) ;;
12287    *) break;;
12288  esac
12289done
12290cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12291
12292
12293  if test -n "$compiler"; then
12294    # We don't want -fno-exception when compiling C++ code, so set the
12295    # no_builtin_flag separately
12296    if test "$GXX" = yes; then
12297      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12298    else
12299      lt_prog_compiler_no_builtin_flag_CXX=
12300    fi
12301
12302    if test "$GXX" = yes; then
12303      # Set up default GNU C++ configuration
12304
12305
12306
12307# Check whether --with-gnu-ld was given.
12308if test "${with_gnu_ld+set}" = set; then :
12309  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12310else
12311  with_gnu_ld=no
12312fi
12313
12314ac_prog=ld
12315if test "$GCC" = yes; then
12316  # Check if gcc -print-prog-name=ld gives a path.
12317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12318$as_echo_n "checking for ld used by $CC... " >&6; }
12319  case $host in
12320  *-*-mingw*)
12321    # gcc leaves a trailing carriage return which upsets mingw
12322    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12323  *)
12324    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12325  esac
12326  case $ac_prog in
12327    # Accept absolute paths.
12328    [\\/]* | ?:[\\/]*)
12329      re_direlt='/[^/][^/]*/\.\./'
12330      # Canonicalize the pathname of ld
12331      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12332      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12333	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12334      done
12335      test -z "$LD" && LD="$ac_prog"
12336      ;;
12337  "")
12338    # If it fails, then pretend we aren't using GCC.
12339    ac_prog=ld
12340    ;;
12341  *)
12342    # If it is relative, then search for the first ld in PATH.
12343    with_gnu_ld=unknown
12344    ;;
12345  esac
12346elif test "$with_gnu_ld" = yes; then
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12348$as_echo_n "checking for GNU ld... " >&6; }
12349else
12350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12351$as_echo_n "checking for non-GNU ld... " >&6; }
12352fi
12353if test "${lt_cv_path_LD+set}" = set; then :
12354  $as_echo_n "(cached) " >&6
12355else
12356  if test -z "$LD"; then
12357  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12358  for ac_dir in $PATH; do
12359    IFS="$lt_save_ifs"
12360    test -z "$ac_dir" && ac_dir=.
12361    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12362      lt_cv_path_LD="$ac_dir/$ac_prog"
12363      # Check to see if the program is GNU ld.  I'd rather use --version,
12364      # but apparently some variants of GNU ld only accept -v.
12365      # Break only if it was the GNU/non-GNU ld that we prefer.
12366      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12367      *GNU* | *'with BFD'*)
12368	test "$with_gnu_ld" != no && break
12369	;;
12370      *)
12371	test "$with_gnu_ld" != yes && break
12372	;;
12373      esac
12374    fi
12375  done
12376  IFS="$lt_save_ifs"
12377else
12378  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12379fi
12380fi
12381
12382LD="$lt_cv_path_LD"
12383if test -n "$LD"; then
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12385$as_echo "$LD" >&6; }
12386else
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389fi
12390test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12392$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12393if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12397case `$LD -v 2>&1 </dev/null` in
12398*GNU* | *'with BFD'*)
12399  lt_cv_prog_gnu_ld=yes
12400  ;;
12401*)
12402  lt_cv_prog_gnu_ld=no
12403  ;;
12404esac
12405fi
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12407$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12408with_gnu_ld=$lt_cv_prog_gnu_ld
12409
12410
12411
12412
12413
12414
12415
12416      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12417      # archiving commands below assume that GNU ld is being used.
12418      if test "$with_gnu_ld" = yes; then
12419        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12420        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12421
12422        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12423        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12424
12425        # If archive_cmds runs LD, not CC, wlarc should be empty
12426        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12427        #     investigate it a little bit more. (MM)
12428        wlarc='${wl}'
12429
12430        # ancient GNU ld didn't support --whole-archive et. al.
12431        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12432	  $GREP 'no-whole-archive' > /dev/null; then
12433          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12434        else
12435          whole_archive_flag_spec_CXX=
12436        fi
12437      else
12438        with_gnu_ld=no
12439        wlarc=
12440
12441        # A generic and very simple default shared library creation
12442        # command for GNU C++ for the case where it uses the native
12443        # linker, instead of GNU ld.  If possible, this setting should
12444        # overridden to take advantage of the native linker features on
12445        # the platform it is being used on.
12446        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12447      fi
12448
12449      # Commands to make compiler produce verbose output that lists
12450      # what "hidden" libraries, object files and flags are used when
12451      # linking a shared library.
12452      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12453
12454    else
12455      GXX=no
12456      with_gnu_ld=no
12457      wlarc=
12458    fi
12459
12460    # PORTME: fill in a description of your system's C++ link characteristics
12461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12462$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12463    ld_shlibs_CXX=yes
12464    case $host_os in
12465      aix3*)
12466        # FIXME: insert proper C++ library support
12467        ld_shlibs_CXX=no
12468        ;;
12469      aix[4-9]*)
12470        if test "$host_cpu" = ia64; then
12471          # On IA64, the linker does run time linking by default, so we don't
12472          # have to do anything special.
12473          aix_use_runtimelinking=no
12474          exp_sym_flag='-Bexport'
12475          no_entry_flag=""
12476        else
12477          aix_use_runtimelinking=no
12478
12479          # Test if we are trying to use run time linking or normal
12480          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12481          # need to do runtime linking.
12482          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12483	    for ld_flag in $LDFLAGS; do
12484	      case $ld_flag in
12485	      *-brtl*)
12486	        aix_use_runtimelinking=yes
12487	        break
12488	        ;;
12489	      esac
12490	    done
12491	    ;;
12492          esac
12493
12494          exp_sym_flag='-bexport'
12495          no_entry_flag='-bnoentry'
12496        fi
12497
12498        # When large executables or shared objects are built, AIX ld can
12499        # have problems creating the table of contents.  If linking a library
12500        # or program results in "error TOC overflow" add -mminimal-toc to
12501        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12502        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12503
12504        archive_cmds_CXX=''
12505        hardcode_direct_CXX=yes
12506        hardcode_direct_absolute_CXX=yes
12507        hardcode_libdir_separator_CXX=':'
12508        link_all_deplibs_CXX=yes
12509        file_list_spec_CXX='${wl}-f,'
12510
12511        if test "$GXX" = yes; then
12512          case $host_os in aix4.[012]|aix4.[012].*)
12513          # We only want to do this on AIX 4.2 and lower, the check
12514          # below for broken collect2 doesn't work under 4.3+
12515	  collect2name=`${CC} -print-prog-name=collect2`
12516	  if test -f "$collect2name" &&
12517	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12518	  then
12519	    # We have reworked collect2
12520	    :
12521	  else
12522	    # We have old collect2
12523	    hardcode_direct_CXX=unsupported
12524	    # It fails to find uninstalled libraries when the uninstalled
12525	    # path is not listed in the libpath.  Setting hardcode_minus_L
12526	    # to unsupported forces relinking
12527	    hardcode_minus_L_CXX=yes
12528	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12529	    hardcode_libdir_separator_CXX=
12530	  fi
12531          esac
12532          shared_flag='-shared'
12533	  if test "$aix_use_runtimelinking" = yes; then
12534	    shared_flag="$shared_flag "'${wl}-G'
12535	  fi
12536        else
12537          # not using gcc
12538          if test "$host_cpu" = ia64; then
12539	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12540	  # chokes on -Wl,-G. The following line is correct:
12541	  shared_flag='-G'
12542          else
12543	    if test "$aix_use_runtimelinking" = yes; then
12544	      shared_flag='${wl}-G'
12545	    else
12546	      shared_flag='${wl}-bM:SRE'
12547	    fi
12548          fi
12549        fi
12550
12551        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12552        # It seems that -bexpall does not export symbols beginning with
12553        # underscore (_), so it is better to generate a list of symbols to
12554	# export.
12555        always_export_symbols_CXX=yes
12556        if test "$aix_use_runtimelinking" = yes; then
12557          # Warning - without using the other runtime loading flags (-brtl),
12558          # -berok will link without error, but may produce a broken library.
12559          allow_undefined_flag_CXX='-berok'
12560          # Determine the default libpath from the value encoded in an empty
12561          # executable.
12562          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563/* end confdefs.h.  */
12564
12565int
12566main ()
12567{
12568
12569  ;
12570  return 0;
12571}
12572_ACEOF
12573if ac_fn_cxx_try_link "$LINENO"; then :
12574
12575lt_aix_libpath_sed='
12576    /Import File Strings/,/^$/ {
12577	/^0/ {
12578	    s/^0  *\(.*\)$/\1/
12579	    p
12580	}
12581    }'
12582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12583# Check for a 64-bit object if we didn't find anything.
12584if test -z "$aix_libpath"; then
12585  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12586fi
12587fi
12588rm -f core conftest.err conftest.$ac_objext \
12589    conftest$ac_exeext conftest.$ac_ext
12590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12591
12592          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12593
12594          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12595        else
12596          if test "$host_cpu" = ia64; then
12597	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12598	    allow_undefined_flag_CXX="-z nodefs"
12599	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12600          else
12601	    # Determine the default libpath from the value encoded in an
12602	    # empty executable.
12603	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h.  */
12605
12606int
12607main ()
12608{
12609
12610  ;
12611  return 0;
12612}
12613_ACEOF
12614if ac_fn_cxx_try_link "$LINENO"; then :
12615
12616lt_aix_libpath_sed='
12617    /Import File Strings/,/^$/ {
12618	/^0/ {
12619	    s/^0  *\(.*\)$/\1/
12620	    p
12621	}
12622    }'
12623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624# Check for a 64-bit object if we didn't find anything.
12625if test -z "$aix_libpath"; then
12626  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627fi
12628fi
12629rm -f core conftest.err conftest.$ac_objext \
12630    conftest$ac_exeext conftest.$ac_ext
12631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12632
12633	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12634	    # Warning - without using the other run time loading flags,
12635	    # -berok will link without error, but may produce a broken library.
12636	    no_undefined_flag_CXX=' ${wl}-bernotok'
12637	    allow_undefined_flag_CXX=' ${wl}-berok'
12638	    if test "$with_gnu_ld" = yes; then
12639	      # We only use this code for GNU lds that support --whole-archive.
12640	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12641	    else
12642	      # Exported symbols can be pulled into shared objects from archives
12643	      whole_archive_flag_spec_CXX='$convenience'
12644	    fi
12645	    archive_cmds_need_lc_CXX=yes
12646	    # This is similar to how AIX traditionally builds its shared
12647	    # libraries.
12648	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12649          fi
12650        fi
12651        ;;
12652
12653      beos*)
12654	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12655	  allow_undefined_flag_CXX=unsupported
12656	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12657	  # support --undefined.  This deserves some investigation.  FIXME
12658	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12659	else
12660	  ld_shlibs_CXX=no
12661	fi
12662	;;
12663
12664      chorus*)
12665        case $cc_basename in
12666          *)
12667	  # FIXME: insert proper C++ library support
12668	  ld_shlibs_CXX=no
12669	  ;;
12670        esac
12671        ;;
12672
12673      cygwin* | mingw* | pw32* | cegcc*)
12674        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12675        # as there is no search path for DLLs.
12676        hardcode_libdir_flag_spec_CXX='-L$libdir'
12677        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12678        allow_undefined_flag_CXX=unsupported
12679        always_export_symbols_CXX=no
12680        enable_shared_with_static_runtimes_CXX=yes
12681
12682        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12683          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12684          # If the export-symbols file already is a .def file (1st line
12685          # is EXPORTS), use it as is; otherwise, prepend...
12686          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12687	    cp $export_symbols $output_objdir/$soname.def;
12688          else
12689	    echo EXPORTS > $output_objdir/$soname.def;
12690	    cat $export_symbols >> $output_objdir/$soname.def;
12691          fi~
12692          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12693        else
12694          ld_shlibs_CXX=no
12695        fi
12696        ;;
12697      darwin* | rhapsody*)
12698
12699
12700  archive_cmds_need_lc_CXX=no
12701  hardcode_direct_CXX=no
12702  hardcode_automatic_CXX=yes
12703  hardcode_shlibpath_var_CXX=unsupported
12704  if test "$lt_cv_ld_force_load" = "yes"; then
12705    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12706  else
12707    whole_archive_flag_spec_CXX=''
12708  fi
12709  link_all_deplibs_CXX=yes
12710  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12711  case $cc_basename in
12712     ifort*) _lt_dar_can_shared=yes ;;
12713     *) _lt_dar_can_shared=$GCC ;;
12714  esac
12715  if test "$_lt_dar_can_shared" = "yes"; then
12716    output_verbose_link_cmd=func_echo_all
12717    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12718    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12719    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12720    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12721       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12722      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12723      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12724    fi
12725
12726  else
12727  ld_shlibs_CXX=no
12728  fi
12729
12730	;;
12731
12732      dgux*)
12733        case $cc_basename in
12734          ec++*)
12735	    # FIXME: insert proper C++ library support
12736	    ld_shlibs_CXX=no
12737	    ;;
12738          ghcx*)
12739	    # Green Hills C++ Compiler
12740	    # FIXME: insert proper C++ library support
12741	    ld_shlibs_CXX=no
12742	    ;;
12743          *)
12744	    # FIXME: insert proper C++ library support
12745	    ld_shlibs_CXX=no
12746	    ;;
12747        esac
12748        ;;
12749
12750      freebsd2.*)
12751        # C++ shared libraries reported to be fairly broken before
12752	# switch to ELF
12753        ld_shlibs_CXX=no
12754        ;;
12755
12756      freebsd-elf*)
12757        archive_cmds_need_lc_CXX=no
12758        ;;
12759
12760      freebsd* | dragonfly*)
12761        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12762        # conventions
12763        ld_shlibs_CXX=yes
12764        ;;
12765
12766      gnu*)
12767        ;;
12768
12769      haiku*)
12770        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771        link_all_deplibs_CXX=yes
12772        ;;
12773
12774      hpux9*)
12775        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12776        hardcode_libdir_separator_CXX=:
12777        export_dynamic_flag_spec_CXX='${wl}-E'
12778        hardcode_direct_CXX=yes
12779        hardcode_minus_L_CXX=yes # Not in the search PATH,
12780				             # but as the default
12781				             # location of the library.
12782
12783        case $cc_basename in
12784          CC*)
12785            # FIXME: insert proper C++ library support
12786            ld_shlibs_CXX=no
12787            ;;
12788          aCC*)
12789            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12790            # Commands to make compiler produce verbose output that lists
12791            # what "hidden" libraries, object files and flags are used when
12792            # linking a shared library.
12793            #
12794            # There doesn't appear to be a way to prevent this compiler from
12795            # explicitly linking system object files so we need to strip them
12796            # from the output so that they don't get included in the library
12797            # dependencies.
12798            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12799            ;;
12800          *)
12801            if test "$GXX" = yes; then
12802              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12803            else
12804              # FIXME: insert proper C++ library support
12805              ld_shlibs_CXX=no
12806            fi
12807            ;;
12808        esac
12809        ;;
12810
12811      hpux10*|hpux11*)
12812        if test $with_gnu_ld = no; then
12813	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12814	  hardcode_libdir_separator_CXX=:
12815
12816          case $host_cpu in
12817            hppa*64*|ia64*)
12818              ;;
12819            *)
12820	      export_dynamic_flag_spec_CXX='${wl}-E'
12821              ;;
12822          esac
12823        fi
12824        case $host_cpu in
12825          hppa*64*|ia64*)
12826            hardcode_direct_CXX=no
12827            hardcode_shlibpath_var_CXX=no
12828            ;;
12829          *)
12830            hardcode_direct_CXX=yes
12831            hardcode_direct_absolute_CXX=yes
12832            hardcode_minus_L_CXX=yes # Not in the search PATH,
12833					         # but as the default
12834					         # location of the library.
12835            ;;
12836        esac
12837
12838        case $cc_basename in
12839          CC*)
12840	    # FIXME: insert proper C++ library support
12841	    ld_shlibs_CXX=no
12842	    ;;
12843          aCC*)
12844	    case $host_cpu in
12845	      hppa*64*)
12846	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847	        ;;
12848	      ia64*)
12849	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850	        ;;
12851	      *)
12852	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853	        ;;
12854	    esac
12855	    # Commands to make compiler produce verbose output that lists
12856	    # what "hidden" libraries, object files and flags are used when
12857	    # linking a shared library.
12858	    #
12859	    # There doesn't appear to be a way to prevent this compiler from
12860	    # explicitly linking system object files so we need to strip them
12861	    # from the output so that they don't get included in the library
12862	    # dependencies.
12863	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12864	    ;;
12865          *)
12866	    if test "$GXX" = yes; then
12867	      if test $with_gnu_ld = no; then
12868	        case $host_cpu in
12869	          hppa*64*)
12870	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12871	            ;;
12872	          ia64*)
12873	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874	            ;;
12875	          *)
12876	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877	            ;;
12878	        esac
12879	      fi
12880	    else
12881	      # FIXME: insert proper C++ library support
12882	      ld_shlibs_CXX=no
12883	    fi
12884	    ;;
12885        esac
12886        ;;
12887
12888      interix[3-9]*)
12889	hardcode_direct_CXX=no
12890	hardcode_shlibpath_var_CXX=no
12891	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12892	export_dynamic_flag_spec_CXX='${wl}-E'
12893	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12894	# Instead, shared libraries are loaded at an image base (0x10000000 by
12895	# default) and relocated if they conflict, which is a slow very memory
12896	# consuming and fragmenting process.  To avoid this, we pick a random,
12897	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12898	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12899	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12900	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12901	;;
12902      irix5* | irix6*)
12903        case $cc_basename in
12904          CC*)
12905	    # SGI C++
12906	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12907
12908	    # Archives containing C++ object files must be created using
12909	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12910	    # necessary to make sure instantiated templates are included
12911	    # in the archive.
12912	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12913	    ;;
12914          *)
12915	    if test "$GXX" = yes; then
12916	      if test "$with_gnu_ld" = no; then
12917	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12918	      else
12919	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12920	      fi
12921	    fi
12922	    link_all_deplibs_CXX=yes
12923	    ;;
12924        esac
12925        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12926        hardcode_libdir_separator_CXX=:
12927        inherit_rpath_CXX=yes
12928        ;;
12929
12930      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12931        case $cc_basename in
12932          KCC*)
12933	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12934
12935	    # KCC will only create a shared library if the output file
12936	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12937	    # to its proper name (with version) after linking.
12938	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12939	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12940	    # Commands to make compiler produce verbose output that lists
12941	    # what "hidden" libraries, object files and flags are used when
12942	    # linking a shared library.
12943	    #
12944	    # There doesn't appear to be a way to prevent this compiler from
12945	    # explicitly linking system object files so we need to strip them
12946	    # from the output so that they don't get included in the library
12947	    # dependencies.
12948	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12949
12950	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12951	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12952
12953	    # Archives containing C++ object files must be created using
12954	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12955	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12956	    ;;
12957	  icpc* | ecpc* )
12958	    # Intel C++
12959	    with_gnu_ld=yes
12960	    # version 8.0 and above of icpc choke on multiply defined symbols
12961	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12962	    # earlier do not add the objects themselves.
12963	    case `$CC -V 2>&1` in
12964	      *"Version 7."*)
12965	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12966		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12967		;;
12968	      *)  # Version 8.0 or newer
12969	        tmp_idyn=
12970	        case $host_cpu in
12971		  ia64*) tmp_idyn=' -i_dynamic';;
12972		esac
12973	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975		;;
12976	    esac
12977	    archive_cmds_need_lc_CXX=no
12978	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12979	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12980	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12981	    ;;
12982          pgCC* | pgcpp*)
12983            # Portland Group C++ compiler
12984	    case `$CC -V` in
12985	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12986	      prelink_cmds_CXX='tpldir=Template.dir~
12987		rm -rf $tpldir~
12988		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12989		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12990	      old_archive_cmds_CXX='tpldir=Template.dir~
12991		rm -rf $tpldir~
12992		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12993		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12994		$RANLIB $oldlib'
12995	      archive_cmds_CXX='tpldir=Template.dir~
12996		rm -rf $tpldir~
12997		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12998		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12999	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13000		rm -rf $tpldir~
13001		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13002		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13003	      ;;
13004	    *) # Version 6 and above use weak symbols
13005	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13006	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13007	      ;;
13008	    esac
13009
13010	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13011	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13012	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13013            ;;
13014	  cxx*)
13015	    # Compaq C++
13016	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13017	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13018
13019	    runpath_var=LD_RUN_PATH
13020	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13021	    hardcode_libdir_separator_CXX=:
13022
13023	    # Commands to make compiler produce verbose output that lists
13024	    # what "hidden" libraries, object files and flags are used when
13025	    # linking a shared library.
13026	    #
13027	    # There doesn't appear to be a way to prevent this compiler from
13028	    # explicitly linking system object files so we need to strip them
13029	    # from the output so that they don't get included in the library
13030	    # dependencies.
13031	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13032	    ;;
13033	  xl* | mpixl* | bgxl*)
13034	    # IBM XL 8.0 on PPC, with GNU ld
13035	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13036	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13037	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038	    if test "x$supports_anon_versioning" = xyes; then
13039	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13040		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13041		echo "local: *; };" >> $output_objdir/$libname.ver~
13042		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13043	    fi
13044	    ;;
13045	  *)
13046	    case `$CC -V 2>&1 | sed 5q` in
13047	    *Sun\ C*)
13048	      # Sun C++ 5.9
13049	      no_undefined_flag_CXX=' -zdefs'
13050	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13051	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13052	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13053	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13054	      compiler_needs_object_CXX=yes
13055
13056	      # Not sure whether something based on
13057	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13058	      # would be better.
13059	      output_verbose_link_cmd='func_echo_all'
13060
13061	      # Archives containing C++ object files must be created using
13062	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13063	      # necessary to make sure instantiated templates are included
13064	      # in the archive.
13065	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13066	      ;;
13067	    esac
13068	    ;;
13069	esac
13070	;;
13071
13072      lynxos*)
13073        # FIXME: insert proper C++ library support
13074	ld_shlibs_CXX=no
13075	;;
13076
13077      m88k*)
13078        # FIXME: insert proper C++ library support
13079        ld_shlibs_CXX=no
13080	;;
13081
13082      mvs*)
13083        case $cc_basename in
13084          cxx*)
13085	    # FIXME: insert proper C++ library support
13086	    ld_shlibs_CXX=no
13087	    ;;
13088	  *)
13089	    # FIXME: insert proper C++ library support
13090	    ld_shlibs_CXX=no
13091	    ;;
13092	esac
13093	;;
13094
13095      netbsd*)
13096        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13097	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13098	  wlarc=
13099	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13100	  hardcode_direct_CXX=yes
13101	  hardcode_shlibpath_var_CXX=no
13102	fi
13103	# Workaround some broken pre-1.5 toolchains
13104	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13105	;;
13106
13107      *nto* | *qnx*)
13108        ld_shlibs_CXX=yes
13109	;;
13110
13111      openbsd2*)
13112        # C++ shared libraries are fairly broken
13113	ld_shlibs_CXX=no
13114	;;
13115
13116      openbsd*)
13117	if test -f /usr/libexec/ld.so; then
13118	  hardcode_direct_CXX=yes
13119	  hardcode_shlibpath_var_CXX=no
13120	  hardcode_direct_absolute_CXX=yes
13121	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13122	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13123	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13124	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13125	    export_dynamic_flag_spec_CXX='${wl}-E'
13126	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13127	  fi
13128	  output_verbose_link_cmd=func_echo_all
13129	else
13130	  ld_shlibs_CXX=no
13131	fi
13132	;;
13133
13134      osf3* | osf4* | osf5*)
13135        case $cc_basename in
13136          KCC*)
13137	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13138
13139	    # KCC will only create a shared library if the output file
13140	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13141	    # to its proper name (with version) after linking.
13142	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13143
13144	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13145	    hardcode_libdir_separator_CXX=:
13146
13147	    # Archives containing C++ object files must be created using
13148	    # the KAI C++ compiler.
13149	    case $host in
13150	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13151	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13152	    esac
13153	    ;;
13154          RCC*)
13155	    # Rational C++ 2.4.1
13156	    # FIXME: insert proper C++ library support
13157	    ld_shlibs_CXX=no
13158	    ;;
13159          cxx*)
13160	    case $host in
13161	      osf3*)
13162	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13163	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13164	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13165		;;
13166	      *)
13167	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13168	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13169	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13170	          echo "-hidden">> $lib.exp~
13171	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13172	          $RM $lib.exp'
13173	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13174		;;
13175	    esac
13176
13177	    hardcode_libdir_separator_CXX=:
13178
13179	    # Commands to make compiler produce verbose output that lists
13180	    # what "hidden" libraries, object files and flags are used when
13181	    # linking a shared library.
13182	    #
13183	    # There doesn't appear to be a way to prevent this compiler from
13184	    # explicitly linking system object files so we need to strip them
13185	    # from the output so that they don't get included in the library
13186	    # dependencies.
13187	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13188	    ;;
13189	  *)
13190	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13191	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13192	      case $host in
13193	        osf3*)
13194	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13195		  ;;
13196	        *)
13197	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13198		  ;;
13199	      esac
13200
13201	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13202	      hardcode_libdir_separator_CXX=:
13203
13204	      # Commands to make compiler produce verbose output that lists
13205	      # what "hidden" libraries, object files and flags are used when
13206	      # linking a shared library.
13207	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13208
13209	    else
13210	      # FIXME: insert proper C++ library support
13211	      ld_shlibs_CXX=no
13212	    fi
13213	    ;;
13214        esac
13215        ;;
13216
13217      psos*)
13218        # FIXME: insert proper C++ library support
13219        ld_shlibs_CXX=no
13220        ;;
13221
13222      sunos4*)
13223        case $cc_basename in
13224          CC*)
13225	    # Sun C++ 4.x
13226	    # FIXME: insert proper C++ library support
13227	    ld_shlibs_CXX=no
13228	    ;;
13229          lcc*)
13230	    # Lucid
13231	    # FIXME: insert proper C++ library support
13232	    ld_shlibs_CXX=no
13233	    ;;
13234          *)
13235	    # FIXME: insert proper C++ library support
13236	    ld_shlibs_CXX=no
13237	    ;;
13238        esac
13239        ;;
13240
13241      solaris*)
13242        case $cc_basename in
13243          CC*)
13244	    # Sun C++ 4.2, 5.x and Centerline C++
13245            archive_cmds_need_lc_CXX=yes
13246	    no_undefined_flag_CXX=' -zdefs'
13247	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13248	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13250
13251	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13252	    hardcode_shlibpath_var_CXX=no
13253	    case $host_os in
13254	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13255	      *)
13256		# The compiler driver will combine and reorder linker options,
13257		# but understands `-z linker_flag'.
13258	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13259		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13260	        ;;
13261	    esac
13262	    link_all_deplibs_CXX=yes
13263
13264	    output_verbose_link_cmd='func_echo_all'
13265
13266	    # Archives containing C++ object files must be created using
13267	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13268	    # necessary to make sure instantiated templates are included
13269	    # in the archive.
13270	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13271	    ;;
13272          gcx*)
13273	    # Green Hills C++ Compiler
13274	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13275
13276	    # The C++ compiler must be used to create the archive.
13277	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13278	    ;;
13279          *)
13280	    # GNU C++ compiler with Solaris linker
13281	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13282	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13283	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13284	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13285	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13286		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13287
13288	        # Commands to make compiler produce verbose output that lists
13289	        # what "hidden" libraries, object files and flags are used when
13290	        # linking a shared library.
13291	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13292	      else
13293	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13294	        # platform.
13295	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13296	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13297		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13298
13299	        # Commands to make compiler produce verbose output that lists
13300	        # what "hidden" libraries, object files and flags are used when
13301	        # linking a shared library.
13302	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13303	      fi
13304
13305	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13306	      case $host_os in
13307		solaris2.[0-5] | solaris2.[0-5].*) ;;
13308		*)
13309		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13310		  ;;
13311	      esac
13312	    fi
13313	    ;;
13314        esac
13315        ;;
13316
13317    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13318      no_undefined_flag_CXX='${wl}-z,text'
13319      archive_cmds_need_lc_CXX=no
13320      hardcode_shlibpath_var_CXX=no
13321      runpath_var='LD_RUN_PATH'
13322
13323      case $cc_basename in
13324        CC*)
13325	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327	  ;;
13328	*)
13329	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331	  ;;
13332      esac
13333      ;;
13334
13335      sysv5* | sco3.2v5* | sco5v6*)
13336	# Note: We can NOT use -z defs as we might desire, because we do not
13337	# link with -lc, and that would cause any symbols used from libc to
13338	# always be unresolved, which means just about no library would
13339	# ever link correctly.  If we're not using GNU ld we use -z text
13340	# though, which does catch some bad symbols but isn't as heavy-handed
13341	# as -z defs.
13342	no_undefined_flag_CXX='${wl}-z,text'
13343	allow_undefined_flag_CXX='${wl}-z,nodefs'
13344	archive_cmds_need_lc_CXX=no
13345	hardcode_shlibpath_var_CXX=no
13346	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13347	hardcode_libdir_separator_CXX=':'
13348	link_all_deplibs_CXX=yes
13349	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13350	runpath_var='LD_RUN_PATH'
13351
13352	case $cc_basename in
13353          CC*)
13354	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13355	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13357	      '"$old_archive_cmds_CXX"
13358	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13359	      '"$reload_cmds_CXX"
13360	    ;;
13361	  *)
13362	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364	    ;;
13365	esac
13366      ;;
13367
13368      tandem*)
13369        case $cc_basename in
13370          NCC*)
13371	    # NonStop-UX NCC 3.20
13372	    # FIXME: insert proper C++ library support
13373	    ld_shlibs_CXX=no
13374	    ;;
13375          *)
13376	    # FIXME: insert proper C++ library support
13377	    ld_shlibs_CXX=no
13378	    ;;
13379        esac
13380        ;;
13381
13382      vxworks*)
13383        # FIXME: insert proper C++ library support
13384        ld_shlibs_CXX=no
13385        ;;
13386
13387      *)
13388        # FIXME: insert proper C++ library support
13389        ld_shlibs_CXX=no
13390        ;;
13391    esac
13392
13393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13394$as_echo "$ld_shlibs_CXX" >&6; }
13395    test "$ld_shlibs_CXX" = no && can_build_shared=no
13396
13397    GCC_CXX="$GXX"
13398    LD_CXX="$LD"
13399
13400    ## CAVEAT EMPTOR:
13401    ## There is no encapsulation within the following macros, do not change
13402    ## the running order or otherwise move them around unless you know exactly
13403    ## what you are doing...
13404    # Dependencies to place before and after the object being linked:
13405predep_objects_CXX=
13406postdep_objects_CXX=
13407predeps_CXX=
13408postdeps_CXX=
13409compiler_lib_search_path_CXX=
13410
13411cat > conftest.$ac_ext <<_LT_EOF
13412class Foo
13413{
13414public:
13415  Foo (void) { a = 0; }
13416private:
13417  int a;
13418};
13419_LT_EOF
13420
13421if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13422  (eval $ac_compile) 2>&5
13423  ac_status=$?
13424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425  test $ac_status = 0; }; then
13426  # Parse the compiler output and extract the necessary
13427  # objects, libraries and library flags.
13428
13429  # Sentinel used to keep track of whether or not we are before
13430  # the conftest object file.
13431  pre_test_object_deps_done=no
13432
13433  for p in `eval "$output_verbose_link_cmd"`; do
13434    case $p in
13435
13436    -L* | -R* | -l*)
13437       # Some compilers place space between "-{L,R}" and the path.
13438       # Remove the space.
13439       if test $p = "-L" ||
13440          test $p = "-R"; then
13441	 prev=$p
13442	 continue
13443       else
13444	 prev=
13445       fi
13446
13447       if test "$pre_test_object_deps_done" = no; then
13448	 case $p in
13449	 -L* | -R*)
13450	   # Internal compiler library paths should come after those
13451	   # provided the user.  The postdeps already come after the
13452	   # user supplied libs so there is no need to process them.
13453	   if test -z "$compiler_lib_search_path_CXX"; then
13454	     compiler_lib_search_path_CXX="${prev}${p}"
13455	   else
13456	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13457	   fi
13458	   ;;
13459	 # The "-l" case would never come before the object being
13460	 # linked, so don't bother handling this case.
13461	 esac
13462       else
13463	 if test -z "$postdeps_CXX"; then
13464	   postdeps_CXX="${prev}${p}"
13465	 else
13466	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13467	 fi
13468       fi
13469       ;;
13470
13471    *.$objext)
13472       # This assumes that the test object file only shows up
13473       # once in the compiler output.
13474       if test "$p" = "conftest.$objext"; then
13475	 pre_test_object_deps_done=yes
13476	 continue
13477       fi
13478
13479       if test "$pre_test_object_deps_done" = no; then
13480	 if test -z "$predep_objects_CXX"; then
13481	   predep_objects_CXX="$p"
13482	 else
13483	   predep_objects_CXX="$predep_objects_CXX $p"
13484	 fi
13485       else
13486	 if test -z "$postdep_objects_CXX"; then
13487	   postdep_objects_CXX="$p"
13488	 else
13489	   postdep_objects_CXX="$postdep_objects_CXX $p"
13490	 fi
13491       fi
13492       ;;
13493
13494    *) ;; # Ignore the rest.
13495
13496    esac
13497  done
13498
13499  # Clean up.
13500  rm -f a.out a.exe
13501else
13502  echo "libtool.m4: error: problem compiling CXX test program"
13503fi
13504
13505$RM -f confest.$objext
13506
13507# PORTME: override above test on systems where it is broken
13508case $host_os in
13509interix[3-9]*)
13510  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13511  # hack all around it, let's just trust "g++" to DTRT.
13512  predep_objects_CXX=
13513  postdep_objects_CXX=
13514  postdeps_CXX=
13515  ;;
13516
13517linux*)
13518  case `$CC -V 2>&1 | sed 5q` in
13519  *Sun\ C*)
13520    # Sun C++ 5.9
13521
13522    # The more standards-conforming stlport4 library is
13523    # incompatible with the Cstd library. Avoid specifying
13524    # it if it's in CXXFLAGS. Ignore libCrun as
13525    # -library=stlport4 depends on it.
13526    case " $CXX $CXXFLAGS " in
13527    *" -library=stlport4 "*)
13528      solaris_use_stlport4=yes
13529      ;;
13530    esac
13531
13532    if test "$solaris_use_stlport4" != yes; then
13533      postdeps_CXX='-library=Cstd -library=Crun'
13534    fi
13535    ;;
13536  esac
13537  ;;
13538
13539solaris*)
13540  case $cc_basename in
13541  CC*)
13542    # The more standards-conforming stlport4 library is
13543    # incompatible with the Cstd library. Avoid specifying
13544    # it if it's in CXXFLAGS. Ignore libCrun as
13545    # -library=stlport4 depends on it.
13546    case " $CXX $CXXFLAGS " in
13547    *" -library=stlport4 "*)
13548      solaris_use_stlport4=yes
13549      ;;
13550    esac
13551
13552    # Adding this requires a known-good setup of shared libraries for
13553    # Sun compiler versions before 5.6, else PIC objects from an old
13554    # archive will be linked into the output, leading to subtle bugs.
13555    if test "$solaris_use_stlport4" != yes; then
13556      postdeps_CXX='-library=Cstd -library=Crun'
13557    fi
13558    ;;
13559  esac
13560  ;;
13561esac
13562
13563
13564case " $postdeps_CXX " in
13565*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13566esac
13567 compiler_lib_search_dirs_CXX=
13568if test -n "${compiler_lib_search_path_CXX}"; then
13569 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13570fi
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602    lt_prog_compiler_wl_CXX=
13603lt_prog_compiler_pic_CXX=
13604lt_prog_compiler_static_CXX=
13605
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13607$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13608
13609  # C++ specific cases for pic, static, wl, etc.
13610  if test "$GXX" = yes; then
13611    lt_prog_compiler_wl_CXX='-Wl,'
13612    lt_prog_compiler_static_CXX='-static'
13613
13614    case $host_os in
13615    aix*)
13616      # All AIX code is PIC.
13617      if test "$host_cpu" = ia64; then
13618	# AIX 5 now supports IA64 processor
13619	lt_prog_compiler_static_CXX='-Bstatic'
13620      fi
13621      lt_prog_compiler_pic_CXX='-fPIC'
13622      ;;
13623
13624    amigaos*)
13625      case $host_cpu in
13626      powerpc)
13627            # see comment about AmigaOS4 .so support
13628            lt_prog_compiler_pic_CXX='-fPIC'
13629        ;;
13630      m68k)
13631            # FIXME: we need at least 68020 code to build shared libraries, but
13632            # adding the `-m68020' flag to GCC prevents building anything better,
13633            # like `-m68040'.
13634            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13635        ;;
13636      esac
13637      ;;
13638
13639    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13640      # PIC is the default for these OSes.
13641      ;;
13642    mingw* | cygwin* | os2* | pw32* | cegcc*)
13643      # This hack is so that the source file can tell whether it is being
13644      # built for inclusion in a dll (and should export symbols for example).
13645      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13646      # (--disable-auto-import) libraries
13647      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13648      ;;
13649    darwin* | rhapsody*)
13650      # PIC is the default on this platform
13651      # Common symbols not allowed in MH_DYLIB files
13652      lt_prog_compiler_pic_CXX='-fno-common'
13653      ;;
13654    *djgpp*)
13655      # DJGPP does not support shared libraries at all
13656      lt_prog_compiler_pic_CXX=
13657      ;;
13658    haiku*)
13659      # PIC is the default for Haiku.
13660      # The "-static" flag exists, but is broken.
13661      lt_prog_compiler_static_CXX=
13662      ;;
13663    interix[3-9]*)
13664      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665      # Instead, we relocate shared libraries at runtime.
13666      ;;
13667    sysv4*MP*)
13668      if test -d /usr/nec; then
13669	lt_prog_compiler_pic_CXX=-Kconform_pic
13670      fi
13671      ;;
13672    hpux*)
13673      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13674      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13675      # sets the default TLS model and affects inlining.
13676      case $host_cpu in
13677      hppa*64*)
13678	;;
13679      *)
13680	lt_prog_compiler_pic_CXX='-fPIC'
13681	;;
13682      esac
13683      ;;
13684    *qnx* | *nto*)
13685      # QNX uses GNU C++, but need to define -shared option too, otherwise
13686      # it will coredump.
13687      lt_prog_compiler_pic_CXX='-fPIC -shared'
13688      ;;
13689    *)
13690      lt_prog_compiler_pic_CXX='-fPIC'
13691      ;;
13692    esac
13693  else
13694    case $host_os in
13695      aix[4-9]*)
13696	# All AIX code is PIC.
13697	if test "$host_cpu" = ia64; then
13698	  # AIX 5 now supports IA64 processor
13699	  lt_prog_compiler_static_CXX='-Bstatic'
13700	else
13701	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13702	fi
13703	;;
13704      chorus*)
13705	case $cc_basename in
13706	cxch68*)
13707	  # Green Hills C++ Compiler
13708	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13709	  ;;
13710	esac
13711	;;
13712      dgux*)
13713	case $cc_basename in
13714	  ec++*)
13715	    lt_prog_compiler_pic_CXX='-KPIC'
13716	    ;;
13717	  ghcx*)
13718	    # Green Hills C++ Compiler
13719	    lt_prog_compiler_pic_CXX='-pic'
13720	    ;;
13721	  *)
13722	    ;;
13723	esac
13724	;;
13725      freebsd* | dragonfly*)
13726	# FreeBSD uses GNU C++
13727	;;
13728      hpux9* | hpux10* | hpux11*)
13729	case $cc_basename in
13730	  CC*)
13731	    lt_prog_compiler_wl_CXX='-Wl,'
13732	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13733	    if test "$host_cpu" != ia64; then
13734	      lt_prog_compiler_pic_CXX='+Z'
13735	    fi
13736	    ;;
13737	  aCC*)
13738	    lt_prog_compiler_wl_CXX='-Wl,'
13739	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13740	    case $host_cpu in
13741	    hppa*64*|ia64*)
13742	      # +Z the default
13743	      ;;
13744	    *)
13745	      lt_prog_compiler_pic_CXX='+Z'
13746	      ;;
13747	    esac
13748	    ;;
13749	  *)
13750	    ;;
13751	esac
13752	;;
13753      interix*)
13754	# This is c89, which is MS Visual C++ (no shared libs)
13755	# Anyone wants to do a port?
13756	;;
13757      irix5* | irix6* | nonstopux*)
13758	case $cc_basename in
13759	  CC*)
13760	    lt_prog_compiler_wl_CXX='-Wl,'
13761	    lt_prog_compiler_static_CXX='-non_shared'
13762	    # CC pic flag -KPIC is the default.
13763	    ;;
13764	  *)
13765	    ;;
13766	esac
13767	;;
13768      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13769	case $cc_basename in
13770	  KCC*)
13771	    # KAI C++ Compiler
13772	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13773	    lt_prog_compiler_pic_CXX='-fPIC'
13774	    ;;
13775	  ecpc* )
13776	    # old Intel C++ for x86_64 which still supported -KPIC.
13777	    lt_prog_compiler_wl_CXX='-Wl,'
13778	    lt_prog_compiler_pic_CXX='-KPIC'
13779	    lt_prog_compiler_static_CXX='-static'
13780	    ;;
13781	  icpc* )
13782	    # Intel C++, used to be incompatible with GCC.
13783	    # ICC 10 doesn't accept -KPIC any more.
13784	    lt_prog_compiler_wl_CXX='-Wl,'
13785	    lt_prog_compiler_pic_CXX='-fPIC'
13786	    lt_prog_compiler_static_CXX='-static'
13787	    ;;
13788	  pgCC* | pgcpp*)
13789	    # Portland Group C++ compiler
13790	    lt_prog_compiler_wl_CXX='-Wl,'
13791	    lt_prog_compiler_pic_CXX='-fpic'
13792	    lt_prog_compiler_static_CXX='-Bstatic'
13793	    ;;
13794	  cxx*)
13795	    # Compaq C++
13796	    # Make sure the PIC flag is empty.  It appears that all Alpha
13797	    # Linux and Compaq Tru64 Unix objects are PIC.
13798	    lt_prog_compiler_pic_CXX=
13799	    lt_prog_compiler_static_CXX='-non_shared'
13800	    ;;
13801	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13802	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13803	    lt_prog_compiler_wl_CXX='-Wl,'
13804	    lt_prog_compiler_pic_CXX='-qpic'
13805	    lt_prog_compiler_static_CXX='-qstaticlink'
13806	    ;;
13807	  *)
13808	    case `$CC -V 2>&1 | sed 5q` in
13809	    *Sun\ C*)
13810	      # Sun C++ 5.9
13811	      lt_prog_compiler_pic_CXX='-KPIC'
13812	      lt_prog_compiler_static_CXX='-Bstatic'
13813	      lt_prog_compiler_wl_CXX='-Qoption ld '
13814	      ;;
13815	    esac
13816	    ;;
13817	esac
13818	;;
13819      lynxos*)
13820	;;
13821      m88k*)
13822	;;
13823      mvs*)
13824	case $cc_basename in
13825	  cxx*)
13826	    lt_prog_compiler_pic_CXX='-W c,exportall'
13827	    ;;
13828	  *)
13829	    ;;
13830	esac
13831	;;
13832      netbsd*)
13833	;;
13834      *qnx* | *nto*)
13835        # QNX uses GNU C++, but need to define -shared option too, otherwise
13836        # it will coredump.
13837        lt_prog_compiler_pic_CXX='-fPIC -shared'
13838        ;;
13839      osf3* | osf4* | osf5*)
13840	case $cc_basename in
13841	  KCC*)
13842	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13843	    ;;
13844	  RCC*)
13845	    # Rational C++ 2.4.1
13846	    lt_prog_compiler_pic_CXX='-pic'
13847	    ;;
13848	  cxx*)
13849	    # Digital/Compaq C++
13850	    lt_prog_compiler_wl_CXX='-Wl,'
13851	    # Make sure the PIC flag is empty.  It appears that all Alpha
13852	    # Linux and Compaq Tru64 Unix objects are PIC.
13853	    lt_prog_compiler_pic_CXX=
13854	    lt_prog_compiler_static_CXX='-non_shared'
13855	    ;;
13856	  *)
13857	    ;;
13858	esac
13859	;;
13860      psos*)
13861	;;
13862      solaris*)
13863	case $cc_basename in
13864	  CC*)
13865	    # Sun C++ 4.2, 5.x and Centerline C++
13866	    lt_prog_compiler_pic_CXX='-KPIC'
13867	    lt_prog_compiler_static_CXX='-Bstatic'
13868	    lt_prog_compiler_wl_CXX='-Qoption ld '
13869	    ;;
13870	  gcx*)
13871	    # Green Hills C++ Compiler
13872	    lt_prog_compiler_pic_CXX='-PIC'
13873	    ;;
13874	  *)
13875	    ;;
13876	esac
13877	;;
13878      sunos4*)
13879	case $cc_basename in
13880	  CC*)
13881	    # Sun C++ 4.x
13882	    lt_prog_compiler_pic_CXX='-pic'
13883	    lt_prog_compiler_static_CXX='-Bstatic'
13884	    ;;
13885	  lcc*)
13886	    # Lucid
13887	    lt_prog_compiler_pic_CXX='-pic'
13888	    ;;
13889	  *)
13890	    ;;
13891	esac
13892	;;
13893      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13894	case $cc_basename in
13895	  CC*)
13896	    lt_prog_compiler_wl_CXX='-Wl,'
13897	    lt_prog_compiler_pic_CXX='-KPIC'
13898	    lt_prog_compiler_static_CXX='-Bstatic'
13899	    ;;
13900	esac
13901	;;
13902      tandem*)
13903	case $cc_basename in
13904	  NCC*)
13905	    # NonStop-UX NCC 3.20
13906	    lt_prog_compiler_pic_CXX='-KPIC'
13907	    ;;
13908	  *)
13909	    ;;
13910	esac
13911	;;
13912      vxworks*)
13913	;;
13914      *)
13915	lt_prog_compiler_can_build_shared_CXX=no
13916	;;
13917    esac
13918  fi
13919
13920case $host_os in
13921  # For platforms which do not support PIC, -DPIC is meaningless:
13922  *djgpp*)
13923    lt_prog_compiler_pic_CXX=
13924    ;;
13925  *)
13926    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13927    ;;
13928esac
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13930$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13931
13932
13933
13934#
13935# Check to make sure the PIC flag actually works.
13936#
13937if test -n "$lt_prog_compiler_pic_CXX"; then
13938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13939$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13940if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13941  $as_echo_n "(cached) " >&6
13942else
13943  lt_cv_prog_compiler_pic_works_CXX=no
13944   ac_outfile=conftest.$ac_objext
13945   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13946   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13947   # Insert the option either (1) after the last *FLAGS variable, or
13948   # (2) before a word containing "conftest.", or (3) at the end.
13949   # Note that $ac_compile itself does not contain backslashes and begins
13950   # with a dollar sign (not a hyphen), so the echo should work correctly.
13951   # The option is referenced via a variable to avoid confusing sed.
13952   lt_compile=`echo "$ac_compile" | $SED \
13953   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13954   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13955   -e 's:$: $lt_compiler_flag:'`
13956   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13957   (eval "$lt_compile" 2>conftest.err)
13958   ac_status=$?
13959   cat conftest.err >&5
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   if (exit $ac_status) && test -s "$ac_outfile"; then
13962     # The compiler can only warn and ignore the option if not recognized
13963     # So say no if there are warnings other than the usual output.
13964     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13965     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13966     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13967       lt_cv_prog_compiler_pic_works_CXX=yes
13968     fi
13969   fi
13970   $RM conftest*
13971
13972fi
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13974$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13975
13976if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13977    case $lt_prog_compiler_pic_CXX in
13978     "" | " "*) ;;
13979     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13980     esac
13981else
13982    lt_prog_compiler_pic_CXX=
13983     lt_prog_compiler_can_build_shared_CXX=no
13984fi
13985
13986fi
13987
13988
13989
13990#
13991# Check to make sure the static flag actually works.
13992#
13993wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13995$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13996if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13997  $as_echo_n "(cached) " >&6
13998else
13999  lt_cv_prog_compiler_static_works_CXX=no
14000   save_LDFLAGS="$LDFLAGS"
14001   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14002   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14003   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14004     # The linker can only warn and ignore the option if not recognized
14005     # So say no if there are warnings
14006     if test -s conftest.err; then
14007       # Append any errors to the config.log.
14008       cat conftest.err 1>&5
14009       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14010       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011       if diff conftest.exp conftest.er2 >/dev/null; then
14012         lt_cv_prog_compiler_static_works_CXX=yes
14013       fi
14014     else
14015       lt_cv_prog_compiler_static_works_CXX=yes
14016     fi
14017   fi
14018   $RM -r conftest*
14019   LDFLAGS="$save_LDFLAGS"
14020
14021fi
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14023$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14024
14025if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14026    :
14027else
14028    lt_prog_compiler_static_CXX=
14029fi
14030
14031
14032
14033
14034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14035$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14036if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14037  $as_echo_n "(cached) " >&6
14038else
14039  lt_cv_prog_compiler_c_o_CXX=no
14040   $RM -r conftest 2>/dev/null
14041   mkdir conftest
14042   cd conftest
14043   mkdir out
14044   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14045
14046   lt_compiler_flag="-o out/conftest2.$ac_objext"
14047   # Insert the option either (1) after the last *FLAGS variable, or
14048   # (2) before a word containing "conftest.", or (3) at the end.
14049   # Note that $ac_compile itself does not contain backslashes and begins
14050   # with a dollar sign (not a hyphen), so the echo should work correctly.
14051   lt_compile=`echo "$ac_compile" | $SED \
14052   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14053   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14054   -e 's:$: $lt_compiler_flag:'`
14055   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14056   (eval "$lt_compile" 2>out/conftest.err)
14057   ac_status=$?
14058   cat out/conftest.err >&5
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14061   then
14062     # The compiler can only warn and ignore the option if not recognized
14063     # So say no if there are warnings
14064     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14065     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14066     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14067       lt_cv_prog_compiler_c_o_CXX=yes
14068     fi
14069   fi
14070   chmod u+w . 2>&5
14071   $RM conftest*
14072   # SGI C++ compiler will create directory out/ii_files/ for
14073   # template instantiation
14074   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14075   $RM out/* && rmdir out
14076   cd ..
14077   $RM -r conftest
14078   $RM conftest*
14079
14080fi
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14082$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14083
14084
14085
14086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14088if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  lt_cv_prog_compiler_c_o_CXX=no
14092   $RM -r conftest 2>/dev/null
14093   mkdir conftest
14094   cd conftest
14095   mkdir out
14096   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14097
14098   lt_compiler_flag="-o out/conftest2.$ac_objext"
14099   # Insert the option either (1) after the last *FLAGS variable, or
14100   # (2) before a word containing "conftest.", or (3) at the end.
14101   # Note that $ac_compile itself does not contain backslashes and begins
14102   # with a dollar sign (not a hyphen), so the echo should work correctly.
14103   lt_compile=`echo "$ac_compile" | $SED \
14104   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106   -e 's:$: $lt_compiler_flag:'`
14107   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14108   (eval "$lt_compile" 2>out/conftest.err)
14109   ac_status=$?
14110   cat out/conftest.err >&5
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14113   then
14114     # The compiler can only warn and ignore the option if not recognized
14115     # So say no if there are warnings
14116     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14117     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119       lt_cv_prog_compiler_c_o_CXX=yes
14120     fi
14121   fi
14122   chmod u+w . 2>&5
14123   $RM conftest*
14124   # SGI C++ compiler will create directory out/ii_files/ for
14125   # template instantiation
14126   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14127   $RM out/* && rmdir out
14128   cd ..
14129   $RM -r conftest
14130   $RM conftest*
14131
14132fi
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14134$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14135
14136
14137
14138
14139hard_links="nottested"
14140if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14141  # do not overwrite the value of need_locks provided by the user
14142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14143$as_echo_n "checking if we can lock with hard links... " >&6; }
14144  hard_links=yes
14145  $RM conftest*
14146  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147  touch conftest.a
14148  ln conftest.a conftest.b 2>&5 || hard_links=no
14149  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14151$as_echo "$hard_links" >&6; }
14152  if test "$hard_links" = no; then
14153    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14155    need_locks=warn
14156  fi
14157else
14158  need_locks=no
14159fi
14160
14161
14162
14163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14164$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14165
14166  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14167  case $host_os in
14168  aix[4-9]*)
14169    # If we're using GNU nm, then we don't want the "-C" option.
14170    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14171    # Also, AIX nm treats weak defined symbols like other global defined
14172    # symbols, whereas GNU nm marks them as "W".
14173    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14174      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14175    else
14176      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14177    fi
14178    ;;
14179  pw32*)
14180    export_symbols_cmds_CXX="$ltdll_cmds"
14181  ;;
14182  cygwin* | mingw* | cegcc*)
14183    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14184  ;;
14185  *)
14186    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14187  ;;
14188  esac
14189  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14190
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14192$as_echo "$ld_shlibs_CXX" >&6; }
14193test "$ld_shlibs_CXX" = no && can_build_shared=no
14194
14195with_gnu_ld_CXX=$with_gnu_ld
14196
14197
14198
14199
14200
14201
14202#
14203# Do we need to explicitly link libc?
14204#
14205case "x$archive_cmds_need_lc_CXX" in
14206x|xyes)
14207  # Assume -lc should be added
14208  archive_cmds_need_lc_CXX=yes
14209
14210  if test "$enable_shared" = yes && test "$GCC" = yes; then
14211    case $archive_cmds_CXX in
14212    *'~'*)
14213      # FIXME: we may have to deal with multi-command sequences.
14214      ;;
14215    '$CC '*)
14216      # Test whether the compiler implicitly links with -lc since on some
14217      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14218      # to ld, don't add -lc before -lgcc.
14219      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14220$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14221if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14222  $as_echo_n "(cached) " >&6
14223else
14224  $RM conftest*
14225	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14228  (eval $ac_compile) 2>&5
14229  ac_status=$?
14230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231  test $ac_status = 0; } 2>conftest.err; then
14232	  soname=conftest
14233	  lib=conftest
14234	  libobjs=conftest.$ac_objext
14235	  deplibs=
14236	  wl=$lt_prog_compiler_wl_CXX
14237	  pic_flag=$lt_prog_compiler_pic_CXX
14238	  compiler_flags=-v
14239	  linker_flags=-v
14240	  verstring=
14241	  output_objdir=.
14242	  libname=conftest
14243	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14244	  allow_undefined_flag_CXX=
14245	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14246  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14247  ac_status=$?
14248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249  test $ac_status = 0; }
14250	  then
14251	    lt_cv_archive_cmds_need_lc_CXX=no
14252	  else
14253	    lt_cv_archive_cmds_need_lc_CXX=yes
14254	  fi
14255	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14256	else
14257	  cat conftest.err 1>&5
14258	fi
14259	$RM conftest*
14260
14261fi
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14263$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14264      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14265      ;;
14266    esac
14267  fi
14268  ;;
14269esac
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14335$as_echo_n "checking dynamic linker characteristics... " >&6; }
14336
14337library_names_spec=
14338libname_spec='lib$name'
14339soname_spec=
14340shrext_cmds=".so"
14341postinstall_cmds=
14342postuninstall_cmds=
14343finish_cmds=
14344finish_eval=
14345shlibpath_var=
14346shlibpath_overrides_runpath=unknown
14347version_type=none
14348dynamic_linker="$host_os ld.so"
14349sys_lib_dlsearch_path_spec="/lib /usr/lib"
14350need_lib_prefix=unknown
14351hardcode_into_libs=no
14352
14353# when you set need_version to no, make sure it does not cause -set_version
14354# flags to be left without arguments
14355need_version=unknown
14356
14357case $host_os in
14358aix3*)
14359  version_type=linux
14360  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14361  shlibpath_var=LIBPATH
14362
14363  # AIX 3 has no versioning support, so we append a major version to the name.
14364  soname_spec='${libname}${release}${shared_ext}$major'
14365  ;;
14366
14367aix[4-9]*)
14368  version_type=linux
14369  need_lib_prefix=no
14370  need_version=no
14371  hardcode_into_libs=yes
14372  if test "$host_cpu" = ia64; then
14373    # AIX 5 supports IA64
14374    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14375    shlibpath_var=LD_LIBRARY_PATH
14376  else
14377    # With GCC up to 2.95.x, collect2 would create an import file
14378    # for dependence libraries.  The import file would start with
14379    # the line `#! .'.  This would cause the generated library to
14380    # depend on `.', always an invalid library.  This was fixed in
14381    # development snapshots of GCC prior to 3.0.
14382    case $host_os in
14383      aix4 | aix4.[01] | aix4.[01].*)
14384      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14385	   echo ' yes '
14386	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14387	:
14388      else
14389	can_build_shared=no
14390      fi
14391      ;;
14392    esac
14393    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14394    # soname into executable. Probably we can add versioning support to
14395    # collect2, so additional links can be useful in future.
14396    if test "$aix_use_runtimelinking" = yes; then
14397      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14398      # instead of lib<name>.a to let people know that these are not
14399      # typical AIX shared libraries.
14400      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401    else
14402      # We preserve .a as extension for shared libraries through AIX4.2
14403      # and later when we are not doing run time linking.
14404      library_names_spec='${libname}${release}.a $libname.a'
14405      soname_spec='${libname}${release}${shared_ext}$major'
14406    fi
14407    shlibpath_var=LIBPATH
14408  fi
14409  ;;
14410
14411amigaos*)
14412  case $host_cpu in
14413  powerpc)
14414    # Since July 2007 AmigaOS4 officially supports .so libraries.
14415    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417    ;;
14418  m68k)
14419    library_names_spec='$libname.ixlibrary $libname.a'
14420    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14421    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'
14422    ;;
14423  esac
14424  ;;
14425
14426beos*)
14427  library_names_spec='${libname}${shared_ext}'
14428  dynamic_linker="$host_os ld.so"
14429  shlibpath_var=LIBRARY_PATH
14430  ;;
14431
14432bsdi[45]*)
14433  version_type=linux
14434  need_version=no
14435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436  soname_spec='${libname}${release}${shared_ext}$major'
14437  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14438  shlibpath_var=LD_LIBRARY_PATH
14439  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14440  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14441  # the default ld.so.conf also contains /usr/contrib/lib and
14442  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14443  # libtool to hard-code these into programs
14444  ;;
14445
14446cygwin* | mingw* | pw32* | cegcc*)
14447  version_type=windows
14448  shrext_cmds=".dll"
14449  need_version=no
14450  need_lib_prefix=no
14451
14452  case $GCC,$host_os in
14453  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14454    library_names_spec='$libname.dll.a'
14455    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14456    postinstall_cmds='base_file=`basename \${file}`~
14457      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14458      dldir=$destdir/`dirname \$dlpath`~
14459      test -d \$dldir || mkdir -p \$dldir~
14460      $install_prog $dir/$dlname \$dldir/$dlname~
14461      chmod a+x \$dldir/$dlname~
14462      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14463        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14464      fi'
14465    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14466      dlpath=$dir/\$dldll~
14467       $RM \$dlpath'
14468    shlibpath_overrides_runpath=yes
14469
14470    case $host_os in
14471    cygwin*)
14472      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14473      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474
14475      ;;
14476    mingw* | cegcc*)
14477      # MinGW DLLs use traditional 'lib' prefix
14478      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479      ;;
14480    pw32*)
14481      # pw32 DLLs use 'pw' prefix rather than 'lib'
14482      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483      ;;
14484    esac
14485    ;;
14486
14487  *)
14488    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14489    ;;
14490  esac
14491  dynamic_linker='Win32 ld.exe'
14492  # FIXME: first we should search . and the directory the executable is in
14493  shlibpath_var=PATH
14494  ;;
14495
14496darwin* | rhapsody*)
14497  dynamic_linker="$host_os dyld"
14498  version_type=darwin
14499  need_lib_prefix=no
14500  need_version=no
14501  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14502  soname_spec='${libname}${release}${major}$shared_ext'
14503  shlibpath_overrides_runpath=yes
14504  shlibpath_var=DYLD_LIBRARY_PATH
14505  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14506
14507  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14508  ;;
14509
14510dgux*)
14511  version_type=linux
14512  need_lib_prefix=no
14513  need_version=no
14514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14515  soname_spec='${libname}${release}${shared_ext}$major'
14516  shlibpath_var=LD_LIBRARY_PATH
14517  ;;
14518
14519freebsd* | dragonfly*)
14520  # DragonFly does not have aout.  When/if they implement a new
14521  # versioning mechanism, adjust this.
14522  if test -x /usr/bin/objformat; then
14523    objformat=`/usr/bin/objformat`
14524  else
14525    case $host_os in
14526    freebsd[23].*) objformat=aout ;;
14527    *) objformat=elf ;;
14528    esac
14529  fi
14530  version_type=freebsd-$objformat
14531  case $version_type in
14532    freebsd-elf*)
14533      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14534      need_version=no
14535      need_lib_prefix=no
14536      ;;
14537    freebsd-*)
14538      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14539      need_version=yes
14540      ;;
14541  esac
14542  shlibpath_var=LD_LIBRARY_PATH
14543  case $host_os in
14544  freebsd2.*)
14545    shlibpath_overrides_runpath=yes
14546    ;;
14547  freebsd3.[01]* | freebsdelf3.[01]*)
14548    shlibpath_overrides_runpath=yes
14549    hardcode_into_libs=yes
14550    ;;
14551  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14552  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14553    shlibpath_overrides_runpath=no
14554    hardcode_into_libs=yes
14555    ;;
14556  *) # from 4.6 on, and DragonFly
14557    shlibpath_overrides_runpath=yes
14558    hardcode_into_libs=yes
14559    ;;
14560  esac
14561  ;;
14562
14563gnu*)
14564  version_type=linux
14565  need_lib_prefix=no
14566  need_version=no
14567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14568  soname_spec='${libname}${release}${shared_ext}$major'
14569  shlibpath_var=LD_LIBRARY_PATH
14570  hardcode_into_libs=yes
14571  ;;
14572
14573haiku*)
14574  version_type=linux
14575  need_lib_prefix=no
14576  need_version=no
14577  dynamic_linker="$host_os runtime_loader"
14578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14579  soname_spec='${libname}${release}${shared_ext}$major'
14580  shlibpath_var=LIBRARY_PATH
14581  shlibpath_overrides_runpath=yes
14582  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14583  hardcode_into_libs=yes
14584  ;;
14585
14586hpux9* | hpux10* | hpux11*)
14587  # Give a soname corresponding to the major version so that dld.sl refuses to
14588  # link against other versions.
14589  version_type=sunos
14590  need_lib_prefix=no
14591  need_version=no
14592  case $host_cpu in
14593  ia64*)
14594    shrext_cmds='.so'
14595    hardcode_into_libs=yes
14596    dynamic_linker="$host_os dld.so"
14597    shlibpath_var=LD_LIBRARY_PATH
14598    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14599    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600    soname_spec='${libname}${release}${shared_ext}$major'
14601    if test "X$HPUX_IA64_MODE" = X32; then
14602      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14603    else
14604      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14605    fi
14606    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14607    ;;
14608  hppa*64*)
14609    shrext_cmds='.sl'
14610    hardcode_into_libs=yes
14611    dynamic_linker="$host_os dld.sl"
14612    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14613    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615    soname_spec='${libname}${release}${shared_ext}$major'
14616    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14617    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14618    ;;
14619  *)
14620    shrext_cmds='.sl'
14621    dynamic_linker="$host_os dld.sl"
14622    shlibpath_var=SHLIB_PATH
14623    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625    soname_spec='${libname}${release}${shared_ext}$major'
14626    ;;
14627  esac
14628  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14629  postinstall_cmds='chmod 555 $lib'
14630  # or fails outright, so override atomically:
14631  install_override_mode=555
14632  ;;
14633
14634interix[3-9]*)
14635  version_type=linux
14636  need_lib_prefix=no
14637  need_version=no
14638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14639  soname_spec='${libname}${release}${shared_ext}$major'
14640  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14641  shlibpath_var=LD_LIBRARY_PATH
14642  shlibpath_overrides_runpath=no
14643  hardcode_into_libs=yes
14644  ;;
14645
14646irix5* | irix6* | nonstopux*)
14647  case $host_os in
14648    nonstopux*) version_type=nonstopux ;;
14649    *)
14650	if test "$lt_cv_prog_gnu_ld" = yes; then
14651		version_type=linux
14652	else
14653		version_type=irix
14654	fi ;;
14655  esac
14656  need_lib_prefix=no
14657  need_version=no
14658  soname_spec='${libname}${release}${shared_ext}$major'
14659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14660  case $host_os in
14661  irix5* | nonstopux*)
14662    libsuff= shlibsuff=
14663    ;;
14664  *)
14665    case $LD in # libtool.m4 will add one of these switches to LD
14666    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14667      libsuff= shlibsuff= libmagic=32-bit;;
14668    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14669      libsuff=32 shlibsuff=N32 libmagic=N32;;
14670    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14671      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14672    *) libsuff= shlibsuff= libmagic=never-match;;
14673    esac
14674    ;;
14675  esac
14676  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14677  shlibpath_overrides_runpath=no
14678  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14679  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14680  hardcode_into_libs=yes
14681  ;;
14682
14683# No shared lib support for Linux oldld, aout, or coff.
14684linux*oldld* | linux*aout* | linux*coff*)
14685  dynamic_linker=no
14686  ;;
14687
14688# This must be Linux ELF.
14689linux* | k*bsd*-gnu | kopensolaris*-gnu)
14690  version_type=linux
14691  need_lib_prefix=no
14692  need_version=no
14693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694  soname_spec='${libname}${release}${shared_ext}$major'
14695  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14696  shlibpath_var=LD_LIBRARY_PATH
14697  shlibpath_overrides_runpath=no
14698
14699  # Some binutils ld are patched to set DT_RUNPATH
14700  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14701  $as_echo_n "(cached) " >&6
14702else
14703  lt_cv_shlibpath_overrides_runpath=no
14704    save_LDFLAGS=$LDFLAGS
14705    save_libdir=$libdir
14706    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14707	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709/* end confdefs.h.  */
14710
14711int
14712main ()
14713{
14714
14715  ;
14716  return 0;
14717}
14718_ACEOF
14719if ac_fn_cxx_try_link "$LINENO"; then :
14720  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14721  lt_cv_shlibpath_overrides_runpath=yes
14722fi
14723fi
14724rm -f core conftest.err conftest.$ac_objext \
14725    conftest$ac_exeext conftest.$ac_ext
14726    LDFLAGS=$save_LDFLAGS
14727    libdir=$save_libdir
14728
14729fi
14730
14731  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14732
14733  # This implies no fast_install, which is unacceptable.
14734  # Some rework will be needed to allow for fast_install
14735  # before this can be enabled.
14736  hardcode_into_libs=yes
14737
14738  # Append ld.so.conf contents to the search path
14739  if test -f /etc/ld.so.conf; then
14740    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' ' '`
14741    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14742  fi
14743
14744  # We used to test for /lib/ld.so.1 and disable shared libraries on
14745  # powerpc, because MkLinux only supported shared libraries with the
14746  # GNU dynamic linker.  Since this was broken with cross compilers,
14747  # most powerpc-linux boxes support dynamic linking these days and
14748  # people can always --disable-shared, the test was removed, and we
14749  # assume the GNU/Linux dynamic linker is in use.
14750  dynamic_linker='GNU/Linux ld.so'
14751  ;;
14752
14753netbsd*)
14754  version_type=sunos
14755  need_lib_prefix=no
14756  need_version=no
14757  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14759    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14760    dynamic_linker='NetBSD (a.out) ld.so'
14761  else
14762    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763    soname_spec='${libname}${release}${shared_ext}$major'
14764    dynamic_linker='NetBSD ld.elf_so'
14765  fi
14766  shlibpath_var=LD_LIBRARY_PATH
14767  shlibpath_overrides_runpath=yes
14768  hardcode_into_libs=yes
14769  ;;
14770
14771newsos6)
14772  version_type=linux
14773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774  shlibpath_var=LD_LIBRARY_PATH
14775  shlibpath_overrides_runpath=yes
14776  ;;
14777
14778*nto* | *qnx*)
14779  version_type=qnx
14780  need_lib_prefix=no
14781  need_version=no
14782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783  soname_spec='${libname}${release}${shared_ext}$major'
14784  shlibpath_var=LD_LIBRARY_PATH
14785  shlibpath_overrides_runpath=no
14786  hardcode_into_libs=yes
14787  dynamic_linker='ldqnx.so'
14788  ;;
14789
14790openbsd*)
14791  version_type=sunos
14792  sys_lib_dlsearch_path_spec="/usr/lib"
14793  need_lib_prefix=no
14794  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14795  case $host_os in
14796    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14797    *)				need_version=no  ;;
14798  esac
14799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14800  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14801  shlibpath_var=LD_LIBRARY_PATH
14802  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14803    case $host_os in
14804      openbsd2.[89] | openbsd2.[89].*)
14805	shlibpath_overrides_runpath=no
14806	;;
14807      *)
14808	shlibpath_overrides_runpath=yes
14809	;;
14810      esac
14811  else
14812    shlibpath_overrides_runpath=yes
14813  fi
14814  ;;
14815
14816os2*)
14817  libname_spec='$name'
14818  shrext_cmds=".dll"
14819  need_lib_prefix=no
14820  library_names_spec='$libname${shared_ext} $libname.a'
14821  dynamic_linker='OS/2 ld.exe'
14822  shlibpath_var=LIBPATH
14823  ;;
14824
14825osf3* | osf4* | osf5*)
14826  version_type=osf
14827  need_lib_prefix=no
14828  need_version=no
14829  soname_spec='${libname}${release}${shared_ext}$major'
14830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831  shlibpath_var=LD_LIBRARY_PATH
14832  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14833  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14834  ;;
14835
14836rdos*)
14837  dynamic_linker=no
14838  ;;
14839
14840solaris*)
14841  version_type=linux
14842  need_lib_prefix=no
14843  need_version=no
14844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845  soname_spec='${libname}${release}${shared_ext}$major'
14846  shlibpath_var=LD_LIBRARY_PATH
14847  shlibpath_overrides_runpath=yes
14848  hardcode_into_libs=yes
14849  # ldd complains unless libraries are executable
14850  postinstall_cmds='chmod +x $lib'
14851  ;;
14852
14853sunos4*)
14854  version_type=sunos
14855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14857  shlibpath_var=LD_LIBRARY_PATH
14858  shlibpath_overrides_runpath=yes
14859  if test "$with_gnu_ld" = yes; then
14860    need_lib_prefix=no
14861  fi
14862  need_version=yes
14863  ;;
14864
14865sysv4 | sysv4.3*)
14866  version_type=linux
14867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868  soname_spec='${libname}${release}${shared_ext}$major'
14869  shlibpath_var=LD_LIBRARY_PATH
14870  case $host_vendor in
14871    sni)
14872      shlibpath_overrides_runpath=no
14873      need_lib_prefix=no
14874      runpath_var=LD_RUN_PATH
14875      ;;
14876    siemens)
14877      need_lib_prefix=no
14878      ;;
14879    motorola)
14880      need_lib_prefix=no
14881      need_version=no
14882      shlibpath_overrides_runpath=no
14883      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14884      ;;
14885  esac
14886  ;;
14887
14888sysv4*MP*)
14889  if test -d /usr/nec ;then
14890    version_type=linux
14891    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14892    soname_spec='$libname${shared_ext}.$major'
14893    shlibpath_var=LD_LIBRARY_PATH
14894  fi
14895  ;;
14896
14897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14898  version_type=freebsd-elf
14899  need_lib_prefix=no
14900  need_version=no
14901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14902  soname_spec='${libname}${release}${shared_ext}$major'
14903  shlibpath_var=LD_LIBRARY_PATH
14904  shlibpath_overrides_runpath=yes
14905  hardcode_into_libs=yes
14906  if test "$with_gnu_ld" = yes; then
14907    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14908  else
14909    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14910    case $host_os in
14911      sco3.2v5*)
14912        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14913	;;
14914    esac
14915  fi
14916  sys_lib_dlsearch_path_spec='/usr/lib'
14917  ;;
14918
14919tpf*)
14920  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14921  version_type=linux
14922  need_lib_prefix=no
14923  need_version=no
14924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925  shlibpath_var=LD_LIBRARY_PATH
14926  shlibpath_overrides_runpath=no
14927  hardcode_into_libs=yes
14928  ;;
14929
14930uts4*)
14931  version_type=linux
14932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933  soname_spec='${libname}${release}${shared_ext}$major'
14934  shlibpath_var=LD_LIBRARY_PATH
14935  ;;
14936
14937*)
14938  dynamic_linker=no
14939  ;;
14940esac
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14942$as_echo "$dynamic_linker" >&6; }
14943test "$dynamic_linker" = no && can_build_shared=no
14944
14945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14946if test "$GCC" = yes; then
14947  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14948fi
14949
14950if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14951  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14952fi
14953if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14954  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14955fi
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14995$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14996hardcode_action_CXX=
14997if test -n "$hardcode_libdir_flag_spec_CXX" ||
14998   test -n "$runpath_var_CXX" ||
14999   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15000
15001  # We can hardcode non-existent directories.
15002  if test "$hardcode_direct_CXX" != no &&
15003     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15004     # have to relink, otherwise we might link with an installed library
15005     # when we should be linking with a yet-to-be-installed one
15006     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15007     test "$hardcode_minus_L_CXX" != no; then
15008    # Linking always hardcodes the temporary library directory.
15009    hardcode_action_CXX=relink
15010  else
15011    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15012    hardcode_action_CXX=immediate
15013  fi
15014else
15015  # We cannot hardcode anything, or else we can only hardcode existing
15016  # directories.
15017  hardcode_action_CXX=unsupported
15018fi
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15020$as_echo "$hardcode_action_CXX" >&6; }
15021
15022if test "$hardcode_action_CXX" = relink ||
15023   test "$inherit_rpath_CXX" = yes; then
15024  # Fast installation is not supported
15025  enable_fast_install=no
15026elif test "$shlibpath_overrides_runpath" = yes ||
15027     test "$enable_shared" = no; then
15028  # Fast installation is not necessary
15029  enable_fast_install=needless
15030fi
15031
15032
15033
15034
15035
15036
15037
15038  fi # test -n "$compiler"
15039
15040  CC=$lt_save_CC
15041  LDCXX=$LD
15042  LD=$lt_save_LD
15043  GCC=$lt_save_GCC
15044  with_gnu_ld=$lt_save_with_gnu_ld
15045  lt_cv_path_LDCXX=$lt_cv_path_LD
15046  lt_cv_path_LD=$lt_save_path_LD
15047  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15048  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15049fi # test "$_lt_caught_CXX_error" != yes
15050
15051ac_ext=c
15052ac_cpp='$CPP $CPPFLAGS'
15053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15055ac_compiler_gnu=$ac_cv_c_compiler_gnu
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069        ac_config_commands="$ac_config_commands libtool"
15070
15071
15072
15073
15074# Only expand once:
15075
15076
15077
15078# The tests for host and target for $enable_largefile require
15079# canonical names.
15080
15081
15082
15083# As the $enable_largefile decision depends on --enable-plugins we must set it
15084# even in directories otherwise not depending on the $plugins option.
15085
15086
15087  maybe_plugins=no
15088  for ac_header in dlfcn.h
15089do :
15090  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15091"
15092if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15093  cat >>confdefs.h <<_ACEOF
15094#define HAVE_DLFCN_H 1
15095_ACEOF
15096 maybe_plugins=yes
15097fi
15098
15099done
15100
15101  for ac_header in windows.h
15102do :
15103  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15104"
15105if test "x$ac_cv_header_windows_h" = x""yes; then :
15106  cat >>confdefs.h <<_ACEOF
15107#define HAVE_WINDOWS_H 1
15108_ACEOF
15109 maybe_plugins=yes
15110fi
15111
15112done
15113
15114
15115  # Check whether --enable-plugins was given.
15116if test "${enable_plugins+set}" = set; then :
15117  enableval=$enable_plugins; case "${enableval}" in
15118      no) plugins=no ;;
15119      *) plugins=yes
15120         if test "$maybe_plugins" != "yes" ; then
15121	   as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15122	 fi ;;
15123     esac
15124else
15125  plugins=$maybe_plugins
15126
15127fi
15128
15129  if test "$plugins" = "yes"; then
15130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15131$as_echo_n "checking for library containing dlopen... " >&6; }
15132if test "${ac_cv_search_dlopen+set}" = set; then :
15133  $as_echo_n "(cached) " >&6
15134else
15135  ac_func_search_save_LIBS=$LIBS
15136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137/* end confdefs.h.  */
15138
15139/* Override any GCC internal prototype to avoid an error.
15140   Use char because int might match the return type of a GCC
15141   builtin and then its argument prototype would still apply.  */
15142#ifdef __cplusplus
15143extern "C"
15144#endif
15145char dlopen ();
15146int
15147main ()
15148{
15149return dlopen ();
15150  ;
15151  return 0;
15152}
15153_ACEOF
15154for ac_lib in '' dl; do
15155  if test -z "$ac_lib"; then
15156    ac_res="none required"
15157  else
15158    ac_res=-l$ac_lib
15159    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15160  fi
15161  if ac_fn_c_try_link "$LINENO"; then :
15162  ac_cv_search_dlopen=$ac_res
15163fi
15164rm -f core conftest.err conftest.$ac_objext \
15165    conftest$ac_exeext
15166  if test "${ac_cv_search_dlopen+set}" = set; then :
15167  break
15168fi
15169done
15170if test "${ac_cv_search_dlopen+set}" = set; then :
15171
15172else
15173  ac_cv_search_dlopen=no
15174fi
15175rm conftest.$ac_ext
15176LIBS=$ac_func_search_save_LIBS
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15179$as_echo "$ac_cv_search_dlopen" >&6; }
15180ac_res=$ac_cv_search_dlopen
15181if test "$ac_res" != no; then :
15182  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15183
15184fi
15185
15186  fi
15187
15188
15189case "${host}" in
15190  sparc-*-solaris*|i[3-7]86-*-solaris*)
15191    # On native 32bit sparc and ia32 solaris, large-file and procfs support
15192    # are mutually exclusive; and without procfs support, the bfd/ elf module
15193    # cannot provide certain routines such as elfcore_write_prpsinfo
15194    # or elfcore_write_prstatus.  So unless the user explicitly requested
15195    # large-file support through the --enable-largefile switch, disable
15196    # large-file support in favor of procfs support.
15197    test "${target}" = "${host}" -a "x$plugins" = xno \
15198      && : ${enable_largefile="no"}
15199    ;;
15200esac
15201
15202# Check whether --enable-largefile was given.
15203if test "${enable_largefile+set}" = set; then :
15204  enableval=$enable_largefile;
15205fi
15206
15207if test "$enable_largefile" != no; then
15208
15209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15210$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15211if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15212  $as_echo_n "(cached) " >&6
15213else
15214  ac_cv_sys_largefile_CC=no
15215     if test "$GCC" != yes; then
15216       ac_save_CC=$CC
15217       while :; do
15218	 # IRIX 6.2 and later do not support large files by default,
15219	 # so use the C compiler's -n32 option if that helps.
15220	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h.  */
15222#include <sys/types.h>
15223 /* Check that off_t can represent 2**63 - 1 correctly.
15224    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15225    since some C++ compilers masquerading as C compilers
15226    incorrectly reject 9223372036854775807.  */
15227#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15228  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15229		       && LARGE_OFF_T % 2147483647 == 1)
15230		      ? 1 : -1];
15231int
15232main ()
15233{
15234
15235  ;
15236  return 0;
15237}
15238_ACEOF
15239	 if ac_fn_c_try_compile "$LINENO"; then :
15240  break
15241fi
15242rm -f core conftest.err conftest.$ac_objext
15243	 CC="$CC -n32"
15244	 if ac_fn_c_try_compile "$LINENO"; then :
15245  ac_cv_sys_largefile_CC=' -n32'; break
15246fi
15247rm -f core conftest.err conftest.$ac_objext
15248	 break
15249       done
15250       CC=$ac_save_CC
15251       rm -f conftest.$ac_ext
15252    fi
15253fi
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15255$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15256  if test "$ac_cv_sys_largefile_CC" != no; then
15257    CC=$CC$ac_cv_sys_largefile_CC
15258  fi
15259
15260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15261$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15262if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15263  $as_echo_n "(cached) " >&6
15264else
15265  while :; do
15266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267/* end confdefs.h.  */
15268#include <sys/types.h>
15269 /* Check that off_t can represent 2**63 - 1 correctly.
15270    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15271    since some C++ compilers masquerading as C compilers
15272    incorrectly reject 9223372036854775807.  */
15273#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15274  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15275		       && LARGE_OFF_T % 2147483647 == 1)
15276		      ? 1 : -1];
15277int
15278main ()
15279{
15280
15281  ;
15282  return 0;
15283}
15284_ACEOF
15285if ac_fn_c_try_compile "$LINENO"; then :
15286  ac_cv_sys_file_offset_bits=no; break
15287fi
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290/* end confdefs.h.  */
15291#define _FILE_OFFSET_BITS 64
15292#include <sys/types.h>
15293 /* Check that off_t can represent 2**63 - 1 correctly.
15294    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15295    since some C++ compilers masquerading as C compilers
15296    incorrectly reject 9223372036854775807.  */
15297#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15298  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15299		       && LARGE_OFF_T % 2147483647 == 1)
15300		      ? 1 : -1];
15301int
15302main ()
15303{
15304
15305  ;
15306  return 0;
15307}
15308_ACEOF
15309if ac_fn_c_try_compile "$LINENO"; then :
15310  ac_cv_sys_file_offset_bits=64; break
15311fi
15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313  ac_cv_sys_file_offset_bits=unknown
15314  break
15315done
15316fi
15317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15318$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15319case $ac_cv_sys_file_offset_bits in #(
15320  no | unknown) ;;
15321  *)
15322cat >>confdefs.h <<_ACEOF
15323#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15324_ACEOF
15325;;
15326esac
15327rm -rf conftest*
15328  if test $ac_cv_sys_file_offset_bits = unknown; then
15329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15330$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15331if test "${ac_cv_sys_large_files+set}" = set; then :
15332  $as_echo_n "(cached) " >&6
15333else
15334  while :; do
15335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h.  */
15337#include <sys/types.h>
15338 /* Check that off_t can represent 2**63 - 1 correctly.
15339    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15340    since some C++ compilers masquerading as C compilers
15341    incorrectly reject 9223372036854775807.  */
15342#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15343  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15344		       && LARGE_OFF_T % 2147483647 == 1)
15345		      ? 1 : -1];
15346int
15347main ()
15348{
15349
15350  ;
15351  return 0;
15352}
15353_ACEOF
15354if ac_fn_c_try_compile "$LINENO"; then :
15355  ac_cv_sys_large_files=no; break
15356fi
15357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359/* end confdefs.h.  */
15360#define _LARGE_FILES 1
15361#include <sys/types.h>
15362 /* Check that off_t can represent 2**63 - 1 correctly.
15363    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15364    since some C++ compilers masquerading as C compilers
15365    incorrectly reject 9223372036854775807.  */
15366#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15367  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15368		       && LARGE_OFF_T % 2147483647 == 1)
15369		      ? 1 : -1];
15370int
15371main ()
15372{
15373
15374  ;
15375  return 0;
15376}
15377_ACEOF
15378if ac_fn_c_try_compile "$LINENO"; then :
15379  ac_cv_sys_large_files=1; break
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382  ac_cv_sys_large_files=unknown
15383  break
15384done
15385fi
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15387$as_echo "$ac_cv_sys_large_files" >&6; }
15388case $ac_cv_sys_large_files in #(
15389  no | unknown) ;;
15390  *)
15391cat >>confdefs.h <<_ACEOF
15392#define _LARGE_FILES $ac_cv_sys_large_files
15393_ACEOF
15394;;
15395esac
15396rm -rf conftest*
15397  fi
15398fi
15399
15400
15401
15402
15403# Check whether --with-lib-path was given.
15404if test "${with_lib_path+set}" = set; then :
15405  withval=$with_lib_path; LIB_PATH=$withval
15406fi
15407
15408# Check whether --enable-targets was given.
15409if test "${enable_targets+set}" = set; then :
15410  enableval=$enable_targets; case "${enableval}" in
15411  yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15412            ;;
15413  no)       enable_targets= ;;
15414  *)        enable_targets=$enableval ;;
15415esac
15416fi
15417# Check whether --enable-64-bit-bfd was given.
15418if test "${enable_64_bit_bfd+set}" = set; then :
15419  enableval=$enable_64_bit_bfd; case "${enableval}" in
15420  yes)  want64=true  ;;
15421  no)   want64=false ;;
15422  *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15423esac
15424else
15425  want64=false
15426fi
15427
15428
15429# Check whether --with-sysroot was given.
15430if test "${with_sysroot+set}" = set; then :
15431  withval=$with_sysroot;
15432 case ${with_sysroot} in
15433 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15434 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15435 esac
15436
15437 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15438 use_sysroot=yes
15439
15440 if test "x$prefix" = xNONE; then
15441  test_prefix=/usr/local
15442 else
15443  test_prefix=$prefix
15444 fi
15445 if test "x$exec_prefix" = xNONE; then
15446  test_exec_prefix=$test_prefix
15447 else
15448  test_exec_prefix=$exec_prefix
15449 fi
15450 case ${TARGET_SYSTEM_ROOT} in
15451 "${test_prefix}"|"${test_prefix}/"*|\
15452 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15453 '${prefix}'|'${prefix}/'*|\
15454 '${exec_prefix}'|'${exec_prefix}/'*)
15455   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15456   TARGET_SYSTEM_ROOT_DEFINE="$t"
15457   ;;
15458 esac
15459
15460else
15461
15462 use_sysroot=no
15463 TARGET_SYSTEM_ROOT=
15464 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15465
15466fi
15467
15468
15469
15470
15471
15472# Check whether --enable-poison-system-directories was given.
15473if test "${enable_poison_system_directories+set}" = set; then :
15474  enableval=$enable_poison_system_directories;
15475else
15476  enable_poison_system_directories=no
15477fi
15478
15479if test "x${enable_poison_system_directories}" = "xyes"; then
15480
15481$as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h
15482
15483fi
15484
15485# Check whether --enable-gold was given.
15486if test "${enable_gold+set}" = set; then :
15487  enableval=$enable_gold; case "${enableval}" in
15488 default)
15489   install_as_default=no
15490   installed_linker=ld.bfd
15491   ;;
15492 yes|no)
15493   install_as_default=yes
15494   installed_linker=ld.bfd
15495   ;;
15496 *)
15497   as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15498   ;;
15499 esac
15500else
15501  install_as_default=yes
15502 installed_linker=ld.bfd
15503fi
15504
15505
15506
15507
15508# Check whether --enable-got was given.
15509if test "${enable_got+set}" = set; then :
15510  enableval=$enable_got; case "${enableval}" in
15511  target | single | negative | multigot)  got_handling=$enableval ;;
15512  *)  as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15513esac
15514else
15515  got_handling=target
15516fi
15517
15518
15519case "${got_handling}" in
15520  target)
15521
15522$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15523 ;;
15524  single)
15525
15526$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15527 ;;
15528  negative)
15529
15530$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15531 ;;
15532  multigot)
15533
15534$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15535 ;;
15536  *)  as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15537esac
15538
15539
15540# Set the 'development' global.
15541. $srcdir/../bfd/development.sh
15542
15543GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545/* end confdefs.h.  */
15546__GNUC__
15547_ACEOF
15548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15549  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15550
15551else
15552  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15553fi
15554rm -f conftest*
15555
15556
15557# Check whether --enable-werror was given.
15558if test "${enable_werror+set}" = set; then :
15559  enableval=$enable_werror; case "${enableval}" in
15560     yes | y) ERROR_ON_WARNING="yes" ;;
15561     no | n)  ERROR_ON_WARNING="no" ;;
15562     *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15563   esac
15564fi
15565
15566
15567# Disable -Wformat by default when using gcc on mingw
15568case "${host}" in
15569  *-*-mingw32*)
15570    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15571      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15572    fi
15573    ;;
15574  *) ;;
15575esac
15576
15577# Enable -Werror by default when using gcc.  Turn it off for releases.
15578if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15579    ERROR_ON_WARNING=yes
15580fi
15581
15582NO_WERROR=
15583if test "${ERROR_ON_WARNING}" = yes ; then
15584    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15585    NO_WERROR="-Wno-error"
15586fi
15587
15588if test "${GCC}" = yes ; then
15589  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15590fi
15591
15592# Check whether --enable-build-warnings was given.
15593if test "${enable_build_warnings+set}" = set; then :
15594  enableval=$enable_build_warnings; case "${enableval}" in
15595  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15596  no)	if test "${GCC}" = yes ; then
15597	  WARN_CFLAGS="-w"
15598	fi;;
15599  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15600        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15601  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15602        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15603  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15604esac
15605fi
15606
15607
15608if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15609  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15610fi
15611
15612
15613
15614
15615
15616
15617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15618$as_echo_n "checking for LC_MESSAGES... " >&6; }
15619if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15620  $as_echo_n "(cached) " >&6
15621else
15622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623/* end confdefs.h.  */
15624#include <locale.h>
15625int
15626main ()
15627{
15628return LC_MESSAGES
15629  ;
15630  return 0;
15631}
15632_ACEOF
15633if ac_fn_c_try_link "$LINENO"; then :
15634  am_cv_val_LC_MESSAGES=yes
15635else
15636  am_cv_val_LC_MESSAGES=no
15637fi
15638rm -f core conftest.err conftest.$ac_objext \
15639    conftest$ac_exeext conftest.$ac_ext
15640fi
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15642$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15643  if test $am_cv_val_LC_MESSAGES = yes; then
15644
15645$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15646
15647  fi
15648
15649
15650ac_config_headers="$ac_config_headers config.h:config.in"
15651
15652
15653# PR 14072
15654
15655
15656if test -z "$target" ; then
15657    as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15658fi
15659if test -z "$host" ; then
15660    as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15661fi
15662
15663# host-specific stuff:
15664
15665ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15666# If we haven't got the data from the intl directory,
15667# assume NLS is disabled.
15668USE_NLS=no
15669LIBINTL=
15670LIBINTL_DEP=
15671INCINTL=
15672XGETTEXT=
15673GMSGFMT=
15674POSUB=
15675
15676if test -f  ../intl/config.intl; then
15677  .  ../intl/config.intl
15678fi
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15680$as_echo_n "checking whether NLS is requested... " >&6; }
15681if test x"$USE_NLS" != xyes; then
15682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683$as_echo "no" >&6; }
15684else
15685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15686$as_echo "yes" >&6; }
15687
15688$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15689
15690
15691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15692$as_echo_n "checking for catalogs to be installed... " >&6; }
15693  # Look for .po and .gmo files in the source directory.
15694  CATALOGS=
15695  XLINGUAS=
15696  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15697    # If there aren't any .gmo files the shell will give us the
15698    # literal string "../path/to/srcdir/po/*.gmo" which has to be
15699    # weeded out.
15700    case "$cat" in *\**)
15701      continue;;
15702    esac
15703    # The quadruple backslash is collapsed to a double backslash
15704    # by the backticks, then collapsed again by the double quotes,
15705    # leaving us with one backslash in the sed expression (right
15706    # before the dot that mustn't act as a wildcard).
15707    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15708    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15709    # The user is allowed to set LINGUAS to a list of languages to
15710    # install catalogs for.  If it's empty that means "all of them."
15711    if test "x$LINGUAS" = x; then
15712      CATALOGS="$CATALOGS $cat"
15713      XLINGUAS="$XLINGUAS $lang"
15714    else
15715      case "$LINGUAS" in *$lang*)
15716        CATALOGS="$CATALOGS $cat"
15717        XLINGUAS="$XLINGUAS $lang"
15718        ;;
15719      esac
15720    fi
15721  done
15722  LINGUAS="$XLINGUAS"
15723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15724$as_echo "$LINGUAS" >&6; }
15725
15726
15727    DATADIRNAME=share
15728
15729  INSTOBJEXT=.mo
15730
15731  GENCAT=gencat
15732
15733  CATOBJEXT=.gmo
15734
15735fi
15736
15737        MKINSTALLDIRS=
15738  if test -n "$ac_aux_dir"; then
15739    case "$ac_aux_dir" in
15740      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15741      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15742    esac
15743  fi
15744  if test -z "$MKINSTALLDIRS"; then
15745    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15746  fi
15747
15748
15749
15750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15751$as_echo_n "checking whether NLS is requested... " >&6; }
15752    # Check whether --enable-nls was given.
15753if test "${enable_nls+set}" = set; then :
15754  enableval=$enable_nls; USE_NLS=$enableval
15755else
15756  USE_NLS=yes
15757fi
15758
15759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15760$as_echo "$USE_NLS" >&6; }
15761
15762
15763
15764
15765
15766
15767# Prepare PATH_SEPARATOR.
15768# The user is always right.
15769if test "${PATH_SEPARATOR+set}" != set; then
15770  echo "#! /bin/sh" >conf$$.sh
15771  echo  "exit 0"   >>conf$$.sh
15772  chmod +x conf$$.sh
15773  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15774    PATH_SEPARATOR=';'
15775  else
15776    PATH_SEPARATOR=:
15777  fi
15778  rm -f conf$$.sh
15779fi
15780
15781# Find out how to test for executable files. Don't use a zero-byte file,
15782# as systems may use methods other than mode bits to determine executability.
15783cat >conf$$.file <<_ASEOF
15784#! /bin/sh
15785exit 0
15786_ASEOF
15787chmod +x conf$$.file
15788if test -x conf$$.file >/dev/null 2>&1; then
15789  ac_executable_p="test -x"
15790else
15791  ac_executable_p="test -f"
15792fi
15793rm -f conf$$.file
15794
15795# Extract the first word of "msgfmt", so it can be a program name with args.
15796set dummy msgfmt; ac_word=$2
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15798$as_echo_n "checking for $ac_word... " >&6; }
15799if test "${ac_cv_path_MSGFMT+set}" = set; then :
15800  $as_echo_n "(cached) " >&6
15801else
15802  case "$MSGFMT" in
15803  [\\/]* | ?:[\\/]*)
15804    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15805    ;;
15806  *)
15807    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15808    for ac_dir in $PATH; do
15809      IFS="$ac_save_IFS"
15810      test -z "$ac_dir" && ac_dir=.
15811      for ac_exec_ext in '' $ac_executable_extensions; do
15812        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15813          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15814     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15815            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15816            break 2
15817          fi
15818        fi
15819      done
15820    done
15821    IFS="$ac_save_IFS"
15822  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15823    ;;
15824esac
15825fi
15826MSGFMT="$ac_cv_path_MSGFMT"
15827if test "$MSGFMT" != ":"; then
15828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15829$as_echo "$MSGFMT" >&6; }
15830else
15831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15832$as_echo "no" >&6; }
15833fi
15834
15835  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15836set dummy gmsgfmt; ac_word=$2
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838$as_echo_n "checking for $ac_word... " >&6; }
15839if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15840  $as_echo_n "(cached) " >&6
15841else
15842  case $GMSGFMT in
15843  [\\/]* | ?:[\\/]*)
15844  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15845  ;;
15846  *)
15847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848for as_dir in $PATH
15849do
15850  IFS=$as_save_IFS
15851  test -z "$as_dir" && as_dir=.
15852    for ac_exec_ext in '' $ac_executable_extensions; do
15853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15854    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15856    break 2
15857  fi
15858done
15859  done
15860IFS=$as_save_IFS
15861
15862  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15863  ;;
15864esac
15865fi
15866GMSGFMT=$ac_cv_path_GMSGFMT
15867if test -n "$GMSGFMT"; then
15868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15869$as_echo "$GMSGFMT" >&6; }
15870else
15871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872$as_echo "no" >&6; }
15873fi
15874
15875
15876
15877
15878# Prepare PATH_SEPARATOR.
15879# The user is always right.
15880if test "${PATH_SEPARATOR+set}" != set; then
15881  echo "#! /bin/sh" >conf$$.sh
15882  echo  "exit 0"   >>conf$$.sh
15883  chmod +x conf$$.sh
15884  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15885    PATH_SEPARATOR=';'
15886  else
15887    PATH_SEPARATOR=:
15888  fi
15889  rm -f conf$$.sh
15890fi
15891
15892# Find out how to test for executable files. Don't use a zero-byte file,
15893# as systems may use methods other than mode bits to determine executability.
15894cat >conf$$.file <<_ASEOF
15895#! /bin/sh
15896exit 0
15897_ASEOF
15898chmod +x conf$$.file
15899if test -x conf$$.file >/dev/null 2>&1; then
15900  ac_executable_p="test -x"
15901else
15902  ac_executable_p="test -f"
15903fi
15904rm -f conf$$.file
15905
15906# Extract the first word of "xgettext", so it can be a program name with args.
15907set dummy xgettext; ac_word=$2
15908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15909$as_echo_n "checking for $ac_word... " >&6; }
15910if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15911  $as_echo_n "(cached) " >&6
15912else
15913  case "$XGETTEXT" in
15914  [\\/]* | ?:[\\/]*)
15915    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15916    ;;
15917  *)
15918    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15919    for ac_dir in $PATH; do
15920      IFS="$ac_save_IFS"
15921      test -z "$ac_dir" && ac_dir=.
15922      for ac_exec_ext in '' $ac_executable_extensions; do
15923        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15924          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15925     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15926            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15927            break 2
15928          fi
15929        fi
15930      done
15931    done
15932    IFS="$ac_save_IFS"
15933  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15934    ;;
15935esac
15936fi
15937XGETTEXT="$ac_cv_path_XGETTEXT"
15938if test "$XGETTEXT" != ":"; then
15939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15940$as_echo "$XGETTEXT" >&6; }
15941else
15942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943$as_echo "no" >&6; }
15944fi
15945
15946    rm -f messages.po
15947
15948
15949# Prepare PATH_SEPARATOR.
15950# The user is always right.
15951if test "${PATH_SEPARATOR+set}" != set; then
15952  echo "#! /bin/sh" >conf$$.sh
15953  echo  "exit 0"   >>conf$$.sh
15954  chmod +x conf$$.sh
15955  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15956    PATH_SEPARATOR=';'
15957  else
15958    PATH_SEPARATOR=:
15959  fi
15960  rm -f conf$$.sh
15961fi
15962
15963# Find out how to test for executable files. Don't use a zero-byte file,
15964# as systems may use methods other than mode bits to determine executability.
15965cat >conf$$.file <<_ASEOF
15966#! /bin/sh
15967exit 0
15968_ASEOF
15969chmod +x conf$$.file
15970if test -x conf$$.file >/dev/null 2>&1; then
15971  ac_executable_p="test -x"
15972else
15973  ac_executable_p="test -f"
15974fi
15975rm -f conf$$.file
15976
15977# Extract the first word of "msgmerge", so it can be a program name with args.
15978set dummy msgmerge; ac_word=$2
15979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980$as_echo_n "checking for $ac_word... " >&6; }
15981if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15982  $as_echo_n "(cached) " >&6
15983else
15984  case "$MSGMERGE" in
15985  [\\/]* | ?:[\\/]*)
15986    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15987    ;;
15988  *)
15989    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15990    for ac_dir in $PATH; do
15991      IFS="$ac_save_IFS"
15992      test -z "$ac_dir" && ac_dir=.
15993      for ac_exec_ext in '' $ac_executable_extensions; do
15994        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15995          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15996            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15997            break 2
15998          fi
15999        fi
16000      done
16001    done
16002    IFS="$ac_save_IFS"
16003  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16004    ;;
16005esac
16006fi
16007MSGMERGE="$ac_cv_path_MSGMERGE"
16008if test "$MSGMERGE" != ":"; then
16009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16010$as_echo "$MSGMERGE" >&6; }
16011else
16012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16013$as_echo "no" >&6; }
16014fi
16015
16016
16017      if test "$GMSGFMT" != ":"; then
16018            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16019       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16020      : ;
16021    else
16022      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16023      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16024$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16025      GMSGFMT=":"
16026    fi
16027  fi
16028
16029      if test "$XGETTEXT" != ":"; then
16030            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16031       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16032      : ;
16033    else
16034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16035$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16036      XGETTEXT=":"
16037    fi
16038        rm -f messages.po
16039  fi
16040
16041  ac_config_commands="$ac_config_commands default-1"
16042
16043
16044
16045
16046
16047for ac_prog in 'bison -y' byacc
16048do
16049  # Extract the first word of "$ac_prog", so it can be a program name with args.
16050set dummy $ac_prog; ac_word=$2
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16052$as_echo_n "checking for $ac_word... " >&6; }
16053if test "${ac_cv_prog_YACC+set}" = set; then :
16054  $as_echo_n "(cached) " >&6
16055else
16056  if test -n "$YACC"; then
16057  ac_cv_prog_YACC="$YACC" # Let the user override the test.
16058else
16059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16060for as_dir in $PATH
16061do
16062  IFS=$as_save_IFS
16063  test -z "$as_dir" && as_dir=.
16064    for ac_exec_ext in '' $ac_executable_extensions; do
16065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16066    ac_cv_prog_YACC="$ac_prog"
16067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16068    break 2
16069  fi
16070done
16071  done
16072IFS=$as_save_IFS
16073
16074fi
16075fi
16076YACC=$ac_cv_prog_YACC
16077if test -n "$YACC"; then
16078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16079$as_echo "$YACC" >&6; }
16080else
16081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
16083fi
16084
16085
16086  test -n "$YACC" && break
16087done
16088test -n "$YACC" || YACC="yacc"
16089
16090for ac_prog in flex lex
16091do
16092  # Extract the first word of "$ac_prog", so it can be a program name with args.
16093set dummy $ac_prog; ac_word=$2
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16095$as_echo_n "checking for $ac_word... " >&6; }
16096if test "${ac_cv_prog_LEX+set}" = set; then :
16097  $as_echo_n "(cached) " >&6
16098else
16099  if test -n "$LEX"; then
16100  ac_cv_prog_LEX="$LEX" # Let the user override the test.
16101else
16102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103for as_dir in $PATH
16104do
16105  IFS=$as_save_IFS
16106  test -z "$as_dir" && as_dir=.
16107    for ac_exec_ext in '' $ac_executable_extensions; do
16108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16109    ac_cv_prog_LEX="$ac_prog"
16110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16111    break 2
16112  fi
16113done
16114  done
16115IFS=$as_save_IFS
16116
16117fi
16118fi
16119LEX=$ac_cv_prog_LEX
16120if test -n "$LEX"; then
16121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16122$as_echo "$LEX" >&6; }
16123else
16124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16125$as_echo "no" >&6; }
16126fi
16127
16128
16129  test -n "$LEX" && break
16130done
16131test -n "$LEX" || LEX=":"
16132
16133if test "x$LEX" != "x:"; then
16134  cat >conftest.l <<_ACEOF
16135%%
16136a { ECHO; }
16137b { REJECT; }
16138c { yymore (); }
16139d { yyless (1); }
16140e { yyless (input () != 0); }
16141f { unput (yytext[0]); }
16142. { BEGIN INITIAL; }
16143%%
16144#ifdef YYTEXT_POINTER
16145extern char *yytext;
16146#endif
16147int
16148main (void)
16149{
16150  return ! yylex () + ! yywrap ();
16151}
16152_ACEOF
16153{ { ac_try="$LEX conftest.l"
16154case "(($ac_try" in
16155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156  *) ac_try_echo=$ac_try;;
16157esac
16158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16159$as_echo "$ac_try_echo"; } >&5
16160  (eval "$LEX conftest.l") 2>&5
16161  ac_status=$?
16162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16163  test $ac_status = 0; }
16164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16165$as_echo_n "checking lex output file root... " >&6; }
16166if test "${ac_cv_prog_lex_root+set}" = set; then :
16167  $as_echo_n "(cached) " >&6
16168else
16169
16170if test -f lex.yy.c; then
16171  ac_cv_prog_lex_root=lex.yy
16172elif test -f lexyy.c; then
16173  ac_cv_prog_lex_root=lexyy
16174else
16175  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16176fi
16177fi
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16179$as_echo "$ac_cv_prog_lex_root" >&6; }
16180LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16181
16182if test -z "${LEXLIB+set}"; then
16183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16184$as_echo_n "checking lex library... " >&6; }
16185if test "${ac_cv_lib_lex+set}" = set; then :
16186  $as_echo_n "(cached) " >&6
16187else
16188
16189    ac_save_LIBS=$LIBS
16190    ac_cv_lib_lex='none needed'
16191    for ac_lib in '' -lfl -ll; do
16192      LIBS="$ac_lib $ac_save_LIBS"
16193      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194/* end confdefs.h.  */
16195`cat $LEX_OUTPUT_ROOT.c`
16196_ACEOF
16197if ac_fn_c_try_link "$LINENO"; then :
16198  ac_cv_lib_lex=$ac_lib
16199fi
16200rm -f core conftest.err conftest.$ac_objext \
16201    conftest$ac_exeext conftest.$ac_ext
16202      test "$ac_cv_lib_lex" != 'none needed' && break
16203    done
16204    LIBS=$ac_save_LIBS
16205
16206fi
16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16208$as_echo "$ac_cv_lib_lex" >&6; }
16209  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16210fi
16211
16212
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16214$as_echo_n "checking whether yytext is a pointer... " >&6; }
16215if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16216  $as_echo_n "(cached) " >&6
16217else
16218  # POSIX says lex can declare yytext either as a pointer or an array; the
16219# default is implementation-dependent.  Figure out which it is, since
16220# not all implementations provide the %pointer and %array declarations.
16221ac_cv_prog_lex_yytext_pointer=no
16222ac_save_LIBS=$LIBS
16223LIBS="$LEXLIB $ac_save_LIBS"
16224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225/* end confdefs.h.  */
16226#define YYTEXT_POINTER 1
16227`cat $LEX_OUTPUT_ROOT.c`
16228_ACEOF
16229if ac_fn_c_try_link "$LINENO"; then :
16230  ac_cv_prog_lex_yytext_pointer=yes
16231fi
16232rm -f core conftest.err conftest.$ac_objext \
16233    conftest$ac_exeext conftest.$ac_ext
16234LIBS=$ac_save_LIBS
16235
16236fi
16237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16238$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16239if test $ac_cv_prog_lex_yytext_pointer = yes; then
16240
16241$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16242
16243fi
16244rm -f conftest.l $LEX_OUTPUT_ROOT.c
16245
16246fi
16247if test "$LEX" = :; then
16248  LEX=${am_missing_run}flex
16249fi
16250
16251
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16253$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16254    # Check whether --enable-maintainer-mode was given.
16255if test "${enable_maintainer_mode+set}" = set; then :
16256  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16257else
16258  USE_MAINTAINER_MODE=no
16259fi
16260
16261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16262$as_echo "$USE_MAINTAINER_MODE" >&6; }
16263   if test $USE_MAINTAINER_MODE = yes; then
16264  MAINTAINER_MODE_TRUE=
16265  MAINTAINER_MODE_FALSE='#'
16266else
16267  MAINTAINER_MODE_TRUE='#'
16268  MAINTAINER_MODE_FALSE=
16269fi
16270
16271  MAINT=$MAINTAINER_MODE_TRUE
16272
16273
16274 if false; then
16275  GENINSRC_NEVER_TRUE=
16276  GENINSRC_NEVER_FALSE='#'
16277else
16278  GENINSRC_NEVER_TRUE='#'
16279  GENINSRC_NEVER_FALSE=
16280fi
16281
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16283$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16284if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16285  $as_echo_n "(cached) " >&6
16286else
16287   echo abfoo >t1
16288  echo cdfoo >t2
16289  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16290  if cmp t1 t2 2 2 > /dev/null 2>&1; then
16291    if cmp t1 t2 1 1 > /dev/null 2>&1; then
16292      :
16293    else
16294      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16295    fi
16296  fi
16297  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16298    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16299      :
16300    else
16301      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16302    fi
16303  fi
16304  rm t1 t2
16305
16306fi
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16308$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16309do_compare="$gcc_cv_prog_cmp_skip"
16310
16311
16312
16313. ${srcdir}/configure.host
16314
16315
16316
16317
16318
16319
16320
16321
16322for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16323do :
16324  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16325ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16326eval as_val=\$$as_ac_Header
16327   if test "x$as_val" = x""yes; then :
16328  cat >>confdefs.h <<_ACEOF
16329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16330_ACEOF
16331
16332fi
16333
16334done
16335
16336for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16337do :
16338  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16339ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16340eval as_val=\$$as_ac_Header
16341   if test "x$as_val" = x""yes; then :
16342  cat >>confdefs.h <<_ACEOF
16343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344_ACEOF
16345
16346fi
16347
16348done
16349
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16351$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16352if test "${gcc_cv_header_string+set}" = set; then :
16353  $as_echo_n "(cached) " >&6
16354else
16355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356/* end confdefs.h.  */
16357#include <string.h>
16358#include <strings.h>
16359int
16360main ()
16361{
16362
16363  ;
16364  return 0;
16365}
16366_ACEOF
16367if ac_fn_c_try_compile "$LINENO"; then :
16368  gcc_cv_header_string=yes
16369else
16370  gcc_cv_header_string=no
16371fi
16372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373fi
16374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16375$as_echo "$gcc_cv_header_string" >&6; }
16376if test $gcc_cv_header_string = yes; then
16377
16378$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16379
16380fi
16381
16382for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16383do :
16384  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16386eval as_val=\$$as_ac_var
16387   if test "x$as_val" = x""yes; then :
16388  cat >>confdefs.h <<_ACEOF
16389#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16390_ACEOF
16391
16392fi
16393done
16394
16395for ac_func in open lseek close
16396do :
16397  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16398ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16399eval as_val=\$$as_ac_var
16400   if test "x$as_val" = x""yes; then :
16401  cat >>confdefs.h <<_ACEOF
16402#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16403_ACEOF
16404
16405fi
16406done
16407
16408ac_header_dirent=no
16409for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16410  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16412$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16414  $as_echo_n "(cached) " >&6
16415else
16416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417/* end confdefs.h.  */
16418#include <sys/types.h>
16419#include <$ac_hdr>
16420
16421int
16422main ()
16423{
16424if ((DIR *) 0)
16425return 0;
16426  ;
16427  return 0;
16428}
16429_ACEOF
16430if ac_fn_c_try_compile "$LINENO"; then :
16431  eval "$as_ac_Header=yes"
16432else
16433  eval "$as_ac_Header=no"
16434fi
16435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436fi
16437eval ac_res=\$$as_ac_Header
16438	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16439$as_echo "$ac_res" >&6; }
16440eval as_val=\$$as_ac_Header
16441   if test "x$as_val" = x""yes; then :
16442  cat >>confdefs.h <<_ACEOF
16443#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16444_ACEOF
16445
16446ac_header_dirent=$ac_hdr; break
16447fi
16448
16449done
16450# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16451if test $ac_header_dirent = dirent.h; then
16452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16453$as_echo_n "checking for library containing opendir... " >&6; }
16454if test "${ac_cv_search_opendir+set}" = set; then :
16455  $as_echo_n "(cached) " >&6
16456else
16457  ac_func_search_save_LIBS=$LIBS
16458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459/* end confdefs.h.  */
16460
16461/* Override any GCC internal prototype to avoid an error.
16462   Use char because int might match the return type of a GCC
16463   builtin and then its argument prototype would still apply.  */
16464#ifdef __cplusplus
16465extern "C"
16466#endif
16467char opendir ();
16468int
16469main ()
16470{
16471return opendir ();
16472  ;
16473  return 0;
16474}
16475_ACEOF
16476for ac_lib in '' dir; do
16477  if test -z "$ac_lib"; then
16478    ac_res="none required"
16479  else
16480    ac_res=-l$ac_lib
16481    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16482  fi
16483  if ac_fn_c_try_link "$LINENO"; then :
16484  ac_cv_search_opendir=$ac_res
16485fi
16486rm -f core conftest.err conftest.$ac_objext \
16487    conftest$ac_exeext
16488  if test "${ac_cv_search_opendir+set}" = set; then :
16489  break
16490fi
16491done
16492if test "${ac_cv_search_opendir+set}" = set; then :
16493
16494else
16495  ac_cv_search_opendir=no
16496fi
16497rm conftest.$ac_ext
16498LIBS=$ac_func_search_save_LIBS
16499fi
16500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16501$as_echo "$ac_cv_search_opendir" >&6; }
16502ac_res=$ac_cv_search_opendir
16503if test "$ac_res" != no; then :
16504  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16505
16506fi
16507
16508else
16509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16510$as_echo_n "checking for library containing opendir... " >&6; }
16511if test "${ac_cv_search_opendir+set}" = set; then :
16512  $as_echo_n "(cached) " >&6
16513else
16514  ac_func_search_save_LIBS=$LIBS
16515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516/* end confdefs.h.  */
16517
16518/* Override any GCC internal prototype to avoid an error.
16519   Use char because int might match the return type of a GCC
16520   builtin and then its argument prototype would still apply.  */
16521#ifdef __cplusplus
16522extern "C"
16523#endif
16524char opendir ();
16525int
16526main ()
16527{
16528return opendir ();
16529  ;
16530  return 0;
16531}
16532_ACEOF
16533for ac_lib in '' x; do
16534  if test -z "$ac_lib"; then
16535    ac_res="none required"
16536  else
16537    ac_res=-l$ac_lib
16538    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16539  fi
16540  if ac_fn_c_try_link "$LINENO"; then :
16541  ac_cv_search_opendir=$ac_res
16542fi
16543rm -f core conftest.err conftest.$ac_objext \
16544    conftest$ac_exeext
16545  if test "${ac_cv_search_opendir+set}" = set; then :
16546  break
16547fi
16548done
16549if test "${ac_cv_search_opendir+set}" = set; then :
16550
16551else
16552  ac_cv_search_opendir=no
16553fi
16554rm conftest.$ac_ext
16555LIBS=$ac_func_search_save_LIBS
16556fi
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16558$as_echo "$ac_cv_search_opendir" >&6; }
16559ac_res=$ac_cv_search_opendir
16560if test "$ac_res" != no; then :
16561  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16562
16563fi
16564
16565fi
16566
16567
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16569$as_echo_n "checking for library containing dlopen... " >&6; }
16570if test "${ac_cv_search_dlopen+set}" = set; then :
16571  $as_echo_n "(cached) " >&6
16572else
16573  ac_func_search_save_LIBS=$LIBS
16574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575/* end confdefs.h.  */
16576
16577/* Override any GCC internal prototype to avoid an error.
16578   Use char because int might match the return type of a GCC
16579   builtin and then its argument prototype would still apply.  */
16580#ifdef __cplusplus
16581extern "C"
16582#endif
16583char dlopen ();
16584int
16585main ()
16586{
16587return dlopen ();
16588  ;
16589  return 0;
16590}
16591_ACEOF
16592for ac_lib in '' dl; do
16593  if test -z "$ac_lib"; then
16594    ac_res="none required"
16595  else
16596    ac_res=-l$ac_lib
16597    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16598  fi
16599  if ac_fn_c_try_link "$LINENO"; then :
16600  ac_cv_search_dlopen=$ac_res
16601fi
16602rm -f core conftest.err conftest.$ac_objext \
16603    conftest$ac_exeext
16604  if test "${ac_cv_search_dlopen+set}" = set; then :
16605  break
16606fi
16607done
16608if test "${ac_cv_search_dlopen+set}" = set; then :
16609
16610else
16611  ac_cv_search_dlopen=no
16612fi
16613rm conftest.$ac_ext
16614LIBS=$ac_func_search_save_LIBS
16615fi
16616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16617$as_echo "$ac_cv_search_dlopen" >&6; }
16618ac_res=$ac_cv_search_dlopen
16619if test "$ac_res" != no; then :
16620  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16621
16622fi
16623
16624 if test x$plugins = xyes; then
16625  ENABLE_PLUGINS_TRUE=
16626  ENABLE_PLUGINS_FALSE='#'
16627else
16628  ENABLE_PLUGINS_TRUE='#'
16629  ENABLE_PLUGINS_FALSE=
16630fi
16631
16632
16633# Check whether --enable-initfini-array was given.
16634if test "${enable_initfini_array+set}" = set; then :
16635  enableval=$enable_initfini_array;
16636else
16637
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16639$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16640if test "${gcc_cv_initfini_array+set}" = set; then :
16641  $as_echo_n "(cached) " >&6
16642else
16643    if test "x${build}" = "x${target}" ; then
16644    if test "$cross_compiling" = yes; then :
16645  gcc_cv_initfini_array=no
16646else
16647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648/* end confdefs.h.  */
16649
16650static int x = -1;
16651int main (void) { return x; }
16652int foo (void) { x = 0; }
16653int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16654_ACEOF
16655if ac_fn_c_try_run "$LINENO"; then :
16656  gcc_cv_initfini_array=yes
16657else
16658  gcc_cv_initfini_array=no
16659fi
16660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16661  conftest.$ac_objext conftest.beam conftest.$ac_ext
16662fi
16663
16664   else
16665     gcc_cv_initfini_array=no
16666   fi
16667fi
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16669$as_echo "$gcc_cv_initfini_array" >&6; }
16670  enable_initfini_array=$gcc_cv_initfini_array
16671
16672fi
16673
16674
16675if test $enable_initfini_array = yes; then
16676
16677$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16678
16679fi
16680
16681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16682$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16683if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16684  $as_echo_n "(cached) " >&6
16685else
16686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h.  */
16688#include <unistd.h>
16689int
16690main ()
16691{
16692extern int getopt (int, char *const*, const char *);
16693  ;
16694  return 0;
16695}
16696_ACEOF
16697if ac_fn_c_try_compile "$LINENO"; then :
16698  ld_cv_decl_getopt_unistd_h=yes
16699else
16700  ld_cv_decl_getopt_unistd_h=no
16701fi
16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703fi
16704
16705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16706$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16707if test $ld_cv_decl_getopt_unistd_h = yes; then
16708
16709$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16710
16711fi
16712
16713
16714case "${host}" in
16715*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16716
16717$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16718 ;;
16719esac
16720
16721ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16722if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16723  ac_have_decl=1
16724else
16725  ac_have_decl=0
16726fi
16727
16728cat >>confdefs.h <<_ACEOF
16729#define HAVE_DECL_STRSTR $ac_have_decl
16730_ACEOF
16731ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16732if test "x$ac_cv_have_decl_free" = x""yes; then :
16733  ac_have_decl=1
16734else
16735  ac_have_decl=0
16736fi
16737
16738cat >>confdefs.h <<_ACEOF
16739#define HAVE_DECL_FREE $ac_have_decl
16740_ACEOF
16741ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16742if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16743  ac_have_decl=1
16744else
16745  ac_have_decl=0
16746fi
16747
16748cat >>confdefs.h <<_ACEOF
16749#define HAVE_DECL_SBRK $ac_have_decl
16750_ACEOF
16751ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16752if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16753  ac_have_decl=1
16754else
16755  ac_have_decl=0
16756fi
16757
16758cat >>confdefs.h <<_ACEOF
16759#define HAVE_DECL_GETENV $ac_have_decl
16760_ACEOF
16761ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16762if test "x$ac_cv_have_decl_environ" = x""yes; then :
16763  ac_have_decl=1
16764else
16765  ac_have_decl=0
16766fi
16767
16768cat >>confdefs.h <<_ACEOF
16769#define HAVE_DECL_ENVIRON $ac_have_decl
16770_ACEOF
16771
16772
16773# Link in zlib if we can.  This is needed only for the bootstrap tests
16774# right now, since those tests use libbfd, which depends on zlib.
16775
16776  # See if the user specified whether he wants zlib support or not.
16777
16778# Check whether --with-zlib was given.
16779if test "${with_zlib+set}" = set; then :
16780  withval=$with_zlib;
16781else
16782  with_zlib=auto
16783fi
16784
16785
16786  if test "$with_zlib" != "no"; then
16787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16788$as_echo_n "checking for library containing zlibVersion... " >&6; }
16789if test "${ac_cv_search_zlibVersion+set}" = set; then :
16790  $as_echo_n "(cached) " >&6
16791else
16792  ac_func_search_save_LIBS=$LIBS
16793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794/* end confdefs.h.  */
16795
16796/* Override any GCC internal prototype to avoid an error.
16797   Use char because int might match the return type of a GCC
16798   builtin and then its argument prototype would still apply.  */
16799#ifdef __cplusplus
16800extern "C"
16801#endif
16802char zlibVersion ();
16803int
16804main ()
16805{
16806return zlibVersion ();
16807  ;
16808  return 0;
16809}
16810_ACEOF
16811for ac_lib in '' z; do
16812  if test -z "$ac_lib"; then
16813    ac_res="none required"
16814  else
16815    ac_res=-l$ac_lib
16816    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16817  fi
16818  if ac_fn_c_try_link "$LINENO"; then :
16819  ac_cv_search_zlibVersion=$ac_res
16820fi
16821rm -f core conftest.err conftest.$ac_objext \
16822    conftest$ac_exeext
16823  if test "${ac_cv_search_zlibVersion+set}" = set; then :
16824  break
16825fi
16826done
16827if test "${ac_cv_search_zlibVersion+set}" = set; then :
16828
16829else
16830  ac_cv_search_zlibVersion=no
16831fi
16832rm conftest.$ac_ext
16833LIBS=$ac_func_search_save_LIBS
16834fi
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16836$as_echo "$ac_cv_search_zlibVersion" >&6; }
16837ac_res=$ac_cv_search_zlibVersion
16838if test "$ac_res" != no; then :
16839  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16840  for ac_header in zlib.h
16841do :
16842  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16843if test "x$ac_cv_header_zlib_h" = x""yes; then :
16844  cat >>confdefs.h <<_ACEOF
16845#define HAVE_ZLIB_H 1
16846_ACEOF
16847
16848fi
16849
16850done
16851
16852fi
16853
16854    if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
16855      as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
16856    fi
16857  fi
16858
16859
16860# When converting linker scripts into strings for use in emulation
16861# files, use astring.sed if the compiler supports ANSI string
16862# concatenation, or ostring.sed otherwise.  This is to support the
16863# broken Microsoft MSVC compiler, which limits the length of string
16864# constants, while still supporting pre-ANSI compilers which do not
16865# support string concatenation.
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16867$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16868if test "${ld_cv_string_concatenation+set}" = set; then :
16869  $as_echo_n "(cached) " >&6
16870else
16871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872/* end confdefs.h.  */
16873
16874int
16875main ()
16876{
16877char *a = "a" "a";
16878  ;
16879  return 0;
16880}
16881_ACEOF
16882if ac_fn_c_try_compile "$LINENO"; then :
16883  ld_cv_string_concatenation=yes
16884else
16885  ld_cv_string_concatenation=no
16886fi
16887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888fi
16889
16890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16891$as_echo "$ld_cv_string_concatenation" >&6; }
16892if test "$ld_cv_string_concatenation" = "yes"; then
16893  STRINGIFY=astring.sed
16894else
16895  STRINGIFY=ostring.sed
16896fi
16897
16898
16899# target-specific stuff:
16900
16901all_targets=
16902EMUL=
16903all_emuls=
16904all_emul_extras=
16905all_libpath=
16906
16907rm -f tdirs
16908
16909# If the host is 64-bit, then we enable 64-bit targets by default.
16910# This is consistent with what ../bfd/configure.ac does.
16911if test x${want64} = xfalse; then
16912  # The cast to long int works around a bug in the HP C Compiler
16913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16915# This bug is HP SR number 8606223364.
16916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16917$as_echo_n "checking size of void *... " >&6; }
16918if test "${ac_cv_sizeof_void_p+set}" = set; then :
16919  $as_echo_n "(cached) " >&6
16920else
16921  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16922
16923else
16924  if test "$ac_cv_type_void_p" = yes; then
16925     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16927{ as_fn_set_status 77
16928as_fn_error "cannot compute sizeof (void *)
16929See \`config.log' for more details." "$LINENO" 5; }; }
16930   else
16931     ac_cv_sizeof_void_p=0
16932   fi
16933fi
16934
16935fi
16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16937$as_echo "$ac_cv_sizeof_void_p" >&6; }
16938
16939
16940
16941cat >>confdefs.h <<_ACEOF
16942#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16943_ACEOF
16944
16945
16946  if test "x${ac_cv_sizeof_void_p}" = "x8"; then
16947    want64=true
16948  fi
16949fi
16950
16951for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16952do
16953  if test "$targ_alias" = "all"; then
16954    all_targets=true
16955  else
16956    # Canonicalize the secondary target names.
16957    result=`$ac_config_sub $targ_alias 2>/dev/null`
16958    if test -n "$result"; then
16959	targ=$result
16960    else
16961	targ=$targ_alias
16962    fi
16963
16964    . ${srcdir}/configure.tgt
16965
16966    if test "$targ" = "$target"; then
16967      EMUL=$targ_emul
16968    fi
16969
16970    if test x${want64} = xfalse; then
16971      . ${srcdir}/../bfd/config.bfd
16972    fi
16973
16974    if test x${want64} = xtrue; then
16975      targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16976      targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16977    fi
16978
16979    for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16980	case " $all_emuls " in
16981	*" e${i}.o "*) ;;
16982	*)
16983	  all_emuls="$all_emuls e${i}.o"
16984	  eval result=\$tdir_$i
16985	  test -z "$result" && result=$targ_alias
16986	  echo tdir_$i=$result >> tdirs
16987	  ;;
16988	esac
16989    done
16990
16991    for i in $targ_emul $targ_extra_libpath; do
16992	case " $all_libpath " in
16993	*" ${i} "*) ;;
16994	*)
16995	  if test -z "$all_libpath"; then
16996	    all_libpath=${i}
16997	  else
16998	    all_libpath="$all_libpath ${i}"
16999	  fi
17000	  ;;
17001	esac
17002    done
17003
17004    for i in $targ_extra_ofiles; do
17005	case " $all_emul_extras " in
17006	*" ${i} "*) ;;
17007	*)
17008	  all_emul_extras="$all_emul_extras ${i}"
17009	  ;;
17010	esac
17011    done
17012
17013  fi
17014done
17015
17016
17017
17018TDIRS=tdirs
17019
17020
17021if test x${all_targets} = xtrue; then
17022  if test x${want64} = xtrue; then
17023    EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17024    EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17025  else
17026    EMULATION_OFILES='$(ALL_EMULATIONS)'
17027    EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17028  fi
17029else
17030  EMULATION_OFILES=$all_emuls
17031  EMUL_EXTRA_OFILES=$all_emul_extras
17032fi
17033
17034
17035
17036
17037EMULATION_LIBPATH=$all_libpath
17038
17039
17040if test x${enable_static} = xno; then
17041  TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17042else
17043  TESTBFDLIB="../bfd/.libs/libbfd.a"
17044fi
17045
17046
17047target_vendor=${target_vendor=$host_vendor}
17048case "$target_vendor" in
17049  hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17050  *)  EXTRA_SHLIB_EXTENSION= ;;
17051esac
17052
17053case "$target_os" in
17054  lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17055esac
17056
17057if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17058
17059cat >>confdefs.h <<_ACEOF
17060#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17061_ACEOF
17062
17063fi
17064
17065
17066
17067
17068
17069
17070ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17071
17072cat >confcache <<\_ACEOF
17073# This file is a shell script that caches the results of configure
17074# tests run on this system so they can be shared between configure
17075# scripts and configure runs, see configure's option --config-cache.
17076# It is not useful on other systems.  If it contains results you don't
17077# want to keep, you may remove or edit it.
17078#
17079# config.status only pays attention to the cache file if you give it
17080# the --recheck option to rerun configure.
17081#
17082# `ac_cv_env_foo' variables (set or unset) will be overridden when
17083# loading this file, other *unset* `ac_cv_foo' will be assigned the
17084# following values.
17085
17086_ACEOF
17087
17088# The following way of writing the cache mishandles newlines in values,
17089# but we know of no workaround that is simple, portable, and efficient.
17090# So, we kill variables containing newlines.
17091# Ultrix sh set writes to stderr and can't be redirected directly,
17092# and sets the high bit in the cache file unless we assign to the vars.
17093(
17094  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17095    eval ac_val=\$$ac_var
17096    case $ac_val in #(
17097    *${as_nl}*)
17098      case $ac_var in #(
17099      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17101      esac
17102      case $ac_var in #(
17103      _ | IFS | as_nl) ;; #(
17104      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17105      *) { eval $ac_var=; unset $ac_var;} ;;
17106      esac ;;
17107    esac
17108  done
17109
17110  (set) 2>&1 |
17111    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17112    *${as_nl}ac_space=\ *)
17113      # `set' does not quote correctly, so add quotes: double-quote
17114      # substitution turns \\\\ into \\, and sed turns \\ into \.
17115      sed -n \
17116	"s/'/'\\\\''/g;
17117	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17118      ;; #(
17119    *)
17120      # `set' quotes correctly as required by POSIX, so do not add quotes.
17121      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17122      ;;
17123    esac |
17124    sort
17125) |
17126  sed '
17127     /^ac_cv_env_/b end
17128     t clear
17129     :clear
17130     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17131     t end
17132     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17133     :end' >>confcache
17134if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17135  if test -w "$cache_file"; then
17136    test "x$cache_file" != "x/dev/null" &&
17137      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17138$as_echo "$as_me: updating cache $cache_file" >&6;}
17139    cat confcache >$cache_file
17140  else
17141    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17142$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17143  fi
17144fi
17145rm -f confcache
17146
17147test "x$prefix" = xNONE && prefix=$ac_default_prefix
17148# Let make expand exec_prefix.
17149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17150
17151DEFS=-DHAVE_CONFIG_H
17152
17153ac_libobjs=
17154ac_ltlibobjs=
17155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17156  # 1. Remove the extension, and $U if already installed.
17157  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17158  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17159  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17160  #    will be set to the directory where LIBOBJS objects are built.
17161  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17162  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17163done
17164LIBOBJS=$ac_libobjs
17165
17166LTLIBOBJS=$ac_ltlibobjs
17167
17168
17169if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17170  as_fn_error "conditional \"AMDEP\" was never defined.
17171Usually this means the macro was only invoked conditionally." "$LINENO" 5
17172fi
17173if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17174  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17175Usually this means the macro was only invoked conditionally." "$LINENO" 5
17176fi
17177 if test -n "$EXEEXT"; then
17178  am__EXEEXT_TRUE=
17179  am__EXEEXT_FALSE='#'
17180else
17181  am__EXEEXT_TRUE='#'
17182  am__EXEEXT_FALSE=
17183fi
17184
17185if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17186  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17187Usually this means the macro was only invoked conditionally." "$LINENO" 5
17188fi
17189if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17190  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17191Usually this means the macro was only invoked conditionally." "$LINENO" 5
17192fi
17193if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17194  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17195Usually this means the macro was only invoked conditionally." "$LINENO" 5
17196fi
17197if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17198  as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17199Usually this means the macro was only invoked conditionally." "$LINENO" 5
17200fi
17201if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17202  as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17203Usually this means the macro was only invoked conditionally." "$LINENO" 5
17204fi
17205
17206: ${CONFIG_STATUS=./config.status}
17207ac_write_fail=0
17208ac_clean_files_save=$ac_clean_files
17209ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17210{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17211$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17212as_write_fail=0
17213cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17214#! $SHELL
17215# Generated by $as_me.
17216# Run this file to recreate the current configuration.
17217# Compiler output produced by configure, useful for debugging
17218# configure, is in config.log if it exists.
17219
17220debug=false
17221ac_cs_recheck=false
17222ac_cs_silent=false
17223
17224SHELL=\${CONFIG_SHELL-$SHELL}
17225export SHELL
17226_ASEOF
17227cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17228## -------------------- ##
17229## M4sh Initialization. ##
17230## -------------------- ##
17231
17232# Be more Bourne compatible
17233DUALCASE=1; export DUALCASE # for MKS sh
17234if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17235  emulate sh
17236  NULLCMD=:
17237  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17238  # is contrary to our usage.  Disable this feature.
17239  alias -g '${1+"$@"}'='"$@"'
17240  setopt NO_GLOB_SUBST
17241else
17242  case `(set -o) 2>/dev/null` in #(
17243  *posix*) :
17244    set -o posix ;; #(
17245  *) :
17246     ;;
17247esac
17248fi
17249
17250
17251as_nl='
17252'
17253export as_nl
17254# Printing a long string crashes Solaris 7 /usr/bin/printf.
17255as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17256as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17257as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17258# Prefer a ksh shell builtin over an external printf program on Solaris,
17259# but without wasting forks for bash or zsh.
17260if test -z "$BASH_VERSION$ZSH_VERSION" \
17261    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17262  as_echo='print -r --'
17263  as_echo_n='print -rn --'
17264elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17265  as_echo='printf %s\n'
17266  as_echo_n='printf %s'
17267else
17268  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17269    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17270    as_echo_n='/usr/ucb/echo -n'
17271  else
17272    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17273    as_echo_n_body='eval
17274      arg=$1;
17275      case $arg in #(
17276      *"$as_nl"*)
17277	expr "X$arg" : "X\\(.*\\)$as_nl";
17278	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17279      esac;
17280      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17281    '
17282    export as_echo_n_body
17283    as_echo_n='sh -c $as_echo_n_body as_echo'
17284  fi
17285  export as_echo_body
17286  as_echo='sh -c $as_echo_body as_echo'
17287fi
17288
17289# The user is always right.
17290if test "${PATH_SEPARATOR+set}" != set; then
17291  PATH_SEPARATOR=:
17292  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17293    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17294      PATH_SEPARATOR=';'
17295  }
17296fi
17297
17298
17299# IFS
17300# We need space, tab and new line, in precisely that order.  Quoting is
17301# there to prevent editors from complaining about space-tab.
17302# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17303# splitting by setting IFS to empty value.)
17304IFS=" ""	$as_nl"
17305
17306# Find who we are.  Look in the path if we contain no directory separator.
17307case $0 in #((
17308  *[\\/]* ) as_myself=$0 ;;
17309  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17310for as_dir in $PATH
17311do
17312  IFS=$as_save_IFS
17313  test -z "$as_dir" && as_dir=.
17314    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17315  done
17316IFS=$as_save_IFS
17317
17318     ;;
17319esac
17320# We did not find ourselves, most probably we were run as `sh COMMAND'
17321# in which case we are not to be found in the path.
17322if test "x$as_myself" = x; then
17323  as_myself=$0
17324fi
17325if test ! -f "$as_myself"; then
17326  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17327  exit 1
17328fi
17329
17330# Unset variables that we do not need and which cause bugs (e.g. in
17331# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17332# suppresses any "Segmentation fault" message there.  '((' could
17333# trigger a bug in pdksh 5.2.14.
17334for as_var in BASH_ENV ENV MAIL MAILPATH
17335do eval test x\${$as_var+set} = xset \
17336  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17337done
17338PS1='$ '
17339PS2='> '
17340PS4='+ '
17341
17342# NLS nuisances.
17343LC_ALL=C
17344export LC_ALL
17345LANGUAGE=C
17346export LANGUAGE
17347
17348# CDPATH.
17349(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17350
17351
17352# as_fn_error ERROR [LINENO LOG_FD]
17353# ---------------------------------
17354# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17355# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17356# script with status $?, using 1 if that was 0.
17357as_fn_error ()
17358{
17359  as_status=$?; test $as_status -eq 0 && as_status=1
17360  if test "$3"; then
17361    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17362    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17363  fi
17364  $as_echo "$as_me: error: $1" >&2
17365  as_fn_exit $as_status
17366} # as_fn_error
17367
17368
17369# as_fn_set_status STATUS
17370# -----------------------
17371# Set $? to STATUS, without forking.
17372as_fn_set_status ()
17373{
17374  return $1
17375} # as_fn_set_status
17376
17377# as_fn_exit STATUS
17378# -----------------
17379# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17380as_fn_exit ()
17381{
17382  set +e
17383  as_fn_set_status $1
17384  exit $1
17385} # as_fn_exit
17386
17387# as_fn_unset VAR
17388# ---------------
17389# Portably unset VAR.
17390as_fn_unset ()
17391{
17392  { eval $1=; unset $1;}
17393}
17394as_unset=as_fn_unset
17395# as_fn_append VAR VALUE
17396# ----------------------
17397# Append the text in VALUE to the end of the definition contained in VAR. Take
17398# advantage of any shell optimizations that allow amortized linear growth over
17399# repeated appends, instead of the typical quadratic growth present in naive
17400# implementations.
17401if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17402  eval 'as_fn_append ()
17403  {
17404    eval $1+=\$2
17405  }'
17406else
17407  as_fn_append ()
17408  {
17409    eval $1=\$$1\$2
17410  }
17411fi # as_fn_append
17412
17413# as_fn_arith ARG...
17414# ------------------
17415# Perform arithmetic evaluation on the ARGs, and store the result in the
17416# global $as_val. Take advantage of shells that can avoid forks. The arguments
17417# must be portable across $(()) and expr.
17418if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17419  eval 'as_fn_arith ()
17420  {
17421    as_val=$(( $* ))
17422  }'
17423else
17424  as_fn_arith ()
17425  {
17426    as_val=`expr "$@" || test $? -eq 1`
17427  }
17428fi # as_fn_arith
17429
17430
17431if expr a : '\(a\)' >/dev/null 2>&1 &&
17432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17433  as_expr=expr
17434else
17435  as_expr=false
17436fi
17437
17438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17439  as_basename=basename
17440else
17441  as_basename=false
17442fi
17443
17444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17445  as_dirname=dirname
17446else
17447  as_dirname=false
17448fi
17449
17450as_me=`$as_basename -- "$0" ||
17451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17452	 X"$0" : 'X\(//\)$' \| \
17453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17454$as_echo X/"$0" |
17455    sed '/^.*\/\([^/][^/]*\)\/*$/{
17456	    s//\1/
17457	    q
17458	  }
17459	  /^X\/\(\/\/\)$/{
17460	    s//\1/
17461	    q
17462	  }
17463	  /^X\/\(\/\).*/{
17464	    s//\1/
17465	    q
17466	  }
17467	  s/.*/./; q'`
17468
17469# Avoid depending upon Character Ranges.
17470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17473as_cr_digits='0123456789'
17474as_cr_alnum=$as_cr_Letters$as_cr_digits
17475
17476ECHO_C= ECHO_N= ECHO_T=
17477case `echo -n x` in #(((((
17478-n*)
17479  case `echo 'xy\c'` in
17480  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17481  xy)  ECHO_C='\c';;
17482  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17483       ECHO_T='	';;
17484  esac;;
17485*)
17486  ECHO_N='-n';;
17487esac
17488
17489rm -f conf$$ conf$$.exe conf$$.file
17490if test -d conf$$.dir; then
17491  rm -f conf$$.dir/conf$$.file
17492else
17493  rm -f conf$$.dir
17494  mkdir conf$$.dir 2>/dev/null
17495fi
17496if (echo >conf$$.file) 2>/dev/null; then
17497  if ln -s conf$$.file conf$$ 2>/dev/null; then
17498    as_ln_s='ln -s'
17499    # ... but there are two gotchas:
17500    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17501    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17502    # In both cases, we have to default to `cp -p'.
17503    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17504      as_ln_s='cp -p'
17505  elif ln conf$$.file conf$$ 2>/dev/null; then
17506    as_ln_s=ln
17507  else
17508    as_ln_s='cp -p'
17509  fi
17510else
17511  as_ln_s='cp -p'
17512fi
17513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17514rmdir conf$$.dir 2>/dev/null
17515
17516
17517# as_fn_mkdir_p
17518# -------------
17519# Create "$as_dir" as a directory, including parents if necessary.
17520as_fn_mkdir_p ()
17521{
17522
17523  case $as_dir in #(
17524  -*) as_dir=./$as_dir;;
17525  esac
17526  test -d "$as_dir" || eval $as_mkdir_p || {
17527    as_dirs=
17528    while :; do
17529      case $as_dir in #(
17530      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17531      *) as_qdir=$as_dir;;
17532      esac
17533      as_dirs="'$as_qdir' $as_dirs"
17534      as_dir=`$as_dirname -- "$as_dir" ||
17535$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17536	 X"$as_dir" : 'X\(//\)[^/]' \| \
17537	 X"$as_dir" : 'X\(//\)$' \| \
17538	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17539$as_echo X"$as_dir" |
17540    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17541	    s//\1/
17542	    q
17543	  }
17544	  /^X\(\/\/\)[^/].*/{
17545	    s//\1/
17546	    q
17547	  }
17548	  /^X\(\/\/\)$/{
17549	    s//\1/
17550	    q
17551	  }
17552	  /^X\(\/\).*/{
17553	    s//\1/
17554	    q
17555	  }
17556	  s/.*/./; q'`
17557      test -d "$as_dir" && break
17558    done
17559    test -z "$as_dirs" || eval "mkdir $as_dirs"
17560  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17561
17562
17563} # as_fn_mkdir_p
17564if mkdir -p . 2>/dev/null; then
17565  as_mkdir_p='mkdir -p "$as_dir"'
17566else
17567  test -d ./-p && rmdir ./-p
17568  as_mkdir_p=false
17569fi
17570
17571if test -x / >/dev/null 2>&1; then
17572  as_test_x='test -x'
17573else
17574  if ls -dL / >/dev/null 2>&1; then
17575    as_ls_L_option=L
17576  else
17577    as_ls_L_option=
17578  fi
17579  as_test_x='
17580    eval sh -c '\''
17581      if test -d "$1"; then
17582	test -d "$1/.";
17583      else
17584	case $1 in #(
17585	-*)set "./$1";;
17586	esac;
17587	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17588	???[sx]*):;;*)false;;esac;fi
17589    '\'' sh
17590  '
17591fi
17592as_executable_p=$as_test_x
17593
17594# Sed expression to map a string onto a valid CPP name.
17595as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17596
17597# Sed expression to map a string onto a valid variable name.
17598as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17599
17600
17601exec 6>&1
17602## ----------------------------------- ##
17603## Main body of $CONFIG_STATUS script. ##
17604## ----------------------------------- ##
17605_ASEOF
17606test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17607
17608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17609# Save the log message, to keep $0 and so on meaningful, and to
17610# report actual input values of CONFIG_FILES etc. instead of their
17611# values after options handling.
17612ac_log="
17613This file was extended by ld $as_me 2.25.51, which was
17614generated by GNU Autoconf 2.64.  Invocation command line was
17615
17616  CONFIG_FILES    = $CONFIG_FILES
17617  CONFIG_HEADERS  = $CONFIG_HEADERS
17618  CONFIG_LINKS    = $CONFIG_LINKS
17619  CONFIG_COMMANDS = $CONFIG_COMMANDS
17620  $ $0 $@
17621
17622on `(hostname || uname -n) 2>/dev/null | sed 1q`
17623"
17624
17625_ACEOF
17626
17627case $ac_config_files in *"
17628"*) set x $ac_config_files; shift; ac_config_files=$*;;
17629esac
17630
17631case $ac_config_headers in *"
17632"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17633esac
17634
17635
17636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17637# Files that config.status was made for.
17638config_files="$ac_config_files"
17639config_headers="$ac_config_headers"
17640config_commands="$ac_config_commands"
17641
17642_ACEOF
17643
17644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17645ac_cs_usage="\
17646\`$as_me' instantiates files and other configuration actions
17647from templates according to the current configuration.  Unless the files
17648and actions are specified as TAGs, all are instantiated by default.
17649
17650Usage: $0 [OPTION]... [TAG]...
17651
17652  -h, --help       print this help, then exit
17653  -V, --version    print version number and configuration settings, then exit
17654  -q, --quiet, --silent
17655                   do not print progress messages
17656  -d, --debug      don't remove temporary files
17657      --recheck    update $as_me by reconfiguring in the same conditions
17658      --file=FILE[:TEMPLATE]
17659                   instantiate the configuration file FILE
17660      --header=FILE[:TEMPLATE]
17661                   instantiate the configuration header FILE
17662
17663Configuration files:
17664$config_files
17665
17666Configuration headers:
17667$config_headers
17668
17669Configuration commands:
17670$config_commands
17671
17672Report bugs to the package provider."
17673
17674_ACEOF
17675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17676ac_cs_version="\\
17677ld config.status 2.25.51
17678configured by $0, generated by GNU Autoconf 2.64,
17679  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17680
17681Copyright (C) 2009 Free Software Foundation, Inc.
17682This config.status script is free software; the Free Software Foundation
17683gives unlimited permission to copy, distribute and modify it."
17684
17685ac_pwd='$ac_pwd'
17686srcdir='$srcdir'
17687INSTALL='$INSTALL'
17688MKDIR_P='$MKDIR_P'
17689AWK='$AWK'
17690test -n "\$AWK" || AWK=awk
17691_ACEOF
17692
17693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17694# The default lists apply if the user does not specify any file.
17695ac_need_defaults=:
17696while test $# != 0
17697do
17698  case $1 in
17699  --*=*)
17700    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17701    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17702    ac_shift=:
17703    ;;
17704  *)
17705    ac_option=$1
17706    ac_optarg=$2
17707    ac_shift=shift
17708    ;;
17709  esac
17710
17711  case $ac_option in
17712  # Handling of the options.
17713  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17714    ac_cs_recheck=: ;;
17715  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17716    $as_echo "$ac_cs_version"; exit ;;
17717  --debug | --debu | --deb | --de | --d | -d )
17718    debug=: ;;
17719  --file | --fil | --fi | --f )
17720    $ac_shift
17721    case $ac_optarg in
17722    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17723    esac
17724    as_fn_append CONFIG_FILES " '$ac_optarg'"
17725    ac_need_defaults=false;;
17726  --header | --heade | --head | --hea )
17727    $ac_shift
17728    case $ac_optarg in
17729    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17730    esac
17731    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17732    ac_need_defaults=false;;
17733  --he | --h)
17734    # Conflict between --help and --header
17735    as_fn_error "ambiguous option: \`$1'
17736Try \`$0 --help' for more information.";;
17737  --help | --hel | -h )
17738    $as_echo "$ac_cs_usage"; exit ;;
17739  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17740  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17741    ac_cs_silent=: ;;
17742
17743  # This is an error.
17744  -*) as_fn_error "unrecognized option: \`$1'
17745Try \`$0 --help' for more information." ;;
17746
17747  *) as_fn_append ac_config_targets " $1"
17748     ac_need_defaults=false ;;
17749
17750  esac
17751  shift
17752done
17753
17754ac_configure_extra_args=
17755
17756if $ac_cs_silent; then
17757  exec 6>/dev/null
17758  ac_configure_extra_args="$ac_configure_extra_args --silent"
17759fi
17760
17761_ACEOF
17762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17763if \$ac_cs_recheck; then
17764  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17765  shift
17766  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17767  CONFIG_SHELL='$SHELL'
17768  export CONFIG_SHELL
17769  exec "\$@"
17770fi
17771
17772_ACEOF
17773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17774exec 5>>config.log
17775{
17776  echo
17777  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17778## Running $as_me. ##
17779_ASBOX
17780  $as_echo "$ac_log"
17781} >&5
17782
17783_ACEOF
17784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17785#
17786# INIT-COMMANDS
17787#
17788AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17789
17790
17791# The HP-UX ksh and POSIX shell print the target directory to stdout
17792# if CDPATH is set.
17793(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17794
17795sed_quote_subst='$sed_quote_subst'
17796double_quote_subst='$double_quote_subst'
17797delay_variable_subst='$delay_variable_subst'
17798macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17799macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17800enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17801enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17802pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17803enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17804SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17805ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17806host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17807host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17808host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17809build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17810build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17811build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17812SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17813Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17814GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17815EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17816FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17817LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17818NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17819LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17820max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17821ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17822exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17823lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17824lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17825lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17826reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17827reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17828OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17829deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17830file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17831AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17832AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17833STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17834RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17835old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17836old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17837old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17838lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17839CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17840CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17841compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17842GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17843lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17844lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17845lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17846lt_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"`'
17847objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17848MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17849lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17850lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17851lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17852lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17853lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17854need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17855DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17856NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17857LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17858OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17859OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17860libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17861shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17862extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17863archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17864enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17865export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17866whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17867compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17868old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17869old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17870archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17871archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17872module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17873module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17874with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17875allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17876no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17877hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17878hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17879hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17880hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17881hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17882hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17883hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17884hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17885inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17886link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17887fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17888always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17889export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17890exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17891include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17892prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17893file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17894variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17895need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17896need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17897version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17898runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17899shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17900shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17901libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17902library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17903soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17904install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17905postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17906postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17907finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17908finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17909hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17910sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17911sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17912hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17913enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17914enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17915enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17916old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17917striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17918compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17919predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17920postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17921predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17922postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17923compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17924LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17925reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17926reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17929GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17930lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17931lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17932lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17933lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17934lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17935archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17936enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17937export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17938whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17939compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17940old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17941old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17942archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17943archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17944module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17945module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17946with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17947allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17948no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17949hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17950hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17951hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17952hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17953hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17954hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17955hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17956hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17957inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17958link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17959fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17960always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17961export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17962exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17963include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17964prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17965file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17966hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17967compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17968predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17969postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17970predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17971postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17972compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17973
17974LTCC='$LTCC'
17975LTCFLAGS='$LTCFLAGS'
17976compiler='$compiler_DEFAULT'
17977
17978# A function that is used when there is no print builtin or printf.
17979func_fallback_echo ()
17980{
17981  eval 'cat <<_LTECHO_EOF
17982\$1
17983_LTECHO_EOF'
17984}
17985
17986# Quote evaled strings.
17987for var in SHELL \
17988ECHO \
17989SED \
17990GREP \
17991EGREP \
17992FGREP \
17993LD \
17994NM \
17995LN_S \
17996lt_SP2NL \
17997lt_NL2SP \
17998reload_flag \
17999OBJDUMP \
18000deplibs_check_method \
18001file_magic_cmd \
18002AR \
18003AR_FLAGS \
18004STRIP \
18005RANLIB \
18006CC \
18007CFLAGS \
18008compiler \
18009lt_cv_sys_global_symbol_pipe \
18010lt_cv_sys_global_symbol_to_cdecl \
18011lt_cv_sys_global_symbol_to_c_name_address \
18012lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18013lt_prog_compiler_no_builtin_flag \
18014lt_prog_compiler_wl \
18015lt_prog_compiler_pic \
18016lt_prog_compiler_static \
18017lt_cv_prog_compiler_c_o \
18018need_locks \
18019DSYMUTIL \
18020NMEDIT \
18021LIPO \
18022OTOOL \
18023OTOOL64 \
18024shrext_cmds \
18025export_dynamic_flag_spec \
18026whole_archive_flag_spec \
18027compiler_needs_object \
18028with_gnu_ld \
18029allow_undefined_flag \
18030no_undefined_flag \
18031hardcode_libdir_flag_spec \
18032hardcode_libdir_flag_spec_ld \
18033hardcode_libdir_separator \
18034fix_srcfile_path \
18035exclude_expsyms \
18036include_expsyms \
18037file_list_spec \
18038variables_saved_for_relink \
18039libname_spec \
18040library_names_spec \
18041soname_spec \
18042install_override_mode \
18043finish_eval \
18044old_striplib \
18045striplib \
18046compiler_lib_search_dirs \
18047predep_objects \
18048postdep_objects \
18049predeps \
18050postdeps \
18051compiler_lib_search_path \
18052LD_CXX \
18053reload_flag_CXX \
18054compiler_CXX \
18055lt_prog_compiler_no_builtin_flag_CXX \
18056lt_prog_compiler_wl_CXX \
18057lt_prog_compiler_pic_CXX \
18058lt_prog_compiler_static_CXX \
18059lt_cv_prog_compiler_c_o_CXX \
18060export_dynamic_flag_spec_CXX \
18061whole_archive_flag_spec_CXX \
18062compiler_needs_object_CXX \
18063with_gnu_ld_CXX \
18064allow_undefined_flag_CXX \
18065no_undefined_flag_CXX \
18066hardcode_libdir_flag_spec_CXX \
18067hardcode_libdir_flag_spec_ld_CXX \
18068hardcode_libdir_separator_CXX \
18069fix_srcfile_path_CXX \
18070exclude_expsyms_CXX \
18071include_expsyms_CXX \
18072file_list_spec_CXX \
18073compiler_lib_search_dirs_CXX \
18074predep_objects_CXX \
18075postdep_objects_CXX \
18076predeps_CXX \
18077postdeps_CXX \
18078compiler_lib_search_path_CXX; do
18079    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18080    *[\\\\\\\`\\"\\\$]*)
18081      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18082      ;;
18083    *)
18084      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18085      ;;
18086    esac
18087done
18088
18089# Double-quote double-evaled strings.
18090for var in reload_cmds \
18091old_postinstall_cmds \
18092old_postuninstall_cmds \
18093old_archive_cmds \
18094extract_expsyms_cmds \
18095old_archive_from_new_cmds \
18096old_archive_from_expsyms_cmds \
18097archive_cmds \
18098archive_expsym_cmds \
18099module_cmds \
18100module_expsym_cmds \
18101export_symbols_cmds \
18102prelink_cmds \
18103postinstall_cmds \
18104postuninstall_cmds \
18105finish_cmds \
18106sys_lib_search_path_spec \
18107sys_lib_dlsearch_path_spec \
18108reload_cmds_CXX \
18109old_archive_cmds_CXX \
18110old_archive_from_new_cmds_CXX \
18111old_archive_from_expsyms_cmds_CXX \
18112archive_cmds_CXX \
18113archive_expsym_cmds_CXX \
18114module_cmds_CXX \
18115module_expsym_cmds_CXX \
18116export_symbols_cmds_CXX \
18117prelink_cmds_CXX; do
18118    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18119    *[\\\\\\\`\\"\\\$]*)
18120      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18121      ;;
18122    *)
18123      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18124      ;;
18125    esac
18126done
18127
18128ac_aux_dir='$ac_aux_dir'
18129xsi_shell='$xsi_shell'
18130lt_shell_append='$lt_shell_append'
18131
18132# See if we are running on zsh, and set the options which allow our
18133# commands through without removal of \ escapes INIT.
18134if test -n "\${ZSH_VERSION+set}" ; then
18135   setopt NO_GLOB_SUBST
18136fi
18137
18138
18139    PACKAGE='$PACKAGE'
18140    VERSION='$VERSION'
18141    TIMESTAMP='$TIMESTAMP'
18142    RM='$RM'
18143    ofile='$ofile'
18144
18145
18146
18147
18148
18149# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18150    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18151    # from automake.
18152    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18153    # Capture the value of LINGUAS because we need it to compute CATALOGS.
18154    LINGUAS="${LINGUAS-%UNSET%}"
18155
18156
18157_ACEOF
18158
18159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160
18161# Handling of arguments.
18162for ac_config_target in $ac_config_targets
18163do
18164  case $ac_config_target in
18165    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18166    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18167    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18168    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18169    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18170    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18171
18172  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18173  esac
18174done
18175
18176
18177# If the user did not use the arguments to specify the items to instantiate,
18178# then the envvar interface is used.  Set only those that are not.
18179# We use the long form for the default assignment because of an extremely
18180# bizarre bug on SunOS 4.1.3.
18181if $ac_need_defaults; then
18182  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18183  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18184  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18185fi
18186
18187# Have a temporary directory for convenience.  Make it in the build tree
18188# simply because there is no reason against having it here, and in addition,
18189# creating and moving files from /tmp can sometimes cause problems.
18190# Hook for its removal unless debugging.
18191# Note that there is a small window in which the directory will not be cleaned:
18192# after its creation but before its name has been assigned to `$tmp'.
18193$debug ||
18194{
18195  tmp=
18196  trap 'exit_status=$?
18197  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18198' 0
18199  trap 'as_fn_exit 1' 1 2 13 15
18200}
18201# Create a (secure) tmp directory for tmp files.
18202
18203{
18204  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18205  test -n "$tmp" && test -d "$tmp"
18206}  ||
18207{
18208  tmp=./conf$$-$RANDOM
18209  (umask 077 && mkdir "$tmp")
18210} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18211
18212# Set up the scripts for CONFIG_FILES section.
18213# No need to generate them if there are no CONFIG_FILES.
18214# This happens for instance with `./config.status config.h'.
18215if test -n "$CONFIG_FILES"; then
18216
18217if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18218  ac_cs_awk_getline=:
18219  ac_cs_awk_pipe_init=
18220  ac_cs_awk_read_file='
18221      while ((getline aline < (F[key])) > 0)
18222	print(aline)
18223      close(F[key])'
18224  ac_cs_awk_pipe_fini=
18225else
18226  ac_cs_awk_getline=false
18227  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18228  ac_cs_awk_read_file='
18229      print "|#_!!_#|"
18230      print "cat " F[key] " &&"
18231      '$ac_cs_awk_pipe_init
18232  # The final `:' finishes the AND list.
18233  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18234fi
18235ac_cr=`echo X | tr X '\015'`
18236# On cygwin, bash can eat \r inside `` if the user requested igncr.
18237# But we know of no other shell where ac_cr would be empty at this
18238# point, so we can use a bashism as a fallback.
18239if test "x$ac_cr" = x; then
18240  eval ac_cr=\$\'\\r\'
18241fi
18242ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18243if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18244  ac_cs_awk_cr='\r'
18245else
18246  ac_cs_awk_cr=$ac_cr
18247fi
18248
18249echo 'BEGIN {' >"$tmp/subs1.awk" &&
18250_ACEOF
18251
18252# Create commands to substitute file output variables.
18253{
18254  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18255  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18256  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18257  echo "_ACAWK" &&
18258  echo "_ACEOF"
18259} >conf$$files.sh &&
18260. ./conf$$files.sh ||
18261  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18262rm -f conf$$files.sh
18263
18264{
18265  echo "cat >conf$$subs.awk <<_ACEOF" &&
18266  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18267  echo "_ACEOF"
18268} >conf$$subs.sh ||
18269  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18270ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18271ac_delim='%!_!# '
18272for ac_last_try in false false false false false :; do
18273  . ./conf$$subs.sh ||
18274    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18275
18276  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18277  if test $ac_delim_n = $ac_delim_num; then
18278    break
18279  elif $ac_last_try; then
18280    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18281  else
18282    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18283  fi
18284done
18285rm -f conf$$subs.sh
18286
18287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18288cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18289_ACEOF
18290sed -n '
18291h
18292s/^/S["/; s/!.*/"]=/
18293p
18294g
18295s/^[^!]*!//
18296:repl
18297t repl
18298s/'"$ac_delim"'$//
18299t delim
18300:nl
18301h
18302s/\(.\{148\}\).*/\1/
18303t more1
18304s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18305p
18306n
18307b repl
18308:more1
18309s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18310p
18311g
18312s/.\{148\}//
18313t nl
18314:delim
18315h
18316s/\(.\{148\}\).*/\1/
18317t more2
18318s/["\\]/\\&/g; s/^/"/; s/$/"/
18319p
18320b
18321:more2
18322s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18323p
18324g
18325s/.\{148\}//
18326t delim
18327' <conf$$subs.awk | sed '
18328/^[^""]/{
18329  N
18330  s/\n//
18331}
18332' >>$CONFIG_STATUS || ac_write_fail=1
18333rm -f conf$$subs.awk
18334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18335_ACAWK
18336cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18337  for (key in S) S_is_set[key] = 1
18338  FS = ""
18339  \$ac_cs_awk_pipe_init
18340}
18341{
18342  line = $ 0
18343  nfields = split(line, field, "@")
18344  substed = 0
18345  len = length(field[1])
18346  for (i = 2; i < nfields; i++) {
18347    key = field[i]
18348    keylen = length(key)
18349    if (S_is_set[key]) {
18350      value = S[key]
18351      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18352      len += length(value) + length(field[++i])
18353      substed = 1
18354    } else
18355      len += 1 + keylen
18356  }
18357  if (nfields == 3 && !substed) {
18358    key = field[2]
18359    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
18360      \$ac_cs_awk_read_file
18361      next
18362    }
18363  }
18364  print line
18365}
18366\$ac_cs_awk_pipe_fini
18367_ACAWK
18368_ACEOF
18369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18370if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18371  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18372else
18373  cat
18374fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18375  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18376_ACEOF
18377
18378# VPATH may cause trouble with some makes, so we remove $(srcdir),
18379# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18380# trailing colons and then remove the whole line if VPATH becomes empty
18381# (actually we leave an empty line to preserve line numbers).
18382if test "x$srcdir" = x.; then
18383  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18384s/:*\$(srcdir):*/:/
18385s/:*\${srcdir}:*/:/
18386s/:*@srcdir@:*/:/
18387s/^\([^=]*=[	 ]*\):*/\1/
18388s/:*$//
18389s/^[^=]*=[	 ]*$//
18390}'
18391fi
18392
18393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18394fi # test -n "$CONFIG_FILES"
18395
18396# Set up the scripts for CONFIG_HEADERS section.
18397# No need to generate them if there are no CONFIG_HEADERS.
18398# This happens for instance with `./config.status Makefile'.
18399if test -n "$CONFIG_HEADERS"; then
18400cat >"$tmp/defines.awk" <<\_ACAWK ||
18401BEGIN {
18402_ACEOF
18403
18404# Transform confdefs.h into an awk script `defines.awk', embedded as
18405# here-document in config.status, that substitutes the proper values into
18406# config.h.in to produce config.h.
18407
18408# Create a delimiter string that does not exist in confdefs.h, to ease
18409# handling of long lines.
18410ac_delim='%!_!# '
18411for ac_last_try in false false :; do
18412  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18413  if test -z "$ac_t"; then
18414    break
18415  elif $ac_last_try; then
18416    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18417  else
18418    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18419  fi
18420done
18421
18422# For the awk script, D is an array of macro values keyed by name,
18423# likewise P contains macro parameters if any.  Preserve backslash
18424# newline sequences.
18425
18426ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18427sed -n '
18428s/.\{148\}/&'"$ac_delim"'/g
18429t rset
18430:rset
18431s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18432t def
18433d
18434:def
18435s/\\$//
18436t bsnl
18437s/["\\]/\\&/g
18438s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18439D["\1"]=" \3"/p
18440s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18441d
18442:bsnl
18443s/["\\]/\\&/g
18444s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18445D["\1"]=" \3\\\\\\n"\\/p
18446t cont
18447s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18448t cont
18449d
18450:cont
18451n
18452s/.\{148\}/&'"$ac_delim"'/g
18453t clear
18454:clear
18455s/\\$//
18456t bsnlc
18457s/["\\]/\\&/g; s/^/"/; s/$/"/p
18458d
18459:bsnlc
18460s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18461b cont
18462' <confdefs.h | sed '
18463s/'"$ac_delim"'/"\\\
18464"/g' >>$CONFIG_STATUS || ac_write_fail=1
18465
18466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18467  for (key in D) D_is_set[key] = 1
18468  FS = ""
18469}
18470/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18471  line = \$ 0
18472  split(line, arg, " ")
18473  if (arg[1] == "#") {
18474    defundef = arg[2]
18475    mac1 = arg[3]
18476  } else {
18477    defundef = substr(arg[1], 2)
18478    mac1 = arg[2]
18479  }
18480  split(mac1, mac2, "(") #)
18481  macro = mac2[1]
18482  prefix = substr(line, 1, index(line, defundef) - 1)
18483  if (D_is_set[macro]) {
18484    # Preserve the white space surrounding the "#".
18485    print prefix "define", macro P[macro] D[macro]
18486    next
18487  } else {
18488    # Replace #undef with comments.  This is necessary, for example,
18489    # in the case of _POSIX_SOURCE, which is predefined and required
18490    # on some systems where configure will not decide to define it.
18491    if (defundef == "undef") {
18492      print "/*", prefix defundef, macro, "*/"
18493      next
18494    }
18495  }
18496}
18497{ print }
18498_ACAWK
18499_ACEOF
18500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18501  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18502fi # test -n "$CONFIG_HEADERS"
18503
18504
18505eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18506shift
18507for ac_tag
18508do
18509  case $ac_tag in
18510  :[FHLC]) ac_mode=$ac_tag; continue;;
18511  esac
18512  case $ac_mode$ac_tag in
18513  :[FHL]*:*);;
18514  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18515  :[FH]-) ac_tag=-:-;;
18516  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18517  esac
18518  ac_save_IFS=$IFS
18519  IFS=:
18520  set x $ac_tag
18521  IFS=$ac_save_IFS
18522  shift
18523  ac_file=$1
18524  shift
18525
18526  case $ac_mode in
18527  :L) ac_source=$1;;
18528  :[FH])
18529    ac_file_inputs=
18530    for ac_f
18531    do
18532      case $ac_f in
18533      -) ac_f="$tmp/stdin";;
18534      *) # Look for the file first in the build tree, then in the source tree
18535	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18536	 # because $ac_f cannot contain `:'.
18537	 test -f "$ac_f" ||
18538	   case $ac_f in
18539	   [\\/$]*) false;;
18540	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18541	   esac ||
18542	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18543      esac
18544      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18545      as_fn_append ac_file_inputs " '$ac_f'"
18546    done
18547
18548    # Let's still pretend it is `configure' which instantiates (i.e., don't
18549    # use $as_me), people would be surprised to read:
18550    #    /* config.h.  Generated by config.status.  */
18551    configure_input='Generated from '`
18552	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18553	`' by configure.'
18554    if test x"$ac_file" != x-; then
18555      configure_input="$ac_file.  $configure_input"
18556      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18557$as_echo "$as_me: creating $ac_file" >&6;}
18558    fi
18559    # Neutralize special characters interpreted by sed in replacement strings.
18560    case $configure_input in #(
18561    *\&* | *\|* | *\\* )
18562       ac_sed_conf_input=`$as_echo "$configure_input" |
18563       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18564    *) ac_sed_conf_input=$configure_input;;
18565    esac
18566
18567    case $ac_tag in
18568    *:-:* | *:-) cat >"$tmp/stdin" \
18569      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18570    esac
18571    ;;
18572  esac
18573
18574  ac_dir=`$as_dirname -- "$ac_file" ||
18575$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18576	 X"$ac_file" : 'X\(//\)[^/]' \| \
18577	 X"$ac_file" : 'X\(//\)$' \| \
18578	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18579$as_echo X"$ac_file" |
18580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18581	    s//\1/
18582	    q
18583	  }
18584	  /^X\(\/\/\)[^/].*/{
18585	    s//\1/
18586	    q
18587	  }
18588	  /^X\(\/\/\)$/{
18589	    s//\1/
18590	    q
18591	  }
18592	  /^X\(\/\).*/{
18593	    s//\1/
18594	    q
18595	  }
18596	  s/.*/./; q'`
18597  as_dir="$ac_dir"; as_fn_mkdir_p
18598  ac_builddir=.
18599
18600case "$ac_dir" in
18601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18602*)
18603  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18604  # A ".." for each directory in $ac_dir_suffix.
18605  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18606  case $ac_top_builddir_sub in
18607  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18608  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18609  esac ;;
18610esac
18611ac_abs_top_builddir=$ac_pwd
18612ac_abs_builddir=$ac_pwd$ac_dir_suffix
18613# for backward compatibility:
18614ac_top_builddir=$ac_top_build_prefix
18615
18616case $srcdir in
18617  .)  # We are building in place.
18618    ac_srcdir=.
18619    ac_top_srcdir=$ac_top_builddir_sub
18620    ac_abs_top_srcdir=$ac_pwd ;;
18621  [\\/]* | ?:[\\/]* )  # Absolute name.
18622    ac_srcdir=$srcdir$ac_dir_suffix;
18623    ac_top_srcdir=$srcdir
18624    ac_abs_top_srcdir=$srcdir ;;
18625  *) # Relative name.
18626    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18627    ac_top_srcdir=$ac_top_build_prefix$srcdir
18628    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18629esac
18630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18631
18632
18633  case $ac_mode in
18634  :F)
18635  #
18636  # CONFIG_FILE
18637  #
18638
18639  case $INSTALL in
18640  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18641  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18642  esac
18643  ac_MKDIR_P=$MKDIR_P
18644  case $MKDIR_P in
18645  [\\/$]* | ?:[\\/]* ) ;;
18646  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18647  esac
18648_ACEOF
18649
18650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18651# If the template does not know about datarootdir, expand it.
18652# FIXME: This hack should be removed a few years after 2.60.
18653ac_datarootdir_hack=; ac_datarootdir_seen=
18654ac_sed_dataroot='
18655/datarootdir/ {
18656  p
18657  q
18658}
18659/@datadir@/p
18660/@docdir@/p
18661/@infodir@/p
18662/@localedir@/p
18663/@mandir@/p'
18664case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18665*datarootdir*) ac_datarootdir_seen=yes;;
18666*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18667  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18668$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18669_ACEOF
18670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18671  ac_datarootdir_hack='
18672  s&@datadir@&$datadir&g
18673  s&@docdir@&$docdir&g
18674  s&@infodir@&$infodir&g
18675  s&@localedir@&$localedir&g
18676  s&@mandir@&$mandir&g
18677  s&\\\${datarootdir}&$datarootdir&g' ;;
18678esac
18679_ACEOF
18680
18681# Neutralize VPATH when `$srcdir' = `.'.
18682# Shell code in configure.ac might set extrasub.
18683# FIXME: do we really want to maintain this feature?
18684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18685ac_sed_extra="$ac_vpsub
18686$extrasub
18687_ACEOF
18688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689:t
18690/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18691s|@configure_input@|$ac_sed_conf_input|;t t
18692s&@top_builddir@&$ac_top_builddir_sub&;t t
18693s&@top_build_prefix@&$ac_top_build_prefix&;t t
18694s&@srcdir@&$ac_srcdir&;t t
18695s&@abs_srcdir@&$ac_abs_srcdir&;t t
18696s&@top_srcdir@&$ac_top_srcdir&;t t
18697s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18698s&@builddir@&$ac_builddir&;t t
18699s&@abs_builddir@&$ac_abs_builddir&;t t
18700s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18701s&@INSTALL@&$ac_INSTALL&;t t
18702s&@MKDIR_P@&$ac_MKDIR_P&;t t
18703$ac_datarootdir_hack
18704"
18705eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18706if $ac_cs_awk_getline; then
18707  $AWK -f "$tmp/subs.awk"
18708else
18709  $AWK -f "$tmp/subs.awk" | $SHELL
18710fi >$tmp/out \
18711  || as_fn_error "could not create $ac_file" "$LINENO" 5
18712
18713test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18714  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18715  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18716  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18717which seems to be undefined.  Please make sure it is defined." >&5
18718$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18719which seems to be undefined.  Please make sure it is defined." >&2;}
18720
18721  rm -f "$tmp/stdin"
18722  case $ac_file in
18723  -) cat "$tmp/out" && rm -f "$tmp/out";;
18724  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18725  esac \
18726  || as_fn_error "could not create $ac_file" "$LINENO" 5
18727 ;;
18728  :H)
18729  #
18730  # CONFIG_HEADER
18731  #
18732  if test x"$ac_file" != x-; then
18733    {
18734      $as_echo "/* $configure_input  */" \
18735      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18736    } >"$tmp/config.h" \
18737      || as_fn_error "could not create $ac_file" "$LINENO" 5
18738    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18739      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18740$as_echo "$as_me: $ac_file is unchanged" >&6;}
18741    else
18742      rm -f "$ac_file"
18743      mv "$tmp/config.h" "$ac_file" \
18744	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18745    fi
18746  else
18747    $as_echo "/* $configure_input  */" \
18748      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18749      || as_fn_error "could not create -" "$LINENO" 5
18750  fi
18751# Compute "$ac_file"'s index in $config_headers.
18752_am_arg="$ac_file"
18753_am_stamp_count=1
18754for _am_header in $config_headers :; do
18755  case $_am_header in
18756    $_am_arg | $_am_arg:* )
18757      break ;;
18758    * )
18759      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18760  esac
18761done
18762echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18763$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18764	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18765	 X"$_am_arg" : 'X\(//\)$' \| \
18766	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18767$as_echo X"$_am_arg" |
18768    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18769	    s//\1/
18770	    q
18771	  }
18772	  /^X\(\/\/\)[^/].*/{
18773	    s//\1/
18774	    q
18775	  }
18776	  /^X\(\/\/\)$/{
18777	    s//\1/
18778	    q
18779	  }
18780	  /^X\(\/\).*/{
18781	    s//\1/
18782	    q
18783	  }
18784	  s/.*/./; q'`/stamp-h$_am_stamp_count
18785 ;;
18786
18787  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18788$as_echo "$as_me: executing $ac_file commands" >&6;}
18789 ;;
18790  esac
18791
18792
18793  case $ac_file$ac_mode in
18794    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18795  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18796  # are listed without --file.  Let's play safe and only enable the eval
18797  # if we detect the quoting.
18798  case $CONFIG_FILES in
18799  *\'*) eval set x "$CONFIG_FILES" ;;
18800  *)   set x $CONFIG_FILES ;;
18801  esac
18802  shift
18803  for mf
18804  do
18805    # Strip MF so we end up with the name of the file.
18806    mf=`echo "$mf" | sed -e 's/:.*$//'`
18807    # Check whether this is an Automake generated Makefile or not.
18808    # We used to match only the files named `Makefile.in', but
18809    # some people rename them; so instead we look at the file content.
18810    # Grep'ing the first line is not enough: some people post-process
18811    # each Makefile.in and add a new line on top of each file to say so.
18812    # Grep'ing the whole file is not good either: AIX grep has a line
18813    # limit of 2048, but all sed's we know have understand at least 4000.
18814    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18815      dirpart=`$as_dirname -- "$mf" ||
18816$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18817	 X"$mf" : 'X\(//\)[^/]' \| \
18818	 X"$mf" : 'X\(//\)$' \| \
18819	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18820$as_echo X"$mf" |
18821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18822	    s//\1/
18823	    q
18824	  }
18825	  /^X\(\/\/\)[^/].*/{
18826	    s//\1/
18827	    q
18828	  }
18829	  /^X\(\/\/\)$/{
18830	    s//\1/
18831	    q
18832	  }
18833	  /^X\(\/\).*/{
18834	    s//\1/
18835	    q
18836	  }
18837	  s/.*/./; q'`
18838    else
18839      continue
18840    fi
18841    # Extract the definition of DEPDIR, am__include, and am__quote
18842    # from the Makefile without running `make'.
18843    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18844    test -z "$DEPDIR" && continue
18845    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18846    test -z "am__include" && continue
18847    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18848    # When using ansi2knr, U may be empty or an underscore; expand it
18849    U=`sed -n 's/^U = //p' < "$mf"`
18850    # Find all dependency output files, they are included files with
18851    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18852    # simplest approach to changing $(DEPDIR) to its actual value in the
18853    # expansion.
18854    for file in `sed -n "
18855      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18856	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18857      # Make sure the directory exists.
18858      test -f "$dirpart/$file" && continue
18859      fdir=`$as_dirname -- "$file" ||
18860$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18861	 X"$file" : 'X\(//\)[^/]' \| \
18862	 X"$file" : 'X\(//\)$' \| \
18863	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18864$as_echo X"$file" |
18865    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18866	    s//\1/
18867	    q
18868	  }
18869	  /^X\(\/\/\)[^/].*/{
18870	    s//\1/
18871	    q
18872	  }
18873	  /^X\(\/\/\)$/{
18874	    s//\1/
18875	    q
18876	  }
18877	  /^X\(\/\).*/{
18878	    s//\1/
18879	    q
18880	  }
18881	  s/.*/./; q'`
18882      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18883      # echo "creating $dirpart/$file"
18884      echo '# dummy' > "$dirpart/$file"
18885    done
18886  done
18887}
18888 ;;
18889    "libtool":C)
18890
18891    # See if we are running on zsh, and set the options which allow our
18892    # commands through without removal of \ escapes.
18893    if test -n "${ZSH_VERSION+set}" ; then
18894      setopt NO_GLOB_SUBST
18895    fi
18896
18897    cfgfile="${ofile}T"
18898    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18899    $RM "$cfgfile"
18900
18901    cat <<_LT_EOF >> "$cfgfile"
18902#! $SHELL
18903
18904# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18905# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18906# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18907# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18908#
18909#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18910#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18911#   Written by Gordon Matzigkeit, 1996
18912#
18913#   This file is part of GNU Libtool.
18914#
18915# GNU Libtool is free software; you can redistribute it and/or
18916# modify it under the terms of the GNU General Public License as
18917# published by the Free Software Foundation; either version 2 of
18918# the License, or (at your option) any later version.
18919#
18920# As a special exception to the GNU General Public License,
18921# if you distribute this file as part of a program or library that
18922# is built using GNU Libtool, you may include this file under the
18923# same distribution terms that you use for the rest of that program.
18924#
18925# GNU Libtool is distributed in the hope that it will be useful,
18926# but WITHOUT ANY WARRANTY; without even the implied warranty of
18927# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18928# GNU General Public License for more details.
18929#
18930# You should have received a copy of the GNU General Public License
18931# along with GNU Libtool; see the file COPYING.  If not, a copy
18932# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18933# obtained by writing to the Free Software Foundation, Inc.,
18934# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18935
18936
18937# The names of the tagged configurations supported by this script.
18938available_tags="CXX "
18939
18940# ### BEGIN LIBTOOL CONFIG
18941
18942# Which release of libtool.m4 was used?
18943macro_version=$macro_version
18944macro_revision=$macro_revision
18945
18946# Whether or not to build shared libraries.
18947build_libtool_libs=$enable_shared
18948
18949# Whether or not to build static libraries.
18950build_old_libs=$enable_static
18951
18952# What type of objects to build.
18953pic_mode=$pic_mode
18954
18955# Whether or not to optimize for fast installation.
18956fast_install=$enable_fast_install
18957
18958# Shell to use when invoking shell scripts.
18959SHELL=$lt_SHELL
18960
18961# An echo program that protects backslashes.
18962ECHO=$lt_ECHO
18963
18964# The host system.
18965host_alias=$host_alias
18966host=$host
18967host_os=$host_os
18968
18969# The build system.
18970build_alias=$build_alias
18971build=$build
18972build_os=$build_os
18973
18974# A sed program that does not truncate output.
18975SED=$lt_SED
18976
18977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18978Xsed="\$SED -e 1s/^X//"
18979
18980# A grep program that handles long lines.
18981GREP=$lt_GREP
18982
18983# An ERE matcher.
18984EGREP=$lt_EGREP
18985
18986# A literal string matcher.
18987FGREP=$lt_FGREP
18988
18989# A BSD- or MS-compatible name lister.
18990NM=$lt_NM
18991
18992# Whether we need soft or hard links.
18993LN_S=$lt_LN_S
18994
18995# What is the maximum length of a command?
18996max_cmd_len=$max_cmd_len
18997
18998# Object file suffix (normally "o").
18999objext=$ac_objext
19000
19001# Executable file suffix (normally "").
19002exeext=$exeext
19003
19004# whether the shell understands "unset".
19005lt_unset=$lt_unset
19006
19007# turn spaces into newlines.
19008SP2NL=$lt_lt_SP2NL
19009
19010# turn newlines into spaces.
19011NL2SP=$lt_lt_NL2SP
19012
19013# An object symbol dumper.
19014OBJDUMP=$lt_OBJDUMP
19015
19016# Method to check whether dependent libraries are shared objects.
19017deplibs_check_method=$lt_deplibs_check_method
19018
19019# Command to use when deplibs_check_method == "file_magic".
19020file_magic_cmd=$lt_file_magic_cmd
19021
19022# The archiver.
19023AR=$lt_AR
19024AR_FLAGS=$lt_AR_FLAGS
19025
19026# A symbol stripping program.
19027STRIP=$lt_STRIP
19028
19029# Commands used to install an old-style archive.
19030RANLIB=$lt_RANLIB
19031old_postinstall_cmds=$lt_old_postinstall_cmds
19032old_postuninstall_cmds=$lt_old_postuninstall_cmds
19033
19034# Whether to use a lock for old archive extraction.
19035lock_old_archive_extraction=$lock_old_archive_extraction
19036
19037# A C compiler.
19038LTCC=$lt_CC
19039
19040# LTCC compiler flags.
19041LTCFLAGS=$lt_CFLAGS
19042
19043# Take the output of nm and produce a listing of raw symbols and C names.
19044global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19045
19046# Transform the output of nm in a proper C declaration.
19047global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19048
19049# Transform the output of nm in a C name address pair.
19050global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19051
19052# Transform the output of nm in a C name address pair when lib prefix is needed.
19053global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19054
19055# The name of the directory that contains temporary libtool files.
19056objdir=$objdir
19057
19058# Used to examine libraries when file_magic_cmd begins with "file".
19059MAGIC_CMD=$MAGIC_CMD
19060
19061# Must we lock files when doing compilation?
19062need_locks=$lt_need_locks
19063
19064# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19065DSYMUTIL=$lt_DSYMUTIL
19066
19067# Tool to change global to local symbols on Mac OS X.
19068NMEDIT=$lt_NMEDIT
19069
19070# Tool to manipulate fat objects and archives on Mac OS X.
19071LIPO=$lt_LIPO
19072
19073# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19074OTOOL=$lt_OTOOL
19075
19076# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19077OTOOL64=$lt_OTOOL64
19078
19079# Old archive suffix (normally "a").
19080libext=$libext
19081
19082# Shared library suffix (normally ".so").
19083shrext_cmds=$lt_shrext_cmds
19084
19085# The commands to extract the exported symbol list from a shared archive.
19086extract_expsyms_cmds=$lt_extract_expsyms_cmds
19087
19088# Variables whose values should be saved in libtool wrapper scripts and
19089# restored at link time.
19090variables_saved_for_relink=$lt_variables_saved_for_relink
19091
19092# Do we need the "lib" prefix for modules?
19093need_lib_prefix=$need_lib_prefix
19094
19095# Do we need a version for libraries?
19096need_version=$need_version
19097
19098# Library versioning type.
19099version_type=$version_type
19100
19101# Shared library runtime path variable.
19102runpath_var=$runpath_var
19103
19104# Shared library path variable.
19105shlibpath_var=$shlibpath_var
19106
19107# Is shlibpath searched before the hard-coded library search path?
19108shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19109
19110# Format of library name prefix.
19111libname_spec=$lt_libname_spec
19112
19113# List of archive names.  First name is the real one, the rest are links.
19114# The last name is the one that the linker finds with -lNAME
19115library_names_spec=$lt_library_names_spec
19116
19117# The coded name of the library, if different from the real name.
19118soname_spec=$lt_soname_spec
19119
19120# Permission mode override for installation of shared libraries.
19121install_override_mode=$lt_install_override_mode
19122
19123# Command to use after installation of a shared archive.
19124postinstall_cmds=$lt_postinstall_cmds
19125
19126# Command to use after uninstallation of a shared archive.
19127postuninstall_cmds=$lt_postuninstall_cmds
19128
19129# Commands used to finish a libtool library installation in a directory.
19130finish_cmds=$lt_finish_cmds
19131
19132# As "finish_cmds", except a single script fragment to be evaled but
19133# not shown.
19134finish_eval=$lt_finish_eval
19135
19136# Whether we should hardcode library paths into libraries.
19137hardcode_into_libs=$hardcode_into_libs
19138
19139# Compile-time system search path for libraries.
19140sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19141
19142# Run-time system search path for libraries.
19143sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19144
19145# Whether dlopen is supported.
19146dlopen_support=$enable_dlopen
19147
19148# Whether dlopen of programs is supported.
19149dlopen_self=$enable_dlopen_self
19150
19151# Whether dlopen of statically linked programs is supported.
19152dlopen_self_static=$enable_dlopen_self_static
19153
19154# Commands to strip libraries.
19155old_striplib=$lt_old_striplib
19156striplib=$lt_striplib
19157
19158
19159# The linker used to build libraries.
19160LD=$lt_LD
19161
19162# How to create reloadable object files.
19163reload_flag=$lt_reload_flag
19164reload_cmds=$lt_reload_cmds
19165
19166# Commands used to build an old-style archive.
19167old_archive_cmds=$lt_old_archive_cmds
19168
19169# A language specific compiler.
19170CC=$lt_compiler
19171
19172# Is the compiler the GNU compiler?
19173with_gcc=$GCC
19174
19175# Compiler flag to turn off builtin functions.
19176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19177
19178# How to pass a linker flag through the compiler.
19179wl=$lt_lt_prog_compiler_wl
19180
19181# Additional compiler flags for building library objects.
19182pic_flag=$lt_lt_prog_compiler_pic
19183
19184# Compiler flag to prevent dynamic linking.
19185link_static_flag=$lt_lt_prog_compiler_static
19186
19187# Does compiler simultaneously support -c and -o options?
19188compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19189
19190# Whether or not to add -lc for building shared libraries.
19191build_libtool_need_lc=$archive_cmds_need_lc
19192
19193# Whether or not to disallow shared libs when runtime libs are static.
19194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19195
19196# Compiler flag to allow reflexive dlopens.
19197export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19198
19199# Compiler flag to generate shared objects directly from archives.
19200whole_archive_flag_spec=$lt_whole_archive_flag_spec
19201
19202# Whether the compiler copes with passing no objects directly.
19203compiler_needs_object=$lt_compiler_needs_object
19204
19205# Create an old-style archive from a shared archive.
19206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19207
19208# Create a temporary old-style archive to link instead of a shared archive.
19209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19210
19211# Commands used to build a shared archive.
19212archive_cmds=$lt_archive_cmds
19213archive_expsym_cmds=$lt_archive_expsym_cmds
19214
19215# Commands used to build a loadable module if different from building
19216# a shared archive.
19217module_cmds=$lt_module_cmds
19218module_expsym_cmds=$lt_module_expsym_cmds
19219
19220# Whether we are building with GNU ld or not.
19221with_gnu_ld=$lt_with_gnu_ld
19222
19223# Flag that allows shared libraries with undefined symbols to be built.
19224allow_undefined_flag=$lt_allow_undefined_flag
19225
19226# Flag that enforces no undefined symbols.
19227no_undefined_flag=$lt_no_undefined_flag
19228
19229# Flag to hardcode \$libdir into a binary during linking.
19230# This must work even if \$libdir does not exist
19231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19232
19233# If ld is used when linking, flag to hardcode \$libdir into a binary
19234# during linking.  This must work even if \$libdir does not exist.
19235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19236
19237# Whether we need a single "-rpath" flag with a separated argument.
19238hardcode_libdir_separator=$lt_hardcode_libdir_separator
19239
19240# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19241# DIR into the resulting binary.
19242hardcode_direct=$hardcode_direct
19243
19244# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19245# DIR into the resulting binary and the resulting library dependency is
19246# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19247# library is relocated.
19248hardcode_direct_absolute=$hardcode_direct_absolute
19249
19250# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19251# into the resulting binary.
19252hardcode_minus_L=$hardcode_minus_L
19253
19254# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19255# into the resulting binary.
19256hardcode_shlibpath_var=$hardcode_shlibpath_var
19257
19258# Set to "yes" if building a shared library automatically hardcodes DIR
19259# into the library and all subsequent libraries and executables linked
19260# against it.
19261hardcode_automatic=$hardcode_automatic
19262
19263# Set to yes if linker adds runtime paths of dependent libraries
19264# to runtime path list.
19265inherit_rpath=$inherit_rpath
19266
19267# Whether libtool must link a program against all its dependency libraries.
19268link_all_deplibs=$link_all_deplibs
19269
19270# Fix the shell variable \$srcfile for the compiler.
19271fix_srcfile_path=$lt_fix_srcfile_path
19272
19273# Set to "yes" if exported symbols are required.
19274always_export_symbols=$always_export_symbols
19275
19276# The commands to list exported symbols.
19277export_symbols_cmds=$lt_export_symbols_cmds
19278
19279# Symbols that should not be listed in the preloaded symbols.
19280exclude_expsyms=$lt_exclude_expsyms
19281
19282# Symbols that must always be exported.
19283include_expsyms=$lt_include_expsyms
19284
19285# Commands necessary for linking programs (against libraries) with templates.
19286prelink_cmds=$lt_prelink_cmds
19287
19288# Specify filename containing input files.
19289file_list_spec=$lt_file_list_spec
19290
19291# How to hardcode a shared library path into an executable.
19292hardcode_action=$hardcode_action
19293
19294# The directories searched by this compiler when creating a shared library.
19295compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19296
19297# Dependencies to place before and after the objects being linked to
19298# create a shared library.
19299predep_objects=$lt_predep_objects
19300postdep_objects=$lt_postdep_objects
19301predeps=$lt_predeps
19302postdeps=$lt_postdeps
19303
19304# The library search path used internally by the compiler when linking
19305# a shared library.
19306compiler_lib_search_path=$lt_compiler_lib_search_path
19307
19308# ### END LIBTOOL CONFIG
19309
19310_LT_EOF
19311
19312  case $host_os in
19313  aix3*)
19314    cat <<\_LT_EOF >> "$cfgfile"
19315# AIX sometimes has problems with the GCC collect2 program.  For some
19316# reason, if we set the COLLECT_NAMES environment variable, the problems
19317# vanish in a puff of smoke.
19318if test "X${COLLECT_NAMES+set}" != Xset; then
19319  COLLECT_NAMES=
19320  export COLLECT_NAMES
19321fi
19322_LT_EOF
19323    ;;
19324  esac
19325
19326
19327ltmain="$ac_aux_dir/ltmain.sh"
19328
19329
19330  # We use sed instead of cat because bash on DJGPP gets confused if
19331  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19332  # text mode, it properly converts lines to CR/LF.  This bash problem
19333  # is reportedly fixed, but why not run on old versions too?
19334  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19335    || (rm -f "$cfgfile"; exit 1)
19336
19337  case $xsi_shell in
19338  yes)
19339    cat << \_LT_EOF >> "$cfgfile"
19340
19341# func_dirname file append nondir_replacement
19342# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19343# otherwise set result to NONDIR_REPLACEMENT.
19344func_dirname ()
19345{
19346  case ${1} in
19347    */*) func_dirname_result="${1%/*}${2}" ;;
19348    *  ) func_dirname_result="${3}" ;;
19349  esac
19350}
19351
19352# func_basename file
19353func_basename ()
19354{
19355  func_basename_result="${1##*/}"
19356}
19357
19358# func_dirname_and_basename file append nondir_replacement
19359# perform func_basename and func_dirname in a single function
19360# call:
19361#   dirname:  Compute the dirname of FILE.  If nonempty,
19362#             add APPEND to the result, otherwise set result
19363#             to NONDIR_REPLACEMENT.
19364#             value returned in "$func_dirname_result"
19365#   basename: Compute filename of FILE.
19366#             value retuned in "$func_basename_result"
19367# Implementation must be kept synchronized with func_dirname
19368# and func_basename. For efficiency, we do not delegate to
19369# those functions but instead duplicate the functionality here.
19370func_dirname_and_basename ()
19371{
19372  case ${1} in
19373    */*) func_dirname_result="${1%/*}${2}" ;;
19374    *  ) func_dirname_result="${3}" ;;
19375  esac
19376  func_basename_result="${1##*/}"
19377}
19378
19379# func_stripname prefix suffix name
19380# strip PREFIX and SUFFIX off of NAME.
19381# PREFIX and SUFFIX must not contain globbing or regex special
19382# characters, hashes, percent signs, but SUFFIX may contain a leading
19383# dot (in which case that matches only a dot).
19384func_stripname ()
19385{
19386  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19387  # positional parameters, so assign one to ordinary parameter first.
19388  func_stripname_result=${3}
19389  func_stripname_result=${func_stripname_result#"${1}"}
19390  func_stripname_result=${func_stripname_result%"${2}"}
19391}
19392
19393# func_opt_split
19394func_opt_split ()
19395{
19396  func_opt_split_opt=${1%%=*}
19397  func_opt_split_arg=${1#*=}
19398}
19399
19400# func_lo2o object
19401func_lo2o ()
19402{
19403  case ${1} in
19404    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19405    *)    func_lo2o_result=${1} ;;
19406  esac
19407}
19408
19409# func_xform libobj-or-source
19410func_xform ()
19411{
19412  func_xform_result=${1%.*}.lo
19413}
19414
19415# func_arith arithmetic-term...
19416func_arith ()
19417{
19418  func_arith_result=$(( $* ))
19419}
19420
19421# func_len string
19422# STRING may not start with a hyphen.
19423func_len ()
19424{
19425  func_len_result=${#1}
19426}
19427
19428_LT_EOF
19429    ;;
19430  *) # Bourne compatible functions.
19431    cat << \_LT_EOF >> "$cfgfile"
19432
19433# func_dirname file append nondir_replacement
19434# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19435# otherwise set result to NONDIR_REPLACEMENT.
19436func_dirname ()
19437{
19438  # Extract subdirectory from the argument.
19439  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19440  if test "X$func_dirname_result" = "X${1}"; then
19441    func_dirname_result="${3}"
19442  else
19443    func_dirname_result="$func_dirname_result${2}"
19444  fi
19445}
19446
19447# func_basename file
19448func_basename ()
19449{
19450  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19451}
19452
19453
19454# func_stripname prefix suffix name
19455# strip PREFIX and SUFFIX off of NAME.
19456# PREFIX and SUFFIX must not contain globbing or regex special
19457# characters, hashes, percent signs, but SUFFIX may contain a leading
19458# dot (in which case that matches only a dot).
19459# func_strip_suffix prefix name
19460func_stripname ()
19461{
19462  case ${2} in
19463    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19464    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19465  esac
19466}
19467
19468# sed scripts:
19469my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19470my_sed_long_arg='1s/^-[^=]*=//'
19471
19472# func_opt_split
19473func_opt_split ()
19474{
19475  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19476  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19477}
19478
19479# func_lo2o object
19480func_lo2o ()
19481{
19482  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19483}
19484
19485# func_xform libobj-or-source
19486func_xform ()
19487{
19488  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19489}
19490
19491# func_arith arithmetic-term...
19492func_arith ()
19493{
19494  func_arith_result=`expr "$@"`
19495}
19496
19497# func_len string
19498# STRING may not start with a hyphen.
19499func_len ()
19500{
19501  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19502}
19503
19504_LT_EOF
19505esac
19506
19507case $lt_shell_append in
19508  yes)
19509    cat << \_LT_EOF >> "$cfgfile"
19510
19511# func_append var value
19512# Append VALUE to the end of shell variable VAR.
19513func_append ()
19514{
19515  eval "$1+=\$2"
19516}
19517_LT_EOF
19518    ;;
19519  *)
19520    cat << \_LT_EOF >> "$cfgfile"
19521
19522# func_append var value
19523# Append VALUE to the end of shell variable VAR.
19524func_append ()
19525{
19526  eval "$1=\$$1\$2"
19527}
19528
19529_LT_EOF
19530    ;;
19531  esac
19532
19533
19534  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19535    || (rm -f "$cfgfile"; exit 1)
19536
19537  mv -f "$cfgfile" "$ofile" ||
19538    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19539  chmod +x "$ofile"
19540
19541
19542    cat <<_LT_EOF >> "$ofile"
19543
19544# ### BEGIN LIBTOOL TAG CONFIG: CXX
19545
19546# The linker used to build libraries.
19547LD=$lt_LD_CXX
19548
19549# How to create reloadable object files.
19550reload_flag=$lt_reload_flag_CXX
19551reload_cmds=$lt_reload_cmds_CXX
19552
19553# Commands used to build an old-style archive.
19554old_archive_cmds=$lt_old_archive_cmds_CXX
19555
19556# A language specific compiler.
19557CC=$lt_compiler_CXX
19558
19559# Is the compiler the GNU compiler?
19560with_gcc=$GCC_CXX
19561
19562# Compiler flag to turn off builtin functions.
19563no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19564
19565# How to pass a linker flag through the compiler.
19566wl=$lt_lt_prog_compiler_wl_CXX
19567
19568# Additional compiler flags for building library objects.
19569pic_flag=$lt_lt_prog_compiler_pic_CXX
19570
19571# Compiler flag to prevent dynamic linking.
19572link_static_flag=$lt_lt_prog_compiler_static_CXX
19573
19574# Does compiler simultaneously support -c and -o options?
19575compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19576
19577# Whether or not to add -lc for building shared libraries.
19578build_libtool_need_lc=$archive_cmds_need_lc_CXX
19579
19580# Whether or not to disallow shared libs when runtime libs are static.
19581allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19582
19583# Compiler flag to allow reflexive dlopens.
19584export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19585
19586# Compiler flag to generate shared objects directly from archives.
19587whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19588
19589# Whether the compiler copes with passing no objects directly.
19590compiler_needs_object=$lt_compiler_needs_object_CXX
19591
19592# Create an old-style archive from a shared archive.
19593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19594
19595# Create a temporary old-style archive to link instead of a shared archive.
19596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19597
19598# Commands used to build a shared archive.
19599archive_cmds=$lt_archive_cmds_CXX
19600archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19601
19602# Commands used to build a loadable module if different from building
19603# a shared archive.
19604module_cmds=$lt_module_cmds_CXX
19605module_expsym_cmds=$lt_module_expsym_cmds_CXX
19606
19607# Whether we are building with GNU ld or not.
19608with_gnu_ld=$lt_with_gnu_ld_CXX
19609
19610# Flag that allows shared libraries with undefined symbols to be built.
19611allow_undefined_flag=$lt_allow_undefined_flag_CXX
19612
19613# Flag that enforces no undefined symbols.
19614no_undefined_flag=$lt_no_undefined_flag_CXX
19615
19616# Flag to hardcode \$libdir into a binary during linking.
19617# This must work even if \$libdir does not exist
19618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19619
19620# If ld is used when linking, flag to hardcode \$libdir into a binary
19621# during linking.  This must work even if \$libdir does not exist.
19622hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19623
19624# Whether we need a single "-rpath" flag with a separated argument.
19625hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19626
19627# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19628# DIR into the resulting binary.
19629hardcode_direct=$hardcode_direct_CXX
19630
19631# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19632# DIR into the resulting binary and the resulting library dependency is
19633# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19634# library is relocated.
19635hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19636
19637# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19638# into the resulting binary.
19639hardcode_minus_L=$hardcode_minus_L_CXX
19640
19641# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19642# into the resulting binary.
19643hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19644
19645# Set to "yes" if building a shared library automatically hardcodes DIR
19646# into the library and all subsequent libraries and executables linked
19647# against it.
19648hardcode_automatic=$hardcode_automatic_CXX
19649
19650# Set to yes if linker adds runtime paths of dependent libraries
19651# to runtime path list.
19652inherit_rpath=$inherit_rpath_CXX
19653
19654# Whether libtool must link a program against all its dependency libraries.
19655link_all_deplibs=$link_all_deplibs_CXX
19656
19657# Fix the shell variable \$srcfile for the compiler.
19658fix_srcfile_path=$lt_fix_srcfile_path_CXX
19659
19660# Set to "yes" if exported symbols are required.
19661always_export_symbols=$always_export_symbols_CXX
19662
19663# The commands to list exported symbols.
19664export_symbols_cmds=$lt_export_symbols_cmds_CXX
19665
19666# Symbols that should not be listed in the preloaded symbols.
19667exclude_expsyms=$lt_exclude_expsyms_CXX
19668
19669# Symbols that must always be exported.
19670include_expsyms=$lt_include_expsyms_CXX
19671
19672# Commands necessary for linking programs (against libraries) with templates.
19673prelink_cmds=$lt_prelink_cmds_CXX
19674
19675# Specify filename containing input files.
19676file_list_spec=$lt_file_list_spec_CXX
19677
19678# How to hardcode a shared library path into an executable.
19679hardcode_action=$hardcode_action_CXX
19680
19681# The directories searched by this compiler when creating a shared library.
19682compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19683
19684# Dependencies to place before and after the objects being linked to
19685# create a shared library.
19686predep_objects=$lt_predep_objects_CXX
19687postdep_objects=$lt_postdep_objects_CXX
19688predeps=$lt_predeps_CXX
19689postdeps=$lt_postdeps_CXX
19690
19691# The library search path used internally by the compiler when linking
19692# a shared library.
19693compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19694
19695# ### END LIBTOOL TAG CONFIG: CXX
19696_LT_EOF
19697
19698 ;;
19699    "default-1":C)
19700    for ac_file in $CONFIG_FILES; do
19701      # Support "outfile[:infile[:infile...]]"
19702      case "$ac_file" in
19703        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19704      esac
19705      # PO directories have a Makefile.in generated from Makefile.in.in.
19706      case "$ac_file" in */Makefile.in)
19707        # Adjust a relative srcdir.
19708        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19709        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19710        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19711        # In autoconf-2.13 it is called $ac_given_srcdir.
19712        # In autoconf-2.50 it is called $srcdir.
19713        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19714        case "$ac_given_srcdir" in
19715          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19716          /*) top_srcdir="$ac_given_srcdir" ;;
19717          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19718        esac
19719        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19720          rm -f "$ac_dir/POTFILES"
19721          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19722          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19723          POMAKEFILEDEPS="POTFILES.in"
19724          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19725          # on $ac_dir but don't depend on user-specified configuration
19726          # parameters.
19727          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19728            # The LINGUAS file contains the set of available languages.
19729            if test -n "$OBSOLETE_ALL_LINGUAS"; then
19730              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19731            fi
19732            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19733            # Hide the ALL_LINGUAS assigment from automake.
19734            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19735            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19736          else
19737            # The set of available languages was given in configure.in.
19738            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19739          fi
19740          case "$ac_given_srcdir" in
19741            .) srcdirpre= ;;
19742            *) srcdirpre='$(srcdir)/' ;;
19743          esac
19744          POFILES=
19745          GMOFILES=
19746          UPDATEPOFILES=
19747          DUMMYPOFILES=
19748          for lang in $ALL_LINGUAS; do
19749            POFILES="$POFILES $srcdirpre$lang.po"
19750            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19751            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19752            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19753          done
19754          # CATALOGS depends on both $ac_dir and the user's LINGUAS
19755          # environment variable.
19756          INST_LINGUAS=
19757          if test -n "$ALL_LINGUAS"; then
19758            for presentlang in $ALL_LINGUAS; do
19759              useit=no
19760              if test "%UNSET%" != "$LINGUAS"; then
19761                desiredlanguages="$LINGUAS"
19762              else
19763                desiredlanguages="$ALL_LINGUAS"
19764              fi
19765              for desiredlang in $desiredlanguages; do
19766                # Use the presentlang catalog if desiredlang is
19767                #   a. equal to presentlang, or
19768                #   b. a variant of presentlang (because in this case,
19769                #      presentlang can be used as a fallback for messages
19770                #      which are not translated in the desiredlang catalog).
19771                case "$desiredlang" in
19772                  "$presentlang"*) useit=yes;;
19773                esac
19774              done
19775              if test $useit = yes; then
19776                INST_LINGUAS="$INST_LINGUAS $presentlang"
19777              fi
19778            done
19779          fi
19780          CATALOGS=
19781          if test -n "$INST_LINGUAS"; then
19782            for lang in $INST_LINGUAS; do
19783              CATALOGS="$CATALOGS $lang.gmo"
19784            done
19785          fi
19786          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19787          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19788          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19789            if test -f "$f"; then
19790              case "$f" in
19791                *.orig | *.bak | *~) ;;
19792                *) cat "$f" >> "$ac_dir/Makefile" ;;
19793              esac
19794            fi
19795          done
19796        fi
19797        ;;
19798      esac
19799    done ;;
19800
19801  esac
19802done # for ac_tag
19803
19804
19805as_fn_exit 0
19806_ACEOF
19807ac_clean_files=$ac_clean_files_save
19808
19809test $ac_write_fail = 0 ||
19810  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19811
19812
19813# configure is writing to config.log, and then calls config.status.
19814# config.status does its own redirection, appending to config.log.
19815# Unfortunately, on DOS this fails, as config.log is still kept open
19816# by configure, so config.status won't be able to write to it; its
19817# output is simply discarded.  So we exec the FD to /dev/null,
19818# effectively closing config.log, so it can be properly (re)opened and
19819# appended to by config.status.  When coming back to configure, we
19820# need to make the FD available again.
19821if test "$no_create" != yes; then
19822  ac_cs_success=:
19823  ac_config_status_args=
19824  test "$silent" = yes &&
19825    ac_config_status_args="$ac_config_status_args --quiet"
19826  exec 5>/dev/null
19827  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19828  exec 5>>config.log
19829  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19830  # would make configure fail if this is the last instruction.
19831  $ac_cs_success || as_fn_exit $?
19832fi
19833if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19835$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19836fi
19837
19838