configure revision 1.5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for ld 2.27.
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.27'
560PACKAGE_STRING='ld 2.27'
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
611elf_plt_unwind_list_options
612elf_shlib_list_options
613elf_list_options
614STRINGIFY
615enable_initfini_array
616ENABLE_PLUGINS_FALSE
617ENABLE_PLUGINS_TRUE
618NATIVE_LIB_DIRS
619HOSTING_SLIBS
620HOSTING_LIBS
621HOSTING_SCRT0
622HOSTING_CRT0
623HDEFINES
624do_compare
625GENINSRC_NEVER_FALSE
626GENINSRC_NEVER_TRUE
627LEXLIB
628LEX_OUTPUT_ROOT
629LEX
630YFLAGS
631YACC
632MSGMERGE
633MSGFMT
634MKINSTALLDIRS
635CATOBJEXT
636GENCAT
637INSTOBJEXT
638DATADIRNAME
639CATALOGS
640POSUB
641GMSGFMT
642XGETTEXT
643INCINTL
644LIBINTL_DEP
645LIBINTL
646USE_NLS
647WARN_WRITE_STRINGS
648NO_WERROR
649WARN_CFLAGS
650installed_linker
651install_as_default
652TARGET_SYSTEM_ROOT_DEFINE
653TARGET_SYSTEM_ROOT
654use_sysroot
655CXXCPP
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
661RANLIB
662AR
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670SED
671LIBTOOL
672EGREP
673CPP
674GREP
675am__fastdepCXX_FALSE
676am__fastdepCXX_TRUE
677CXXDEPMODE
678ac_ct_CXX
679CXXFLAGS
680CXX
681MAINT
682MAINTAINER_MODE_FALSE
683MAINTAINER_MODE_TRUE
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694am__untar
695am__tar
696AMTAR
697am__leading_dot
698SET_MAKE
699AWK
700mkdir_p
701MKDIR_P
702INSTALL_STRIP_PROGRAM
703STRIP
704install_sh
705MAKEINFO
706AUTOHEADER
707AUTOMAKE
708AUTOCONF
709ACLOCAL
710VERSION
711PACKAGE
712CYGPATH_W
713am__isrc
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732build_os
733build_vendor
734build_cpu
735build
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files='TDIRS'
775ac_user_opts='
776enable_option_checking
777enable_dependency_tracking
778enable_maintainer_mode
779enable_shared
780enable_static
781with_pic
782enable_fast_install
783with_gnu_ld
784enable_libtool_lock
785enable_plugins
786enable_largefile
787with_lib_path
788enable_targets
789enable_64_bit_bfd
790with_sysroot
791enable_gold
792enable_got
793enable_compressed_debug_sections
794enable_relro
795enable_werror
796enable_build_warnings
797enable_nls
798enable_initfini_array
799'
800      ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
811CPP
812CXXCPP
813YACC
814YFLAGS'
815
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820ac_unrecognized_opts=
821ac_unrecognized_sep=
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
864
865ac_prev=
866ac_dashdash=
867for ac_option
868do
869  # If the previous option needs an argument, assign it.
870  if test -n "$ac_prev"; then
871    eval $ac_prev=\$ac_option
872    ac_prev=
873    continue
874  fi
875
876  case $ac_option in
877  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878  *)	ac_optarg=yes ;;
879  esac
880
881  # Accept the important Cygnus configure options, so we can diagnose typos.
882
883  case $ac_dashdash$ac_option in
884  --)
885    ac_dashdash=yes ;;
886
887  -bindir | --bindir | --bindi | --bind | --bin | --bi)
888    ac_prev=bindir ;;
889  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890    bindir=$ac_optarg ;;
891
892  -build | --build | --buil | --bui | --bu)
893    ac_prev=build_alias ;;
894  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895    build_alias=$ac_optarg ;;
896
897  -cache-file | --cache-file | --cache-fil | --cache-fi \
898  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899    ac_prev=cache_file ;;
900  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902    cache_file=$ac_optarg ;;
903
904  --config-cache | -C)
905    cache_file=config.cache ;;
906
907  -datadir | --datadir | --datadi | --datad)
908    ac_prev=datadir ;;
909  -datadir=* | --datadir=* | --datadi=* | --datad=*)
910    datadir=$ac_optarg ;;
911
912  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913  | --dataroo | --dataro | --datar)
914    ac_prev=datarootdir ;;
915  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917    datarootdir=$ac_optarg ;;
918
919  -disable-* | --disable-*)
920    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921    # Reject names that are not valid shell variable names.
922    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923      as_fn_error "invalid feature name: $ac_useropt"
924    ac_useropt_orig=$ac_useropt
925    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926    case $ac_user_opts in
927      *"
928"enable_$ac_useropt"
929"*) ;;
930      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931	 ac_unrecognized_sep=', ';;
932    esac
933    eval enable_$ac_useropt=no ;;
934
935  -docdir | --docdir | --docdi | --doc | --do)
936    ac_prev=docdir ;;
937  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938    docdir=$ac_optarg ;;
939
940  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941    ac_prev=dvidir ;;
942  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943    dvidir=$ac_optarg ;;
944
945  -enable-* | --enable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error "invalid feature name: $ac_useropt"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=\$ac_optarg ;;
960
961  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963  | --exec | --exe | --ex)
964    ac_prev=exec_prefix ;;
965  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967  | --exec=* | --exe=* | --ex=*)
968    exec_prefix=$ac_optarg ;;
969
970  -gas | --gas | --ga | --g)
971    # Obsolete; use --with-gas.
972    with_gas=yes ;;
973
974  -help | --help | --hel | --he | -h)
975    ac_init_help=long ;;
976  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977    ac_init_help=recursive ;;
978  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979    ac_init_help=short ;;
980
981  -host | --host | --hos | --ho)
982    ac_prev=host_alias ;;
983  -host=* | --host=* | --hos=* | --ho=*)
984    host_alias=$ac_optarg ;;
985
986  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987    ac_prev=htmldir ;;
988  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989  | --ht=*)
990    htmldir=$ac_optarg ;;
991
992  -includedir | --includedir | --includedi | --included | --include \
993  | --includ | --inclu | --incl | --inc)
994    ac_prev=includedir ;;
995  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996  | --includ=* | --inclu=* | --incl=* | --inc=*)
997    includedir=$ac_optarg ;;
998
999  -infodir | --infodir | --infodi | --infod | --info | --inf)
1000    ac_prev=infodir ;;
1001  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002    infodir=$ac_optarg ;;
1003
1004  -libdir | --libdir | --libdi | --libd)
1005    ac_prev=libdir ;;
1006  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007    libdir=$ac_optarg ;;
1008
1009  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010  | --libexe | --libex | --libe)
1011    ac_prev=libexecdir ;;
1012  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013  | --libexe=* | --libex=* | --libe=*)
1014    libexecdir=$ac_optarg ;;
1015
1016  -localedir | --localedir | --localedi | --localed | --locale)
1017    ac_prev=localedir ;;
1018  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019    localedir=$ac_optarg ;;
1020
1021  -localstatedir | --localstatedir | --localstatedi | --localstated \
1022  | --localstate | --localstat | --localsta | --localst | --locals)
1023    ac_prev=localstatedir ;;
1024  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026    localstatedir=$ac_optarg ;;
1027
1028  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029    ac_prev=mandir ;;
1030  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031    mandir=$ac_optarg ;;
1032
1033  -nfp | --nfp | --nf)
1034    # Obsolete; use --without-fp.
1035    with_fp=no ;;
1036
1037  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038  | --no-cr | --no-c | -n)
1039    no_create=yes ;;
1040
1041  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043    no_recursion=yes ;;
1044
1045  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047  | --oldin | --oldi | --old | --ol | --o)
1048    ac_prev=oldincludedir ;;
1049  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052    oldincludedir=$ac_optarg ;;
1053
1054  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055    ac_prev=prefix ;;
1056  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057    prefix=$ac_optarg ;;
1058
1059  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060  | --program-pre | --program-pr | --program-p)
1061    ac_prev=program_prefix ;;
1062  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064    program_prefix=$ac_optarg ;;
1065
1066  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067  | --program-suf | --program-su | --program-s)
1068    ac_prev=program_suffix ;;
1069  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071    program_suffix=$ac_optarg ;;
1072
1073  -program-transform-name | --program-transform-name \
1074  | --program-transform-nam | --program-transform-na \
1075  | --program-transform-n | --program-transform- \
1076  | --program-transform | --program-transfor \
1077  | --program-transfo | --program-transf \
1078  | --program-trans | --program-tran \
1079  | --progr-tra | --program-tr | --program-t)
1080    ac_prev=program_transform_name ;;
1081  -program-transform-name=* | --program-transform-name=* \
1082  | --program-transform-nam=* | --program-transform-na=* \
1083  | --program-transform-n=* | --program-transform-=* \
1084  | --program-transform=* | --program-transfor=* \
1085  | --program-transfo=* | --program-transf=* \
1086  | --program-trans=* | --program-tran=* \
1087  | --progr-tra=* | --program-tr=* | --program-t=*)
1088    program_transform_name=$ac_optarg ;;
1089
1090  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091    ac_prev=pdfdir ;;
1092  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093    pdfdir=$ac_optarg ;;
1094
1095  -psdir | --psdir | --psdi | --psd | --ps)
1096    ac_prev=psdir ;;
1097  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098    psdir=$ac_optarg ;;
1099
1100  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101  | -silent | --silent | --silen | --sile | --sil)
1102    silent=yes ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=\$ac_optarg ;;
1164
1165  -without-* | --without-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=no ;;
1180
1181  --x)
1182    # Obsolete; use --with-x.
1183    with_x=yes ;;
1184
1185  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186  | --x-incl | --x-inc | --x-in | --x-i)
1187    ac_prev=x_includes ;;
1188  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190    x_includes=$ac_optarg ;;
1191
1192  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194    ac_prev=x_libraries ;;
1195  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197    x_libraries=$ac_optarg ;;
1198
1199  -*) as_fn_error "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information."
1201    ;;
1202
1203  *=*)
1204    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205    # Reject names that are not valid shell variable names.
1206    case $ac_envvar in #(
1207      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209    esac
1210    eval $ac_envvar=\$ac_optarg
1211    export $ac_envvar ;;
1212
1213  *)
1214    # FIXME: should be removed in autoconf 3.0.
1215    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219    ;;
1220
1221  esac
1222done
1223
1224if test -n "$ac_prev"; then
1225  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226  as_fn_error "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230  case $enable_option_checking in
1231    no) ;;
1232    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234  esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239		datadir sysconfdir sharedstatedir localstatedir includedir \
1240		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241		libdir localedir mandir
1242do
1243  eval ac_val=\$$ac_var
1244  # Remove trailing slashes.
1245  case $ac_val in
1246    */ )
1247      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248      eval $ac_var=\$ac_val;;
1249  esac
1250  # Be sure to have absolute directory names.
1251  case $ac_val in
1252    [\\/$]* | ?:[\\/]* )  continue;;
1253    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254  esac
1255  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267  if test "x$build_alias" = x; then
1268    cross_compiling=maybe
1269    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270    If a cross compiler is detected then cross compile mode will be used." >&2
1271  elif test "x$build_alias" != "x$host_alias"; then
1272    cross_compiling=yes
1273  fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285  as_fn_error "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287  as_fn_error "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292  ac_srcdir_defaulted=yes
1293  # Try the directory containing this script, then the parent directory.
1294  ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296	 X"$as_myself" : 'X\(//\)[^/]' \| \
1297	 X"$as_myself" : 'X\(//\)$' \| \
1298	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)[^/].*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\).*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  s/.*/./; q'`
1317  srcdir=$ac_confdir
1318  if test ! -r "$srcdir/$ac_unique_file"; then
1319    srcdir=..
1320  fi
1321else
1322  ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331	pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334  srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_env_${ac_var}_value=\$${ac_var}
1345  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353  # Omit some internal or obsolete options to make the list less imposing.
1354  # This message is too long to be a string in the A/UX 3.1 sh.
1355  cat <<_ACEOF
1356\`configure' configures ld 2.27 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366  -h, --help              display this help and exit
1367      --help=short        display options specific to this package
1368      --help=recursive    display the short help of all the included packages
1369  -V, --version           display version information and exit
1370  -q, --quiet, --silent   do not print \`checking...' messages
1371      --cache-file=FILE   cache test results in FILE [disabled]
1372  -C, --config-cache      alias for \`--cache-file=config.cache'
1373  -n, --no-create         do not create output files
1374      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377  --prefix=PREFIX         install architecture-independent files in PREFIX
1378                          [$ac_default_prefix]
1379  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                          [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390  --bindir=DIR            user executables [EPREFIX/bin]
1391  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392  --libexecdir=DIR        program executables [EPREFIX/libexec]
1393  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/ld]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421  --target=TARGET   configure for building compilers for TARGET [HOST]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426  case $ac_init_help in
1427     short | recursive ) echo "Configuration of ld 2.27:";;
1428   esac
1429  cat <<\_ACEOF
1430
1431Optional Features:
1432  --disable-option-checking  ignore unrecognized --enable/--with options
1433  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435  --disable-dependency-tracking  speeds up one-time build
1436  --enable-dependency-tracking   do not reject slow dependency extractors
1437  --enable-maintainer-mode  enable make rules and dependencies not useful
1438			  (and sometimes confusing) to the casual installer
1439  --enable-shared[=PKGS]  build shared libraries [default=yes]
1440  --enable-static[=PKGS]  build static libraries [default=yes]
1441  --enable-fast-install[=PKGS]
1442                          optimize for fast installation [default=yes]
1443  --disable-libtool-lock  avoid locking (might break parallel builds)
1444  --enable-plugins        Enable support for plugins
1445  --disable-largefile     omit support for large files
1446  --enable-targets        alternative target configurations
1447  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1448  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1449  --enable-got=<type>     GOT handling scheme (target, single, negative,
1450                          multigot)
1451  --enable-compressed-debug-sections={all,ld,none}
1452                          compress debug sections by default]
1453  --enable-relro          enable -z relro in ELF linker by default
1454  --enable-werror         treat compile warnings as errors
1455  --enable-build-warnings enable build-time compiler warnings
1456  --disable-nls           do not use Native Language Support
1457  --enable-initfini-array	use .init_array/.fini_array sections
1458
1459Optional Packages:
1460  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462  --with-pic              try to use only PIC/non-PIC objects [default=use
1463                          both]
1464  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465  --with-lib-path=dir1:dir2...  set default LIB_PATH
1466  --with-sysroot=DIR Search for usr/lib et al within DIR.
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CXX         C++ compiler command
1477  CXXFLAGS    C++ compiler flags
1478  CPP         C preprocessor
1479  CXXCPP      C++ preprocessor
1480  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1481              the first program found out of: `bison -y', `byacc', `yacc'.
1482  YFLAGS      The list of arguments that will be passed by default to $YACC.
1483              This script will default YFLAGS to the empty string to avoid a
1484              default value of `-d' given by some make applications.
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to the package provider.
1490_ACEOF
1491ac_status=$?
1492fi
1493
1494if test "$ac_init_help" = "recursive"; then
1495  # If there are subdirs, report their specific --help.
1496  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497    test -d "$ac_dir" ||
1498      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499      continue
1500    ac_builddir=.
1501
1502case "$ac_dir" in
1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504*)
1505  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506  # A ".." for each directory in $ac_dir_suffix.
1507  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508  case $ac_top_builddir_sub in
1509  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511  esac ;;
1512esac
1513ac_abs_top_builddir=$ac_pwd
1514ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515# for backward compatibility:
1516ac_top_builddir=$ac_top_build_prefix
1517
1518case $srcdir in
1519  .)  # We are building in place.
1520    ac_srcdir=.
1521    ac_top_srcdir=$ac_top_builddir_sub
1522    ac_abs_top_srcdir=$ac_pwd ;;
1523  [\\/]* | ?:[\\/]* )  # Absolute name.
1524    ac_srcdir=$srcdir$ac_dir_suffix;
1525    ac_top_srcdir=$srcdir
1526    ac_abs_top_srcdir=$srcdir ;;
1527  *) # Relative name.
1528    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529    ac_top_srcdir=$ac_top_build_prefix$srcdir
1530    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531esac
1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534    cd "$ac_dir" || { ac_status=$?; continue; }
1535    # Check for guested configure.
1536    if test -f "$ac_srcdir/configure.gnu"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539    elif test -f "$ac_srcdir/configure"; then
1540      echo &&
1541      $SHELL "$ac_srcdir/configure" --help=recursive
1542    else
1543      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544    fi || ac_status=$?
1545    cd "$ac_pwd" || { ac_status=$?; break; }
1546  done
1547fi
1548
1549test -n "$ac_init_help" && exit $ac_status
1550if $ac_init_version; then
1551  cat <<\_ACEOF
1552ld configure 2.27
1553generated by GNU Autoconf 2.64
1554
1555Copyright (C) 2009 Free Software Foundation, Inc.
1556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
1558_ACEOF
1559  exit
1560fi
1561
1562## ------------------------ ##
1563## Autoconf initialization. ##
1564## ------------------------ ##
1565
1566# ac_fn_c_try_compile LINENO
1567# --------------------------
1568# Try to compile conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_compile ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  rm -f conftest.$ac_objext
1573  if { { ac_try="$ac_compile"
1574case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_compile") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } && {
1589	 test -z "$ac_c_werror_flag" ||
1590	 test ! -s conftest.err
1591       } && test -s conftest.$ac_objext; then :
1592  ac_retval=0
1593else
1594  $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597	ac_retval=1
1598fi
1599  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600  return $ac_retval
1601
1602} # ac_fn_c_try_compile
1603
1604# ac_fn_c_try_link LINENO
1605# -----------------------
1606# Try to link conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_link ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  rm -f conftest.$ac_objext conftest$ac_exeext
1611  if { { ac_try="$ac_link"
1612case "(($ac_try" in
1613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614  *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618  (eval "$ac_link") 2>conftest.err
1619  ac_status=$?
1620  if test -s conftest.err; then
1621    grep -v '^ *+' conftest.err >conftest.er1
1622    cat conftest.er1 >&5
1623    mv -f conftest.er1 conftest.err
1624  fi
1625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626  test $ac_status = 0; } && {
1627	 test -z "$ac_c_werror_flag" ||
1628	 test ! -s conftest.err
1629       } && test -s conftest$ac_exeext && {
1630	 test "$cross_compiling" = yes ||
1631	 $as_test_x conftest$ac_exeext
1632       }; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638	ac_retval=1
1639fi
1640  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642  # interfere with the next link command; also delete a directory that is
1643  # left behind by Apple's compiler.  We do this before executing the actions.
1644  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646  return $ac_retval
1647
1648} # ac_fn_c_try_link
1649
1650# ac_fn_cxx_try_compile LINENO
1651# ----------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_cxx_try_compile ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  rm -f conftest.$ac_objext
1657  if { { ac_try="$ac_compile"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_compile") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && {
1673	 test -z "$ac_cxx_werror_flag" ||
1674	 test ! -s conftest.err
1675       } && test -s conftest.$ac_objext; then :
1676  ac_retval=0
1677else
1678  $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681	ac_retval=1
1682fi
1683  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684  return $ac_retval
1685
1686} # ac_fn_cxx_try_compile
1687
1688# ac_fn_c_try_cpp LINENO
1689# ----------------------
1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_cpp ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  if { { ac_try="$ac_cpp conftest.$ac_ext"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702  ac_status=$?
1703  if test -s conftest.err; then
1704    grep -v '^ *+' conftest.err >conftest.er1
1705    cat conftest.er1 >&5
1706    mv -f conftest.er1 conftest.err
1707  fi
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } >/dev/null && {
1710	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711	 test ! -s conftest.err
1712       }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718    ac_retval=1
1719fi
1720  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721  return $ac_retval
1722
1723} # ac_fn_c_try_cpp
1724
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737  $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743  # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752  ac_header_compiler=yes
1753else
1754  ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768  ac_header_preproc=yes
1769else
1770  ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So?  What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778  yes:no: )
1779    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783    ;;
1784  no:yes:* )
1785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795    ;;
1796esac
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800  $as_echo_n "(cached) " >&6
1801else
1802  eval "$3=\$ac_header_compiler"
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807fi
1808  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_mongrel
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_link") 2>&5
1827  ac_status=$?
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830  { { case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_try") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; }; }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: program exited with status $ac_status" >&5
1843       $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846       ac_retval=$ac_status
1847fi
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850  return $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855# -------------------------------------------------------
1856# Tests whether HEADER exists and can be compiled using the include files in
1857# INCLUDES, setting the cache variable VAR accordingly.
1858ac_fn_c_check_header_compile ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868$4
1869#include <$2>
1870_ACEOF
1871if ac_fn_c_try_compile "$LINENO"; then :
1872  eval "$3=yes"
1873else
1874  eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883} # ac_fn_c_check_header_compile
1884
1885# ac_fn_c_check_func LINENO FUNC VAR
1886# ----------------------------------
1887# Tests whether FUNC exists, setting the cache variable VAR accordingly
1888ac_fn_c_check_func ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894  $as_echo_n "(cached) " >&6
1895else
1896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h.  */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1900#define $2 innocuous_$2
1901
1902/* System header to define __stub macros and hopefully few prototypes,
1903    which can conflict with char $2 (); below.
1904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905    <limits.h> exists even on freestanding compilers.  */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916   Use char because int might match the return type of a GCC
1917   builtin and then its argument prototype would still apply.  */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923    to always fail with ENOSYS.  Some functions are actually named
1924    something starting with __ and the normal name is an alias.  */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938  eval "$3=yes"
1939else
1940  eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943    conftest$ac_exeext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950} # ac_fn_c_check_func
1951
1952# ac_fn_cxx_try_cpp LINENO
1953# ------------------------
1954# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_cpp ()
1956{
1957  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958  if { { ac_try="$ac_cpp conftest.$ac_ext"
1959case "(($ac_try" in
1960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961  *) ac_try_echo=$ac_try;;
1962esac
1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964$as_echo "$ac_try_echo"; } >&5
1965  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966  ac_status=$?
1967  if test -s conftest.err; then
1968    grep -v '^ *+' conftest.err >conftest.er1
1969    cat conftest.er1 >&5
1970    mv -f conftest.er1 conftest.err
1971  fi
1972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973  test $ac_status = 0; } >/dev/null && {
1974	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975	 test ! -s conftest.err
1976       }; then :
1977  ac_retval=0
1978else
1979  $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982    ac_retval=1
1983fi
1984  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985  return $ac_retval
1986
1987} # ac_fn_cxx_try_cpp
1988
1989# ac_fn_cxx_try_link LINENO
1990# -------------------------
1991# Try to link conftest.$ac_ext, and return whether this succeeded.
1992ac_fn_cxx_try_link ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  rm -f conftest.$ac_objext conftest$ac_exeext
1996  if { { ac_try="$ac_link"
1997case "(($ac_try" in
1998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999  *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003  (eval "$ac_link") 2>conftest.err
2004  ac_status=$?
2005  if test -s conftest.err; then
2006    grep -v '^ *+' conftest.err >conftest.er1
2007    cat conftest.er1 >&5
2008    mv -f conftest.er1 conftest.err
2009  fi
2010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011  test $ac_status = 0; } && {
2012	 test -z "$ac_cxx_werror_flag" ||
2013	 test ! -s conftest.err
2014       } && test -s conftest$ac_exeext && {
2015	 test "$cross_compiling" = yes ||
2016	 $as_test_x conftest$ac_exeext
2017       }; then :
2018  ac_retval=0
2019else
2020  $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023	ac_retval=1
2024fi
2025  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027  # interfere with the next link command; also delete a directory that is
2028  # left behind by Apple's compiler.  We do this before executing the actions.
2029  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031  return $ac_retval
2032
2033} # ac_fn_cxx_try_link
2034
2035# ac_fn_c_check_decl LINENO SYMBOL VAR
2036# ------------------------------------
2037# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2038ac_fn_c_check_decl ()
2039{
2040  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041  as_decl_name=`echo $2|sed 's/ *(.*//'`
2042  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2044$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2045if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2046  $as_echo_n "(cached) " >&6
2047else
2048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051int
2052main ()
2053{
2054#ifndef $as_decl_name
2055#ifdef __cplusplus
2056  (void) $as_decl_use;
2057#else
2058  (void) $as_decl_name;
2059#endif
2060#endif
2061
2062  ;
2063  return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067  eval "$3=yes"
2068else
2069  eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077
2078} # ac_fn_c_check_decl
2079
2080# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081# --------------------------------------------
2082# Tries to find the compile-time value of EXPR in a program that includes
2083# INCLUDES, setting VAR accordingly. Returns whether the value could be
2084# computed
2085ac_fn_c_compute_int ()
2086{
2087  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088  if test "$cross_compiling" = yes; then
2089    # Depending upon the size, compute the lo and hi bounds.
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) >= 0)];
2097test_array [0] = 0
2098
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104  ac_lo=0 ac_mid=0
2105  while :; do
2106    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113test_array [0] = 0
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120  ac_hi=$ac_mid; break
2121else
2122  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123			if test $ac_lo -le $ac_mid; then
2124			  ac_lo= ac_hi=
2125			  break
2126			fi
2127			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130  done
2131else
2132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) < 0)];
2139test_array [0] = 0
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146  ac_hi=-1 ac_mid=-1
2147  while :; do
2148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$4
2151int
2152main ()
2153{
2154static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2155test_array [0] = 0
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162  ac_lo=$ac_mid; break
2163else
2164  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165			if test $ac_mid -le $ac_hi; then
2166			  ac_lo= ac_hi=
2167			  break
2168			fi
2169			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172  done
2173else
2174  ac_lo= ac_hi=
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179# Binary search between lo and hi bounds.
2180while test "x$ac_lo" != "x$ac_hi"; do
2181  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189test_array [0] = 0
2190
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196  ac_hi=$ac_mid
2197else
2198  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201done
2202case $ac_lo in #((
2203?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204'') ac_retval=1 ;;
2205esac
2206  else
2207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210static long int longval () { return $2; }
2211static unsigned long int ulongval () { return $2; }
2212#include <stdio.h>
2213#include <stdlib.h>
2214int
2215main ()
2216{
2217
2218  FILE *f = fopen ("conftest.val", "w");
2219  if (! f)
2220    return 1;
2221  if (($2) < 0)
2222    {
2223      long int i = longval ();
2224      if (i != ($2))
2225	return 1;
2226      fprintf (f, "%ld", i);
2227    }
2228  else
2229    {
2230      unsigned long int i = ulongval ();
2231      if (i != ($2))
2232	return 1;
2233      fprintf (f, "%lu", i);
2234    }
2235  /* Do not output a trailing newline, as this causes \r\n confusion
2236     on some platforms.  */
2237  return ferror (f) || fclose (f) != 0;
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_run "$LINENO"; then :
2244  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245else
2246  ac_retval=1
2247fi
2248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249  conftest.$ac_objext conftest.beam conftest.$ac_ext
2250rm -f conftest.val
2251
2252  fi
2253  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254  return $ac_retval
2255
2256} # ac_fn_c_compute_int
2257cat >config.log <<_ACEOF
2258This file contains any messages produced by compilers while
2259running configure, to aid debugging if configure makes a mistake.
2260
2261It was created by ld $as_me 2.27, which was
2262generated by GNU Autoconf 2.64.  Invocation command line was
2263
2264  $ $0 $@
2265
2266_ACEOF
2267exec 5>>config.log
2268{
2269cat <<_ASUNAME
2270## --------- ##
2271## Platform. ##
2272## --------- ##
2273
2274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2282
2283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2290
2291_ASUNAME
2292
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296  IFS=$as_save_IFS
2297  test -z "$as_dir" && as_dir=.
2298    $as_echo "PATH: $as_dir"
2299  done
2300IFS=$as_save_IFS
2301
2302} >&5
2303
2304cat >&5 <<_ACEOF
2305
2306
2307## ----------- ##
2308## Core tests. ##
2309## ----------- ##
2310
2311_ACEOF
2312
2313
2314# Keep a trace of the command line.
2315# Strip out --no-create and --no-recursion so they do not pile up.
2316# Strip out --silent because we don't want to record it for future runs.
2317# Also quote any args containing shell meta-characters.
2318# Make two passes to allow for proper duplicate-argument suppression.
2319ac_configure_args=
2320ac_configure_args0=
2321ac_configure_args1=
2322ac_must_keep_next=false
2323for ac_pass in 1 2
2324do
2325  for ac_arg
2326  do
2327    case $ac_arg in
2328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330    | -silent | --silent | --silen | --sile | --sil)
2331      continue ;;
2332    *\'*)
2333      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334    esac
2335    case $ac_pass in
2336    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337    2)
2338      as_fn_append ac_configure_args1 " '$ac_arg'"
2339      if test $ac_must_keep_next = true; then
2340	ac_must_keep_next=false # Got value, back to normal.
2341      else
2342	case $ac_arg in
2343	  *=* | --config-cache | -C | -disable-* | --disable-* \
2344	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346	  | -with-* | --with-* | -without-* | --without-* | --x)
2347	    case "$ac_configure_args0 " in
2348	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349	    esac
2350	    ;;
2351	  -* ) ac_must_keep_next=true ;;
2352	esac
2353      fi
2354      as_fn_append ac_configure_args " '$ac_arg'"
2355      ;;
2356    esac
2357  done
2358done
2359{ ac_configure_args0=; unset ac_configure_args0;}
2360{ ac_configure_args1=; unset ac_configure_args1;}
2361
2362# When interrupted or exit'd, cleanup temporary files, and complete
2363# config.log.  We remove comments because anyway the quotes in there
2364# would cause problems or look ugly.
2365# WARNING: Use '\'' to represent an apostrophe within the trap.
2366# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367trap 'exit_status=$?
2368  # Save into config.log some information that might help in debugging.
2369  {
2370    echo
2371
2372    cat <<\_ASBOX
2373## ---------------- ##
2374## Cache variables. ##
2375## ---------------- ##
2376_ASBOX
2377    echo
2378    # The following way of writing the cache mishandles newlines in values,
2379(
2380  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381    eval ac_val=\$$ac_var
2382    case $ac_val in #(
2383    *${as_nl}*)
2384      case $ac_var in #(
2385      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387      esac
2388      case $ac_var in #(
2389      _ | IFS | as_nl) ;; #(
2390      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391      *) { eval $ac_var=; unset $ac_var;} ;;
2392      esac ;;
2393    esac
2394  done
2395  (set) 2>&1 |
2396    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397    *${as_nl}ac_space=\ *)
2398      sed -n \
2399	"s/'\''/'\''\\\\'\'''\''/g;
2400	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401      ;; #(
2402    *)
2403      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404      ;;
2405    esac |
2406    sort
2407)
2408    echo
2409
2410    cat <<\_ASBOX
2411## ----------------- ##
2412## Output variables. ##
2413## ----------------- ##
2414_ASBOX
2415    echo
2416    for ac_var in $ac_subst_vars
2417    do
2418      eval ac_val=\$$ac_var
2419      case $ac_val in
2420      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421      esac
2422      $as_echo "$ac_var='\''$ac_val'\''"
2423    done | sort
2424    echo
2425
2426    if test -n "$ac_subst_files"; then
2427      cat <<\_ASBOX
2428## ------------------- ##
2429## File substitutions. ##
2430## ------------------- ##
2431_ASBOX
2432      echo
2433      for ac_var in $ac_subst_files
2434      do
2435	eval ac_val=\$$ac_var
2436	case $ac_val in
2437	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438	esac
2439	$as_echo "$ac_var='\''$ac_val'\''"
2440      done | sort
2441      echo
2442    fi
2443
2444    if test -s confdefs.h; then
2445      cat <<\_ASBOX
2446## ----------- ##
2447## confdefs.h. ##
2448## ----------- ##
2449_ASBOX
2450      echo
2451      cat confdefs.h
2452      echo
2453    fi
2454    test "$ac_signal" != 0 &&
2455      $as_echo "$as_me: caught signal $ac_signal"
2456    $as_echo "$as_me: exit $exit_status"
2457  } >&5
2458  rm -f core *.core core.conftest.* &&
2459    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460    exit $exit_status
2461' 0
2462for ac_signal in 1 2 13 15; do
2463  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464done
2465ac_signal=0
2466
2467# confdefs.h avoids OS command line length limits that DEFS can exceed.
2468rm -f -r conftest* confdefs.h
2469
2470$as_echo "/* confdefs.h */" > confdefs.h
2471
2472# Predefined preprocessor variables.
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_NAME "$PACKAGE_NAME"
2476_ACEOF
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480_ACEOF
2481
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_VERSION "$PACKAGE_VERSION"
2484_ACEOF
2485
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_STRING "$PACKAGE_STRING"
2488_ACEOF
2489
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492_ACEOF
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_URL "$PACKAGE_URL"
2496_ACEOF
2497
2498
2499# Let the site file select an alternate cache file if it wants to.
2500# Prefer an explicitly selected file to automatically selected ones.
2501ac_site_file1=NONE
2502ac_site_file2=NONE
2503if test -n "$CONFIG_SITE"; then
2504  ac_site_file1=$CONFIG_SITE
2505elif test "x$prefix" != xNONE; then
2506  ac_site_file1=$prefix/share/config.site
2507  ac_site_file2=$prefix/etc/config.site
2508else
2509  ac_site_file1=$ac_default_prefix/share/config.site
2510  ac_site_file2=$ac_default_prefix/etc/config.site
2511fi
2512for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513do
2514  test "x$ac_site_file" = xNONE && continue
2515  if test -r "$ac_site_file"; then
2516    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518    sed 's/^/| /' "$ac_site_file" >&5
2519    . "$ac_site_file"
2520  fi
2521done
2522
2523if test -r "$cache_file"; then
2524  # Some versions of bash will fail to source /dev/null (special
2525  # files actually), so we avoid doing that.
2526  if test -f "$cache_file"; then
2527    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528$as_echo "$as_me: loading cache $cache_file" >&6;}
2529    case $cache_file in
2530      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531      *)                      . "./$cache_file";;
2532    esac
2533  fi
2534else
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536$as_echo "$as_me: creating cache $cache_file" >&6;}
2537  >$cache_file
2538fi
2539
2540# Check that the precious variables saved in the cache have kept the same
2541# value.
2542ac_cache_corrupted=false
2543for ac_var in $ac_precious_vars; do
2544  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2545  eval ac_new_set=\$ac_env_${ac_var}_set
2546  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2547  eval ac_new_val=\$ac_env_${ac_var}_value
2548  case $ac_old_set,$ac_new_set in
2549    set,)
2550      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2551$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2552      ac_cache_corrupted=: ;;
2553    ,set)
2554      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2555$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2556      ac_cache_corrupted=: ;;
2557    ,);;
2558    *)
2559      if test "x$ac_old_val" != "x$ac_new_val"; then
2560	# differences in whitespace do not lead to failure.
2561	ac_old_val_w=`echo x $ac_old_val`
2562	ac_new_val_w=`echo x $ac_new_val`
2563	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2564	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2565$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2566	  ac_cache_corrupted=:
2567	else
2568	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2569$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2570	  eval $ac_var=\$ac_old_val
2571	fi
2572	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2573$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2574	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2575$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2576      fi;;
2577  esac
2578  # Pass precious variables to config.status.
2579  if test "$ac_new_set" = set; then
2580    case $ac_new_val in
2581    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2582    *) ac_arg=$ac_var=$ac_new_val ;;
2583    esac
2584    case " $ac_configure_args " in
2585      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2586      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2587    esac
2588  fi
2589done
2590if $ac_cache_corrupted; then
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2594$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2595  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596fi
2597## -------------------- ##
2598## Main body of script. ##
2599## -------------------- ##
2600
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609
2610
2611
2612
2613ac_aux_dir=
2614for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615  for ac_t in install-sh install.sh shtool; do
2616    if test -f "$ac_dir/$ac_t"; then
2617      ac_aux_dir=$ac_dir
2618      ac_install_sh="$ac_aux_dir/$ac_t -c"
2619      break 2
2620    fi
2621  done
2622done
2623if test -z "$ac_aux_dir"; then
2624  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2625fi
2626
2627# These three variables are undocumented and unsupported,
2628# and are intended to be withdrawn in a future Autoconf release.
2629# They can cause serious problems if a builder's source tree is in a directory
2630# whose full name contains unusual characters.
2631ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2632ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2633ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2634
2635
2636# Make sure we can run config.sub.
2637$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641$as_echo_n "checking build system type... " >&6; }
2642if test "${ac_cv_build+set}" = set; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  ac_build_alias=$build_alias
2646test "x$ac_build_alias" = x &&
2647  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648test "x$ac_build_alias" = x &&
2649  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2650ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655$as_echo "$ac_cv_build" >&6; }
2656case $ac_cv_build in
2657*-*-*) ;;
2658*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2659esac
2660build=$ac_cv_build
2661ac_save_IFS=$IFS; IFS='-'
2662set x $ac_cv_build
2663shift
2664build_cpu=$1
2665build_vendor=$2
2666shift; shift
2667# Remember, the first character of IFS is used to create $*,
2668# except with old shells:
2669build_os=$*
2670IFS=$ac_save_IFS
2671case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2672
2673
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675$as_echo_n "checking host system type... " >&6; }
2676if test "${ac_cv_host+set}" = set; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  if test "x$host_alias" = x; then
2680  ac_cv_host=$ac_cv_build
2681else
2682  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2684fi
2685
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688$as_echo "$ac_cv_host" >&6; }
2689case $ac_cv_host in
2690*-*-*) ;;
2691*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2692esac
2693host=$ac_cv_host
2694ac_save_IFS=$IFS; IFS='-'
2695set x $ac_cv_host
2696shift
2697host_cpu=$1
2698host_vendor=$2
2699shift; shift
2700# Remember, the first character of IFS is used to create $*,
2701# except with old shells:
2702host_os=$*
2703IFS=$ac_save_IFS
2704case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2705
2706
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708$as_echo_n "checking target system type... " >&6; }
2709if test "${ac_cv_target+set}" = set; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test "x$target_alias" = x; then
2713  ac_cv_target=$ac_cv_host
2714else
2715  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2717fi
2718
2719fi
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721$as_echo "$ac_cv_target" >&6; }
2722case $ac_cv_target in
2723*-*-*) ;;
2724*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2725esac
2726target=$ac_cv_target
2727ac_save_IFS=$IFS; IFS='-'
2728set x $ac_cv_target
2729shift
2730target_cpu=$1
2731target_vendor=$2
2732shift; shift
2733# Remember, the first character of IFS is used to create $*,
2734# except with old shells:
2735target_os=$*
2736IFS=$ac_save_IFS
2737case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2738
2739
2740# The aliases save the names the user supplied, while $host etc.
2741# will get canonicalized.
2742test -n "$target_alias" &&
2743  test "$program_prefix$program_suffix$program_transform_name" = \
2744    NONENONEs,x,x, &&
2745  program_prefix=${target_alias}-
2746
2747ac_ext=c
2748ac_cpp='$CPP $CPPFLAGS'
2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752if test -n "$ac_tool_prefix"; then
2753  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2754set dummy ${ac_tool_prefix}gcc; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_CC+set}" = set; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test -n "$CC"; then
2761  ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  test -z "$as_dir" && as_dir=.
2768    for ac_exec_ext in '' $ac_executable_extensions; do
2769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783$as_echo "$CC" >&6; }
2784else
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789
2790fi
2791if test -z "$ac_cv_prog_CC"; then
2792  ac_ct_CC=$CC
2793  # Extract the first word of "gcc", so it can be a program name with args.
2794set dummy gcc; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  if test -n "$ac_ct_CC"; then
2801  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_exec_ext in '' $ac_executable_extensions; do
2809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810    ac_cv_prog_ac_ct_CC="gcc"
2811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815  done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823$as_echo "$ac_ct_CC" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829  if test "x$ac_ct_CC" = x; then
2830    CC=""
2831  else
2832    case $cross_compiling:$ac_tool_warned in
2833yes:)
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836ac_tool_warned=yes ;;
2837esac
2838    CC=$ac_ct_CC
2839  fi
2840else
2841  CC="$ac_cv_prog_CC"
2842fi
2843
2844if test -z "$CC"; then
2845          if test -n "$ac_tool_prefix"; then
2846    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847set dummy ${ac_tool_prefix}cc; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if test "${ac_cv_prog_CC+set}" = set; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  if test -n "$CC"; then
2854  ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  test -z "$as_dir" && as_dir=.
2861    for ac_exec_ext in '' $ac_executable_extensions; do
2862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863    ac_cv_prog_CC="${ac_tool_prefix}cc"
2864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868  done
2869IFS=$as_save_IFS
2870
2871fi
2872fi
2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876$as_echo "$CC" >&6; }
2877else
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
2880fi
2881
2882
2883  fi
2884fi
2885if test -z "$CC"; then
2886  # Extract the first word of "cc", so it can be a program name with args.
2887set dummy cc; ac_word=$2
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889$as_echo_n "checking for $ac_word... " >&6; }
2890if test "${ac_cv_prog_CC+set}" = set; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  if test -n "$CC"; then
2894  ac_cv_prog_CC="$CC" # Let the user override the test.
2895else
2896  ac_prog_rejected=no
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902    for ac_exec_ext in '' $ac_executable_extensions; do
2903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905       ac_prog_rejected=yes
2906       continue
2907     fi
2908    ac_cv_prog_CC="cc"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916if test $ac_prog_rejected = yes; then
2917  # We found a bogon in the path, so make sure we never use it.
2918  set dummy $ac_cv_prog_CC
2919  shift
2920  if test $# != 0; then
2921    # We chose a different compiler from the bogus one.
2922    # However, it has the same basename, so the bogon will be chosen
2923    # first if we set CC to just the basename; use the full file name.
2924    shift
2925    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926  fi
2927fi
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940fi
2941if test -z "$CC"; then
2942  if test -n "$ac_tool_prefix"; then
2943  for ac_prog in cl.exe
2944  do
2945    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948$as_echo_n "checking for $ac_word... " >&6; }
2949if test "${ac_cv_prog_CC+set}" = set; then :
2950  $as_echo_n "(cached) " >&6
2951else
2952  if test -n "$CC"; then
2953  ac_cv_prog_CC="$CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  test -z "$as_dir" && as_dir=.
2960    for ac_exec_ext in '' $ac_executable_extensions; do
2961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964    break 2
2965  fi
2966done
2967  done
2968IFS=$as_save_IFS
2969
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975$as_echo "$CC" >&6; }
2976else
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
2979fi
2980
2981
2982    test -n "$CC" && break
2983  done
2984fi
2985if test -z "$CC"; then
2986  ac_ct_CC=$CC
2987  for ac_prog in cl.exe
2988do
2989  # Extract the first word of "$ac_prog", so it can be a program name with args.
2990set dummy $ac_prog; ac_word=$2
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994  $as_echo_n "(cached) " >&6
2995else
2996  if test -n "$ac_ct_CC"; then
2997  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002  IFS=$as_save_IFS
3003  test -z "$as_dir" && as_dir=.
3004    for ac_exec_ext in '' $ac_executable_extensions; do
3005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006    ac_cv_prog_ac_ct_CC="$ac_prog"
3007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008    break 2
3009  fi
3010done
3011  done
3012IFS=$as_save_IFS
3013
3014fi
3015fi
3016ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017if test -n "$ac_ct_CC"; then
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019$as_echo "$ac_ct_CC" >&6; }
3020else
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023fi
3024
3025
3026  test -n "$ac_ct_CC" && break
3027done
3028
3029  if test "x$ac_ct_CC" = x; then
3030    CC=""
3031  else
3032    case $cross_compiling:$ac_tool_warned in
3033yes:)
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036ac_tool_warned=yes ;;
3037esac
3038    CC=$ac_ct_CC
3039  fi
3040fi
3041
3042fi
3043
3044
3045test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047as_fn_error "no acceptable C compiler found in \$PATH
3048See \`config.log' for more details." "$LINENO" 5; }
3049
3050# Provide some information about the compiler.
3051$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3052set X $ac_compile
3053ac_compiler=$2
3054for ac_option in --version -v -V -qversion; do
3055  { { ac_try="$ac_compiler $ac_option >&5"
3056case "(($ac_try" in
3057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058  *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3063  ac_status=$?
3064  if test -s conftest.err; then
3065    sed '10a\
3066... rest of stderr output deleted ...
3067         10q' conftest.err >conftest.er1
3068    cat conftest.er1 >&5
3069    rm -f conftest.er1 conftest.err
3070  fi
3071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072  test $ac_status = 0; }
3073done
3074
3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h.  */
3077
3078int
3079main ()
3080{
3081
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086ac_clean_files_save=$ac_clean_files
3087ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3088# Try to create an executable without -o first, disregard a.out.
3089# It will help us diagnose broken compilers, and finding out an intuition
3090# of exeext.
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092$as_echo_n "checking for C compiler default output file name... " >&6; }
3093ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094
3095# The possible output files:
3096ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097
3098ac_rmfiles=
3099for ac_file in $ac_files
3100do
3101  case $ac_file in
3102    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104  esac
3105done
3106rm -f $ac_rmfiles
3107
3108if { { ac_try="$ac_link_default"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115  (eval "$ac_link_default") 2>&5
3116  ac_status=$?
3117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118  test $ac_status = 0; }; then :
3119  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3122# so that the user can short-circuit this test for compilers unknown to
3123# Autoconf.
3124for ac_file in $ac_files ''
3125do
3126  test -f "$ac_file" || continue
3127  case $ac_file in
3128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129	;;
3130    [ab].out )
3131	# We found the default executable, but exeext='' is most
3132	# certainly right.
3133	break;;
3134    *.* )
3135	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136	then :; else
3137	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138	fi
3139	# We set ac_cv_exeext here because the later test for it is not
3140	# safe: cross compilers may not add the suffix if given an `-o'
3141	# argument, so we may need to know it at that point already.
3142	# Even if this section looks crufty: it has the advantage of
3143	# actually working.
3144	break;;
3145    * )
3146	break;;
3147  esac
3148done
3149test "$ac_cv_exeext" = no && ac_cv_exeext=
3150
3151else
3152  ac_file=''
3153fi
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155$as_echo "$ac_file" >&6; }
3156if test -z "$ac_file"; then :
3157  $as_echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162{ as_fn_set_status 77
3163as_fn_error "C compiler cannot create executables
3164See \`config.log' for more details." "$LINENO" 5; }; }
3165fi
3166ac_exeext=$ac_cv_exeext
3167
3168# Check that the compiler produces executables we can run.  If not, either
3169# the compiler is broken, or we cross compile.
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3171$as_echo_n "checking whether the C compiler works... " >&6; }
3172# If not cross compiling, check that we can run a simple program.
3173if test "$cross_compiling" != yes; then
3174  if { ac_try='./$ac_file'
3175  { { case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181  (eval "$ac_try") 2>&5
3182  ac_status=$?
3183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184  test $ac_status = 0; }; }; then
3185    cross_compiling=no
3186  else
3187    if test "$cross_compiling" = maybe; then
3188	cross_compiling=yes
3189    else
3190	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error "cannot run C compiled programs.
3193If you meant to cross compile, use \`--host'.
3194See \`config.log' for more details." "$LINENO" 5; }
3195    fi
3196  fi
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199$as_echo "yes" >&6; }
3200
3201rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3202ac_clean_files=$ac_clean_files_save
3203# Check that the compiler produces executables we can run.  If not, either
3204# the compiler is broken, or we cross compile.
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3206$as_echo_n "checking whether we are cross compiling... " >&6; }
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208$as_echo "$cross_compiling" >&6; }
3209
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211$as_echo_n "checking for suffix of executables... " >&6; }
3212if { { ac_try="$ac_link"
3213case "(($ac_try" in
3214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215  *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219  (eval "$ac_link") 2>&5
3220  ac_status=$?
3221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222  test $ac_status = 0; }; then :
3223  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3225# work properly (i.e., refer to `conftest.exe'), while it won't with
3226# `rm'.
3227for ac_file in conftest.exe conftest conftest.*; do
3228  test -f "$ac_file" || continue
3229  case $ac_file in
3230    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232	  break;;
3233    * ) break;;
3234  esac
3235done
3236else
3237  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239as_fn_error "cannot compute suffix of executables: cannot compile and link
3240See \`config.log' for more details." "$LINENO" 5; }
3241fi
3242rm -f conftest$ac_cv_exeext
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244$as_echo "$ac_cv_exeext" >&6; }
3245
3246rm -f conftest.$ac_ext
3247EXEEXT=$ac_cv_exeext
3248ac_exeext=$EXEEXT
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250$as_echo_n "checking for suffix of object files... " >&6; }
3251if test "${ac_cv_objext+set}" = set; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265rm -f conftest.o conftest.obj
3266if { { ac_try="$ac_compile"
3267case "(($ac_try" in
3268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269  *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272$as_echo "$ac_try_echo"; } >&5
3273  (eval "$ac_compile") 2>&5
3274  ac_status=$?
3275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276  test $ac_status = 0; }; then :
3277  for ac_file in conftest.o conftest.obj conftest.*; do
3278  test -f "$ac_file" || continue;
3279  case $ac_file in
3280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282       break;;
3283  esac
3284done
3285else
3286  $as_echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error "cannot compute suffix of object files: cannot compile
3292See \`config.log' for more details." "$LINENO" 5; }
3293fi
3294rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295fi
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297$as_echo "$ac_cv_objext" >&6; }
3298OBJEXT=$ac_cv_objext
3299ac_objext=$OBJEXT
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3301$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3302if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3303  $as_echo_n "(cached) " >&6
3304else
3305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311#ifndef __GNUC__
3312       choke me
3313#endif
3314
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319if ac_fn_c_try_compile "$LINENO"; then :
3320  ac_compiler_gnu=yes
3321else
3322  ac_compiler_gnu=no
3323fi
3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325ac_cv_c_compiler_gnu=$ac_compiler_gnu
3326
3327fi
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3329$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3330if test $ac_compiler_gnu = yes; then
3331  GCC=yes
3332else
3333  GCC=
3334fi
3335ac_test_CFLAGS=${CFLAGS+set}
3336ac_save_CFLAGS=$CFLAGS
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3338$as_echo_n "checking whether $CC accepts -g... " >&6; }
3339if test "${ac_cv_prog_cc_g+set}" = set; then :
3340  $as_echo_n "(cached) " >&6
3341else
3342  ac_save_c_werror_flag=$ac_c_werror_flag
3343   ac_c_werror_flag=yes
3344   ac_cv_prog_cc_g=no
3345   CFLAGS="-g"
3346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348
3349int
3350main ()
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357if ac_fn_c_try_compile "$LINENO"; then :
3358  ac_cv_prog_cc_g=yes
3359else
3360  CFLAGS=""
3361      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h.  */
3363
3364int
3365main ()
3366{
3367
3368  ;
3369  return 0;
3370}
3371_ACEOF
3372if ac_fn_c_try_compile "$LINENO"; then :
3373
3374else
3375  ac_c_werror_flag=$ac_save_c_werror_flag
3376	 CFLAGS="-g"
3377	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379
3380int
3381main ()
3382{
3383
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388if ac_fn_c_try_compile "$LINENO"; then :
3389  ac_cv_prog_cc_g=yes
3390fi
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392fi
3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394fi
3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396   ac_c_werror_flag=$ac_save_c_werror_flag
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3399$as_echo "$ac_cv_prog_cc_g" >&6; }
3400if test "$ac_test_CFLAGS" = set; then
3401  CFLAGS=$ac_save_CFLAGS
3402elif test $ac_cv_prog_cc_g = yes; then
3403  if test "$GCC" = yes; then
3404    CFLAGS="-g -O2"
3405  else
3406    CFLAGS="-g"
3407  fi
3408else
3409  if test "$GCC" = yes; then
3410    CFLAGS="-O2"
3411  else
3412    CFLAGS=
3413  fi
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3416$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3417if test "${ac_cv_prog_cc_c89+set}" = set; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  ac_cv_prog_cc_c89=no
3421ac_save_CC=$CC
3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424#include <stdarg.h>
3425#include <stdio.h>
3426#include <sys/types.h>
3427#include <sys/stat.h>
3428/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3429struct buf { int x; };
3430FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431static char *e (p, i)
3432     char **p;
3433     int i;
3434{
3435  return p[i];
3436}
3437static char *f (char * (*g) (char **, int), char **p, ...)
3438{
3439  char *s;
3440  va_list v;
3441  va_start (v,p);
3442  s = g (p, va_arg (v,int));
3443  va_end (v);
3444  return s;
3445}
3446
3447/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3448   function prototypes and stuff, but not '\xHH' hex character constants.
3449   These don't provoke an error unfortunately, instead are silently treated
3450   as 'x'.  The following induces an error, until -std is added to get
3451   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3452   array size at least.  It's necessary to write '\x00'==0 to get something
3453   that's true only with -std.  */
3454int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457   inside strings and character constants.  */
3458#define FOO(x) 'x'
3459int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
3461int test (int i, double x);
3462struct s1 {int (*f) (int a);};
3463struct s2 {int (*f) (double a);};
3464int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465int argc;
3466char **argv;
3467int
3468main ()
3469{
3470return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3471  ;
3472  return 0;
3473}
3474_ACEOF
3475for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477do
3478  CC="$ac_save_CC $ac_arg"
3479  if ac_fn_c_try_compile "$LINENO"; then :
3480  ac_cv_prog_cc_c89=$ac_arg
3481fi
3482rm -f core conftest.err conftest.$ac_objext
3483  test "x$ac_cv_prog_cc_c89" != "xno" && break
3484done
3485rm -f conftest.$ac_ext
3486CC=$ac_save_CC
3487
3488fi
3489# AC_CACHE_VAL
3490case "x$ac_cv_prog_cc_c89" in
3491  x)
3492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3493$as_echo "none needed" >&6; } ;;
3494  xno)
3495    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496$as_echo "unsupported" >&6; } ;;
3497  *)
3498    CC="$CC $ac_cv_prog_cc_c89"
3499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3500$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3501esac
3502if test "x$ac_cv_prog_cc_c89" != xno; then :
3503
3504fi
3505
3506ac_ext=c
3507ac_cpp='$CPP $CPPFLAGS'
3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511
3512
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3514$as_echo_n "checking for library containing strerror... " >&6; }
3515if test "${ac_cv_search_strerror+set}" = set; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  ac_func_search_save_LIBS=$LIBS
3519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h.  */
3521
3522/* Override any GCC internal prototype to avoid an error.
3523   Use char because int might match the return type of a GCC
3524   builtin and then its argument prototype would still apply.  */
3525#ifdef __cplusplus
3526extern "C"
3527#endif
3528char strerror ();
3529int
3530main ()
3531{
3532return strerror ();
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537for ac_lib in '' cposix; do
3538  if test -z "$ac_lib"; then
3539    ac_res="none required"
3540  else
3541    ac_res=-l$ac_lib
3542    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3543  fi
3544  if ac_fn_c_try_link "$LINENO"; then :
3545  ac_cv_search_strerror=$ac_res
3546fi
3547rm -f core conftest.err conftest.$ac_objext \
3548    conftest$ac_exeext
3549  if test "${ac_cv_search_strerror+set}" = set; then :
3550  break
3551fi
3552done
3553if test "${ac_cv_search_strerror+set}" = set; then :
3554
3555else
3556  ac_cv_search_strerror=no
3557fi
3558rm conftest.$ac_ext
3559LIBS=$ac_func_search_save_LIBS
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3562$as_echo "$ac_cv_search_strerror" >&6; }
3563ac_res=$ac_cv_search_strerror
3564if test "$ac_res" != no; then :
3565  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3566
3567fi
3568
3569
3570am__api_version='1.11'
3571
3572# Find a good install program.  We prefer a C program (faster),
3573# so one script is as good as another.  But avoid the broken or
3574# incompatible versions:
3575# SysV /etc/install, /usr/sbin/install
3576# SunOS /usr/etc/install
3577# IRIX /sbin/install
3578# AIX /bin/install
3579# AmigaOS /C/install, which installs bootblocks on floppy discs
3580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3583# OS/2's system install, which has a completely different semantic
3584# ./install, which can be erroneously created by make from ./install.sh.
3585# Reject install programs that cannot install multiple files.
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3587$as_echo_n "checking for a BSD-compatible install... " >&6; }
3588if test -z "$INSTALL"; then
3589if test "${ac_cv_path_install+set}" = set; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593for as_dir in $PATH
3594do
3595  IFS=$as_save_IFS
3596  test -z "$as_dir" && as_dir=.
3597    # Account for people who put trailing slashes in PATH elements.
3598case $as_dir/ in #((
3599  ./ | .// | /[cC]/* | \
3600  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3601  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3602  /usr/ucb/* ) ;;
3603  *)
3604    # OSF1 and SCO ODT 3.0 have their own names for install.
3605    # Don't use installbsd from OSF since it installs stuff as root
3606    # by default.
3607    for ac_prog in ginstall scoinst install; do
3608      for ac_exec_ext in '' $ac_executable_extensions; do
3609	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3610	  if test $ac_prog = install &&
3611	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3612	    # AIX install.  It has an incompatible calling convention.
3613	    :
3614	  elif test $ac_prog = install &&
3615	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616	    # program-specific install script used by HP pwplus--don't use.
3617	    :
3618	  else
3619	    rm -rf conftest.one conftest.two conftest.dir
3620	    echo one > conftest.one
3621	    echo two > conftest.two
3622	    mkdir conftest.dir
3623	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3624	      test -s conftest.one && test -s conftest.two &&
3625	      test -s conftest.dir/conftest.one &&
3626	      test -s conftest.dir/conftest.two
3627	    then
3628	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3629	      break 3
3630	    fi
3631	  fi
3632	fi
3633      done
3634    done
3635    ;;
3636esac
3637
3638  done
3639IFS=$as_save_IFS
3640
3641rm -rf conftest.one conftest.two conftest.dir
3642
3643fi
3644  if test "${ac_cv_path_install+set}" = set; then
3645    INSTALL=$ac_cv_path_install
3646  else
3647    # As a last resort, use the slow shell script.  Don't cache a
3648    # value for INSTALL within a source directory, because that will
3649    # break other packages using the cache if that directory is
3650    # removed, or if the value is a relative name.
3651    INSTALL=$ac_install_sh
3652  fi
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3655$as_echo "$INSTALL" >&6; }
3656
3657# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3658# It thinks the first close brace ends the variable substitution.
3659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3660
3661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3662
3663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3664
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3666$as_echo_n "checking whether build environment is sane... " >&6; }
3667# Just in case
3668sleep 1
3669echo timestamp > conftest.file
3670# Reject unsafe characters in $srcdir or the absolute working directory
3671# name.  Accept space and tab only in the latter.
3672am_lf='
3673'
3674case `pwd` in
3675  *[\\\"\#\$\&\'\`$am_lf]*)
3676    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3677esac
3678case $srcdir in
3679  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3680    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3681esac
3682
3683# Do `set' in a subshell so we don't clobber the current shell's
3684# arguments.  Must try -L first in case configure is actually a
3685# symlink; some systems play weird games with the mod time of symlinks
3686# (eg FreeBSD returns the mod time of the symlink's containing
3687# directory).
3688if (
3689   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3690   if test "$*" = "X"; then
3691      # -L didn't work.
3692      set X `ls -t "$srcdir/configure" conftest.file`
3693   fi
3694   rm -f conftest.file
3695   if test "$*" != "X $srcdir/configure conftest.file" \
3696      && test "$*" != "X conftest.file $srcdir/configure"; then
3697
3698      # If neither matched, then we have a broken ls.  This can happen
3699      # if, for instance, CONFIG_SHELL is bash and it inherits a
3700      # broken ls alias from the environment.  This has actually
3701      # happened.  Such a system could not be considered "sane".
3702      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3703alias in your environment" "$LINENO" 5
3704   fi
3705
3706   test "$2" = conftest.file
3707   )
3708then
3709   # Ok.
3710   :
3711else
3712   as_fn_error "newly created file is older than distributed files!
3713Check your system clock" "$LINENO" 5
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716$as_echo "yes" >&6; }
3717test "$program_prefix" != NONE &&
3718  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3719# Use a double $ so make ignores it.
3720test "$program_suffix" != NONE &&
3721  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3722# Double any \ or $.
3723# By default was `s,x,x', remove it if useless.
3724ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3725program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3726
3727# expand $ac_aux_dir to an absolute path
3728am_aux_dir=`cd $ac_aux_dir && pwd`
3729
3730if test x"${MISSING+set}" != xset; then
3731  case $am_aux_dir in
3732  *\ * | *\	*)
3733    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3734  *)
3735    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3736  esac
3737fi
3738# Use eval to expand $SHELL
3739if eval "$MISSING --run true"; then
3740  am_missing_run="$MISSING --run "
3741else
3742  am_missing_run=
3743  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3744$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3745fi
3746
3747if test x"${install_sh}" != xset; then
3748  case $am_aux_dir in
3749  *\ * | *\	*)
3750    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3751  *)
3752    install_sh="\${SHELL} $am_aux_dir/install-sh"
3753  esac
3754fi
3755
3756# Installed binaries are usually stripped using `strip' when the user
3757# run `make install-strip'.  However `strip' might not be the right
3758# tool to use in cross-compilation environments, therefore Automake
3759# will honor the `STRIP' environment variable to overrule this program.
3760if test "$cross_compiling" != no; then
3761  if test -n "$ac_tool_prefix"; then
3762  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3763set dummy ${ac_tool_prefix}strip; ac_word=$2
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if test "${ac_cv_prog_STRIP+set}" = set; then :
3767  $as_echo_n "(cached) " >&6
3768else
3769  if test -n "$STRIP"; then
3770  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775  IFS=$as_save_IFS
3776  test -z "$as_dir" && as_dir=.
3777    for ac_exec_ext in '' $ac_executable_extensions; do
3778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781    break 2
3782  fi
3783done
3784  done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789STRIP=$ac_cv_prog_STRIP
3790if test -n "$STRIP"; then
3791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3792$as_echo "$STRIP" >&6; }
3793else
3794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798
3799fi
3800if test -z "$ac_cv_prog_STRIP"; then
3801  ac_ct_STRIP=$STRIP
3802  # Extract the first word of "strip", so it can be a program name with args.
3803set dummy strip; ac_word=$2
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805$as_echo_n "checking for $ac_word... " >&6; }
3806if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3807  $as_echo_n "(cached) " >&6
3808else
3809  if test -n "$ac_ct_STRIP"; then
3810  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815  IFS=$as_save_IFS
3816  test -z "$as_dir" && as_dir=.
3817    for ac_exec_ext in '' $ac_executable_extensions; do
3818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819    ac_cv_prog_ac_ct_STRIP="strip"
3820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821    break 2
3822  fi
3823done
3824  done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3830if test -n "$ac_ct_STRIP"; then
3831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3832$as_echo "$ac_ct_STRIP" >&6; }
3833else
3834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835$as_echo "no" >&6; }
3836fi
3837
3838  if test "x$ac_ct_STRIP" = x; then
3839    STRIP=":"
3840  else
3841    case $cross_compiling:$ac_tool_warned in
3842yes:)
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845ac_tool_warned=yes ;;
3846esac
3847    STRIP=$ac_ct_STRIP
3848  fi
3849else
3850  STRIP="$ac_cv_prog_STRIP"
3851fi
3852
3853fi
3854INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3855
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3857$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3858if test -z "$MKDIR_P"; then
3859  if test "${ac_cv_path_mkdir+set}" = set; then :
3860  $as_echo_n "(cached) " >&6
3861else
3862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3864do
3865  IFS=$as_save_IFS
3866  test -z "$as_dir" && as_dir=.
3867    for ac_prog in mkdir gmkdir; do
3868	 for ac_exec_ext in '' $ac_executable_extensions; do
3869	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3870	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3871	     'mkdir (GNU coreutils) '* | \
3872	     'mkdir (coreutils) '* | \
3873	     'mkdir (fileutils) '4.1*)
3874	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3875	       break 3;;
3876	   esac
3877	 done
3878       done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883
3884  if test "${ac_cv_path_mkdir+set}" = set; then
3885    MKDIR_P="$ac_cv_path_mkdir -p"
3886  else
3887    # As a last resort, use the slow shell script.  Don't cache a
3888    # value for MKDIR_P within a source directory, because that will
3889    # break other packages using the cache if that directory is
3890    # removed, or if the value is a relative name.
3891    test -d ./--version && rmdir ./--version
3892    MKDIR_P="$ac_install_sh -d"
3893  fi
3894fi
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3896$as_echo "$MKDIR_P" >&6; }
3897
3898mkdir_p="$MKDIR_P"
3899case $mkdir_p in
3900  [\\/$]* | ?:[\\/]*) ;;
3901  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3902esac
3903
3904for ac_prog in gawk mawk nawk awk
3905do
3906  # Extract the first word of "$ac_prog", so it can be a program name with args.
3907set dummy $ac_prog; ac_word=$2
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if test "${ac_cv_prog_AWK+set}" = set; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  if test -n "$AWK"; then
3914  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919  IFS=$as_save_IFS
3920  test -z "$as_dir" && as_dir=.
3921    for ac_exec_ext in '' $ac_executable_extensions; do
3922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923    ac_cv_prog_AWK="$ac_prog"
3924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925    break 2
3926  fi
3927done
3928  done
3929IFS=$as_save_IFS
3930
3931fi
3932fi
3933AWK=$ac_cv_prog_AWK
3934if test -n "$AWK"; then
3935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3936$as_echo "$AWK" >&6; }
3937else
3938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
3940fi
3941
3942
3943  test -n "$AWK" && break
3944done
3945
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3948set x ${MAKE-make}
3949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3950if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  cat >conftest.make <<\_ACEOF
3954SHELL = /bin/sh
3955all:
3956	@echo '@@@%%%=$(MAKE)=@@@%%%'
3957_ACEOF
3958# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3959case `${MAKE-make} -f conftest.make 2>/dev/null` in
3960  *@@@%%%=?*=@@@%%%*)
3961    eval ac_cv_prog_make_${ac_make}_set=yes;;
3962  *)
3963    eval ac_cv_prog_make_${ac_make}_set=no;;
3964esac
3965rm -f conftest.make
3966fi
3967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969$as_echo "yes" >&6; }
3970  SET_MAKE=
3971else
3972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973$as_echo "no" >&6; }
3974  SET_MAKE="MAKE=${MAKE-make}"
3975fi
3976
3977rm -rf .tst 2>/dev/null
3978mkdir .tst 2>/dev/null
3979if test -d .tst; then
3980  am__leading_dot=.
3981else
3982  am__leading_dot=_
3983fi
3984rmdir .tst 2>/dev/null
3985
3986DEPDIR="${am__leading_dot}deps"
3987
3988ac_config_commands="$ac_config_commands depfiles"
3989
3990
3991am_make=${MAKE-make}
3992cat > confinc << 'END'
3993am__doit:
3994	@echo this is the am__doit target
3995.PHONY: am__doit
3996END
3997# If we don't find an include directive, just comment out the code.
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999$as_echo_n "checking for style of include used by $am_make... " >&6; }
4000am__include="#"
4001am__quote=
4002_am_result=none
4003# First try GNU make style include.
4004echo "include confinc" > confmf
4005# Ignore all kinds of additional output from `make'.
4006case `$am_make -s -f confmf 2> /dev/null` in #(
4007*the\ am__doit\ target*)
4008  am__include=include
4009  am__quote=
4010  _am_result=GNU
4011  ;;
4012esac
4013# Now try BSD make style include.
4014if test "$am__include" = "#"; then
4015   echo '.include "confinc"' > confmf
4016   case `$am_make -s -f confmf 2> /dev/null` in #(
4017   *the\ am__doit\ target*)
4018     am__include=.include
4019     am__quote="\""
4020     _am_result=BSD
4021     ;;
4022   esac
4023fi
4024
4025
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027$as_echo "$_am_result" >&6; }
4028rm -f confinc confmf
4029
4030# Check whether --enable-dependency-tracking was given.
4031if test "${enable_dependency_tracking+set}" = set; then :
4032  enableval=$enable_dependency_tracking;
4033fi
4034
4035if test "x$enable_dependency_tracking" != xno; then
4036  am_depcomp="$ac_aux_dir/depcomp"
4037  AMDEPBACKSLASH='\'
4038  am__nodep='_no'
4039fi
4040 if test "x$enable_dependency_tracking" != xno; then
4041  AMDEP_TRUE=
4042  AMDEP_FALSE='#'
4043else
4044  AMDEP_TRUE='#'
4045  AMDEP_FALSE=
4046fi
4047
4048
4049if test "`cd $srcdir && pwd`" != "`pwd`"; then
4050  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4051  # is not polluted with repeated "-I."
4052  am__isrc=' -I$(srcdir)'
4053  # test to see if srcdir already configured
4054  if test -f $srcdir/config.status; then
4055    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4056  fi
4057fi
4058
4059# test whether we have cygpath
4060if test -z "$CYGPATH_W"; then
4061  if (cygpath --version) >/dev/null 2>/dev/null; then
4062    CYGPATH_W='cygpath -w'
4063  else
4064    CYGPATH_W=echo
4065  fi
4066fi
4067
4068
4069# Define the identity of the package.
4070 PACKAGE='ld'
4071 VERSION='2.27'
4072
4073
4074cat >>confdefs.h <<_ACEOF
4075#define PACKAGE "$PACKAGE"
4076_ACEOF
4077
4078
4079cat >>confdefs.h <<_ACEOF
4080#define VERSION "$VERSION"
4081_ACEOF
4082
4083# Some tools Automake needs.
4084
4085ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4086
4087
4088AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4089
4090
4091AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4092
4093
4094AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4095
4096
4097MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4098
4099# We need awk for the "check" target.  The system "awk" is bad on
4100# some platforms.
4101# Always define AMTAR for backward compatibility.  Yes, it's still used
4102# in the wild :-(  We should find a proper way to deprecate it ...
4103AMTAR='$${TAR-tar}'
4104
4105am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4106
4107
4108
4109
4110depcc="$CC"   am_compiler_list=
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4113$as_echo_n "checking dependency style of $depcc... " >&6; }
4114if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118  # We make a subdir and do the tests there.  Otherwise we can end up
4119  # making bogus files that we don't know about and never remove.  For
4120  # instance it was reported that on HP-UX the gcc test will end up
4121  # making a dummy file named `D' -- because `-MD' means `put the output
4122  # in D'.
4123  rm -rf conftest.dir
4124  mkdir conftest.dir
4125  # Copy depcomp to subdir because otherwise we won't find it if we're
4126  # using a relative directory.
4127  cp "$am_depcomp" conftest.dir
4128  cd conftest.dir
4129  # We will build objects and dependencies in a subdirectory because
4130  # it helps to detect inapplicable dependency modes.  For instance
4131  # both Tru64's cc and ICC support -MD to output dependencies as a
4132  # side effect of compilation, but ICC will put the dependencies in
4133  # the current directory while Tru64 will put them in the object
4134  # directory.
4135  mkdir sub
4136
4137  am_cv_CC_dependencies_compiler_type=none
4138  if test "$am_compiler_list" = ""; then
4139     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4140  fi
4141  am__universal=false
4142  case " $depcc " in #(
4143     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4144     esac
4145
4146  for depmode in $am_compiler_list; do
4147    # Setup a source with many dependencies, because some compilers
4148    # like to wrap large dependency lists on column 80 (with \), and
4149    # we should not choose a depcomp mode which is confused by this.
4150    #
4151    # We need to recreate these files for each test, as the compiler may
4152    # overwrite some of them when testing with obscure command lines.
4153    # This happens at least with the AIX C compiler.
4154    : > sub/conftest.c
4155    for i in 1 2 3 4 5 6; do
4156      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4157      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4158      # Solaris 8's {/usr,}/bin/sh.
4159      touch sub/conftst$i.h
4160    done
4161    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162
4163    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4164    # mode.  It turns out that the SunPro C++ compiler does not properly
4165    # handle `-M -o', and we need to detect this.  Also, some Intel
4166    # versions had trouble with output in subdirs
4167    am__obj=sub/conftest.${OBJEXT-o}
4168    am__minus_obj="-o $am__obj"
4169    case $depmode in
4170    gcc)
4171      # This depmode causes a compiler race in universal mode.
4172      test "$am__universal" = false || continue
4173      ;;
4174    nosideeffect)
4175      # after this tag, mechanisms are not by side-effect, so they'll
4176      # only be used when explicitly requested
4177      if test "x$enable_dependency_tracking" = xyes; then
4178	continue
4179      else
4180	break
4181      fi
4182      ;;
4183    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4184      # This compiler won't grok `-c -o', but also, the minuso test has
4185      # not run yet.  These depmodes are late enough in the game, and
4186      # so weak that their functioning should not be impacted.
4187      am__obj=conftest.${OBJEXT-o}
4188      am__minus_obj=
4189      ;;
4190    none) break ;;
4191    esac
4192    if depmode=$depmode \
4193       source=sub/conftest.c object=$am__obj \
4194       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4195       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4196         >/dev/null 2>conftest.err &&
4197       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4198       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4199       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4200       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4201      # icc doesn't choke on unknown options, it will just issue warnings
4202      # or remarks (even with -Werror).  So we grep stderr for any message
4203      # that says an option was ignored or not supported.
4204      # When given -MP, icc 7.0 and 7.1 complain thusly:
4205      #   icc: Command line warning: ignoring option '-M'; no argument required
4206      # The diagnosis changed in icc 8.0:
4207      #   icc: Command line remark: option '-MP' not supported
4208      if (grep 'ignoring option' conftest.err ||
4209          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4210        am_cv_CC_dependencies_compiler_type=$depmode
4211        break
4212      fi
4213    fi
4214  done
4215
4216  cd ..
4217  rm -rf conftest.dir
4218else
4219  am_cv_CC_dependencies_compiler_type=none
4220fi
4221
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4224$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4225CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4226
4227 if
4228  test "x$enable_dependency_tracking" != xno \
4229  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4230  am__fastdepCC_TRUE=
4231  am__fastdepCC_FALSE='#'
4232else
4233  am__fastdepCC_TRUE='#'
4234  am__fastdepCC_FALSE=
4235fi
4236
4237
4238
4239
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4241$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4242    # Check whether --enable-maintainer-mode was given.
4243if test "${enable_maintainer_mode+set}" = set; then :
4244  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4245else
4246  USE_MAINTAINER_MODE=no
4247fi
4248
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4250$as_echo "$USE_MAINTAINER_MODE" >&6; }
4251   if test $USE_MAINTAINER_MODE = yes; then
4252  MAINTAINER_MODE_TRUE=
4253  MAINTAINER_MODE_FALSE='#'
4254else
4255  MAINTAINER_MODE_TRUE='#'
4256  MAINTAINER_MODE_FALSE=
4257fi
4258
4259  MAINT=$MAINTAINER_MODE_TRUE
4260
4261
4262
4263ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268if test -n "$ac_tool_prefix"; then
4269  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4270set dummy ${ac_tool_prefix}gcc; ac_word=$2
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272$as_echo_n "checking for $ac_word... " >&6; }
4273if test "${ac_cv_prog_CC+set}" = set; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  if test -n "$CC"; then
4277  ac_cv_prog_CC="$CC" # Let the user override the test.
4278else
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282  IFS=$as_save_IFS
4283  test -z "$as_dir" && as_dir=.
4284    for ac_exec_ext in '' $ac_executable_extensions; do
4285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288    break 2
4289  fi
4290done
4291  done
4292IFS=$as_save_IFS
4293
4294fi
4295fi
4296CC=$ac_cv_prog_CC
4297if test -n "$CC"; then
4298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4299$as_echo "$CC" >&6; }
4300else
4301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302$as_echo "no" >&6; }
4303fi
4304
4305
4306fi
4307if test -z "$ac_cv_prog_CC"; then
4308  ac_ct_CC=$CC
4309  # Extract the first word of "gcc", so it can be a program name with args.
4310set dummy gcc; ac_word=$2
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
4313if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  if test -n "$ac_ct_CC"; then
4317  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322  IFS=$as_save_IFS
4323  test -z "$as_dir" && as_dir=.
4324    for ac_exec_ext in '' $ac_executable_extensions; do
4325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326    ac_cv_prog_ac_ct_CC="gcc"
4327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328    break 2
4329  fi
4330done
4331  done
4332IFS=$as_save_IFS
4333
4334fi
4335fi
4336ac_ct_CC=$ac_cv_prog_ac_ct_CC
4337if test -n "$ac_ct_CC"; then
4338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4339$as_echo "$ac_ct_CC" >&6; }
4340else
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4343fi
4344
4345  if test "x$ac_ct_CC" = x; then
4346    CC=""
4347  else
4348    case $cross_compiling:$ac_tool_warned in
4349yes:)
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352ac_tool_warned=yes ;;
4353esac
4354    CC=$ac_ct_CC
4355  fi
4356else
4357  CC="$ac_cv_prog_CC"
4358fi
4359
4360if test -z "$CC"; then
4361          if test -n "$ac_tool_prefix"; then
4362    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4363set dummy ${ac_tool_prefix}cc; ac_word=$2
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365$as_echo_n "checking for $ac_word... " >&6; }
4366if test "${ac_cv_prog_CC+set}" = set; then :
4367  $as_echo_n "(cached) " >&6
4368else
4369  if test -n "$CC"; then
4370  ac_cv_prog_CC="$CC" # Let the user override the test.
4371else
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375  IFS=$as_save_IFS
4376  test -z "$as_dir" && as_dir=.
4377    for ac_exec_ext in '' $ac_executable_extensions; do
4378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379    ac_cv_prog_CC="${ac_tool_prefix}cc"
4380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381    break 2
4382  fi
4383done
4384  done
4385IFS=$as_save_IFS
4386
4387fi
4388fi
4389CC=$ac_cv_prog_CC
4390if test -n "$CC"; then
4391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392$as_echo "$CC" >&6; }
4393else
4394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395$as_echo "no" >&6; }
4396fi
4397
4398
4399  fi
4400fi
4401if test -z "$CC"; then
4402  # Extract the first word of "cc", so it can be a program name with args.
4403set dummy cc; ac_word=$2
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405$as_echo_n "checking for $ac_word... " >&6; }
4406if test "${ac_cv_prog_CC+set}" = set; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if test -n "$CC"; then
4410  ac_cv_prog_CC="$CC" # Let the user override the test.
4411else
4412  ac_prog_rejected=no
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4421       ac_prog_rejected=yes
4422       continue
4423     fi
4424    ac_cv_prog_CC="cc"
4425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426    break 2
4427  fi
4428done
4429  done
4430IFS=$as_save_IFS
4431
4432if test $ac_prog_rejected = yes; then
4433  # We found a bogon in the path, so make sure we never use it.
4434  set dummy $ac_cv_prog_CC
4435  shift
4436  if test $# != 0; then
4437    # We chose a different compiler from the bogus one.
4438    # However, it has the same basename, so the bogon will be chosen
4439    # first if we set CC to just the basename; use the full file name.
4440    shift
4441    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4442  fi
4443fi
4444fi
4445fi
4446CC=$ac_cv_prog_CC
4447if test -n "$CC"; then
4448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449$as_echo "$CC" >&6; }
4450else
4451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452$as_echo "no" >&6; }
4453fi
4454
4455
4456fi
4457if test -z "$CC"; then
4458  if test -n "$ac_tool_prefix"; then
4459  for ac_prog in cl.exe
4460  do
4461    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464$as_echo_n "checking for $ac_word... " >&6; }
4465if test "${ac_cv_prog_CC+set}" = set; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  if test -n "$CC"; then
4469  ac_cv_prog_CC="$CC" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474  IFS=$as_save_IFS
4475  test -z "$as_dir" && as_dir=.
4476    for ac_exec_ext in '' $ac_executable_extensions; do
4477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480    break 2
4481  fi
4482done
4483  done
4484IFS=$as_save_IFS
4485
4486fi
4487fi
4488CC=$ac_cv_prog_CC
4489if test -n "$CC"; then
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4491$as_echo "$CC" >&6; }
4492else
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494$as_echo "no" >&6; }
4495fi
4496
4497
4498    test -n "$CC" && break
4499  done
4500fi
4501if test -z "$CC"; then
4502  ac_ct_CC=$CC
4503  for ac_prog in cl.exe
4504do
4505  # Extract the first word of "$ac_prog", so it can be a program name with args.
4506set dummy $ac_prog; ac_word=$2
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508$as_echo_n "checking for $ac_word... " >&6; }
4509if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  if test -n "$ac_ct_CC"; then
4513  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518  IFS=$as_save_IFS
4519  test -z "$as_dir" && as_dir=.
4520    for ac_exec_ext in '' $ac_executable_extensions; do
4521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522    ac_cv_prog_ac_ct_CC="$ac_prog"
4523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524    break 2
4525  fi
4526done
4527  done
4528IFS=$as_save_IFS
4529
4530fi
4531fi
4532ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533if test -n "$ac_ct_CC"; then
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4535$as_echo "$ac_ct_CC" >&6; }
4536else
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
4539fi
4540
4541
4542  test -n "$ac_ct_CC" && break
4543done
4544
4545  if test "x$ac_ct_CC" = x; then
4546    CC=""
4547  else
4548    case $cross_compiling:$ac_tool_warned in
4549yes:)
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552ac_tool_warned=yes ;;
4553esac
4554    CC=$ac_ct_CC
4555  fi
4556fi
4557
4558fi
4559
4560
4561test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563as_fn_error "no acceptable C compiler found in \$PATH
4564See \`config.log' for more details." "$LINENO" 5; }
4565
4566# Provide some information about the compiler.
4567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4568set X $ac_compile
4569ac_compiler=$2
4570for ac_option in --version -v -V -qversion; do
4571  { { ac_try="$ac_compiler $ac_option >&5"
4572case "(($ac_try" in
4573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574  *) ac_try_echo=$ac_try;;
4575esac
4576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577$as_echo "$ac_try_echo"; } >&5
4578  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4579  ac_status=$?
4580  if test -s conftest.err; then
4581    sed '10a\
4582... rest of stderr output deleted ...
4583         10q' conftest.err >conftest.er1
4584    cat conftest.er1 >&5
4585    rm -f conftest.er1 conftest.err
4586  fi
4587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588  test $ac_status = 0; }
4589done
4590
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4594  $as_echo_n "(cached) " >&6
4595else
4596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598
4599int
4600main ()
4601{
4602#ifndef __GNUC__
4603       choke me
4604#endif
4605
4606  ;
4607  return 0;
4608}
4609_ACEOF
4610if ac_fn_c_try_compile "$LINENO"; then :
4611  ac_compiler_gnu=yes
4612else
4613  ac_compiler_gnu=no
4614fi
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621if test $ac_compiler_gnu = yes; then
4622  GCC=yes
4623else
4624  GCC=
4625fi
4626ac_test_CFLAGS=${CFLAGS+set}
4627ac_save_CFLAGS=$CFLAGS
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629$as_echo_n "checking whether $CC accepts -g... " >&6; }
4630if test "${ac_cv_prog_cc_g+set}" = set; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633  ac_save_c_werror_flag=$ac_c_werror_flag
4634   ac_c_werror_flag=yes
4635   ac_cv_prog_cc_g=no
4636   CFLAGS="-g"
4637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h.  */
4639
4640int
4641main ()
4642{
4643
4644  ;
4645  return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_compile "$LINENO"; then :
4649  ac_cv_prog_cc_g=yes
4650else
4651  CFLAGS=""
4652      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h.  */
4654
4655int
4656main ()
4657{
4658
4659  ;
4660  return 0;
4661}
4662_ACEOF
4663if ac_fn_c_try_compile "$LINENO"; then :
4664
4665else
4666  ac_c_werror_flag=$ac_save_c_werror_flag
4667	 CFLAGS="-g"
4668	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h.  */
4670
4671int
4672main ()
4673{
4674
4675  ;
4676  return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680  ac_cv_prog_cc_g=yes
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683fi
4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685fi
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687   ac_c_werror_flag=$ac_save_c_werror_flag
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4690$as_echo "$ac_cv_prog_cc_g" >&6; }
4691if test "$ac_test_CFLAGS" = set; then
4692  CFLAGS=$ac_save_CFLAGS
4693elif test $ac_cv_prog_cc_g = yes; then
4694  if test "$GCC" = yes; then
4695    CFLAGS="-g -O2"
4696  else
4697    CFLAGS="-g"
4698  fi
4699else
4700  if test "$GCC" = yes; then
4701    CFLAGS="-O2"
4702  else
4703    CFLAGS=
4704  fi
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4707$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4708if test "${ac_cv_prog_cc_c89+set}" = set; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  ac_cv_prog_cc_c89=no
4712ac_save_CC=$CC
4713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h.  */
4715#include <stdarg.h>
4716#include <stdio.h>
4717#include <sys/types.h>
4718#include <sys/stat.h>
4719/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4720struct buf { int x; };
4721FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722static char *e (p, i)
4723     char **p;
4724     int i;
4725{
4726  return p[i];
4727}
4728static char *f (char * (*g) (char **, int), char **p, ...)
4729{
4730  char *s;
4731  va_list v;
4732  va_start (v,p);
4733  s = g (p, va_arg (v,int));
4734  va_end (v);
4735  return s;
4736}
4737
4738/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4739   function prototypes and stuff, but not '\xHH' hex character constants.
4740   These don't provoke an error unfortunately, instead are silently treated
4741   as 'x'.  The following induces an error, until -std is added to get
4742   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4743   array size at least.  It's necessary to write '\x00'==0 to get something
4744   that's true only with -std.  */
4745int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4746
4747/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748   inside strings and character constants.  */
4749#define FOO(x) 'x'
4750int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4751
4752int test (int i, double x);
4753struct s1 {int (*f) (int a);};
4754struct s2 {int (*f) (double a);};
4755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756int argc;
4757char **argv;
4758int
4759main ()
4760{
4761return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4762  ;
4763  return 0;
4764}
4765_ACEOF
4766for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4768do
4769  CC="$ac_save_CC $ac_arg"
4770  if ac_fn_c_try_compile "$LINENO"; then :
4771  ac_cv_prog_cc_c89=$ac_arg
4772fi
4773rm -f core conftest.err conftest.$ac_objext
4774  test "x$ac_cv_prog_cc_c89" != "xno" && break
4775done
4776rm -f conftest.$ac_ext
4777CC=$ac_save_CC
4778
4779fi
4780# AC_CACHE_VAL
4781case "x$ac_cv_prog_cc_c89" in
4782  x)
4783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784$as_echo "none needed" >&6; } ;;
4785  xno)
4786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787$as_echo "unsupported" >&6; } ;;
4788  *)
4789    CC="$CC $ac_cv_prog_cc_c89"
4790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4792esac
4793if test "x$ac_cv_prog_cc_c89" != xno; then :
4794
4795fi
4796
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803ac_ext=cpp
4804ac_cpp='$CXXCPP $CPPFLAGS'
4805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808if test -z "$CXX"; then
4809  if test -n "$CCC"; then
4810    CXX=$CCC
4811  else
4812    if test -n "$ac_tool_prefix"; then
4813  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4814  do
4815    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if test "${ac_cv_prog_CXX+set}" = set; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  if test -n "$CXX"; then
4823  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830    for ac_exec_ext in '' $ac_executable_extensions; do
4831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834    break 2
4835  fi
4836done
4837  done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842CXX=$ac_cv_prog_CXX
4843if test -n "$CXX"; then
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845$as_echo "$CXX" >&6; }
4846else
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
4852    test -n "$CXX" && break
4853  done
4854fi
4855if test -z "$CXX"; then
4856  ac_ct_CXX=$CXX
4857  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4858do
4859  # Extract the first word of "$ac_prog", so it can be a program name with args.
4860set dummy $ac_prog; ac_word=$2
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862$as_echo_n "checking for $ac_word... " >&6; }
4863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866  if test -n "$ac_ct_CXX"; then
4867  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872  IFS=$as_save_IFS
4873  test -z "$as_dir" && as_dir=.
4874    for ac_exec_ext in '' $ac_executable_extensions; do
4875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876    ac_cv_prog_ac_ct_CXX="$ac_prog"
4877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878    break 2
4879  fi
4880done
4881  done
4882IFS=$as_save_IFS
4883
4884fi
4885fi
4886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887if test -n "$ac_ct_CXX"; then
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889$as_echo "$ac_ct_CXX" >&6; }
4890else
4891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892$as_echo "no" >&6; }
4893fi
4894
4895
4896  test -n "$ac_ct_CXX" && break
4897done
4898
4899  if test "x$ac_ct_CXX" = x; then
4900    CXX="g++"
4901  else
4902    case $cross_compiling:$ac_tool_warned in
4903yes:)
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906ac_tool_warned=yes ;;
4907esac
4908    CXX=$ac_ct_CXX
4909  fi
4910fi
4911
4912  fi
4913fi
4914# Provide some information about the compiler.
4915$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4916set X $ac_compile
4917ac_compiler=$2
4918for ac_option in --version -v -V -qversion; do
4919  { { ac_try="$ac_compiler $ac_option >&5"
4920case "(($ac_try" in
4921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922  *) ac_try_echo=$ac_try;;
4923esac
4924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925$as_echo "$ac_try_echo"; } >&5
4926  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4927  ac_status=$?
4928  if test -s conftest.err; then
4929    sed '10a\
4930... rest of stderr output deleted ...
4931         10q' conftest.err >conftest.er1
4932    cat conftest.er1 >&5
4933    rm -f conftest.er1 conftest.err
4934  fi
4935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936  test $ac_status = 0; }
4937done
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h.  */
4946
4947int
4948main ()
4949{
4950#ifndef __GNUC__
4951       choke me
4952#endif
4953
4954  ;
4955  return 0;
4956}
4957_ACEOF
4958if ac_fn_cxx_try_compile "$LINENO"; then :
4959  ac_compiler_gnu=yes
4960else
4961  ac_compiler_gnu=no
4962fi
4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4965
4966fi
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4969if test $ac_compiler_gnu = yes; then
4970  GXX=yes
4971else
4972  GXX=
4973fi
4974ac_test_CXXFLAGS=${CXXFLAGS+set}
4975ac_save_CXXFLAGS=$CXXFLAGS
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978if test "${ac_cv_prog_cxx_g+set}" = set; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982   ac_cxx_werror_flag=yes
4983   ac_cv_prog_cxx_g=no
4984   CXXFLAGS="-g"
4985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h.  */
4987
4988int
4989main ()
4990{
4991
4992  ;
4993  return 0;
4994}
4995_ACEOF
4996if ac_fn_cxx_try_compile "$LINENO"; then :
4997  ac_cv_prog_cxx_g=yes
4998else
4999  CXXFLAGS=""
5000      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h.  */
5002
5003int
5004main ()
5005{
5006
5007  ;
5008  return 0;
5009}
5010_ACEOF
5011if ac_fn_cxx_try_compile "$LINENO"; then :
5012
5013else
5014  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015	 CXXFLAGS="-g"
5016	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h.  */
5018
5019int
5020main ()
5021{
5022
5023  ;
5024  return 0;
5025}
5026_ACEOF
5027if ac_fn_cxx_try_compile "$LINENO"; then :
5028  ac_cv_prog_cxx_g=yes
5029fi
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033fi
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038$as_echo "$ac_cv_prog_cxx_g" >&6; }
5039if test "$ac_test_CXXFLAGS" = set; then
5040  CXXFLAGS=$ac_save_CXXFLAGS
5041elif test $ac_cv_prog_cxx_g = yes; then
5042  if test "$GXX" = yes; then
5043    CXXFLAGS="-g -O2"
5044  else
5045    CXXFLAGS="-g"
5046  fi
5047else
5048  if test "$GXX" = yes; then
5049    CXXFLAGS="-O2"
5050  else
5051    CXXFLAGS=
5052  fi
5053fi
5054ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060depcc="$CXX"  am_compiler_list=
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5063$as_echo_n "checking dependency style of $depcc... " >&6; }
5064if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5068  # We make a subdir and do the tests there.  Otherwise we can end up
5069  # making bogus files that we don't know about and never remove.  For
5070  # instance it was reported that on HP-UX the gcc test will end up
5071  # making a dummy file named `D' -- because `-MD' means `put the output
5072  # in D'.
5073  rm -rf conftest.dir
5074  mkdir conftest.dir
5075  # Copy depcomp to subdir because otherwise we won't find it if we're
5076  # using a relative directory.
5077  cp "$am_depcomp" conftest.dir
5078  cd conftest.dir
5079  # We will build objects and dependencies in a subdirectory because
5080  # it helps to detect inapplicable dependency modes.  For instance
5081  # both Tru64's cc and ICC support -MD to output dependencies as a
5082  # side effect of compilation, but ICC will put the dependencies in
5083  # the current directory while Tru64 will put them in the object
5084  # directory.
5085  mkdir sub
5086
5087  am_cv_CXX_dependencies_compiler_type=none
5088  if test "$am_compiler_list" = ""; then
5089     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5090  fi
5091  am__universal=false
5092  case " $depcc " in #(
5093     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5094     esac
5095
5096  for depmode in $am_compiler_list; do
5097    # Setup a source with many dependencies, because some compilers
5098    # like to wrap large dependency lists on column 80 (with \), and
5099    # we should not choose a depcomp mode which is confused by this.
5100    #
5101    # We need to recreate these files for each test, as the compiler may
5102    # overwrite some of them when testing with obscure command lines.
5103    # This happens at least with the AIX C compiler.
5104    : > sub/conftest.c
5105    for i in 1 2 3 4 5 6; do
5106      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5107      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5108      # Solaris 8's {/usr,}/bin/sh.
5109      touch sub/conftst$i.h
5110    done
5111    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5112
5113    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5114    # mode.  It turns out that the SunPro C++ compiler does not properly
5115    # handle `-M -o', and we need to detect this.  Also, some Intel
5116    # versions had trouble with output in subdirs
5117    am__obj=sub/conftest.${OBJEXT-o}
5118    am__minus_obj="-o $am__obj"
5119    case $depmode in
5120    gcc)
5121      # This depmode causes a compiler race in universal mode.
5122      test "$am__universal" = false || continue
5123      ;;
5124    nosideeffect)
5125      # after this tag, mechanisms are not by side-effect, so they'll
5126      # only be used when explicitly requested
5127      if test "x$enable_dependency_tracking" = xyes; then
5128	continue
5129      else
5130	break
5131      fi
5132      ;;
5133    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5134      # This compiler won't grok `-c -o', but also, the minuso test has
5135      # not run yet.  These depmodes are late enough in the game, and
5136      # so weak that their functioning should not be impacted.
5137      am__obj=conftest.${OBJEXT-o}
5138      am__minus_obj=
5139      ;;
5140    none) break ;;
5141    esac
5142    if depmode=$depmode \
5143       source=sub/conftest.c object=$am__obj \
5144       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5145       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5146         >/dev/null 2>conftest.err &&
5147       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5148       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5149       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5150       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5151      # icc doesn't choke on unknown options, it will just issue warnings
5152      # or remarks (even with -Werror).  So we grep stderr for any message
5153      # that says an option was ignored or not supported.
5154      # When given -MP, icc 7.0 and 7.1 complain thusly:
5155      #   icc: Command line warning: ignoring option '-M'; no argument required
5156      # The diagnosis changed in icc 8.0:
5157      #   icc: Command line remark: option '-MP' not supported
5158      if (grep 'ignoring option' conftest.err ||
5159          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5160        am_cv_CXX_dependencies_compiler_type=$depmode
5161        break
5162      fi
5163    fi
5164  done
5165
5166  cd ..
5167  rm -rf conftest.dir
5168else
5169  am_cv_CXX_dependencies_compiler_type=none
5170fi
5171
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5174$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5175CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5176
5177 if
5178  test "x$enable_dependency_tracking" != xno \
5179  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5180  am__fastdepCXX_TRUE=
5181  am__fastdepCXX_FALSE='#'
5182else
5183  am__fastdepCXX_TRUE='#'
5184  am__fastdepCXX_FALSE=
5185fi
5186
5187
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5189$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5190if test "${ac_cv_path_GREP+set}" = set; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  if test -z "$GREP"; then
5194  ac_path_GREP_found=false
5195  # Loop through the user's path and test for each of PROGNAME-LIST
5196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5198do
5199  IFS=$as_save_IFS
5200  test -z "$as_dir" && as_dir=.
5201    for ac_prog in grep ggrep; do
5202    for ac_exec_ext in '' $ac_executable_extensions; do
5203      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5204      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5205# Check for GNU ac_path_GREP and select it if it is found.
5206  # Check for GNU $ac_path_GREP
5207case `"$ac_path_GREP" --version 2>&1` in
5208*GNU*)
5209  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5210*)
5211  ac_count=0
5212  $as_echo_n 0123456789 >"conftest.in"
5213  while :
5214  do
5215    cat "conftest.in" "conftest.in" >"conftest.tmp"
5216    mv "conftest.tmp" "conftest.in"
5217    cp "conftest.in" "conftest.nl"
5218    $as_echo 'GREP' >> "conftest.nl"
5219    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5220    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5221    as_fn_arith $ac_count + 1 && ac_count=$as_val
5222    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5223      # Best one so far, save it but keep looking for a better one
5224      ac_cv_path_GREP="$ac_path_GREP"
5225      ac_path_GREP_max=$ac_count
5226    fi
5227    # 10*(2^10) chars as input seems more than enough
5228    test $ac_count -gt 10 && break
5229  done
5230  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5231esac
5232
5233      $ac_path_GREP_found && break 3
5234    done
5235  done
5236  done
5237IFS=$as_save_IFS
5238  if test -z "$ac_cv_path_GREP"; then
5239    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240  fi
5241else
5242  ac_cv_path_GREP=$GREP
5243fi
5244
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5247$as_echo "$ac_cv_path_GREP" >&6; }
5248 GREP="$ac_cv_path_GREP"
5249
5250
5251ac_ext=c
5252ac_cpp='$CPP $CPPFLAGS'
5253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5257$as_echo_n "checking how to run the C preprocessor... " >&6; }
5258# On Suns, sometimes $CPP names a directory.
5259if test -n "$CPP" && test -d "$CPP"; then
5260  CPP=
5261fi
5262if test -z "$CPP"; then
5263  if test "${ac_cv_prog_CPP+set}" = set; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266      # Double quotes because CPP needs to be expanded
5267    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5268    do
5269      ac_preproc_ok=false
5270for ac_c_preproc_warn_flag in '' yes
5271do
5272  # Use a header file that comes with gcc, so configuring glibc
5273  # with a fresh cross-compiler works.
5274  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275  # <limits.h> exists even on freestanding compilers.
5276  # On the NeXT, cc -E runs the code through the compiler's parser,
5277  # not just through cpp. "Syntax error" is here to catch this case.
5278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280#ifdef __STDC__
5281# include <limits.h>
5282#else
5283# include <assert.h>
5284#endif
5285		     Syntax error
5286_ACEOF
5287if ac_fn_c_try_cpp "$LINENO"; then :
5288
5289else
5290  # Broken: fails on valid input.
5291continue
5292fi
5293rm -f conftest.err conftest.$ac_ext
5294
5295  # OK, works on sane cases.  Now check whether nonexistent headers
5296  # can be detected and how.
5297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299#include <ac_nonexistent.h>
5300_ACEOF
5301if ac_fn_c_try_cpp "$LINENO"; then :
5302  # Broken: success on invalid input.
5303continue
5304else
5305  # Passes both tests.
5306ac_preproc_ok=:
5307break
5308fi
5309rm -f conftest.err conftest.$ac_ext
5310
5311done
5312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313rm -f conftest.err conftest.$ac_ext
5314if $ac_preproc_ok; then :
5315  break
5316fi
5317
5318    done
5319    ac_cv_prog_CPP=$CPP
5320
5321fi
5322  CPP=$ac_cv_prog_CPP
5323else
5324  ac_cv_prog_CPP=$CPP
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5327$as_echo "$CPP" >&6; }
5328ac_preproc_ok=false
5329for ac_c_preproc_warn_flag in '' yes
5330do
5331  # Use a header file that comes with gcc, so configuring glibc
5332  # with a fresh cross-compiler works.
5333  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334  # <limits.h> exists even on freestanding compilers.
5335  # On the NeXT, cc -E runs the code through the compiler's parser,
5336  # not just through cpp. "Syntax error" is here to catch this case.
5337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h.  */
5339#ifdef __STDC__
5340# include <limits.h>
5341#else
5342# include <assert.h>
5343#endif
5344		     Syntax error
5345_ACEOF
5346if ac_fn_c_try_cpp "$LINENO"; then :
5347
5348else
5349  # Broken: fails on valid input.
5350continue
5351fi
5352rm -f conftest.err conftest.$ac_ext
5353
5354  # OK, works on sane cases.  Now check whether nonexistent headers
5355  # can be detected and how.
5356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h.  */
5358#include <ac_nonexistent.h>
5359_ACEOF
5360if ac_fn_c_try_cpp "$LINENO"; then :
5361  # Broken: success on invalid input.
5362continue
5363else
5364  # Passes both tests.
5365ac_preproc_ok=:
5366break
5367fi
5368rm -f conftest.err conftest.$ac_ext
5369
5370done
5371# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5372rm -f conftest.err conftest.$ac_ext
5373if $ac_preproc_ok; then :
5374
5375else
5376  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5378as_fn_error "C preprocessor \"$CPP\" fails sanity check
5379See \`config.log' for more details." "$LINENO" 5; }
5380fi
5381
5382ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5390$as_echo_n "checking for egrep... " >&6; }
5391if test "${ac_cv_path_EGREP+set}" = set; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5395   then ac_cv_path_EGREP="$GREP -E"
5396   else
5397     if test -z "$EGREP"; then
5398  ac_path_EGREP_found=false
5399  # Loop through the user's path and test for each of PROGNAME-LIST
5400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405    for ac_prog in egrep; do
5406    for ac_exec_ext in '' $ac_executable_extensions; do
5407      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5408      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5409# Check for GNU ac_path_EGREP and select it if it is found.
5410  # Check for GNU $ac_path_EGREP
5411case `"$ac_path_EGREP" --version 2>&1` in
5412*GNU*)
5413  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5414*)
5415  ac_count=0
5416  $as_echo_n 0123456789 >"conftest.in"
5417  while :
5418  do
5419    cat "conftest.in" "conftest.in" >"conftest.tmp"
5420    mv "conftest.tmp" "conftest.in"
5421    cp "conftest.in" "conftest.nl"
5422    $as_echo 'EGREP' >> "conftest.nl"
5423    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5424    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5425    as_fn_arith $ac_count + 1 && ac_count=$as_val
5426    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5427      # Best one so far, save it but keep looking for a better one
5428      ac_cv_path_EGREP="$ac_path_EGREP"
5429      ac_path_EGREP_max=$ac_count
5430    fi
5431    # 10*(2^10) chars as input seems more than enough
5432    test $ac_count -gt 10 && break
5433  done
5434  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5435esac
5436
5437      $ac_path_EGREP_found && break 3
5438    done
5439  done
5440  done
5441IFS=$as_save_IFS
5442  if test -z "$ac_cv_path_EGREP"; then
5443    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5444  fi
5445else
5446  ac_cv_path_EGREP=$EGREP
5447fi
5448
5449   fi
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5452$as_echo "$ac_cv_path_EGREP" >&6; }
5453 EGREP="$ac_cv_path_EGREP"
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5457$as_echo_n "checking for ANSI C header files... " >&6; }
5458if test "${ac_cv_header_stdc+set}" = set; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463#include <stdlib.h>
5464#include <stdarg.h>
5465#include <string.h>
5466#include <float.h>
5467
5468int
5469main ()
5470{
5471
5472  ;
5473  return 0;
5474}
5475_ACEOF
5476if ac_fn_c_try_compile "$LINENO"; then :
5477  ac_cv_header_stdc=yes
5478else
5479  ac_cv_header_stdc=no
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482
5483if test $ac_cv_header_stdc = yes; then
5484  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h.  */
5487#include <string.h>
5488
5489_ACEOF
5490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491  $EGREP "memchr" >/dev/null 2>&1; then :
5492
5493else
5494  ac_cv_header_stdc=no
5495fi
5496rm -f conftest*
5497
5498fi
5499
5500if test $ac_cv_header_stdc = yes; then
5501  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504#include <stdlib.h>
5505
5506_ACEOF
5507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508  $EGREP "free" >/dev/null 2>&1; then :
5509
5510else
5511  ac_cv_header_stdc=no
5512fi
5513rm -f conftest*
5514
5515fi
5516
5517if test $ac_cv_header_stdc = yes; then
5518  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5519  if test "$cross_compiling" = yes; then :
5520  :
5521else
5522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524#include <ctype.h>
5525#include <stdlib.h>
5526#if ((' ' & 0x0FF) == 0x020)
5527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5529#else
5530# define ISLOWER(c) \
5531		   (('a' <= (c) && (c) <= 'i') \
5532		     || ('j' <= (c) && (c) <= 'r') \
5533		     || ('s' <= (c) && (c) <= 'z'))
5534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5535#endif
5536
5537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538int
5539main ()
5540{
5541  int i;
5542  for (i = 0; i < 256; i++)
5543    if (XOR (islower (i), ISLOWER (i))
5544	|| toupper (i) != TOUPPER (i))
5545      return 2;
5546  return 0;
5547}
5548_ACEOF
5549if ac_fn_c_try_run "$LINENO"; then :
5550
5551else
5552  ac_cv_header_stdc=no
5553fi
5554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5555  conftest.$ac_objext conftest.beam conftest.$ac_ext
5556fi
5557
5558fi
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5561$as_echo "$ac_cv_header_stdc" >&6; }
5562if test $ac_cv_header_stdc = yes; then
5563
5564$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5565
5566fi
5567
5568# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5569for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5570		  inttypes.h stdint.h unistd.h
5571do :
5572  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5573ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5574"
5575eval as_val=\$$as_ac_Header
5576   if test "x$as_val" = x""yes; then :
5577  cat >>confdefs.h <<_ACEOF
5578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5579_ACEOF
5580
5581fi
5582
5583done
5584
5585
5586
5587  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5588if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5589  MINIX=yes
5590else
5591  MINIX=
5592fi
5593
5594
5595  if test "$MINIX" = yes; then
5596
5597$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5598
5599
5600$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5601
5602
5603$as_echo "#define _MINIX 1" >>confdefs.h
5604
5605  fi
5606
5607
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5609$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5610if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h.  */
5615
5616#	  define __EXTENSIONS__ 1
5617	  $ac_includes_default
5618int
5619main ()
5620{
5621
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"; then :
5627  ac_cv_safe_to_define___extensions__=yes
5628else
5629  ac_cv_safe_to_define___extensions__=no
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632fi
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5634$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5635  test $ac_cv_safe_to_define___extensions__ = yes &&
5636    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5637
5638  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5639
5640  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5641
5642  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5643
5644  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5645
5646
5647
5648
5649
5650
5651case `pwd` in
5652  *\ * | *\	*)
5653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5654$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5655esac
5656
5657
5658
5659macro_version='2.2.7a'
5660macro_revision='1.3134'
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674ltmain="$ac_aux_dir/ltmain.sh"
5675
5676# Backslashify metacharacters that are still active within
5677# double-quoted strings.
5678sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5679
5680# Same as above, but do not quote variable references.
5681double_quote_subst='s/\(["`\\]\)/\\\1/g'
5682
5683# Sed substitution to delay expansion of an escaped shell variable in a
5684# double_quote_subst'ed string.
5685delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5686
5687# Sed substitution to delay expansion of an escaped single quote.
5688delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5689
5690# Sed substitution to avoid accidental globbing in evaled expressions
5691no_glob_subst='s/\*/\\\*/g'
5692
5693ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5694ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5695ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5696
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5698$as_echo_n "checking how to print strings... " >&6; }
5699# Test print first, because it will be a builtin if present.
5700if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5701   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5702  ECHO='print -r --'
5703elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5704  ECHO='printf %s\n'
5705else
5706  # Use this function as a fallback that always works.
5707  func_fallback_echo ()
5708  {
5709    eval 'cat <<_LTECHO_EOF
5710$1
5711_LTECHO_EOF'
5712  }
5713  ECHO='func_fallback_echo'
5714fi
5715
5716# func_echo_all arg...
5717# Invoke $ECHO with all args, space-separated.
5718func_echo_all ()
5719{
5720    $ECHO ""
5721}
5722
5723case "$ECHO" in
5724  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5725$as_echo "printf" >&6; } ;;
5726  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5727$as_echo "print -r" >&6; } ;;
5728  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5729$as_echo "cat" >&6; } ;;
5730esac
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5746$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5747if test "${ac_cv_path_SED+set}" = set; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5751     for ac_i in 1 2 3 4 5 6 7; do
5752       ac_script="$ac_script$as_nl$ac_script"
5753     done
5754     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5755     { ac_script=; unset ac_script;}
5756     if test -z "$SED"; then
5757  ac_path_SED_found=false
5758  # Loop through the user's path and test for each of PROGNAME-LIST
5759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764    for ac_prog in sed gsed; do
5765    for ac_exec_ext in '' $ac_executable_extensions; do
5766      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5767      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5768# Check for GNU ac_path_SED and select it if it is found.
5769  # Check for GNU $ac_path_SED
5770case `"$ac_path_SED" --version 2>&1` in
5771*GNU*)
5772  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5773*)
5774  ac_count=0
5775  $as_echo_n 0123456789 >"conftest.in"
5776  while :
5777  do
5778    cat "conftest.in" "conftest.in" >"conftest.tmp"
5779    mv "conftest.tmp" "conftest.in"
5780    cp "conftest.in" "conftest.nl"
5781    $as_echo '' >> "conftest.nl"
5782    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784    as_fn_arith $ac_count + 1 && ac_count=$as_val
5785    if test $ac_count -gt ${ac_path_SED_max-0}; then
5786      # Best one so far, save it but keep looking for a better one
5787      ac_cv_path_SED="$ac_path_SED"
5788      ac_path_SED_max=$ac_count
5789    fi
5790    # 10*(2^10) chars as input seems more than enough
5791    test $ac_count -gt 10 && break
5792  done
5793  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794esac
5795
5796      $ac_path_SED_found && break 3
5797    done
5798  done
5799  done
5800IFS=$as_save_IFS
5801  if test -z "$ac_cv_path_SED"; then
5802    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5803  fi
5804else
5805  ac_cv_path_SED=$SED
5806fi
5807
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5810$as_echo "$ac_cv_path_SED" >&6; }
5811 SED="$ac_cv_path_SED"
5812  rm -f conftest.sed
5813
5814test -z "$SED" && SED=sed
5815Xsed="$SED -e 1s/^X//"
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5828$as_echo_n "checking for fgrep... " >&6; }
5829if test "${ac_cv_path_FGREP+set}" = set; then :
5830  $as_echo_n "(cached) " >&6
5831else
5832  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5833   then ac_cv_path_FGREP="$GREP -F"
5834   else
5835     if test -z "$FGREP"; then
5836  ac_path_FGREP_found=false
5837  # Loop through the user's path and test for each of PROGNAME-LIST
5838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5840do
5841  IFS=$as_save_IFS
5842  test -z "$as_dir" && as_dir=.
5843    for ac_prog in fgrep; do
5844    for ac_exec_ext in '' $ac_executable_extensions; do
5845      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5846      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5847# Check for GNU ac_path_FGREP and select it if it is found.
5848  # Check for GNU $ac_path_FGREP
5849case `"$ac_path_FGREP" --version 2>&1` in
5850*GNU*)
5851  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5852*)
5853  ac_count=0
5854  $as_echo_n 0123456789 >"conftest.in"
5855  while :
5856  do
5857    cat "conftest.in" "conftest.in" >"conftest.tmp"
5858    mv "conftest.tmp" "conftest.in"
5859    cp "conftest.in" "conftest.nl"
5860    $as_echo 'FGREP' >> "conftest.nl"
5861    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5862    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5863    as_fn_arith $ac_count + 1 && ac_count=$as_val
5864    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5865      # Best one so far, save it but keep looking for a better one
5866      ac_cv_path_FGREP="$ac_path_FGREP"
5867      ac_path_FGREP_max=$ac_count
5868    fi
5869    # 10*(2^10) chars as input seems more than enough
5870    test $ac_count -gt 10 && break
5871  done
5872  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5873esac
5874
5875      $ac_path_FGREP_found && break 3
5876    done
5877  done
5878  done
5879IFS=$as_save_IFS
5880  if test -z "$ac_cv_path_FGREP"; then
5881    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5882  fi
5883else
5884  ac_cv_path_FGREP=$FGREP
5885fi
5886
5887   fi
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5890$as_echo "$ac_cv_path_FGREP" >&6; }
5891 FGREP="$ac_cv_path_FGREP"
5892
5893
5894test -z "$GREP" && GREP=grep
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914# Check whether --with-gnu-ld was given.
5915if test "${with_gnu_ld+set}" = set; then :
5916  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5917else
5918  with_gnu_ld=no
5919fi
5920
5921ac_prog=ld
5922if test "$GCC" = yes; then
5923  # Check if gcc -print-prog-name=ld gives a path.
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5925$as_echo_n "checking for ld used by $CC... " >&6; }
5926  case $host in
5927  *-*-mingw*)
5928    # gcc leaves a trailing carriage return which upsets mingw
5929    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5930  *)
5931    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5932  esac
5933  case $ac_prog in
5934    # Accept absolute paths.
5935    [\\/]* | ?:[\\/]*)
5936      re_direlt='/[^/][^/]*/\.\./'
5937      # Canonicalize the pathname of ld
5938      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5939      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5940	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5941      done
5942      test -z "$LD" && LD="$ac_prog"
5943      ;;
5944  "")
5945    # If it fails, then pretend we aren't using GCC.
5946    ac_prog=ld
5947    ;;
5948  *)
5949    # If it is relative, then search for the first ld in PATH.
5950    with_gnu_ld=unknown
5951    ;;
5952  esac
5953elif test "$with_gnu_ld" = yes; then
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5955$as_echo_n "checking for GNU ld... " >&6; }
5956else
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5958$as_echo_n "checking for non-GNU ld... " >&6; }
5959fi
5960if test "${lt_cv_path_LD+set}" = set; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  if test -z "$LD"; then
5964  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5965  for ac_dir in $PATH; do
5966    IFS="$lt_save_ifs"
5967    test -z "$ac_dir" && ac_dir=.
5968    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5969      lt_cv_path_LD="$ac_dir/$ac_prog"
5970      # Check to see if the program is GNU ld.  I'd rather use --version,
5971      # but apparently some variants of GNU ld only accept -v.
5972      # Break only if it was the GNU/non-GNU ld that we prefer.
5973      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5974      *GNU* | *'with BFD'*)
5975	test "$with_gnu_ld" != no && break
5976	;;
5977      *)
5978	test "$with_gnu_ld" != yes && break
5979	;;
5980      esac
5981    fi
5982  done
5983  IFS="$lt_save_ifs"
5984else
5985  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5986fi
5987fi
5988
5989LD="$lt_cv_path_LD"
5990if test -n "$LD"; then
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5992$as_echo "$LD" >&6; }
5993else
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5999$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6000if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6004case `$LD -v 2>&1 </dev/null` in
6005*GNU* | *'with BFD'*)
6006  lt_cv_prog_gnu_ld=yes
6007  ;;
6008*)
6009  lt_cv_prog_gnu_ld=no
6010  ;;
6011esac
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6014$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6015with_gnu_ld=$lt_cv_prog_gnu_ld
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6026$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6027if test "${lt_cv_path_NM+set}" = set; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  if test -n "$NM"; then
6031  # Let the user override the test.
6032  lt_cv_path_NM="$NM"
6033else
6034  lt_nm_to_check="${ac_tool_prefix}nm"
6035  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6036    lt_nm_to_check="$lt_nm_to_check nm"
6037  fi
6038  for lt_tmp_nm in $lt_nm_to_check; do
6039    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6040    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6041      IFS="$lt_save_ifs"
6042      test -z "$ac_dir" && ac_dir=.
6043      tmp_nm="$ac_dir/$lt_tmp_nm"
6044      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6045	# Check to see if the nm accepts a BSD-compat flag.
6046	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6047	#   nm: unknown option "B" ignored
6048	# Tru64's nm complains that /dev/null is an invalid object file
6049	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6050	*/dev/null* | *'Invalid file or object type'*)
6051	  lt_cv_path_NM="$tmp_nm -B"
6052	  break
6053	  ;;
6054	*)
6055	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6056	  */dev/null*)
6057	    lt_cv_path_NM="$tmp_nm -p"
6058	    break
6059	    ;;
6060	  *)
6061	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6062	    continue # so that we can try to find one that supports BSD flags
6063	    ;;
6064	  esac
6065	  ;;
6066	esac
6067      fi
6068    done
6069    IFS="$lt_save_ifs"
6070  done
6071  : ${lt_cv_path_NM=no}
6072fi
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6075$as_echo "$lt_cv_path_NM" >&6; }
6076if test "$lt_cv_path_NM" != "no"; then
6077  NM="$lt_cv_path_NM"
6078else
6079  # Didn't find any BSD compatible name lister, look for dumpbin.
6080  if test -n "$DUMPBIN"; then :
6081    # Let the user override the test.
6082  else
6083    if test -n "$ac_tool_prefix"; then
6084  for ac_prog in dumpbin "link -dump"
6085  do
6086    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  if test -n "$DUMPBIN"; then
6094  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099  IFS=$as_save_IFS
6100  test -z "$as_dir" && as_dir=.
6101    for ac_exec_ext in '' $ac_executable_extensions; do
6102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105    break 2
6106  fi
6107done
6108  done
6109IFS=$as_save_IFS
6110
6111fi
6112fi
6113DUMPBIN=$ac_cv_prog_DUMPBIN
6114if test -n "$DUMPBIN"; then
6115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6116$as_echo "$DUMPBIN" >&6; }
6117else
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
6120fi
6121
6122
6123    test -n "$DUMPBIN" && break
6124  done
6125fi
6126if test -z "$DUMPBIN"; then
6127  ac_ct_DUMPBIN=$DUMPBIN
6128  for ac_prog in dumpbin "link -dump"
6129do
6130  # Extract the first word of "$ac_prog", so it can be a program name with args.
6131set dummy $ac_prog; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  if test -n "$ac_ct_DUMPBIN"; then
6138  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145    for ac_exec_ext in '' $ac_executable_extensions; do
6146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149    break 2
6150  fi
6151done
6152  done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6158if test -n "$ac_ct_DUMPBIN"; then
6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6160$as_echo "$ac_ct_DUMPBIN" >&6; }
6161else
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166
6167  test -n "$ac_ct_DUMPBIN" && break
6168done
6169
6170  if test "x$ac_ct_DUMPBIN" = x; then
6171    DUMPBIN=":"
6172  else
6173    case $cross_compiling:$ac_tool_warned in
6174yes:)
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177ac_tool_warned=yes ;;
6178esac
6179    DUMPBIN=$ac_ct_DUMPBIN
6180  fi
6181fi
6182
6183    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6184    *COFF*)
6185      DUMPBIN="$DUMPBIN -symbols"
6186      ;;
6187    *)
6188      DUMPBIN=:
6189      ;;
6190    esac
6191  fi
6192
6193  if test "$DUMPBIN" != ":"; then
6194    NM="$DUMPBIN"
6195  fi
6196fi
6197test -z "$NM" && NM=nm
6198
6199
6200
6201
6202
6203
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6205$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6206if test "${lt_cv_nm_interface+set}" = set; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  lt_cv_nm_interface="BSD nm"
6210  echo "int some_variable = 0;" > conftest.$ac_ext
6211  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6212  (eval "$ac_compile" 2>conftest.err)
6213  cat conftest.err >&5
6214  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6215  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6216  cat conftest.err >&5
6217  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6218  cat conftest.out >&5
6219  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6220    lt_cv_nm_interface="MS dumpbin"
6221  fi
6222  rm -f conftest*
6223fi
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6225$as_echo "$lt_cv_nm_interface" >&6; }
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6228$as_echo_n "checking whether ln -s works... " >&6; }
6229LN_S=$as_ln_s
6230if test "$LN_S" = "ln -s"; then
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6232$as_echo "yes" >&6; }
6233else
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6235$as_echo "no, using $LN_S" >&6; }
6236fi
6237
6238# find the maximum length of command line arguments
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6240$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6241if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244    i=0
6245  teststring="ABCD"
6246
6247  case $build_os in
6248  msdosdjgpp*)
6249    # On DJGPP, this test can blow up pretty badly due to problems in libc
6250    # (any single argument exceeding 2000 bytes causes a buffer overrun
6251    # during glob expansion).  Even if it were fixed, the result of this
6252    # check would be larger than it should be.
6253    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6254    ;;
6255
6256  gnu*)
6257    # Under GNU Hurd, this test is not required because there is
6258    # no limit to the length of command line arguments.
6259    # Libtool will interpret -1 as no limit whatsoever
6260    lt_cv_sys_max_cmd_len=-1;
6261    ;;
6262
6263  cygwin* | mingw* | cegcc*)
6264    # On Win9x/ME, this test blows up -- it succeeds, but takes
6265    # about 5 minutes as the teststring grows exponentially.
6266    # Worse, since 9x/ME are not pre-emptively multitasking,
6267    # you end up with a "frozen" computer, even though with patience
6268    # the test eventually succeeds (with a max line length of 256k).
6269    # Instead, let's just punt: use the minimum linelength reported by
6270    # all of the supported platforms: 8192 (on NT/2K/XP).
6271    lt_cv_sys_max_cmd_len=8192;
6272    ;;
6273
6274  mint*)
6275    # On MiNT this can take a long time and run out of memory.
6276    lt_cv_sys_max_cmd_len=8192;
6277    ;;
6278
6279  amigaos*)
6280    # On AmigaOS with pdksh, this test takes hours, literally.
6281    # So we just punt and use a minimum line length of 8192.
6282    lt_cv_sys_max_cmd_len=8192;
6283    ;;
6284
6285  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6286    # This has been around since 386BSD, at least.  Likely further.
6287    if test -x /sbin/sysctl; then
6288      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6289    elif test -x /usr/sbin/sysctl; then
6290      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6291    else
6292      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6293    fi
6294    # And add a safety zone
6295    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6297    ;;
6298
6299  interix*)
6300    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6301    lt_cv_sys_max_cmd_len=196608
6302    ;;
6303
6304  osf*)
6305    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6306    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6307    # nice to cause kernel panics so lets avoid the loop below.
6308    # First set a reasonable default.
6309    lt_cv_sys_max_cmd_len=16384
6310    #
6311    if test -x /sbin/sysconfig; then
6312      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6313        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6314      esac
6315    fi
6316    ;;
6317  sco3.2v5*)
6318    lt_cv_sys_max_cmd_len=102400
6319    ;;
6320  sysv5* | sco5v6* | sysv4.2uw2*)
6321    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6322    if test -n "$kargmax"; then
6323      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6324    else
6325      lt_cv_sys_max_cmd_len=32768
6326    fi
6327    ;;
6328  *)
6329    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6330    if test -n "$lt_cv_sys_max_cmd_len"; then
6331      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6332      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6333    else
6334      # Make teststring a little bigger before we do anything with it.
6335      # a 1K string should be a reasonable start.
6336      for i in 1 2 3 4 5 6 7 8 ; do
6337        teststring=$teststring$teststring
6338      done
6339      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6340      # If test is not a shell built-in, we'll probably end up computing a
6341      # maximum length that is only half of the actual maximum length, but
6342      # we can't tell.
6343      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6344	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6345	      test $i != 17 # 1/2 MB should be enough
6346      do
6347        i=`expr $i + 1`
6348        teststring=$teststring$teststring
6349      done
6350      # Only check the string length outside the loop.
6351      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6352      teststring=
6353      # Add a significant safety factor because C++ compilers can tack on
6354      # massive amounts of additional arguments before passing them to the
6355      # linker.  It appears as though 1/2 is a usable value.
6356      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6357    fi
6358    ;;
6359  esac
6360
6361fi
6362
6363if test -n $lt_cv_sys_max_cmd_len ; then
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6365$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6366else
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6368$as_echo "none" >&6; }
6369fi
6370max_cmd_len=$lt_cv_sys_max_cmd_len
6371
6372
6373
6374
6375
6376
6377: ${CP="cp -f"}
6378: ${MV="mv -f"}
6379: ${RM="rm -f"}
6380
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6382$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6383# Try some XSI features
6384xsi_shell=no
6385( _lt_dummy="a/b/c"
6386  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6387      = c,a/b,, \
6388    && eval 'test $(( 1 + 1 )) -eq 2 \
6389    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6390  && xsi_shell=yes
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6392$as_echo "$xsi_shell" >&6; }
6393
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6396$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6397lt_shell_append=no
6398( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6399    >/dev/null 2>&1 \
6400  && lt_shell_append=yes
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6402$as_echo "$lt_shell_append" >&6; }
6403
6404
6405if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6406  lt_unset=unset
6407else
6408  lt_unset=false
6409fi
6410
6411
6412
6413
6414
6415# test EBCDIC or ASCII
6416case `echo X|tr X '\101'` in
6417 A) # ASCII based system
6418    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6419  lt_SP2NL='tr \040 \012'
6420  lt_NL2SP='tr \015\012 \040\040'
6421  ;;
6422 *) # EBCDIC based system
6423  lt_SP2NL='tr \100 \n'
6424  lt_NL2SP='tr \r\n \100\100'
6425  ;;
6426esac
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6437$as_echo_n "checking for $LD option to reload object files... " >&6; }
6438if test "${lt_cv_ld_reload_flag+set}" = set; then :
6439  $as_echo_n "(cached) " >&6
6440else
6441  lt_cv_ld_reload_flag='-r'
6442fi
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6444$as_echo "$lt_cv_ld_reload_flag" >&6; }
6445reload_flag=$lt_cv_ld_reload_flag
6446case $reload_flag in
6447"" | " "*) ;;
6448*) reload_flag=" $reload_flag" ;;
6449esac
6450reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451case $host_os in
6452  darwin*)
6453    if test "$GCC" = yes; then
6454      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6455    else
6456      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6457    fi
6458    ;;
6459esac
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}objdump; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$OBJDUMP"; then
6478  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497OBJDUMP=$ac_cv_prog_OBJDUMP
6498if test -n "$OBJDUMP"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6500$as_echo "$OBJDUMP" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_OBJDUMP"; then
6509  ac_ct_OBJDUMP=$OBJDUMP
6510  # Extract the first word of "objdump", so it can be a program name with args.
6511set dummy objdump; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$ac_ct_OBJDUMP"; then
6518  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6538if test -n "$ac_ct_OBJDUMP"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6540$as_echo "$ac_ct_OBJDUMP" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_OBJDUMP" = x; then
6547    OBJDUMP="false"
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    OBJDUMP=$ac_ct_OBJDUMP
6556  fi
6557else
6558  OBJDUMP="$ac_cv_prog_OBJDUMP"
6559fi
6560
6561test -z "$OBJDUMP" && OBJDUMP=objdump
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6572$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6573if test "${lt_cv_deplibs_check_method+set}" = set; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576  lt_cv_file_magic_cmd='$MAGIC_CMD'
6577lt_cv_file_magic_test_file=
6578lt_cv_deplibs_check_method='unknown'
6579# Need to set the preceding variable on all platforms that support
6580# interlibrary dependencies.
6581# 'none' -- dependencies not supported.
6582# `unknown' -- same as none, but documents that we really don't know.
6583# 'pass_all' -- all dependencies passed with no checks.
6584# 'test_compile' -- check by making test program.
6585# 'file_magic [[regex]]' -- check by looking for files in library path
6586# which responds to the $file_magic_cmd with a given extended regex.
6587# If you have `file' or equivalent on your system and you're not sure
6588# whether `pass_all' will *always* work, you probably want this one.
6589
6590case $host_os in
6591aix[4-9]*)
6592  lt_cv_deplibs_check_method=pass_all
6593  ;;
6594
6595beos*)
6596  lt_cv_deplibs_check_method=pass_all
6597  ;;
6598
6599bsdi[45]*)
6600  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6601  lt_cv_file_magic_cmd='/usr/bin/file -L'
6602  lt_cv_file_magic_test_file=/shlib/libc.so
6603  ;;
6604
6605cygwin*)
6606  # func_win32_libid is a shell function defined in ltmain.sh
6607  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6608  lt_cv_file_magic_cmd='func_win32_libid'
6609  ;;
6610
6611mingw* | pw32*)
6612  # Base MSYS/MinGW do not provide the 'file' command needed by
6613  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6614  # unless we find 'file', for example because we are cross-compiling.
6615  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6616  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6617    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6618    lt_cv_file_magic_cmd='func_win32_libid'
6619  else
6620    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6621    lt_cv_file_magic_cmd='$OBJDUMP -f'
6622  fi
6623  ;;
6624
6625cegcc*)
6626  # use the weaker test based on 'objdump'. See mingw*.
6627  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6628  lt_cv_file_magic_cmd='$OBJDUMP -f'
6629  ;;
6630
6631darwin* | rhapsody*)
6632  lt_cv_deplibs_check_method=pass_all
6633  ;;
6634
6635freebsd* | dragonfly*)
6636  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6637    case $host_cpu in
6638    i*86 )
6639      # Not sure whether the presence of OpenBSD here was a mistake.
6640      # Let's accept both of them until this is cleared up.
6641      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6642      lt_cv_file_magic_cmd=/usr/bin/file
6643      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6644      ;;
6645    esac
6646  else
6647    lt_cv_deplibs_check_method=pass_all
6648  fi
6649  ;;
6650
6651gnu*)
6652  lt_cv_deplibs_check_method=pass_all
6653  ;;
6654
6655haiku*)
6656  lt_cv_deplibs_check_method=pass_all
6657  ;;
6658
6659hpux10.20* | hpux11*)
6660  lt_cv_file_magic_cmd=/usr/bin/file
6661  case $host_cpu in
6662  ia64*)
6663    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6664    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6665    ;;
6666  hppa*64*)
6667    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]'
6668    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6669    ;;
6670  *)
6671    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6672    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6673    ;;
6674  esac
6675  ;;
6676
6677interix[3-9]*)
6678  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6679  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6680  ;;
6681
6682irix5* | irix6* | nonstopux*)
6683  case $LD in
6684  *-32|*"-32 ") libmagic=32-bit;;
6685  *-n32|*"-n32 ") libmagic=N32;;
6686  *-64|*"-64 ") libmagic=64-bit;;
6687  *) libmagic=never-match;;
6688  esac
6689  lt_cv_deplibs_check_method=pass_all
6690  ;;
6691
6692# This must be Linux ELF.
6693linux* | k*bsd*-gnu | kopensolaris*-gnu)
6694  lt_cv_deplibs_check_method=pass_all
6695  ;;
6696
6697netbsd*)
6698  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6700  else
6701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6702  fi
6703  ;;
6704
6705newos6*)
6706  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6707  lt_cv_file_magic_cmd=/usr/bin/file
6708  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6709  ;;
6710
6711*nto* | *qnx*)
6712  lt_cv_deplibs_check_method=pass_all
6713  ;;
6714
6715openbsd*)
6716  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6717    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6718  else
6719    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6720  fi
6721  ;;
6722
6723osf3* | osf4* | osf5*)
6724  lt_cv_deplibs_check_method=pass_all
6725  ;;
6726
6727rdos*)
6728  lt_cv_deplibs_check_method=pass_all
6729  ;;
6730
6731solaris*)
6732  lt_cv_deplibs_check_method=pass_all
6733  ;;
6734
6735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6736  lt_cv_deplibs_check_method=pass_all
6737  ;;
6738
6739sysv4 | sysv4.3*)
6740  case $host_vendor in
6741  motorola)
6742    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]'
6743    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6744    ;;
6745  ncr)
6746    lt_cv_deplibs_check_method=pass_all
6747    ;;
6748  sequent)
6749    lt_cv_file_magic_cmd='/bin/file'
6750    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6751    ;;
6752  sni)
6753    lt_cv_file_magic_cmd='/bin/file'
6754    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6755    lt_cv_file_magic_test_file=/lib/libc.so
6756    ;;
6757  siemens)
6758    lt_cv_deplibs_check_method=pass_all
6759    ;;
6760  pc)
6761    lt_cv_deplibs_check_method=pass_all
6762    ;;
6763  esac
6764  ;;
6765
6766tpf*)
6767  lt_cv_deplibs_check_method=pass_all
6768  ;;
6769esac
6770
6771fi
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6773$as_echo "$lt_cv_deplibs_check_method" >&6; }
6774file_magic_cmd=$lt_cv_file_magic_cmd
6775deplibs_check_method=$lt_cv_deplibs_check_method
6776test -z "$deplibs_check_method" && deplibs_check_method=unknown
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789if test -n "$ac_tool_prefix"; then
6790  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}ar; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if test "${ac_cv_prog_AR+set}" = set; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$AR"; then
6798  ac_cv_prog_AR="$AR" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807    ac_cv_prog_AR="${ac_tool_prefix}ar"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817AR=$ac_cv_prog_AR
6818if test -n "$AR"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6820$as_echo "$AR" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826
6827fi
6828if test -z "$ac_cv_prog_AR"; then
6829  ac_ct_AR=$AR
6830  # Extract the first word of "ar", so it can be a program name with args.
6831set dummy ar; ac_word=$2
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  if test -n "$ac_ct_AR"; then
6838  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845    for ac_exec_ext in '' $ac_executable_extensions; do
6846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847    ac_cv_prog_ac_ct_AR="ar"
6848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852  done
6853IFS=$as_save_IFS
6854
6855fi
6856fi
6857ac_ct_AR=$ac_cv_prog_ac_ct_AR
6858if test -n "$ac_ct_AR"; then
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6860$as_echo "$ac_ct_AR" >&6; }
6861else
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866  if test "x$ac_ct_AR" = x; then
6867    AR="false"
6868  else
6869    case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875    AR=$ac_ct_AR
6876  fi
6877else
6878  AR="$ac_cv_prog_AR"
6879fi
6880
6881test -z "$AR" && AR=ar
6882test -z "$AR_FLAGS" && AR_FLAGS=cru
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894if test -n "$ac_tool_prefix"; then
6895  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6896set dummy ${ac_tool_prefix}strip; ac_word=$2
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if test "${ac_cv_prog_STRIP+set}" = set; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  if test -n "$STRIP"; then
6903  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908  IFS=$as_save_IFS
6909  test -z "$as_dir" && as_dir=.
6910    for ac_exec_ext in '' $ac_executable_extensions; do
6911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917  done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922STRIP=$ac_cv_prog_STRIP
6923if test -n "$STRIP"; then
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6925$as_echo "$STRIP" >&6; }
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931
6932fi
6933if test -z "$ac_cv_prog_STRIP"; then
6934  ac_ct_STRIP=$STRIP
6935  # Extract the first word of "strip", so it can be a program name with args.
6936set dummy strip; ac_word=$2
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  if test -n "$ac_ct_STRIP"; then
6943  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952    ac_cv_prog_ac_ct_STRIP="strip"
6953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6963if test -n "$ac_ct_STRIP"; then
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6965$as_echo "$ac_ct_STRIP" >&6; }
6966else
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971  if test "x$ac_ct_STRIP" = x; then
6972    STRIP=":"
6973  else
6974    case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978ac_tool_warned=yes ;;
6979esac
6980    STRIP=$ac_ct_STRIP
6981  fi
6982else
6983  STRIP="$ac_cv_prog_STRIP"
6984fi
6985
6986test -z "$STRIP" && STRIP=:
6987
6988
6989
6990
6991
6992
6993if test -n "$ac_tool_prefix"; then
6994  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6995set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if test "${ac_cv_prog_RANLIB+set}" = set; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  if test -n "$RANLIB"; then
7002  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007  IFS=$as_save_IFS
7008  test -z "$as_dir" && as_dir=.
7009    for ac_exec_ext in '' $ac_executable_extensions; do
7010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013    break 2
7014  fi
7015done
7016  done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021RANLIB=$ac_cv_prog_RANLIB
7022if test -n "$RANLIB"; then
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7024$as_echo "$RANLIB" >&6; }
7025else
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027$as_echo "no" >&6; }
7028fi
7029
7030
7031fi
7032if test -z "$ac_cv_prog_RANLIB"; then
7033  ac_ct_RANLIB=$RANLIB
7034  # Extract the first word of "ranlib", so it can be a program name with args.
7035set dummy ranlib; ac_word=$2
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037$as_echo_n "checking for $ac_word... " >&6; }
7038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  if test -n "$ac_ct_RANLIB"; then
7042  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047  IFS=$as_save_IFS
7048  test -z "$as_dir" && as_dir=.
7049    for ac_exec_ext in '' $ac_executable_extensions; do
7050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051    ac_cv_prog_ac_ct_RANLIB="ranlib"
7052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053    break 2
7054  fi
7055done
7056  done
7057IFS=$as_save_IFS
7058
7059fi
7060fi
7061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7062if test -n "$ac_ct_RANLIB"; then
7063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7064$as_echo "$ac_ct_RANLIB" >&6; }
7065else
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
7068fi
7069
7070  if test "x$ac_ct_RANLIB" = x; then
7071    RANLIB=":"
7072  else
7073    case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079    RANLIB=$ac_ct_RANLIB
7080  fi
7081else
7082  RANLIB="$ac_cv_prog_RANLIB"
7083fi
7084
7085test -z "$RANLIB" && RANLIB=:
7086
7087
7088
7089
7090
7091
7092# Determine commands to create old-style static archives.
7093old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7094old_postinstall_cmds='chmod 644 $oldlib'
7095old_postuninstall_cmds=
7096
7097if test -n "$RANLIB"; then
7098  case $host_os in
7099  openbsd*)
7100    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7101    ;;
7102  *)
7103    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7104    ;;
7105  esac
7106  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7107fi
7108
7109case $host_os in
7110  darwin*)
7111    lock_old_archive_extraction=yes ;;
7112  *)
7113    lock_old_archive_extraction=no ;;
7114esac
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
7147
7148
7149
7150
7151
7152
7153
7154# If no C compiler was specified, use CC.
7155LTCC=${LTCC-"$CC"}
7156
7157# If no C compiler flags were specified, use CFLAGS.
7158LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7159
7160# Allow CC to be a program name with arguments.
7161compiler=$CC
7162
7163
7164# Check for command to grab the raw symbol name followed by C symbol from nm.
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7166$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7167if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170
7171# These are sane defaults that work on at least a few old systems.
7172# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7173
7174# Character class describing NM global symbol codes.
7175symcode='[BCDEGRST]'
7176
7177# Regexp to match symbols that can be accessed directly from C.
7178sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7179
7180# Define system-specific variables.
7181case $host_os in
7182aix*)
7183  symcode='[BCDT]'
7184  ;;
7185cygwin* | mingw* | pw32* | cegcc*)
7186  symcode='[ABCDGISTW]'
7187  ;;
7188hpux*)
7189  if test "$host_cpu" = ia64; then
7190    symcode='[ABCDEGRST]'
7191  fi
7192  ;;
7193irix* | nonstopux*)
7194  symcode='[BCDEGRST]'
7195  ;;
7196osf*)
7197  symcode='[BCDEGQRST]'
7198  ;;
7199solaris*)
7200  symcode='[BDRT]'
7201  ;;
7202sco3.2v5*)
7203  symcode='[DT]'
7204  ;;
7205sysv4.2uw2*)
7206  symcode='[DT]'
7207  ;;
7208sysv5* | sco5v6* | unixware* | OpenUNIX*)
7209  symcode='[ABDT]'
7210  ;;
7211sysv4)
7212  symcode='[DFNSTU]'
7213  ;;
7214esac
7215
7216# If we're using GNU nm, then use its standard symbol codes.
7217case `$NM -V 2>&1` in
7218*GNU* | *'with BFD'*)
7219  symcode='[ABCDGIRSTW]' ;;
7220esac
7221
7222# Transform an extracted symbol line into a proper C declaration.
7223# Some systems (esp. on ia64) link data and code symbols differently,
7224# so use this general approach.
7225lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7226
7227# Transform an extracted symbol line into symbol name and symbol address
7228lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7229lt_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'"
7230
7231# Handle CRLF in mingw tool chain
7232opt_cr=
7233case $build_os in
7234mingw*)
7235  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7236  ;;
7237esac
7238
7239# Try without a prefix underscore, then with it.
7240for ac_symprfx in "" "_"; do
7241
7242  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7243  symxfrm="\\1 $ac_symprfx\\2 \\2"
7244
7245  # Write the raw and C identifiers.
7246  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7247    # Fake it for dumpbin and say T for any non-static function
7248    # and D for any global variable.
7249    # Also find C++ and __fastcall symbols from MSVC++,
7250    # which start with @ or ?.
7251    lt_cv_sys_global_symbol_pipe="$AWK '"\
7252"     {last_section=section; section=\$ 3};"\
7253"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7254"     \$ 0!~/External *\|/{next};"\
7255"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7256"     {if(hide[section]) next};"\
7257"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7258"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7259"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7260"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7261"     ' prfx=^$ac_symprfx"
7262  else
7263    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7264  fi
7265
7266  # Check to see that the pipe works correctly.
7267  pipe_works=no
7268
7269  rm -f conftest*
7270  cat > conftest.$ac_ext <<_LT_EOF
7271#ifdef __cplusplus
7272extern "C" {
7273#endif
7274char nm_test_var;
7275void nm_test_func(void);
7276void nm_test_func(void){}
7277#ifdef __cplusplus
7278}
7279#endif
7280int main(){nm_test_var='a';nm_test_func();return(0);}
7281_LT_EOF
7282
7283  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7284  (eval $ac_compile) 2>&5
7285  ac_status=$?
7286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287  test $ac_status = 0; }; then
7288    # Now try to grab the symbols.
7289    nlist=conftest.nm
7290    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7291  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7292  ac_status=$?
7293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294  test $ac_status = 0; } && test -s "$nlist"; then
7295      # Try sorting and uniquifying the output.
7296      if sort "$nlist" | uniq > "$nlist"T; then
7297	mv -f "$nlist"T "$nlist"
7298      else
7299	rm -f "$nlist"T
7300      fi
7301
7302      # Make sure that we snagged all the symbols we need.
7303      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7304	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7305	  cat <<_LT_EOF > conftest.$ac_ext
7306#ifdef __cplusplus
7307extern "C" {
7308#endif
7309
7310_LT_EOF
7311	  # Now generate the symbol file.
7312	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7313
7314	  cat <<_LT_EOF >> conftest.$ac_ext
7315
7316/* The mapping between symbol names and symbols.  */
7317const struct {
7318  const char *name;
7319  void       *address;
7320}
7321lt__PROGRAM__LTX_preloaded_symbols[] =
7322{
7323  { "@PROGRAM@", (void *) 0 },
7324_LT_EOF
7325	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326	  cat <<\_LT_EOF >> conftest.$ac_ext
7327  {0, (void *) 0}
7328};
7329
7330/* This works around a problem in FreeBSD linker */
7331#ifdef FREEBSD_WORKAROUND
7332static const void *lt_preloaded_setup() {
7333  return lt__PROGRAM__LTX_preloaded_symbols;
7334}
7335#endif
7336
7337#ifdef __cplusplus
7338}
7339#endif
7340_LT_EOF
7341	  # Now try linking the two files.
7342	  mv conftest.$ac_objext conftstm.$ac_objext
7343	  lt_save_LIBS="$LIBS"
7344	  lt_save_CFLAGS="$CFLAGS"
7345	  LIBS="conftstm.$ac_objext"
7346	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7347	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7348  (eval $ac_link) 2>&5
7349  ac_status=$?
7350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7352	    pipe_works=yes
7353	  fi
7354	  LIBS="$lt_save_LIBS"
7355	  CFLAGS="$lt_save_CFLAGS"
7356	else
7357	  echo "cannot find nm_test_func in $nlist" >&5
7358	fi
7359      else
7360	echo "cannot find nm_test_var in $nlist" >&5
7361      fi
7362    else
7363      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7364    fi
7365  else
7366    echo "$progname: failed program was:" >&5
7367    cat conftest.$ac_ext >&5
7368  fi
7369  rm -rf conftest* conftst*
7370
7371  # Do not use the global_symbol_pipe unless it works.
7372  if test "$pipe_works" = yes; then
7373    break
7374  else
7375    lt_cv_sys_global_symbol_pipe=
7376  fi
7377done
7378
7379fi
7380
7381if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382  lt_cv_sys_global_symbol_to_cdecl=
7383fi
7384if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386$as_echo "failed" >&6; }
7387else
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389$as_echo "ok" >&6; }
7390fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413# Check whether --enable-libtool-lock was given.
7414if test "${enable_libtool_lock+set}" = set; then :
7415  enableval=$enable_libtool_lock;
7416fi
7417
7418test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7419
7420# Some flags need to be propagated to the compiler or linker for good
7421# libtool support.
7422case $host in
7423ia64-*-hpux*)
7424  # Find out which ABI we are using.
7425  echo 'int i;' > conftest.$ac_ext
7426  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7427  (eval $ac_compile) 2>&5
7428  ac_status=$?
7429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430  test $ac_status = 0; }; then
7431    case `/usr/bin/file conftest.$ac_objext` in
7432      *ELF-32*)
7433	HPUX_IA64_MODE="32"
7434	;;
7435      *ELF-64*)
7436	HPUX_IA64_MODE="64"
7437	;;
7438    esac
7439  fi
7440  rm -rf conftest*
7441  ;;
7442*-*-irix6*)
7443  # Find out which ABI we are using.
7444  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7445  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446  (eval $ac_compile) 2>&5
7447  ac_status=$?
7448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449  test $ac_status = 0; }; then
7450    if test "$lt_cv_prog_gnu_ld" = yes; then
7451      case `/usr/bin/file conftest.$ac_objext` in
7452	*32-bit*)
7453	  LD="${LD-ld} -melf32bsmip"
7454	  ;;
7455	*N32*)
7456	  LD="${LD-ld} -melf32bmipn32"
7457	  ;;
7458	*64-bit*)
7459	  LD="${LD-ld} -melf64bmip"
7460	;;
7461      esac
7462    else
7463      case `/usr/bin/file conftest.$ac_objext` in
7464	*32-bit*)
7465	  LD="${LD-ld} -32"
7466	  ;;
7467	*N32*)
7468	  LD="${LD-ld} -n32"
7469	  ;;
7470	*64-bit*)
7471	  LD="${LD-ld} -64"
7472	  ;;
7473      esac
7474    fi
7475  fi
7476  rm -rf conftest*
7477  ;;
7478
7479x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7480s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7481  # Find out which ABI we are using.
7482  echo 'int i;' > conftest.$ac_ext
7483  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7484  (eval $ac_compile) 2>&5
7485  ac_status=$?
7486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487  test $ac_status = 0; }; then
7488    case `/usr/bin/file conftest.o` in
7489      *32-bit*)
7490	case $host in
7491	  x86_64-*kfreebsd*-gnu)
7492	    LD="${LD-ld} -m elf_i386_fbsd"
7493	    ;;
7494	  x86_64-*linux*)
7495	    case `/usr/bin/file conftest.o` in
7496	      *x86-64*)
7497		LD="${LD-ld} -m elf32_x86_64"
7498		;;
7499	      *)
7500		LD="${LD-ld} -m elf_i386"
7501		;;
7502	    esac
7503	    ;;
7504	  powerpc64le-*linux*)
7505	    LD="${LD-ld} -m elf32lppclinux"
7506	    ;;
7507	  powerpc64-*linux*)
7508	    LD="${LD-ld} -m elf32ppclinux"
7509	    ;;
7510	  s390x-*linux*)
7511	    LD="${LD-ld} -m elf_s390"
7512	    ;;
7513	  sparc64-*linux*)
7514	    LD="${LD-ld} -m elf32_sparc"
7515	    ;;
7516	esac
7517	;;
7518      *64-bit*)
7519	case $host in
7520	  x86_64-*kfreebsd*-gnu)
7521	    LD="${LD-ld} -m elf_x86_64_fbsd"
7522	    ;;
7523	  x86_64-*linux*)
7524	    LD="${LD-ld} -m elf_x86_64"
7525	    ;;
7526	  powerpcle-*linux*)
7527	    LD="${LD-ld} -m elf64lppc"
7528	    ;;
7529	  powerpc-*linux*)
7530	    LD="${LD-ld} -m elf64ppc"
7531	    ;;
7532	  s390*-*linux*|s390*-*tpf*)
7533	    LD="${LD-ld} -m elf64_s390"
7534	    ;;
7535	  sparc*-*linux*)
7536	    LD="${LD-ld} -m elf64_sparc"
7537	    ;;
7538	esac
7539	;;
7540    esac
7541  fi
7542  rm -rf conftest*
7543  ;;
7544
7545*-*-sco3.2v5*)
7546  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7547  SAVE_CFLAGS="$CFLAGS"
7548  CFLAGS="$CFLAGS -belf"
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7550$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7551if test "${lt_cv_cc_needs_belf+set}" = set; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  ac_ext=c
7555ac_cpp='$CPP $CPPFLAGS'
7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
7560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562
7563int
7564main ()
7565{
7566
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571if ac_fn_c_try_link "$LINENO"; then :
7572  lt_cv_cc_needs_belf=yes
7573else
7574  lt_cv_cc_needs_belf=no
7575fi
7576rm -f core conftest.err conftest.$ac_objext \
7577    conftest$ac_exeext conftest.$ac_ext
7578     ac_ext=c
7579ac_cpp='$CPP $CPPFLAGS'
7580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583
7584fi
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7586$as_echo "$lt_cv_cc_needs_belf" >&6; }
7587  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7588    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7589    CFLAGS="$SAVE_CFLAGS"
7590  fi
7591  ;;
7592sparc*-*solaris*)
7593  # Find out which ABI we are using.
7594  echo 'int i;' > conftest.$ac_ext
7595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7596  (eval $ac_compile) 2>&5
7597  ac_status=$?
7598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599  test $ac_status = 0; }; then
7600    case `/usr/bin/file conftest.o` in
7601    *64-bit*)
7602      case $lt_cv_prog_gnu_ld in
7603      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7604      *)
7605	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7606	  LD="${LD-ld} -64"
7607	fi
7608	;;
7609      esac
7610      ;;
7611    esac
7612  fi
7613  rm -rf conftest*
7614  ;;
7615esac
7616
7617need_locks="$enable_libtool_lock"
7618
7619
7620  case $host_os in
7621    rhapsody* | darwin*)
7622    if test -n "$ac_tool_prefix"; then
7623  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7624set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  if test -n "$DSYMUTIL"; then
7631  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638    for ac_exec_ext in '' $ac_executable_extensions; do
7639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645  done
7646IFS=$as_save_IFS
7647
7648fi
7649fi
7650DSYMUTIL=$ac_cv_prog_DSYMUTIL
7651if test -n "$DSYMUTIL"; then
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7653$as_echo "$DSYMUTIL" >&6; }
7654else
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
7657fi
7658
7659
7660fi
7661if test -z "$ac_cv_prog_DSYMUTIL"; then
7662  ac_ct_DSYMUTIL=$DSYMUTIL
7663  # Extract the first word of "dsymutil", so it can be a program name with args.
7664set dummy dsymutil; ac_word=$2
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  if test -n "$ac_ct_DSYMUTIL"; then
7671  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676  IFS=$as_save_IFS
7677  test -z "$as_dir" && as_dir=.
7678    for ac_exec_ext in '' $ac_executable_extensions; do
7679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682    break 2
7683  fi
7684done
7685  done
7686IFS=$as_save_IFS
7687
7688fi
7689fi
7690ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7691if test -n "$ac_ct_DSYMUTIL"; then
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7693$as_echo "$ac_ct_DSYMUTIL" >&6; }
7694else
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697fi
7698
7699  if test "x$ac_ct_DSYMUTIL" = x; then
7700    DSYMUTIL=":"
7701  else
7702    case $cross_compiling:$ac_tool_warned in
7703yes:)
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706ac_tool_warned=yes ;;
7707esac
7708    DSYMUTIL=$ac_ct_DSYMUTIL
7709  fi
7710else
7711  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7712fi
7713
7714    if test -n "$ac_tool_prefix"; then
7715  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7716set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718$as_echo_n "checking for $ac_word... " >&6; }
7719if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  if test -n "$NMEDIT"; then
7723  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7724else
7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728  IFS=$as_save_IFS
7729  test -z "$as_dir" && as_dir=.
7730    for ac_exec_ext in '' $ac_executable_extensions; do
7731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734    break 2
7735  fi
7736done
7737  done
7738IFS=$as_save_IFS
7739
7740fi
7741fi
7742NMEDIT=$ac_cv_prog_NMEDIT
7743if test -n "$NMEDIT"; then
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7745$as_echo "$NMEDIT" >&6; }
7746else
7747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748$as_echo "no" >&6; }
7749fi
7750
7751
7752fi
7753if test -z "$ac_cv_prog_NMEDIT"; then
7754  ac_ct_NMEDIT=$NMEDIT
7755  # Extract the first word of "nmedit", so it can be a program name with args.
7756set dummy nmedit; ac_word=$2
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758$as_echo_n "checking for $ac_word... " >&6; }
7759if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  if test -n "$ac_ct_NMEDIT"; then
7763  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768  IFS=$as_save_IFS
7769  test -z "$as_dir" && as_dir=.
7770    for ac_exec_ext in '' $ac_executable_extensions; do
7771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774    break 2
7775  fi
7776done
7777  done
7778IFS=$as_save_IFS
7779
7780fi
7781fi
7782ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7783if test -n "$ac_ct_NMEDIT"; then
7784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7785$as_echo "$ac_ct_NMEDIT" >&6; }
7786else
7787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
7789fi
7790
7791  if test "x$ac_ct_NMEDIT" = x; then
7792    NMEDIT=":"
7793  else
7794    case $cross_compiling:$ac_tool_warned in
7795yes:)
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798ac_tool_warned=yes ;;
7799esac
7800    NMEDIT=$ac_ct_NMEDIT
7801  fi
7802else
7803  NMEDIT="$ac_cv_prog_NMEDIT"
7804fi
7805
7806    if test -n "$ac_tool_prefix"; then
7807  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7808set dummy ${ac_tool_prefix}lipo; ac_word=$2
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810$as_echo_n "checking for $ac_word... " >&6; }
7811if test "${ac_cv_prog_LIPO+set}" = set; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  if test -n "$LIPO"; then
7815  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7816else
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820  IFS=$as_save_IFS
7821  test -z "$as_dir" && as_dir=.
7822    for ac_exec_ext in '' $ac_executable_extensions; do
7823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7824    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826    break 2
7827  fi
7828done
7829  done
7830IFS=$as_save_IFS
7831
7832fi
7833fi
7834LIPO=$ac_cv_prog_LIPO
7835if test -n "$LIPO"; then
7836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7837$as_echo "$LIPO" >&6; }
7838else
7839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
7841fi
7842
7843
7844fi
7845if test -z "$ac_cv_prog_LIPO"; then
7846  ac_ct_LIPO=$LIPO
7847  # Extract the first word of "lipo", so it can be a program name with args.
7848set dummy lipo; ac_word=$2
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
7851if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  if test -n "$ac_ct_LIPO"; then
7855  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860  IFS=$as_save_IFS
7861  test -z "$as_dir" && as_dir=.
7862    for ac_exec_ext in '' $ac_executable_extensions; do
7863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864    ac_cv_prog_ac_ct_LIPO="lipo"
7865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869  done
7870IFS=$as_save_IFS
7871
7872fi
7873fi
7874ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7875if test -n "$ac_ct_LIPO"; then
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7877$as_echo "$ac_ct_LIPO" >&6; }
7878else
7879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881fi
7882
7883  if test "x$ac_ct_LIPO" = x; then
7884    LIPO=":"
7885  else
7886    case $cross_compiling:$ac_tool_warned in
7887yes:)
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890ac_tool_warned=yes ;;
7891esac
7892    LIPO=$ac_ct_LIPO
7893  fi
7894else
7895  LIPO="$ac_cv_prog_LIPO"
7896fi
7897
7898    if test -n "$ac_tool_prefix"; then
7899  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7900set dummy ${ac_tool_prefix}otool; ac_word=$2
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if test "${ac_cv_prog_OTOOL+set}" = set; then :
7904  $as_echo_n "(cached) " >&6
7905else
7906  if test -n "$OTOOL"; then
7907  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912  IFS=$as_save_IFS
7913  test -z "$as_dir" && as_dir=.
7914    for ac_exec_ext in '' $ac_executable_extensions; do
7915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918    break 2
7919  fi
7920done
7921  done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926OTOOL=$ac_cv_prog_OTOOL
7927if test -n "$OTOOL"; then
7928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7929$as_echo "$OTOOL" >&6; }
7930else
7931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933fi
7934
7935
7936fi
7937if test -z "$ac_cv_prog_OTOOL"; then
7938  ac_ct_OTOOL=$OTOOL
7939  # Extract the first word of "otool", so it can be a program name with args.
7940set dummy otool; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  if test -n "$ac_ct_OTOOL"; then
7947  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952  IFS=$as_save_IFS
7953  test -z "$as_dir" && as_dir=.
7954    for ac_exec_ext in '' $ac_executable_extensions; do
7955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956    ac_cv_prog_ac_ct_OTOOL="otool"
7957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958    break 2
7959  fi
7960done
7961  done
7962IFS=$as_save_IFS
7963
7964fi
7965fi
7966ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7967if test -n "$ac_ct_OTOOL"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7969$as_echo "$ac_ct_OTOOL" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975  if test "x$ac_ct_OTOOL" = x; then
7976    OTOOL=":"
7977  else
7978    case $cross_compiling:$ac_tool_warned in
7979yes:)
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982ac_tool_warned=yes ;;
7983esac
7984    OTOOL=$ac_ct_OTOOL
7985  fi
7986else
7987  OTOOL="$ac_cv_prog_OTOOL"
7988fi
7989
7990    if test -n "$ac_tool_prefix"; then
7991  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7992set dummy ${ac_tool_prefix}otool64; ac_word=$2
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994$as_echo_n "checking for $ac_word... " >&6; }
7995if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  if test -n "$OTOOL64"; then
7999  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004  IFS=$as_save_IFS
8005  test -z "$as_dir" && as_dir=.
8006    for ac_exec_ext in '' $ac_executable_extensions; do
8007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010    break 2
8011  fi
8012done
8013  done
8014IFS=$as_save_IFS
8015
8016fi
8017fi
8018OTOOL64=$ac_cv_prog_OTOOL64
8019if test -n "$OTOOL64"; then
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8021$as_echo "$OTOOL64" >&6; }
8022else
8023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024$as_echo "no" >&6; }
8025fi
8026
8027
8028fi
8029if test -z "$ac_cv_prog_OTOOL64"; then
8030  ac_ct_OTOOL64=$OTOOL64
8031  # Extract the first word of "otool64", so it can be a program name with args.
8032set dummy otool64; ac_word=$2
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
8035if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  if test -n "$ac_ct_OTOOL64"; then
8039  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044  IFS=$as_save_IFS
8045  test -z "$as_dir" && as_dir=.
8046    for ac_exec_ext in '' $ac_executable_extensions; do
8047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048    ac_cv_prog_ac_ct_OTOOL64="otool64"
8049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050    break 2
8051  fi
8052done
8053  done
8054IFS=$as_save_IFS
8055
8056fi
8057fi
8058ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8059if test -n "$ac_ct_OTOOL64"; then
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8061$as_echo "$ac_ct_OTOOL64" >&6; }
8062else
8063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
8065fi
8066
8067  if test "x$ac_ct_OTOOL64" = x; then
8068    OTOOL64=":"
8069  else
8070    case $cross_compiling:$ac_tool_warned in
8071yes:)
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074ac_tool_warned=yes ;;
8075esac
8076    OTOOL64=$ac_ct_OTOOL64
8077  fi
8078else
8079  OTOOL64="$ac_cv_prog_OTOOL64"
8080fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8109$as_echo_n "checking for -single_module linker flag... " >&6; }
8110if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8111  $as_echo_n "(cached) " >&6
8112else
8113  lt_cv_apple_cc_single_mod=no
8114      if test -z "${LT_MULTI_MODULE}"; then
8115	# By default we will add the -single_module flag. You can override
8116	# by either setting the environment variable LT_MULTI_MODULE
8117	# non-empty at configure time, or by adding -multi_module to the
8118	# link flags.
8119	rm -rf libconftest.dylib*
8120	echo "int foo(void){return 1;}" > conftest.c
8121	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8122-dynamiclib -Wl,-single_module conftest.c" >&5
8123	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8124	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8125        _lt_result=$?
8126	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8127	  lt_cv_apple_cc_single_mod=yes
8128	else
8129	  cat conftest.err >&5
8130	fi
8131	rm -rf libconftest.dylib*
8132	rm -f conftest.*
8133      fi
8134fi
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8136$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8138$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8139if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8140  $as_echo_n "(cached) " >&6
8141else
8142  lt_cv_ld_exported_symbols_list=no
8143      save_LDFLAGS=$LDFLAGS
8144      echo "_main" > conftest.sym
8145      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8146      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148
8149int
8150main ()
8151{
8152
8153  ;
8154  return 0;
8155}
8156_ACEOF
8157if ac_fn_c_try_link "$LINENO"; then :
8158  lt_cv_ld_exported_symbols_list=yes
8159else
8160  lt_cv_ld_exported_symbols_list=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext \
8163    conftest$ac_exeext conftest.$ac_ext
8164	LDFLAGS="$save_LDFLAGS"
8165
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8168$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8170$as_echo_n "checking for -force_load linker flag... " >&6; }
8171if test "${lt_cv_ld_force_load+set}" = set; then :
8172  $as_echo_n "(cached) " >&6
8173else
8174  lt_cv_ld_force_load=no
8175      cat > conftest.c << _LT_EOF
8176int forced_loaded() { return 2;}
8177_LT_EOF
8178      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8179      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8180      echo "$AR cru libconftest.a conftest.o" >&5
8181      $AR cru libconftest.a conftest.o 2>&5
8182      cat > conftest.c << _LT_EOF
8183int main() { return 0;}
8184_LT_EOF
8185      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8186      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8187      _lt_result=$?
8188      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8189	lt_cv_ld_force_load=yes
8190      else
8191	cat conftest.err >&5
8192      fi
8193        rm -f conftest.err libconftest.a conftest conftest.c
8194        rm -rf conftest.dSYM
8195
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8198$as_echo "$lt_cv_ld_force_load" >&6; }
8199    case $host_os in
8200    rhapsody* | darwin1.[012])
8201      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8202    darwin1.*)
8203      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8204    darwin*) # darwin 5.x on
8205      # if running on 10.5 or later, the deployment target defaults
8206      # to the OS version, if on x86, and 10.4, the deployment
8207      # target defaults to 10.4. Don't you love it?
8208      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8209	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8210	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8211	10.[012][,.]*)
8212	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8213	10.*)
8214	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8215      esac
8216    ;;
8217  esac
8218    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8219      _lt_dar_single_mod='$single_module'
8220    fi
8221    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8222      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8223    else
8224      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8225    fi
8226    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8227      _lt_dsymutil='~$DSYMUTIL $lib || :'
8228    else
8229      _lt_dsymutil=
8230    fi
8231    ;;
8232  esac
8233
8234for ac_header in dlfcn.h
8235do :
8236  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8237"
8238if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8239  cat >>confdefs.h <<_ACEOF
8240#define HAVE_DLFCN_H 1
8241_ACEOF
8242
8243fi
8244
8245done
8246
8247
8248
8249
8250
8251
8252# Set options
8253
8254
8255
8256        enable_dlopen=no
8257
8258
8259  enable_win32_dll=no
8260
8261
8262            # Check whether --enable-shared was given.
8263if test "${enable_shared+set}" = set; then :
8264  enableval=$enable_shared; p=${PACKAGE-default}
8265    case $enableval in
8266    yes) enable_shared=yes ;;
8267    no) enable_shared=no ;;
8268    *)
8269      enable_shared=no
8270      # Look at the argument we got.  We use all the common list separators.
8271      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272      for pkg in $enableval; do
8273	IFS="$lt_save_ifs"
8274	if test "X$pkg" = "X$p"; then
8275	  enable_shared=yes
8276	fi
8277      done
8278      IFS="$lt_save_ifs"
8279      ;;
8280    esac
8281else
8282  enable_shared=yes
8283fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293  # Check whether --enable-static was given.
8294if test "${enable_static+set}" = set; then :
8295  enableval=$enable_static; p=${PACKAGE-default}
8296    case $enableval in
8297    yes) enable_static=yes ;;
8298    no) enable_static=no ;;
8299    *)
8300     enable_static=no
8301      # Look at the argument we got.  We use all the common list separators.
8302      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8303      for pkg in $enableval; do
8304	IFS="$lt_save_ifs"
8305	if test "X$pkg" = "X$p"; then
8306	  enable_static=yes
8307	fi
8308      done
8309      IFS="$lt_save_ifs"
8310      ;;
8311    esac
8312else
8313  enable_static=yes
8314fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325# Check whether --with-pic was given.
8326if test "${with_pic+set}" = set; then :
8327  withval=$with_pic; pic_mode="$withval"
8328else
8329  pic_mode=default
8330fi
8331
8332
8333test -z "$pic_mode" && pic_mode=default
8334
8335
8336
8337
8338
8339
8340
8341  # Check whether --enable-fast-install was given.
8342if test "${enable_fast_install+set}" = set; then :
8343  enableval=$enable_fast_install; p=${PACKAGE-default}
8344    case $enableval in
8345    yes) enable_fast_install=yes ;;
8346    no) enable_fast_install=no ;;
8347    *)
8348      enable_fast_install=no
8349      # Look at the argument we got.  We use all the common list separators.
8350      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351      for pkg in $enableval; do
8352	IFS="$lt_save_ifs"
8353	if test "X$pkg" = "X$p"; then
8354	  enable_fast_install=yes
8355	fi
8356      done
8357      IFS="$lt_save_ifs"
8358      ;;
8359    esac
8360else
8361  enable_fast_install=yes
8362fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374# This can be used to rebuild libtool when needed
8375LIBTOOL_DEPS="$ltmain"
8376
8377# Always use our own libtool.
8378LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405test -z "$LN_S" && LN_S="ln -s"
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420if test -n "${ZSH_VERSION+set}" ; then
8421   setopt NO_GLOB_SUBST
8422fi
8423
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8425$as_echo_n "checking for objdir... " >&6; }
8426if test "${lt_cv_objdir+set}" = set; then :
8427  $as_echo_n "(cached) " >&6
8428else
8429  rm -f .libs 2>/dev/null
8430mkdir .libs 2>/dev/null
8431if test -d .libs; then
8432  lt_cv_objdir=.libs
8433else
8434  # MS-DOS does not allow filenames that begin with a dot.
8435  lt_cv_objdir=_libs
8436fi
8437rmdir .libs 2>/dev/null
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8440$as_echo "$lt_cv_objdir" >&6; }
8441objdir=$lt_cv_objdir
8442
8443
8444
8445
8446
8447cat >>confdefs.h <<_ACEOF
8448#define LT_OBJDIR "$lt_cv_objdir/"
8449_ACEOF
8450
8451
8452
8453
8454case $host_os in
8455aix3*)
8456  # AIX sometimes has problems with the GCC collect2 program.  For some
8457  # reason, if we set the COLLECT_NAMES environment variable, the problems
8458  # vanish in a puff of smoke.
8459  if test "X${COLLECT_NAMES+set}" != Xset; then
8460    COLLECT_NAMES=
8461    export COLLECT_NAMES
8462  fi
8463  ;;
8464esac
8465
8466# Global variables:
8467ofile=libtool
8468can_build_shared=yes
8469
8470# All known linkers require a `.a' archive for static linking (except MSVC,
8471# which needs '.lib').
8472libext=a
8473
8474with_gnu_ld="$lt_cv_prog_gnu_ld"
8475
8476old_CC="$CC"
8477old_CFLAGS="$CFLAGS"
8478
8479# Set sane defaults for various variables
8480test -z "$CC" && CC=cc
8481test -z "$LTCC" && LTCC=$CC
8482test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8483test -z "$LD" && LD=ld
8484test -z "$ac_objext" && ac_objext=o
8485
8486for cc_temp in $compiler""; do
8487  case $cc_temp in
8488    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8489    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8490    \-*) ;;
8491    *) break;;
8492  esac
8493done
8494cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8495
8496
8497# Only perform the check for file, if the check method requires it
8498test -z "$MAGIC_CMD" && MAGIC_CMD=file
8499case $deplibs_check_method in
8500file_magic*)
8501  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8503$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8504if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  case $MAGIC_CMD in
8508[\\/*] |  ?:[\\/]*)
8509  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8510  ;;
8511*)
8512  lt_save_MAGIC_CMD="$MAGIC_CMD"
8513  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8514  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8515  for ac_dir in $ac_dummy; do
8516    IFS="$lt_save_ifs"
8517    test -z "$ac_dir" && ac_dir=.
8518    if test -f $ac_dir/${ac_tool_prefix}file; then
8519      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8520      if test -n "$file_magic_test_file"; then
8521	case $deplibs_check_method in
8522	"file_magic "*)
8523	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8524	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8526	    $EGREP "$file_magic_regex" > /dev/null; then
8527	    :
8528	  else
8529	    cat <<_LT_EOF 1>&2
8530
8531*** Warning: the command libtool uses to detect shared libraries,
8532*** $file_magic_cmd, produces output that libtool cannot recognize.
8533*** The result is that libtool may fail to recognize shared libraries
8534*** as such.  This will affect the creation of libtool libraries that
8535*** depend on shared libraries, but programs linked with such libtool
8536*** libraries will work regardless of this problem.  Nevertheless, you
8537*** may want to report the problem to your system manager and/or to
8538*** bug-libtool@gnu.org
8539
8540_LT_EOF
8541	  fi ;;
8542	esac
8543      fi
8544      break
8545    fi
8546  done
8547  IFS="$lt_save_ifs"
8548  MAGIC_CMD="$lt_save_MAGIC_CMD"
8549  ;;
8550esac
8551fi
8552
8553MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8554if test -n "$MAGIC_CMD"; then
8555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8556$as_echo "$MAGIC_CMD" >&6; }
8557else
8558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559$as_echo "no" >&6; }
8560fi
8561
8562
8563
8564
8565
8566if test -z "$lt_cv_path_MAGIC_CMD"; then
8567  if test -n "$ac_tool_prefix"; then
8568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8569$as_echo_n "checking for file... " >&6; }
8570if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  case $MAGIC_CMD in
8574[\\/*] |  ?:[\\/]*)
8575  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8576  ;;
8577*)
8578  lt_save_MAGIC_CMD="$MAGIC_CMD"
8579  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8580  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8581  for ac_dir in $ac_dummy; do
8582    IFS="$lt_save_ifs"
8583    test -z "$ac_dir" && ac_dir=.
8584    if test -f $ac_dir/file; then
8585      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8586      if test -n "$file_magic_test_file"; then
8587	case $deplibs_check_method in
8588	"file_magic "*)
8589	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8590	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8592	    $EGREP "$file_magic_regex" > /dev/null; then
8593	    :
8594	  else
8595	    cat <<_LT_EOF 1>&2
8596
8597*** Warning: the command libtool uses to detect shared libraries,
8598*** $file_magic_cmd, produces output that libtool cannot recognize.
8599*** The result is that libtool may fail to recognize shared libraries
8600*** as such.  This will affect the creation of libtool libraries that
8601*** depend on shared libraries, but programs linked with such libtool
8602*** libraries will work regardless of this problem.  Nevertheless, you
8603*** may want to report the problem to your system manager and/or to
8604*** bug-libtool@gnu.org
8605
8606_LT_EOF
8607	  fi ;;
8608	esac
8609      fi
8610      break
8611    fi
8612  done
8613  IFS="$lt_save_ifs"
8614  MAGIC_CMD="$lt_save_MAGIC_CMD"
8615  ;;
8616esac
8617fi
8618
8619MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620if test -n "$MAGIC_CMD"; then
8621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8622$as_echo "$MAGIC_CMD" >&6; }
8623else
8624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
8626fi
8627
8628
8629  else
8630    MAGIC_CMD=:
8631  fi
8632fi
8633
8634  fi
8635  ;;
8636esac
8637
8638# Use C for the default configuration in the libtool script
8639
8640lt_save_CC="$CC"
8641ac_ext=c
8642ac_cpp='$CPP $CPPFLAGS'
8643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646
8647
8648# Source file extension for C test sources.
8649ac_ext=c
8650
8651# Object file extension for compiled C test sources.
8652objext=o
8653objext=$objext
8654
8655# Code to be used in simple compile tests
8656lt_simple_compile_test_code="int some_variable = 0;"
8657
8658# Code to be used in simple link tests
8659lt_simple_link_test_code='int main(){return(0);}'
8660
8661
8662
8663
8664
8665
8666
8667# If no C compiler was specified, use CC.
8668LTCC=${LTCC-"$CC"}
8669
8670# If no C compiler flags were specified, use CFLAGS.
8671LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8672
8673# Allow CC to be a program name with arguments.
8674compiler=$CC
8675
8676# Save the default compiler, since it gets overwritten when the other
8677# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8678compiler_DEFAULT=$CC
8679
8680# save warnings/boilerplate of simple test code
8681ac_outfile=conftest.$ac_objext
8682echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8683eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684_lt_compiler_boilerplate=`cat conftest.err`
8685$RM conftest*
8686
8687ac_outfile=conftest.$ac_objext
8688echo "$lt_simple_link_test_code" >conftest.$ac_ext
8689eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8690_lt_linker_boilerplate=`cat conftest.err`
8691$RM -r conftest*
8692
8693
8694## CAVEAT EMPTOR:
8695## There is no encapsulation within the following macros, do not change
8696## the running order or otherwise move them around unless you know exactly
8697## what you are doing...
8698if test -n "$compiler"; then
8699
8700lt_prog_compiler_no_builtin_flag=
8701
8702if test "$GCC" = yes; then
8703  case $cc_basename in
8704  nvcc*)
8705    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8706  *)
8707    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8708  esac
8709
8710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8711$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8712if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  lt_cv_prog_compiler_rtti_exceptions=no
8716   ac_outfile=conftest.$ac_objext
8717   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718   lt_compiler_flag="-fno-rtti -fno-exceptions"
8719   # Insert the option either (1) after the last *FLAGS variable, or
8720   # (2) before a word containing "conftest.", or (3) at the end.
8721   # Note that $ac_compile itself does not contain backslashes and begins
8722   # with a dollar sign (not a hyphen), so the echo should work correctly.
8723   # The option is referenced via a variable to avoid confusing sed.
8724   lt_compile=`echo "$ac_compile" | $SED \
8725   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727   -e 's:$: $lt_compiler_flag:'`
8728   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8729   (eval "$lt_compile" 2>conftest.err)
8730   ac_status=$?
8731   cat conftest.err >&5
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   if (exit $ac_status) && test -s "$ac_outfile"; then
8734     # The compiler can only warn and ignore the option if not recognized
8735     # So say no if there are warnings other than the usual output.
8736     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8737     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8738     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8739       lt_cv_prog_compiler_rtti_exceptions=yes
8740     fi
8741   fi
8742   $RM conftest*
8743
8744fi
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8746$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8747
8748if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8749    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8750else
8751    :
8752fi
8753
8754fi
8755
8756
8757
8758
8759
8760
8761  lt_prog_compiler_wl=
8762lt_prog_compiler_pic=
8763lt_prog_compiler_static=
8764
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8766$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8767
8768  if test "$GCC" = yes; then
8769    lt_prog_compiler_wl='-Wl,'
8770    lt_prog_compiler_static='-static'
8771
8772    case $host_os in
8773      aix*)
8774      # All AIX code is PIC.
8775      if test "$host_cpu" = ia64; then
8776	# AIX 5 now supports IA64 processor
8777	lt_prog_compiler_static='-Bstatic'
8778      fi
8779      lt_prog_compiler_pic='-fPIC'
8780      ;;
8781
8782    amigaos*)
8783      case $host_cpu in
8784      powerpc)
8785            # see comment about AmigaOS4 .so support
8786            lt_prog_compiler_pic='-fPIC'
8787        ;;
8788      m68k)
8789            # FIXME: we need at least 68020 code to build shared libraries, but
8790            # adding the `-m68020' flag to GCC prevents building anything better,
8791            # like `-m68040'.
8792            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8793        ;;
8794      esac
8795      ;;
8796
8797    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8798      # PIC is the default for these OSes.
8799      ;;
8800
8801    mingw* | cygwin* | pw32* | os2* | cegcc*)
8802      # This hack is so that the source file can tell whether it is being
8803      # built for inclusion in a dll (and should export symbols for example).
8804      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8805      # (--disable-auto-import) libraries
8806      lt_prog_compiler_pic='-DDLL_EXPORT'
8807      ;;
8808
8809    darwin* | rhapsody*)
8810      # PIC is the default on this platform
8811      # Common symbols not allowed in MH_DYLIB files
8812      lt_prog_compiler_pic='-fno-common'
8813      ;;
8814
8815    haiku*)
8816      # PIC is the default for Haiku.
8817      # The "-static" flag exists, but is broken.
8818      lt_prog_compiler_static=
8819      ;;
8820
8821    hpux*)
8822      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8823      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8824      # sets the default TLS model and affects inlining.
8825      case $host_cpu in
8826      hppa*64*)
8827	# +Z the default
8828	;;
8829      *)
8830	lt_prog_compiler_pic='-fPIC'
8831	;;
8832      esac
8833      ;;
8834
8835    interix[3-9]*)
8836      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8837      # Instead, we relocate shared libraries at runtime.
8838      ;;
8839
8840    msdosdjgpp*)
8841      # Just because we use GCC doesn't mean we suddenly get shared libraries
8842      # on systems that don't support them.
8843      lt_prog_compiler_can_build_shared=no
8844      enable_shared=no
8845      ;;
8846
8847    *nto* | *qnx*)
8848      # QNX uses GNU C++, but need to define -shared option too, otherwise
8849      # it will coredump.
8850      lt_prog_compiler_pic='-fPIC -shared'
8851      ;;
8852
8853    sysv4*MP*)
8854      if test -d /usr/nec; then
8855	lt_prog_compiler_pic=-Kconform_pic
8856      fi
8857      ;;
8858
8859    *)
8860      lt_prog_compiler_pic='-fPIC'
8861      ;;
8862    esac
8863
8864    case $cc_basename in
8865    nvcc*) # Cuda Compiler Driver 2.2
8866      lt_prog_compiler_wl='-Xlinker '
8867      lt_prog_compiler_pic='-Xcompiler -fPIC'
8868      ;;
8869    esac
8870  else
8871    # PORTME Check for flag to pass linker flags through the system compiler.
8872    case $host_os in
8873    aix*)
8874      lt_prog_compiler_wl='-Wl,'
8875      if test "$host_cpu" = ia64; then
8876	# AIX 5 now supports IA64 processor
8877	lt_prog_compiler_static='-Bstatic'
8878      else
8879	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8880      fi
8881      ;;
8882
8883    mingw* | cygwin* | pw32* | os2* | cegcc*)
8884      # This hack is so that the source file can tell whether it is being
8885      # built for inclusion in a dll (and should export symbols for example).
8886      lt_prog_compiler_pic='-DDLL_EXPORT'
8887      ;;
8888
8889    hpux9* | hpux10* | hpux11*)
8890      lt_prog_compiler_wl='-Wl,'
8891      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8892      # not for PA HP-UX.
8893      case $host_cpu in
8894      hppa*64*|ia64*)
8895	# +Z the default
8896	;;
8897      *)
8898	lt_prog_compiler_pic='+Z'
8899	;;
8900      esac
8901      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8902      lt_prog_compiler_static='${wl}-a ${wl}archive'
8903      ;;
8904
8905    irix5* | irix6* | nonstopux*)
8906      lt_prog_compiler_wl='-Wl,'
8907      # PIC (with -KPIC) is the default.
8908      lt_prog_compiler_static='-non_shared'
8909      ;;
8910
8911    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8912      case $cc_basename in
8913      # old Intel for x86_64 which still supported -KPIC.
8914      ecc*)
8915	lt_prog_compiler_wl='-Wl,'
8916	lt_prog_compiler_pic='-KPIC'
8917	lt_prog_compiler_static='-static'
8918        ;;
8919      # icc used to be incompatible with GCC.
8920      # ICC 10 doesn't accept -KPIC any more.
8921      icc* | ifort*)
8922	lt_prog_compiler_wl='-Wl,'
8923	lt_prog_compiler_pic='-fPIC'
8924	lt_prog_compiler_static='-static'
8925        ;;
8926      # Lahey Fortran 8.1.
8927      lf95*)
8928	lt_prog_compiler_wl='-Wl,'
8929	lt_prog_compiler_pic='--shared'
8930	lt_prog_compiler_static='--static'
8931	;;
8932      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8933        # Portland Group compilers (*not* the Pentium gcc compiler,
8934	# which looks to be a dead project)
8935	lt_prog_compiler_wl='-Wl,'
8936	lt_prog_compiler_pic='-fpic'
8937	lt_prog_compiler_static='-Bstatic'
8938        ;;
8939      ccc*)
8940        lt_prog_compiler_wl='-Wl,'
8941        # All Alpha code is PIC.
8942        lt_prog_compiler_static='-non_shared'
8943        ;;
8944      xl* | bgxl* | bgf* | mpixl*)
8945	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8946	lt_prog_compiler_wl='-Wl,'
8947	lt_prog_compiler_pic='-qpic'
8948	lt_prog_compiler_static='-qstaticlink'
8949	;;
8950      *)
8951	case `$CC -V 2>&1 | sed 5q` in
8952	*Sun\ F* | *Sun*Fortran*)
8953	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8954	  lt_prog_compiler_pic='-KPIC'
8955	  lt_prog_compiler_static='-Bstatic'
8956	  lt_prog_compiler_wl=''
8957	  ;;
8958	*Sun\ C*)
8959	  # Sun C 5.9
8960	  lt_prog_compiler_pic='-KPIC'
8961	  lt_prog_compiler_static='-Bstatic'
8962	  lt_prog_compiler_wl='-Wl,'
8963	  ;;
8964	esac
8965	;;
8966      esac
8967      ;;
8968
8969    newsos6)
8970      lt_prog_compiler_pic='-KPIC'
8971      lt_prog_compiler_static='-Bstatic'
8972      ;;
8973
8974    *nto* | *qnx*)
8975      # QNX uses GNU C++, but need to define -shared option too, otherwise
8976      # it will coredump.
8977      lt_prog_compiler_pic='-fPIC -shared'
8978      ;;
8979
8980    osf3* | osf4* | osf5*)
8981      lt_prog_compiler_wl='-Wl,'
8982      # All OSF/1 code is PIC.
8983      lt_prog_compiler_static='-non_shared'
8984      ;;
8985
8986    rdos*)
8987      lt_prog_compiler_static='-non_shared'
8988      ;;
8989
8990    solaris*)
8991      lt_prog_compiler_pic='-KPIC'
8992      lt_prog_compiler_static='-Bstatic'
8993      case $cc_basename in
8994      f77* | f90* | f95*)
8995	lt_prog_compiler_wl='-Qoption ld ';;
8996      *)
8997	lt_prog_compiler_wl='-Wl,';;
8998      esac
8999      ;;
9000
9001    sunos4*)
9002      lt_prog_compiler_wl='-Qoption ld '
9003      lt_prog_compiler_pic='-PIC'
9004      lt_prog_compiler_static='-Bstatic'
9005      ;;
9006
9007    sysv4 | sysv4.2uw2* | sysv4.3*)
9008      lt_prog_compiler_wl='-Wl,'
9009      lt_prog_compiler_pic='-KPIC'
9010      lt_prog_compiler_static='-Bstatic'
9011      ;;
9012
9013    sysv4*MP*)
9014      if test -d /usr/nec ;then
9015	lt_prog_compiler_pic='-Kconform_pic'
9016	lt_prog_compiler_static='-Bstatic'
9017      fi
9018      ;;
9019
9020    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9021      lt_prog_compiler_wl='-Wl,'
9022      lt_prog_compiler_pic='-KPIC'
9023      lt_prog_compiler_static='-Bstatic'
9024      ;;
9025
9026    unicos*)
9027      lt_prog_compiler_wl='-Wl,'
9028      lt_prog_compiler_can_build_shared=no
9029      ;;
9030
9031    uts4*)
9032      lt_prog_compiler_pic='-pic'
9033      lt_prog_compiler_static='-Bstatic'
9034      ;;
9035
9036    *)
9037      lt_prog_compiler_can_build_shared=no
9038      ;;
9039    esac
9040  fi
9041
9042case $host_os in
9043  # For platforms which do not support PIC, -DPIC is meaningless:
9044  *djgpp*)
9045    lt_prog_compiler_pic=
9046    ;;
9047  *)
9048    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9049    ;;
9050esac
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9052$as_echo "$lt_prog_compiler_pic" >&6; }
9053
9054
9055
9056
9057
9058
9059#
9060# Check to make sure the PIC flag actually works.
9061#
9062if test -n "$lt_prog_compiler_pic"; then
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9064$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9065if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9066  $as_echo_n "(cached) " >&6
9067else
9068  lt_cv_prog_compiler_pic_works=no
9069   ac_outfile=conftest.$ac_objext
9070   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9072   # Insert the option either (1) after the last *FLAGS variable, or
9073   # (2) before a word containing "conftest.", or (3) at the end.
9074   # Note that $ac_compile itself does not contain backslashes and begins
9075   # with a dollar sign (not a hyphen), so the echo should work correctly.
9076   # The option is referenced via a variable to avoid confusing sed.
9077   lt_compile=`echo "$ac_compile" | $SED \
9078   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080   -e 's:$: $lt_compiler_flag:'`
9081   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9082   (eval "$lt_compile" 2>conftest.err)
9083   ac_status=$?
9084   cat conftest.err >&5
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   if (exit $ac_status) && test -s "$ac_outfile"; then
9087     # The compiler can only warn and ignore the option if not recognized
9088     # So say no if there are warnings other than the usual output.
9089     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9090     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9092       lt_cv_prog_compiler_pic_works=yes
9093     fi
9094   fi
9095   $RM conftest*
9096
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9099$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9100
9101if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9102    case $lt_prog_compiler_pic in
9103     "" | " "*) ;;
9104     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9105     esac
9106else
9107    lt_prog_compiler_pic=
9108     lt_prog_compiler_can_build_shared=no
9109fi
9110
9111fi
9112
9113
9114
9115
9116
9117
9118#
9119# Check to make sure the static flag actually works.
9120#
9121wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9123$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9124if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  lt_cv_prog_compiler_static_works=no
9128   save_LDFLAGS="$LDFLAGS"
9129   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9130   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9131   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9132     # The linker can only warn and ignore the option if not recognized
9133     # So say no if there are warnings
9134     if test -s conftest.err; then
9135       # Append any errors to the config.log.
9136       cat conftest.err 1>&5
9137       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9138       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9139       if diff conftest.exp conftest.er2 >/dev/null; then
9140         lt_cv_prog_compiler_static_works=yes
9141       fi
9142     else
9143       lt_cv_prog_compiler_static_works=yes
9144     fi
9145   fi
9146   $RM -r conftest*
9147   LDFLAGS="$save_LDFLAGS"
9148
9149fi
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9151$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9152
9153if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9154    :
9155else
9156    lt_prog_compiler_static=
9157fi
9158
9159
9160
9161
9162
9163
9164
9165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9166$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9167if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9168  $as_echo_n "(cached) " >&6
9169else
9170  lt_cv_prog_compiler_c_o=no
9171   $RM -r conftest 2>/dev/null
9172   mkdir conftest
9173   cd conftest
9174   mkdir out
9175   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9176
9177   lt_compiler_flag="-o out/conftest2.$ac_objext"
9178   # Insert the option either (1) after the last *FLAGS variable, or
9179   # (2) before a word containing "conftest.", or (3) at the end.
9180   # Note that $ac_compile itself does not contain backslashes and begins
9181   # with a dollar sign (not a hyphen), so the echo should work correctly.
9182   lt_compile=`echo "$ac_compile" | $SED \
9183   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185   -e 's:$: $lt_compiler_flag:'`
9186   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9187   (eval "$lt_compile" 2>out/conftest.err)
9188   ac_status=$?
9189   cat out/conftest.err >&5
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9192   then
9193     # The compiler can only warn and ignore the option if not recognized
9194     # So say no if there are warnings
9195     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9196     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9197     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9198       lt_cv_prog_compiler_c_o=yes
9199     fi
9200   fi
9201   chmod u+w . 2>&5
9202   $RM conftest*
9203   # SGI C++ compiler will create directory out/ii_files/ for
9204   # template instantiation
9205   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9206   $RM out/* && rmdir out
9207   cd ..
9208   $RM -r conftest
9209   $RM conftest*
9210
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9213$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9214
9215
9216
9217
9218
9219
9220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9221$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9222if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  lt_cv_prog_compiler_c_o=no
9226   $RM -r conftest 2>/dev/null
9227   mkdir conftest
9228   cd conftest
9229   mkdir out
9230   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9231
9232   lt_compiler_flag="-o out/conftest2.$ac_objext"
9233   # Insert the option either (1) after the last *FLAGS variable, or
9234   # (2) before a word containing "conftest.", or (3) at the end.
9235   # Note that $ac_compile itself does not contain backslashes and begins
9236   # with a dollar sign (not a hyphen), so the echo should work correctly.
9237   lt_compile=`echo "$ac_compile" | $SED \
9238   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9239   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9240   -e 's:$: $lt_compiler_flag:'`
9241   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9242   (eval "$lt_compile" 2>out/conftest.err)
9243   ac_status=$?
9244   cat out/conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9247   then
9248     # The compiler can only warn and ignore the option if not recognized
9249     # So say no if there are warnings
9250     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9251     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9252     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9253       lt_cv_prog_compiler_c_o=yes
9254     fi
9255   fi
9256   chmod u+w . 2>&5
9257   $RM conftest*
9258   # SGI C++ compiler will create directory out/ii_files/ for
9259   # template instantiation
9260   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9261   $RM out/* && rmdir out
9262   cd ..
9263   $RM -r conftest
9264   $RM conftest*
9265
9266fi
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9268$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9269
9270
9271
9272
9273hard_links="nottested"
9274if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9275  # do not overwrite the value of need_locks provided by the user
9276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9277$as_echo_n "checking if we can lock with hard links... " >&6; }
9278  hard_links=yes
9279  $RM conftest*
9280  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9281  touch conftest.a
9282  ln conftest.a conftest.b 2>&5 || hard_links=no
9283  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9285$as_echo "$hard_links" >&6; }
9286  if test "$hard_links" = no; then
9287    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9288$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9289    need_locks=warn
9290  fi
9291else
9292  need_locks=no
9293fi
9294
9295
9296
9297
9298
9299
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9301$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9302
9303  runpath_var=
9304  allow_undefined_flag=
9305  always_export_symbols=no
9306  archive_cmds=
9307  archive_expsym_cmds=
9308  compiler_needs_object=no
9309  enable_shared_with_static_runtimes=no
9310  export_dynamic_flag_spec=
9311  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9312  hardcode_automatic=no
9313  hardcode_direct=no
9314  hardcode_direct_absolute=no
9315  hardcode_libdir_flag_spec=
9316  hardcode_libdir_flag_spec_ld=
9317  hardcode_libdir_separator=
9318  hardcode_minus_L=no
9319  hardcode_shlibpath_var=unsupported
9320  inherit_rpath=no
9321  link_all_deplibs=unknown
9322  module_cmds=
9323  module_expsym_cmds=
9324  old_archive_from_new_cmds=
9325  old_archive_from_expsyms_cmds=
9326  thread_safe_flag_spec=
9327  whole_archive_flag_spec=
9328  # include_expsyms should be a list of space-separated symbols to be *always*
9329  # included in the symbol list
9330  include_expsyms=
9331  # exclude_expsyms can be an extended regexp of symbols to exclude
9332  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9333  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9334  # as well as any symbol that contains `d'.
9335  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9336  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9337  # platforms (ab)use it in PIC code, but their linkers get confused if
9338  # the symbol is explicitly referenced.  Since portable code cannot
9339  # rely on this symbol name, it's probably fine to never include it in
9340  # preloaded symbol tables.
9341  # Exclude shared library initialization/finalization symbols.
9342  extract_expsyms_cmds=
9343
9344  case $host_os in
9345  cygwin* | mingw* | pw32* | cegcc*)
9346    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9347    # When not using gcc, we currently assume that we are using
9348    # Microsoft Visual C++.
9349    if test "$GCC" != yes; then
9350      with_gnu_ld=no
9351    fi
9352    ;;
9353  interix*)
9354    # we just hope/assume this is gcc and not c89 (= MSVC++)
9355    with_gnu_ld=yes
9356    ;;
9357  openbsd*)
9358    with_gnu_ld=no
9359    ;;
9360  esac
9361
9362  ld_shlibs=yes
9363
9364  # On some targets, GNU ld is compatible enough with the native linker
9365  # that we're better off using the native interface for both.
9366  lt_use_gnu_ld_interface=no
9367  if test "$with_gnu_ld" = yes; then
9368    case $host_os in
9369      aix*)
9370	# The AIX port of GNU ld has always aspired to compatibility
9371	# with the native linker.  However, as the warning in the GNU ld
9372	# block says, versions before 2.19.5* couldn't really create working
9373	# shared libraries, regardless of the interface used.
9374	case `$LD -v 2>&1` in
9375	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9376	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9377	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9378	  *)
9379	    lt_use_gnu_ld_interface=yes
9380	    ;;
9381	esac
9382	;;
9383      *)
9384	lt_use_gnu_ld_interface=yes
9385	;;
9386    esac
9387  fi
9388
9389  if test "$lt_use_gnu_ld_interface" = yes; then
9390    # If archive_cmds runs LD, not CC, wlarc should be empty
9391    wlarc='${wl}'
9392
9393    # Set some defaults for GNU ld with shared library support. These
9394    # are reset later if shared libraries are not supported. Putting them
9395    # here allows them to be overridden if necessary.
9396    runpath_var=LD_RUN_PATH
9397    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398    export_dynamic_flag_spec='${wl}--export-dynamic'
9399    # ancient GNU ld didn't support --whole-archive et. al.
9400    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9401      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9402    else
9403      whole_archive_flag_spec=
9404    fi
9405    supports_anon_versioning=no
9406    case `$LD -v 2>&1` in
9407      *GNU\ gold*) supports_anon_versioning=yes ;;
9408      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9409      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9410      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9411      *\ 2.11.*) ;; # other 2.11 versions
9412      *) supports_anon_versioning=yes ;;
9413    esac
9414
9415    # See if GNU ld supports shared libraries.
9416    case $host_os in
9417    aix[3-9]*)
9418      # On AIX/PPC, the GNU linker is very broken
9419      if test "$host_cpu" != ia64; then
9420	ld_shlibs=no
9421	cat <<_LT_EOF 1>&2
9422
9423*** Warning: the GNU linker, at least up to release 2.19, is reported
9424*** to be unable to reliably create shared libraries on AIX.
9425*** Therefore, libtool is disabling shared libraries support.  If you
9426*** really care for shared libraries, you may want to install binutils
9427*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9428*** You will then need to restart the configuration process.
9429
9430_LT_EOF
9431      fi
9432      ;;
9433
9434    amigaos*)
9435      case $host_cpu in
9436      powerpc)
9437            # see comment about AmigaOS4 .so support
9438            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439            archive_expsym_cmds=''
9440        ;;
9441      m68k)
9442            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)'
9443            hardcode_libdir_flag_spec='-L$libdir'
9444            hardcode_minus_L=yes
9445        ;;
9446      esac
9447      ;;
9448
9449    beos*)
9450      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451	allow_undefined_flag=unsupported
9452	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9453	# support --undefined.  This deserves some investigation.  FIXME
9454	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455      else
9456	ld_shlibs=no
9457      fi
9458      ;;
9459
9460    cygwin* | mingw* | pw32* | cegcc*)
9461      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9462      # as there is no search path for DLLs.
9463      hardcode_libdir_flag_spec='-L$libdir'
9464      export_dynamic_flag_spec='${wl}--export-all-symbols'
9465      allow_undefined_flag=unsupported
9466      always_export_symbols=no
9467      enable_shared_with_static_runtimes=yes
9468      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9469
9470      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9471        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472	# If the export-symbols file already is a .def file (1st line
9473	# is EXPORTS), use it as is; otherwise, prepend...
9474	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9475	  cp $export_symbols $output_objdir/$soname.def;
9476	else
9477	  echo EXPORTS > $output_objdir/$soname.def;
9478	  cat $export_symbols >> $output_objdir/$soname.def;
9479	fi~
9480	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481      else
9482	ld_shlibs=no
9483      fi
9484      ;;
9485
9486    haiku*)
9487      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488      link_all_deplibs=yes
9489      ;;
9490
9491    interix[3-9]*)
9492      hardcode_direct=no
9493      hardcode_shlibpath_var=no
9494      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9495      export_dynamic_flag_spec='${wl}-E'
9496      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9497      # Instead, shared libraries are loaded at an image base (0x10000000 by
9498      # default) and relocated if they conflict, which is a slow very memory
9499      # consuming and fragmenting process.  To avoid this, we pick a random,
9500      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9501      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9502      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9503      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'
9504      ;;
9505
9506    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9507      tmp_diet=no
9508      if test "$host_os" = linux-dietlibc; then
9509	case $cc_basename in
9510	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9511	esac
9512      fi
9513      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9514	 && test "$tmp_diet" = no
9515      then
9516	tmp_addflag=' $pic_flag'
9517	tmp_sharedflag='-shared'
9518	case $cc_basename,$host_cpu in
9519        pgcc*)				# Portland Group C compiler
9520	  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'
9521	  tmp_addflag=' $pic_flag'
9522	  ;;
9523	pgf77* | pgf90* | pgf95* | pgfortran*)
9524					# Portland Group f77 and f90 compilers
9525	  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'
9526	  tmp_addflag=' $pic_flag -Mnomain' ;;
9527	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9528	  tmp_addflag=' -i_dynamic' ;;
9529	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9530	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9531	ifc* | ifort*)			# Intel Fortran compiler
9532	  tmp_addflag=' -nofor_main' ;;
9533	lf95*)				# Lahey Fortran 8.1
9534	  whole_archive_flag_spec=
9535	  tmp_sharedflag='--shared' ;;
9536	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9537	  tmp_sharedflag='-qmkshrobj'
9538	  tmp_addflag= ;;
9539	nvcc*)	# Cuda Compiler Driver 2.2
9540	  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'
9541	  compiler_needs_object=yes
9542	  ;;
9543	esac
9544	case `$CC -V 2>&1 | sed 5q` in
9545	*Sun\ C*)			# Sun C 5.9
9546	  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'
9547	  compiler_needs_object=yes
9548	  tmp_sharedflag='-G' ;;
9549	*Sun\ F*)			# Sun Fortran 8.3
9550	  tmp_sharedflag='-G' ;;
9551	esac
9552	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553
9554        if test "x$supports_anon_versioning" = xyes; then
9555          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9556	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9557	    echo "local: *; };" >> $output_objdir/$libname.ver~
9558	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9559        fi
9560
9561	case $cc_basename in
9562	xlf* | bgf* | bgxlf* | mpixlf*)
9563	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9564	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9565	  hardcode_libdir_flag_spec=
9566	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9567	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9568	  if test "x$supports_anon_versioning" = xyes; then
9569	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9570	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9571	      echo "local: *; };" >> $output_objdir/$libname.ver~
9572	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9573	  fi
9574	  ;;
9575	esac
9576      else
9577        ld_shlibs=no
9578      fi
9579      ;;
9580
9581    netbsd*)
9582      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9583	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9584	wlarc=
9585      else
9586	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9588      fi
9589      ;;
9590
9591    solaris*)
9592      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9593	ld_shlibs=no
9594	cat <<_LT_EOF 1>&2
9595
9596*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9597*** create shared libraries on Solaris systems.  Therefore, libtool
9598*** is disabling shared libraries support.  We urge you to upgrade GNU
9599*** binutils to release 2.9.1 or newer.  Another option is to modify
9600*** your PATH or compiler configuration so that the native linker is
9601*** used, and then restart.
9602
9603_LT_EOF
9604      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9605	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9607      else
9608	ld_shlibs=no
9609      fi
9610      ;;
9611
9612    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9613      case `$LD -v 2>&1` in
9614        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9615	ld_shlibs=no
9616	cat <<_LT_EOF 1>&2
9617
9618*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9619*** reliably create shared libraries on SCO systems.  Therefore, libtool
9620*** is disabling shared libraries support.  We urge you to upgrade GNU
9621*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9622*** your PATH or compiler configuration so that the native linker is
9623*** used, and then restart.
9624
9625_LT_EOF
9626	;;
9627	*)
9628	  # For security reasons, it is highly recommended that you always
9629	  # use absolute paths for naming shared libraries, and exclude the
9630	  # DT_RUNPATH tag from executables and libraries.  But doing so
9631	  # requires that you compile everything twice, which is a pain.
9632	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9636	  else
9637	    ld_shlibs=no
9638	  fi
9639	;;
9640      esac
9641      ;;
9642
9643    sunos4*)
9644      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645      wlarc=
9646      hardcode_direct=yes
9647      hardcode_shlibpath_var=no
9648      ;;
9649
9650    *)
9651      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9652	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9654      else
9655	ld_shlibs=no
9656      fi
9657      ;;
9658    esac
9659
9660    if test "$ld_shlibs" = no; then
9661      runpath_var=
9662      hardcode_libdir_flag_spec=
9663      export_dynamic_flag_spec=
9664      whole_archive_flag_spec=
9665    fi
9666  else
9667    # PORTME fill in a description of your system's linker (not GNU ld)
9668    case $host_os in
9669    aix3*)
9670      allow_undefined_flag=unsupported
9671      always_export_symbols=yes
9672      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'
9673      # Note: this linker hardcodes the directories in LIBPATH if there
9674      # are no directories specified by -L.
9675      hardcode_minus_L=yes
9676      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9677	# Neither direct hardcoding nor static linking is supported with a
9678	# broken collect2.
9679	hardcode_direct=unsupported
9680      fi
9681      ;;
9682
9683    aix[4-9]*)
9684      if test "$host_cpu" = ia64; then
9685	# On IA64, the linker does run time linking by default, so we don't
9686	# have to do anything special.
9687	aix_use_runtimelinking=no
9688	exp_sym_flag='-Bexport'
9689	no_entry_flag=""
9690      else
9691	# If we're using GNU nm, then we don't want the "-C" option.
9692	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9693	# Also, AIX nm treats weak defined symbols like other global
9694	# defined symbols, whereas GNU nm marks them as "W".
9695	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9696	  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'
9697	else
9698	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9699	fi
9700	aix_use_runtimelinking=no
9701
9702	# Test if we are trying to use run time linking or normal
9703	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9704	# need to do runtime linking.
9705	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9706	  for ld_flag in $LDFLAGS; do
9707	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9708	    aix_use_runtimelinking=yes
9709	    break
9710	  fi
9711	  done
9712	  ;;
9713	esac
9714
9715	exp_sym_flag='-bexport'
9716	no_entry_flag='-bnoentry'
9717      fi
9718
9719      # When large executables or shared objects are built, AIX ld can
9720      # have problems creating the table of contents.  If linking a library
9721      # or program results in "error TOC overflow" add -mminimal-toc to
9722      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9723      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9724
9725      archive_cmds=''
9726      hardcode_direct=yes
9727      hardcode_direct_absolute=yes
9728      hardcode_libdir_separator=':'
9729      link_all_deplibs=yes
9730      file_list_spec='${wl}-f,'
9731
9732      if test "$GCC" = yes; then
9733	case $host_os in aix4.[012]|aix4.[012].*)
9734	# We only want to do this on AIX 4.2 and lower, the check
9735	# below for broken collect2 doesn't work under 4.3+
9736	  collect2name=`${CC} -print-prog-name=collect2`
9737	  if test -f "$collect2name" &&
9738	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9739	  then
9740	  # We have reworked collect2
9741	  :
9742	  else
9743	  # We have old collect2
9744	  hardcode_direct=unsupported
9745	  # It fails to find uninstalled libraries when the uninstalled
9746	  # path is not listed in the libpath.  Setting hardcode_minus_L
9747	  # to unsupported forces relinking
9748	  hardcode_minus_L=yes
9749	  hardcode_libdir_flag_spec='-L$libdir'
9750	  hardcode_libdir_separator=
9751	  fi
9752	  ;;
9753	esac
9754	shared_flag='-shared'
9755	if test "$aix_use_runtimelinking" = yes; then
9756	  shared_flag="$shared_flag "'${wl}-G'
9757	fi
9758      else
9759	# not using gcc
9760	if test "$host_cpu" = ia64; then
9761	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9762	# chokes on -Wl,-G. The following line is correct:
9763	  shared_flag='-G'
9764	else
9765	  if test "$aix_use_runtimelinking" = yes; then
9766	    shared_flag='${wl}-G'
9767	  else
9768	    shared_flag='${wl}-bM:SRE'
9769	  fi
9770	fi
9771      fi
9772
9773      export_dynamic_flag_spec='${wl}-bexpall'
9774      # It seems that -bexpall does not export symbols beginning with
9775      # underscore (_), so it is better to generate a list of symbols to export.
9776      always_export_symbols=yes
9777      if test "$aix_use_runtimelinking" = yes; then
9778	# Warning - without using the other runtime loading flags (-brtl),
9779	# -berok will link without error, but may produce a broken library.
9780	allow_undefined_flag='-berok'
9781        # Determine the default libpath from the value encoded in an
9782        # empty executable.
9783        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784/* end confdefs.h.  */
9785
9786int
9787main ()
9788{
9789
9790  ;
9791  return 0;
9792}
9793_ACEOF
9794if ac_fn_c_try_link "$LINENO"; then :
9795
9796lt_aix_libpath_sed='
9797    /Import File Strings/,/^$/ {
9798	/^0/ {
9799	    s/^0  *\(.*\)$/\1/
9800	    p
9801	}
9802    }'
9803aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804# Check for a 64-bit object if we didn't find anything.
9805if test -z "$aix_libpath"; then
9806  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9807fi
9808fi
9809rm -f core conftest.err conftest.$ac_objext \
9810    conftest$ac_exeext conftest.$ac_ext
9811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9812
9813        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9814        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"
9815      else
9816	if test "$host_cpu" = ia64; then
9817	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9818	  allow_undefined_flag="-z nodefs"
9819	  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"
9820	else
9821	 # Determine the default libpath from the value encoded in an
9822	 # empty executable.
9823	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824/* end confdefs.h.  */
9825
9826int
9827main ()
9828{
9829
9830  ;
9831  return 0;
9832}
9833_ACEOF
9834if ac_fn_c_try_link "$LINENO"; then :
9835
9836lt_aix_libpath_sed='
9837    /Import File Strings/,/^$/ {
9838	/^0/ {
9839	    s/^0  *\(.*\)$/\1/
9840	    p
9841	}
9842    }'
9843aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844# Check for a 64-bit object if we didn't find anything.
9845if test -z "$aix_libpath"; then
9846  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847fi
9848fi
9849rm -f core conftest.err conftest.$ac_objext \
9850    conftest$ac_exeext conftest.$ac_ext
9851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9852
9853	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9854	  # Warning - without using the other run time loading flags,
9855	  # -berok will link without error, but may produce a broken library.
9856	  no_undefined_flag=' ${wl}-bernotok'
9857	  allow_undefined_flag=' ${wl}-berok'
9858	  if test "$with_gnu_ld" = yes; then
9859	    # We only use this code for GNU lds that support --whole-archive.
9860	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9861	  else
9862	    # Exported symbols can be pulled into shared objects from archives
9863	    whole_archive_flag_spec='$convenience'
9864	  fi
9865	  archive_cmds_need_lc=yes
9866	  # This is similar to how AIX traditionally builds its shared libraries.
9867	  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'
9868	fi
9869      fi
9870      ;;
9871
9872    amigaos*)
9873      case $host_cpu in
9874      powerpc)
9875            # see comment about AmigaOS4 .so support
9876            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877            archive_expsym_cmds=''
9878        ;;
9879      m68k)
9880            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9881            hardcode_libdir_flag_spec='-L$libdir'
9882            hardcode_minus_L=yes
9883        ;;
9884      esac
9885      ;;
9886
9887    bsdi[45]*)
9888      export_dynamic_flag_spec=-rdynamic
9889      ;;
9890
9891    cygwin* | mingw* | pw32* | cegcc*)
9892      # When not using gcc, we currently assume that we are using
9893      # Microsoft Visual C++.
9894      # hardcode_libdir_flag_spec is actually meaningless, as there is
9895      # no search path for DLLs.
9896      hardcode_libdir_flag_spec=' '
9897      allow_undefined_flag=unsupported
9898      # Tell ltmain to make .lib files, not .a files.
9899      libext=lib
9900      # Tell ltmain to make .dll files, not .so files.
9901      shrext_cmds=".dll"
9902      # FIXME: Setting linknames here is a bad hack.
9903      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9904      # The linker will automatically build a .lib file if we build a DLL.
9905      old_archive_from_new_cmds='true'
9906      # FIXME: Should let the user specify the lib program.
9907      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9908      fix_srcfile_path='`cygpath -w "$srcfile"`'
9909      enable_shared_with_static_runtimes=yes
9910      ;;
9911
9912    darwin* | rhapsody*)
9913
9914
9915  archive_cmds_need_lc=no
9916  hardcode_direct=no
9917  hardcode_automatic=yes
9918  hardcode_shlibpath_var=unsupported
9919  if test "$lt_cv_ld_force_load" = "yes"; then
9920    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\"`'
9921  else
9922    whole_archive_flag_spec=''
9923  fi
9924  link_all_deplibs=yes
9925  allow_undefined_flag="$_lt_dar_allow_undefined"
9926  case $cc_basename in
9927     ifort*) _lt_dar_can_shared=yes ;;
9928     *) _lt_dar_can_shared=$GCC ;;
9929  esac
9930  if test "$_lt_dar_can_shared" = "yes"; then
9931    output_verbose_link_cmd=func_echo_all
9932    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9933    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9934    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}"
9935    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}"
9936
9937  else
9938  ld_shlibs=no
9939  fi
9940
9941      ;;
9942
9943    dgux*)
9944      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945      hardcode_libdir_flag_spec='-L$libdir'
9946      hardcode_shlibpath_var=no
9947      ;;
9948
9949    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9950    # support.  Future versions do this automatically, but an explicit c++rt0.o
9951    # does not break anything, and helps significantly (at the cost of a little
9952    # extra space).
9953    freebsd2.2*)
9954      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9955      hardcode_libdir_flag_spec='-R$libdir'
9956      hardcode_direct=yes
9957      hardcode_shlibpath_var=no
9958      ;;
9959
9960    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9961    freebsd2.*)
9962      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9963      hardcode_direct=yes
9964      hardcode_minus_L=yes
9965      hardcode_shlibpath_var=no
9966      ;;
9967
9968    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9969    freebsd* | dragonfly*)
9970      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9971      hardcode_libdir_flag_spec='-R$libdir'
9972      hardcode_direct=yes
9973      hardcode_shlibpath_var=no
9974      ;;
9975
9976    hpux9*)
9977      if test "$GCC" = yes; then
9978	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'
9979      else
9980	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'
9981      fi
9982      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9983      hardcode_libdir_separator=:
9984      hardcode_direct=yes
9985
9986      # hardcode_minus_L: Not really in the search PATH,
9987      # but as the default location of the library.
9988      hardcode_minus_L=yes
9989      export_dynamic_flag_spec='${wl}-E'
9990      ;;
9991
9992    hpux10*)
9993      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9994	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9995      else
9996	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9997      fi
9998      if test "$with_gnu_ld" = no; then
9999	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10000	hardcode_libdir_flag_spec_ld='+b $libdir'
10001	hardcode_libdir_separator=:
10002	hardcode_direct=yes
10003	hardcode_direct_absolute=yes
10004	export_dynamic_flag_spec='${wl}-E'
10005	# hardcode_minus_L: Not really in the search PATH,
10006	# but as the default location of the library.
10007	hardcode_minus_L=yes
10008      fi
10009      ;;
10010
10011    hpux11*)
10012      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10013	case $host_cpu in
10014	hppa*64*)
10015	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016	  ;;
10017	ia64*)
10018	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10019	  ;;
10020	*)
10021	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022	  ;;
10023	esac
10024      else
10025	case $host_cpu in
10026	hppa*64*)
10027	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028	  ;;
10029	ia64*)
10030	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10031	  ;;
10032	*)
10033
10034	  # Older versions of the 11.00 compiler do not understand -b yet
10035	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10036	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10037$as_echo_n "checking if $CC understands -b... " >&6; }
10038if test "${lt_cv_prog_compiler__b+set}" = set; then :
10039  $as_echo_n "(cached) " >&6
10040else
10041  lt_cv_prog_compiler__b=no
10042   save_LDFLAGS="$LDFLAGS"
10043   LDFLAGS="$LDFLAGS -b"
10044   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046     # The linker can only warn and ignore the option if not recognized
10047     # So say no if there are warnings
10048     if test -s conftest.err; then
10049       # Append any errors to the config.log.
10050       cat conftest.err 1>&5
10051       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053       if diff conftest.exp conftest.er2 >/dev/null; then
10054         lt_cv_prog_compiler__b=yes
10055       fi
10056     else
10057       lt_cv_prog_compiler__b=yes
10058     fi
10059   fi
10060   $RM -r conftest*
10061   LDFLAGS="$save_LDFLAGS"
10062
10063fi
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10065$as_echo "$lt_cv_prog_compiler__b" >&6; }
10066
10067if test x"$lt_cv_prog_compiler__b" = xyes; then
10068    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069else
10070    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071fi
10072
10073	  ;;
10074	esac
10075      fi
10076      if test "$with_gnu_ld" = no; then
10077	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10078	hardcode_libdir_separator=:
10079
10080	case $host_cpu in
10081	hppa*64*|ia64*)
10082	  hardcode_direct=no
10083	  hardcode_shlibpath_var=no
10084	  ;;
10085	*)
10086	  hardcode_direct=yes
10087	  hardcode_direct_absolute=yes
10088	  export_dynamic_flag_spec='${wl}-E'
10089
10090	  # hardcode_minus_L: Not really in the search PATH,
10091	  # but as the default location of the library.
10092	  hardcode_minus_L=yes
10093	  ;;
10094	esac
10095      fi
10096      ;;
10097
10098    irix5* | irix6* | nonstopux*)
10099      if test "$GCC" = yes; then
10100	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'
10101	# Try to use the -exported_symbol ld option, if it does not
10102	# work, assume that -exports_file does not work either and
10103	# implicitly export all symbols.
10104        save_LDFLAGS="$LDFLAGS"
10105        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10106        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107/* end confdefs.h.  */
10108int foo(void) {}
10109_ACEOF
10110if ac_fn_c_try_link "$LINENO"; then :
10111  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'
10112
10113fi
10114rm -f core conftest.err conftest.$ac_objext \
10115    conftest$ac_exeext conftest.$ac_ext
10116        LDFLAGS="$save_LDFLAGS"
10117      else
10118	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'
10119	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'
10120      fi
10121      archive_cmds_need_lc='no'
10122      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123      hardcode_libdir_separator=:
10124      inherit_rpath=yes
10125      link_all_deplibs=yes
10126      ;;
10127
10128    netbsd*)
10129      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10131      else
10132	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10133      fi
10134      hardcode_libdir_flag_spec='-R$libdir'
10135      hardcode_direct=yes
10136      hardcode_shlibpath_var=no
10137      ;;
10138
10139    newsos6)
10140      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141      hardcode_direct=yes
10142      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143      hardcode_libdir_separator=:
10144      hardcode_shlibpath_var=no
10145      ;;
10146
10147    *nto* | *qnx*)
10148      ;;
10149
10150    openbsd*)
10151      if test -f /usr/libexec/ld.so; then
10152	hardcode_direct=yes
10153	hardcode_shlibpath_var=no
10154	hardcode_direct_absolute=yes
10155	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10156	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10158	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10159	  export_dynamic_flag_spec='${wl}-E'
10160	else
10161	  case $host_os in
10162	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10163	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10164	     hardcode_libdir_flag_spec='-R$libdir'
10165	     ;;
10166	   *)
10167	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10169	     ;;
10170	  esac
10171	fi
10172      else
10173	ld_shlibs=no
10174      fi
10175      ;;
10176
10177    os2*)
10178      hardcode_libdir_flag_spec='-L$libdir'
10179      hardcode_minus_L=yes
10180      allow_undefined_flag=unsupported
10181      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'
10182      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10183      ;;
10184
10185    osf3*)
10186      if test "$GCC" = yes; then
10187	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10188	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'
10189      else
10190	allow_undefined_flag=' -expect_unresolved \*'
10191	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'
10192      fi
10193      archive_cmds_need_lc='no'
10194      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195      hardcode_libdir_separator=:
10196      ;;
10197
10198    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10199      if test "$GCC" = yes; then
10200	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10201	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'
10202	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10203      else
10204	allow_undefined_flag=' -expect_unresolved \*'
10205	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'
10206	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~
10207	$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'
10208
10209	# Both c and cxx compiler support -rpath directly
10210	hardcode_libdir_flag_spec='-rpath $libdir'
10211      fi
10212      archive_cmds_need_lc='no'
10213      hardcode_libdir_separator=:
10214      ;;
10215
10216    solaris*)
10217      no_undefined_flag=' -z defs'
10218      if test "$GCC" = yes; then
10219	wlarc='${wl}'
10220	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10221	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10223      else
10224	case `$CC -V 2>&1` in
10225	*"Compilers 5.0"*)
10226	  wlarc=''
10227	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10230	  ;;
10231	*)
10232	  wlarc='${wl}'
10233	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10236	  ;;
10237	esac
10238      fi
10239      hardcode_libdir_flag_spec='-R$libdir'
10240      hardcode_shlibpath_var=no
10241      case $host_os in
10242      solaris2.[0-5] | solaris2.[0-5].*) ;;
10243      *)
10244	# The compiler driver will combine and reorder linker options,
10245	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10246	# but is careful enough not to reorder.
10247	# Supported since Solaris 2.6 (maybe 2.5.1?)
10248	if test "$GCC" = yes; then
10249	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10250	else
10251	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10252	fi
10253	;;
10254      esac
10255      link_all_deplibs=yes
10256      ;;
10257
10258    sunos4*)
10259      if test "x$host_vendor" = xsequent; then
10260	# Use $CC to link under sequent, because it throws in some extra .o
10261	# files that make .init and .fini sections work.
10262	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10263      else
10264	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10265      fi
10266      hardcode_libdir_flag_spec='-L$libdir'
10267      hardcode_direct=yes
10268      hardcode_minus_L=yes
10269      hardcode_shlibpath_var=no
10270      ;;
10271
10272    sysv4)
10273      case $host_vendor in
10274	sni)
10275	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276	  hardcode_direct=yes # is this really true???
10277	;;
10278	siemens)
10279	  ## LD is ld it makes a PLAMLIB
10280	  ## CC just makes a GrossModule.
10281	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10282	  reload_cmds='$CC -r -o $output$reload_objs'
10283	  hardcode_direct=no
10284        ;;
10285	motorola)
10286	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10288	;;
10289      esac
10290      runpath_var='LD_RUN_PATH'
10291      hardcode_shlibpath_var=no
10292      ;;
10293
10294    sysv4.3*)
10295      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296      hardcode_shlibpath_var=no
10297      export_dynamic_flag_spec='-Bexport'
10298      ;;
10299
10300    sysv4*MP*)
10301      if test -d /usr/nec; then
10302	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303	hardcode_shlibpath_var=no
10304	runpath_var=LD_RUN_PATH
10305	hardcode_runpath_var=yes
10306	ld_shlibs=yes
10307      fi
10308      ;;
10309
10310    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10311      no_undefined_flag='${wl}-z,text'
10312      archive_cmds_need_lc=no
10313      hardcode_shlibpath_var=no
10314      runpath_var='LD_RUN_PATH'
10315
10316      if test "$GCC" = yes; then
10317	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319      else
10320	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322      fi
10323      ;;
10324
10325    sysv5* | sco3.2v5* | sco5v6*)
10326      # Note: We can NOT use -z defs as we might desire, because we do not
10327      # link with -lc, and that would cause any symbols used from libc to
10328      # always be unresolved, which means just about no library would
10329      # ever link correctly.  If we're not using GNU ld we use -z text
10330      # though, which does catch some bad symbols but isn't as heavy-handed
10331      # as -z defs.
10332      no_undefined_flag='${wl}-z,text'
10333      allow_undefined_flag='${wl}-z,nodefs'
10334      archive_cmds_need_lc=no
10335      hardcode_shlibpath_var=no
10336      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10337      hardcode_libdir_separator=':'
10338      link_all_deplibs=yes
10339      export_dynamic_flag_spec='${wl}-Bexport'
10340      runpath_var='LD_RUN_PATH'
10341
10342      if test "$GCC" = yes; then
10343	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345      else
10346	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348      fi
10349      ;;
10350
10351    uts4*)
10352      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353      hardcode_libdir_flag_spec='-L$libdir'
10354      hardcode_shlibpath_var=no
10355      ;;
10356
10357    *)
10358      ld_shlibs=no
10359      ;;
10360    esac
10361
10362    if test x$host_vendor = xsni; then
10363      case $host in
10364      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10365	export_dynamic_flag_spec='${wl}-Blargedynsym'
10366	;;
10367      esac
10368    fi
10369  fi
10370
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10372$as_echo "$ld_shlibs" >&6; }
10373test "$ld_shlibs" = no && can_build_shared=no
10374
10375with_gnu_ld=$with_gnu_ld
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391#
10392# Do we need to explicitly link libc?
10393#
10394case "x$archive_cmds_need_lc" in
10395x|xyes)
10396  # Assume -lc should be added
10397  archive_cmds_need_lc=yes
10398
10399  if test "$enable_shared" = yes && test "$GCC" = yes; then
10400    case $archive_cmds in
10401    *'~'*)
10402      # FIXME: we may have to deal with multi-command sequences.
10403      ;;
10404    '$CC '*)
10405      # Test whether the compiler implicitly links with -lc since on some
10406      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10407      # to ld, don't add -lc before -lgcc.
10408      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10409$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10410if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  $RM conftest*
10414	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10415
10416	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10417  (eval $ac_compile) 2>&5
10418  ac_status=$?
10419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420  test $ac_status = 0; } 2>conftest.err; then
10421	  soname=conftest
10422	  lib=conftest
10423	  libobjs=conftest.$ac_objext
10424	  deplibs=
10425	  wl=$lt_prog_compiler_wl
10426	  pic_flag=$lt_prog_compiler_pic
10427	  compiler_flags=-v
10428	  linker_flags=-v
10429	  verstring=
10430	  output_objdir=.
10431	  libname=conftest
10432	  lt_save_allow_undefined_flag=$allow_undefined_flag
10433	  allow_undefined_flag=
10434	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10435  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10436  ac_status=$?
10437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438  test $ac_status = 0; }
10439	  then
10440	    lt_cv_archive_cmds_need_lc=no
10441	  else
10442	    lt_cv_archive_cmds_need_lc=yes
10443	  fi
10444	  allow_undefined_flag=$lt_save_allow_undefined_flag
10445	else
10446	  cat conftest.err 1>&5
10447	fi
10448	$RM conftest*
10449
10450fi
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10452$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10453      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10454      ;;
10455    esac
10456  fi
10457  ;;
10458esac
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
10609
10610
10611
10612
10613
10614
10615
10616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10617$as_echo_n "checking dynamic linker characteristics... " >&6; }
10618
10619if test "$GCC" = yes; then
10620  case $host_os in
10621    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10622    *) lt_awk_arg="/^libraries:/" ;;
10623  esac
10624  case $host_os in
10625    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10626    *) lt_sed_strip_eq="s,=/,/,g" ;;
10627  esac
10628  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10629  case $lt_search_path_spec in
10630  *\;*)
10631    # if the path contains ";" then we assume it to be the separator
10632    # otherwise default to the standard path separator (i.e. ":") - it is
10633    # assumed that no part of a normal pathname contains ";" but that should
10634    # okay in the real world where ";" in dirpaths is itself problematic.
10635    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10636    ;;
10637  *)
10638    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10639    ;;
10640  esac
10641  # Ok, now we have the path, separated by spaces, we can step through it
10642  # and add multilib dir if necessary.
10643  lt_tmp_lt_search_path_spec=
10644  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10645  for lt_sys_path in $lt_search_path_spec; do
10646    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10647      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10648    else
10649      test -d "$lt_sys_path" && \
10650	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10651    fi
10652  done
10653  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10654BEGIN {RS=" "; FS="/|\n";} {
10655  lt_foo="";
10656  lt_count=0;
10657  for (lt_i = NF; lt_i > 0; lt_i--) {
10658    if ($lt_i != "" && $lt_i != ".") {
10659      if ($lt_i == "..") {
10660        lt_count++;
10661      } else {
10662        if (lt_count == 0) {
10663          lt_foo="/" $lt_i lt_foo;
10664        } else {
10665          lt_count--;
10666        }
10667      }
10668    }
10669  }
10670  if (lt_foo != "") { lt_freq[lt_foo]++; }
10671  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10672}'`
10673  # AWK program above erroneously prepends '/' to C:/dos/paths
10674  # for these hosts.
10675  case $host_os in
10676    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10677      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10678  esac
10679  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10680else
10681  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10682fi
10683library_names_spec=
10684libname_spec='lib$name'
10685soname_spec=
10686shrext_cmds=".so"
10687postinstall_cmds=
10688postuninstall_cmds=
10689finish_cmds=
10690finish_eval=
10691shlibpath_var=
10692shlibpath_overrides_runpath=unknown
10693version_type=none
10694dynamic_linker="$host_os ld.so"
10695sys_lib_dlsearch_path_spec="/lib /usr/lib"
10696need_lib_prefix=unknown
10697hardcode_into_libs=no
10698
10699# when you set need_version to no, make sure it does not cause -set_version
10700# flags to be left without arguments
10701need_version=unknown
10702
10703case $host_os in
10704aix3*)
10705  version_type=linux
10706  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10707  shlibpath_var=LIBPATH
10708
10709  # AIX 3 has no versioning support, so we append a major version to the name.
10710  soname_spec='${libname}${release}${shared_ext}$major'
10711  ;;
10712
10713aix[4-9]*)
10714  version_type=linux
10715  need_lib_prefix=no
10716  need_version=no
10717  hardcode_into_libs=yes
10718  if test "$host_cpu" = ia64; then
10719    # AIX 5 supports IA64
10720    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10721    shlibpath_var=LD_LIBRARY_PATH
10722  else
10723    # With GCC up to 2.95.x, collect2 would create an import file
10724    # for dependence libraries.  The import file would start with
10725    # the line `#! .'.  This would cause the generated library to
10726    # depend on `.', always an invalid library.  This was fixed in
10727    # development snapshots of GCC prior to 3.0.
10728    case $host_os in
10729      aix4 | aix4.[01] | aix4.[01].*)
10730      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10731	   echo ' yes '
10732	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10733	:
10734      else
10735	can_build_shared=no
10736      fi
10737      ;;
10738    esac
10739    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10740    # soname into executable. Probably we can add versioning support to
10741    # collect2, so additional links can be useful in future.
10742    if test "$aix_use_runtimelinking" = yes; then
10743      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744      # instead of lib<name>.a to let people know that these are not
10745      # typical AIX shared libraries.
10746      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747    else
10748      # We preserve .a as extension for shared libraries through AIX4.2
10749      # and later when we are not doing run time linking.
10750      library_names_spec='${libname}${release}.a $libname.a'
10751      soname_spec='${libname}${release}${shared_ext}$major'
10752    fi
10753    shlibpath_var=LIBPATH
10754  fi
10755  ;;
10756
10757amigaos*)
10758  case $host_cpu in
10759  powerpc)
10760    # Since July 2007 AmigaOS4 officially supports .so libraries.
10761    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10762    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763    ;;
10764  m68k)
10765    library_names_spec='$libname.ixlibrary $libname.a'
10766    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10767    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'
10768    ;;
10769  esac
10770  ;;
10771
10772beos*)
10773  library_names_spec='${libname}${shared_ext}'
10774  dynamic_linker="$host_os ld.so"
10775  shlibpath_var=LIBRARY_PATH
10776  ;;
10777
10778bsdi[45]*)
10779  version_type=linux
10780  need_version=no
10781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782  soname_spec='${libname}${release}${shared_ext}$major'
10783  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10784  shlibpath_var=LD_LIBRARY_PATH
10785  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10786  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10787  # the default ld.so.conf also contains /usr/contrib/lib and
10788  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10789  # libtool to hard-code these into programs
10790  ;;
10791
10792cygwin* | mingw* | pw32* | cegcc*)
10793  version_type=windows
10794  shrext_cmds=".dll"
10795  need_version=no
10796  need_lib_prefix=no
10797
10798  case $GCC,$host_os in
10799  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10800    library_names_spec='$libname.dll.a'
10801    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10802    postinstall_cmds='base_file=`basename \${file}`~
10803      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10804      dldir=$destdir/`dirname \$dlpath`~
10805      test -d \$dldir || mkdir -p \$dldir~
10806      $install_prog $dir/$dlname \$dldir/$dlname~
10807      chmod a+x \$dldir/$dlname~
10808      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10809        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10810      fi'
10811    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10812      dlpath=$dir/\$dldll~
10813       $RM \$dlpath'
10814    shlibpath_overrides_runpath=yes
10815
10816    case $host_os in
10817    cygwin*)
10818      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10819      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10820
10821      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10822      ;;
10823    mingw* | cegcc*)
10824      # MinGW DLLs use traditional 'lib' prefix
10825      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10826      ;;
10827    pw32*)
10828      # pw32 DLLs use 'pw' prefix rather than 'lib'
10829      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830      ;;
10831    esac
10832    ;;
10833
10834  *)
10835    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10836    ;;
10837  esac
10838  dynamic_linker='Win32 ld.exe'
10839  # FIXME: first we should search . and the directory the executable is in
10840  shlibpath_var=PATH
10841  ;;
10842
10843darwin* | rhapsody*)
10844  dynamic_linker="$host_os dyld"
10845  version_type=darwin
10846  need_lib_prefix=no
10847  need_version=no
10848  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10849  soname_spec='${libname}${release}${major}$shared_ext'
10850  shlibpath_overrides_runpath=yes
10851  shlibpath_var=DYLD_LIBRARY_PATH
10852  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10853
10854  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10855  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10856  ;;
10857
10858dgux*)
10859  version_type=linux
10860  need_lib_prefix=no
10861  need_version=no
10862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10863  soname_spec='${libname}${release}${shared_ext}$major'
10864  shlibpath_var=LD_LIBRARY_PATH
10865  ;;
10866
10867freebsd* | dragonfly*)
10868  # DragonFly does not have aout.  When/if they implement a new
10869  # versioning mechanism, adjust this.
10870  if test -x /usr/bin/objformat; then
10871    objformat=`/usr/bin/objformat`
10872  else
10873    case $host_os in
10874    freebsd[23].*) objformat=aout ;;
10875    *) objformat=elf ;;
10876    esac
10877  fi
10878  version_type=freebsd-$objformat
10879  case $version_type in
10880    freebsd-elf*)
10881      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10882      need_version=no
10883      need_lib_prefix=no
10884      ;;
10885    freebsd-*)
10886      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10887      need_version=yes
10888      ;;
10889  esac
10890  shlibpath_var=LD_LIBRARY_PATH
10891  case $host_os in
10892  freebsd2.*)
10893    shlibpath_overrides_runpath=yes
10894    ;;
10895  freebsd3.[01]* | freebsdelf3.[01]*)
10896    shlibpath_overrides_runpath=yes
10897    hardcode_into_libs=yes
10898    ;;
10899  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10900  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10901    shlibpath_overrides_runpath=no
10902    hardcode_into_libs=yes
10903    ;;
10904  *) # from 4.6 on, and DragonFly
10905    shlibpath_overrides_runpath=yes
10906    hardcode_into_libs=yes
10907    ;;
10908  esac
10909  ;;
10910
10911gnu*)
10912  version_type=linux
10913  need_lib_prefix=no
10914  need_version=no
10915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10916  soname_spec='${libname}${release}${shared_ext}$major'
10917  shlibpath_var=LD_LIBRARY_PATH
10918  hardcode_into_libs=yes
10919  ;;
10920
10921haiku*)
10922  version_type=linux
10923  need_lib_prefix=no
10924  need_version=no
10925  dynamic_linker="$host_os runtime_loader"
10926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10927  soname_spec='${libname}${release}${shared_ext}$major'
10928  shlibpath_var=LIBRARY_PATH
10929  shlibpath_overrides_runpath=yes
10930  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10931  hardcode_into_libs=yes
10932  ;;
10933
10934hpux9* | hpux10* | hpux11*)
10935  # Give a soname corresponding to the major version so that dld.sl refuses to
10936  # link against other versions.
10937  version_type=sunos
10938  need_lib_prefix=no
10939  need_version=no
10940  case $host_cpu in
10941  ia64*)
10942    shrext_cmds='.so'
10943    hardcode_into_libs=yes
10944    dynamic_linker="$host_os dld.so"
10945    shlibpath_var=LD_LIBRARY_PATH
10946    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948    soname_spec='${libname}${release}${shared_ext}$major'
10949    if test "X$HPUX_IA64_MODE" = X32; then
10950      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10951    else
10952      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10953    fi
10954    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955    ;;
10956  hppa*64*)
10957    shrext_cmds='.sl'
10958    hardcode_into_libs=yes
10959    dynamic_linker="$host_os dld.sl"
10960    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963    soname_spec='${libname}${release}${shared_ext}$major'
10964    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966    ;;
10967  *)
10968    shrext_cmds='.sl'
10969    dynamic_linker="$host_os dld.sl"
10970    shlibpath_var=SHLIB_PATH
10971    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973    soname_spec='${libname}${release}${shared_ext}$major'
10974    ;;
10975  esac
10976  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10977  postinstall_cmds='chmod 555 $lib'
10978  # or fails outright, so override atomically:
10979  install_override_mode=555
10980  ;;
10981
10982interix[3-9]*)
10983  version_type=linux
10984  need_lib_prefix=no
10985  need_version=no
10986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10987  soname_spec='${libname}${release}${shared_ext}$major'
10988  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10989  shlibpath_var=LD_LIBRARY_PATH
10990  shlibpath_overrides_runpath=no
10991  hardcode_into_libs=yes
10992  ;;
10993
10994irix5* | irix6* | nonstopux*)
10995  case $host_os in
10996    nonstopux*) version_type=nonstopux ;;
10997    *)
10998	if test "$lt_cv_prog_gnu_ld" = yes; then
10999		version_type=linux
11000	else
11001		version_type=irix
11002	fi ;;
11003  esac
11004  need_lib_prefix=no
11005  need_version=no
11006  soname_spec='${libname}${release}${shared_ext}$major'
11007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11008  case $host_os in
11009  irix5* | nonstopux*)
11010    libsuff= shlibsuff=
11011    ;;
11012  *)
11013    case $LD in # libtool.m4 will add one of these switches to LD
11014    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11015      libsuff= shlibsuff= libmagic=32-bit;;
11016    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11017      libsuff=32 shlibsuff=N32 libmagic=N32;;
11018    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11019      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11020    *) libsuff= shlibsuff= libmagic=never-match;;
11021    esac
11022    ;;
11023  esac
11024  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11025  shlibpath_overrides_runpath=no
11026  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11027  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11028  hardcode_into_libs=yes
11029  ;;
11030
11031# No shared lib support for Linux oldld, aout, or coff.
11032linux*oldld* | linux*aout* | linux*coff*)
11033  dynamic_linker=no
11034  ;;
11035
11036# This must be Linux ELF.
11037linux* | k*bsd*-gnu | kopensolaris*-gnu)
11038  version_type=linux
11039  need_lib_prefix=no
11040  need_version=no
11041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042  soname_spec='${libname}${release}${shared_ext}$major'
11043  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11044  shlibpath_var=LD_LIBRARY_PATH
11045  shlibpath_overrides_runpath=no
11046
11047  # Some binutils ld are patched to set DT_RUNPATH
11048  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11049  $as_echo_n "(cached) " >&6
11050else
11051  lt_cv_shlibpath_overrides_runpath=no
11052    save_LDFLAGS=$LDFLAGS
11053    save_libdir=$libdir
11054    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11055	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057/* end confdefs.h.  */
11058
11059int
11060main ()
11061{
11062
11063  ;
11064  return 0;
11065}
11066_ACEOF
11067if ac_fn_c_try_link "$LINENO"; then :
11068  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11069  lt_cv_shlibpath_overrides_runpath=yes
11070fi
11071fi
11072rm -f core conftest.err conftest.$ac_objext \
11073    conftest$ac_exeext conftest.$ac_ext
11074    LDFLAGS=$save_LDFLAGS
11075    libdir=$save_libdir
11076
11077fi
11078
11079  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11080
11081  # This implies no fast_install, which is unacceptable.
11082  # Some rework will be needed to allow for fast_install
11083  # before this can be enabled.
11084  hardcode_into_libs=yes
11085
11086  # Append ld.so.conf contents to the search path
11087  if test -f /etc/ld.so.conf; then
11088    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' ' '`
11089    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11090  fi
11091
11092  # We used to test for /lib/ld.so.1 and disable shared libraries on
11093  # powerpc, because MkLinux only supported shared libraries with the
11094  # GNU dynamic linker.  Since this was broken with cross compilers,
11095  # most powerpc-linux boxes support dynamic linking these days and
11096  # people can always --disable-shared, the test was removed, and we
11097  # assume the GNU/Linux dynamic linker is in use.
11098  dynamic_linker='GNU/Linux ld.so'
11099  ;;
11100
11101netbsd*)
11102  version_type=sunos
11103  need_lib_prefix=no
11104  need_version=no
11105  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108    dynamic_linker='NetBSD (a.out) ld.so'
11109  else
11110    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11111    soname_spec='${libname}${release}${shared_ext}$major'
11112    dynamic_linker='NetBSD ld.elf_so'
11113  fi
11114  shlibpath_var=LD_LIBRARY_PATH
11115  shlibpath_overrides_runpath=yes
11116  hardcode_into_libs=yes
11117  ;;
11118
11119newsos6)
11120  version_type=linux
11121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122  shlibpath_var=LD_LIBRARY_PATH
11123  shlibpath_overrides_runpath=yes
11124  ;;
11125
11126*nto* | *qnx*)
11127  version_type=qnx
11128  need_lib_prefix=no
11129  need_version=no
11130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131  soname_spec='${libname}${release}${shared_ext}$major'
11132  shlibpath_var=LD_LIBRARY_PATH
11133  shlibpath_overrides_runpath=no
11134  hardcode_into_libs=yes
11135  dynamic_linker='ldqnx.so'
11136  ;;
11137
11138openbsd*)
11139  version_type=sunos
11140  sys_lib_dlsearch_path_spec="/usr/lib"
11141  need_lib_prefix=no
11142  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11143  case $host_os in
11144    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11145    *)				need_version=no  ;;
11146  esac
11147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11148  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11149  shlibpath_var=LD_LIBRARY_PATH
11150  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151    case $host_os in
11152      openbsd2.[89] | openbsd2.[89].*)
11153	shlibpath_overrides_runpath=no
11154	;;
11155      *)
11156	shlibpath_overrides_runpath=yes
11157	;;
11158      esac
11159  else
11160    shlibpath_overrides_runpath=yes
11161  fi
11162  ;;
11163
11164os2*)
11165  libname_spec='$name'
11166  shrext_cmds=".dll"
11167  need_lib_prefix=no
11168  library_names_spec='$libname${shared_ext} $libname.a'
11169  dynamic_linker='OS/2 ld.exe'
11170  shlibpath_var=LIBPATH
11171  ;;
11172
11173osf3* | osf4* | osf5*)
11174  version_type=osf
11175  need_lib_prefix=no
11176  need_version=no
11177  soname_spec='${libname}${release}${shared_ext}$major'
11178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179  shlibpath_var=LD_LIBRARY_PATH
11180  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11181  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11182  ;;
11183
11184rdos*)
11185  dynamic_linker=no
11186  ;;
11187
11188solaris*)
11189  version_type=linux
11190  need_lib_prefix=no
11191  need_version=no
11192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193  soname_spec='${libname}${release}${shared_ext}$major'
11194  shlibpath_var=LD_LIBRARY_PATH
11195  shlibpath_overrides_runpath=yes
11196  hardcode_into_libs=yes
11197  # ldd complains unless libraries are executable
11198  postinstall_cmds='chmod +x $lib'
11199  ;;
11200
11201sunos4*)
11202  version_type=sunos
11203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11205  shlibpath_var=LD_LIBRARY_PATH
11206  shlibpath_overrides_runpath=yes
11207  if test "$with_gnu_ld" = yes; then
11208    need_lib_prefix=no
11209  fi
11210  need_version=yes
11211  ;;
11212
11213sysv4 | sysv4.3*)
11214  version_type=linux
11215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216  soname_spec='${libname}${release}${shared_ext}$major'
11217  shlibpath_var=LD_LIBRARY_PATH
11218  case $host_vendor in
11219    sni)
11220      shlibpath_overrides_runpath=no
11221      need_lib_prefix=no
11222      runpath_var=LD_RUN_PATH
11223      ;;
11224    siemens)
11225      need_lib_prefix=no
11226      ;;
11227    motorola)
11228      need_lib_prefix=no
11229      need_version=no
11230      shlibpath_overrides_runpath=no
11231      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11232      ;;
11233  esac
11234  ;;
11235
11236sysv4*MP*)
11237  if test -d /usr/nec ;then
11238    version_type=linux
11239    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11240    soname_spec='$libname${shared_ext}.$major'
11241    shlibpath_var=LD_LIBRARY_PATH
11242  fi
11243  ;;
11244
11245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11246  version_type=freebsd-elf
11247  need_lib_prefix=no
11248  need_version=no
11249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11250  soname_spec='${libname}${release}${shared_ext}$major'
11251  shlibpath_var=LD_LIBRARY_PATH
11252  shlibpath_overrides_runpath=yes
11253  hardcode_into_libs=yes
11254  if test "$with_gnu_ld" = yes; then
11255    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11256  else
11257    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11258    case $host_os in
11259      sco3.2v5*)
11260        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11261	;;
11262    esac
11263  fi
11264  sys_lib_dlsearch_path_spec='/usr/lib'
11265  ;;
11266
11267tpf*)
11268  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11269  version_type=linux
11270  need_lib_prefix=no
11271  need_version=no
11272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273  shlibpath_var=LD_LIBRARY_PATH
11274  shlibpath_overrides_runpath=no
11275  hardcode_into_libs=yes
11276  ;;
11277
11278uts4*)
11279  version_type=linux
11280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281  soname_spec='${libname}${release}${shared_ext}$major'
11282  shlibpath_var=LD_LIBRARY_PATH
11283  ;;
11284
11285*)
11286  dynamic_linker=no
11287  ;;
11288esac
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11290$as_echo "$dynamic_linker" >&6; }
11291test "$dynamic_linker" = no && can_build_shared=no
11292
11293variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11294if test "$GCC" = yes; then
11295  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11296fi
11297
11298if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11299  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11300fi
11301if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11302  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11303fi
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
11389
11390
11391
11392
11393
11394
11395
11396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11397$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11398hardcode_action=
11399if test -n "$hardcode_libdir_flag_spec" ||
11400   test -n "$runpath_var" ||
11401   test "X$hardcode_automatic" = "Xyes" ; then
11402
11403  # We can hardcode non-existent directories.
11404  if test "$hardcode_direct" != no &&
11405     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11406     # have to relink, otherwise we might link with an installed library
11407     # when we should be linking with a yet-to-be-installed one
11408     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11409     test "$hardcode_minus_L" != no; then
11410    # Linking always hardcodes the temporary library directory.
11411    hardcode_action=relink
11412  else
11413    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11414    hardcode_action=immediate
11415  fi
11416else
11417  # We cannot hardcode anything, or else we can only hardcode existing
11418  # directories.
11419  hardcode_action=unsupported
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11422$as_echo "$hardcode_action" >&6; }
11423
11424if test "$hardcode_action" = relink ||
11425   test "$inherit_rpath" = yes; then
11426  # Fast installation is not supported
11427  enable_fast_install=no
11428elif test "$shlibpath_overrides_runpath" = yes ||
11429     test "$enable_shared" = no; then
11430  # Fast installation is not necessary
11431  enable_fast_install=needless
11432fi
11433
11434
11435
11436
11437
11438
11439  if test "x$enable_dlopen" != xyes; then
11440  enable_dlopen=unknown
11441  enable_dlopen_self=unknown
11442  enable_dlopen_self_static=unknown
11443else
11444  lt_cv_dlopen=no
11445  lt_cv_dlopen_libs=
11446
11447  case $host_os in
11448  beos*)
11449    lt_cv_dlopen="load_add_on"
11450    lt_cv_dlopen_libs=
11451    lt_cv_dlopen_self=yes
11452    ;;
11453
11454  mingw* | pw32* | cegcc*)
11455    lt_cv_dlopen="LoadLibrary"
11456    lt_cv_dlopen_libs=
11457    ;;
11458
11459  cygwin*)
11460    lt_cv_dlopen="dlopen"
11461    lt_cv_dlopen_libs=
11462    ;;
11463
11464  darwin*)
11465  # if libdl is installed we need to link against it
11466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11467$as_echo_n "checking for dlopen in -ldl... " >&6; }
11468if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11469  $as_echo_n "(cached) " >&6
11470else
11471  ac_check_lib_save_LIBS=$LIBS
11472LIBS="-ldl  $LIBS"
11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474/* end confdefs.h.  */
11475
11476/* Override any GCC internal prototype to avoid an error.
11477   Use char because int might match the return type of a GCC
11478   builtin and then its argument prototype would still apply.  */
11479#ifdef __cplusplus
11480extern "C"
11481#endif
11482char dlopen ();
11483int
11484main ()
11485{
11486return dlopen ();
11487  ;
11488  return 0;
11489}
11490_ACEOF
11491if ac_fn_c_try_link "$LINENO"; then :
11492  ac_cv_lib_dl_dlopen=yes
11493else
11494  ac_cv_lib_dl_dlopen=no
11495fi
11496rm -f core conftest.err conftest.$ac_objext \
11497    conftest$ac_exeext conftest.$ac_ext
11498LIBS=$ac_check_lib_save_LIBS
11499fi
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11501$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11502if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11503  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11504else
11505
11506    lt_cv_dlopen="dyld"
11507    lt_cv_dlopen_libs=
11508    lt_cv_dlopen_self=yes
11509
11510fi
11511
11512    ;;
11513
11514  *)
11515    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11516if test "x$ac_cv_func_shl_load" = x""yes; then :
11517  lt_cv_dlopen="shl_load"
11518else
11519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11520$as_echo_n "checking for shl_load in -ldld... " >&6; }
11521if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11522  $as_echo_n "(cached) " >&6
11523else
11524  ac_check_lib_save_LIBS=$LIBS
11525LIBS="-ldld  $LIBS"
11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h.  */
11528
11529/* Override any GCC internal prototype to avoid an error.
11530   Use char because int might match the return type of a GCC
11531   builtin and then its argument prototype would still apply.  */
11532#ifdef __cplusplus
11533extern "C"
11534#endif
11535char shl_load ();
11536int
11537main ()
11538{
11539return shl_load ();
11540  ;
11541  return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_link "$LINENO"; then :
11545  ac_cv_lib_dld_shl_load=yes
11546else
11547  ac_cv_lib_dld_shl_load=no
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550    conftest$ac_exeext conftest.$ac_ext
11551LIBS=$ac_check_lib_save_LIBS
11552fi
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11554$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11555if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11556  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11557else
11558  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11559if test "x$ac_cv_func_dlopen" = x""yes; then :
11560  lt_cv_dlopen="dlopen"
11561else
11562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563$as_echo_n "checking for dlopen in -ldl... " >&6; }
11564if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11565  $as_echo_n "(cached) " >&6
11566else
11567  ac_check_lib_save_LIBS=$LIBS
11568LIBS="-ldl  $LIBS"
11569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570/* end confdefs.h.  */
11571
11572/* Override any GCC internal prototype to avoid an error.
11573   Use char because int might match the return type of a GCC
11574   builtin and then its argument prototype would still apply.  */
11575#ifdef __cplusplus
11576extern "C"
11577#endif
11578char dlopen ();
11579int
11580main ()
11581{
11582return dlopen ();
11583  ;
11584  return 0;
11585}
11586_ACEOF
11587if ac_fn_c_try_link "$LINENO"; then :
11588  ac_cv_lib_dl_dlopen=yes
11589else
11590  ac_cv_lib_dl_dlopen=no
11591fi
11592rm -f core conftest.err conftest.$ac_objext \
11593    conftest$ac_exeext conftest.$ac_ext
11594LIBS=$ac_check_lib_save_LIBS
11595fi
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11597$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11598if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11599  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11600else
11601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11602$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11603if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11604  $as_echo_n "(cached) " >&6
11605else
11606  ac_check_lib_save_LIBS=$LIBS
11607LIBS="-lsvld  $LIBS"
11608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609/* end confdefs.h.  */
11610
11611/* Override any GCC internal prototype to avoid an error.
11612   Use char because int might match the return type of a GCC
11613   builtin and then its argument prototype would still apply.  */
11614#ifdef __cplusplus
11615extern "C"
11616#endif
11617char dlopen ();
11618int
11619main ()
11620{
11621return dlopen ();
11622  ;
11623  return 0;
11624}
11625_ACEOF
11626if ac_fn_c_try_link "$LINENO"; then :
11627  ac_cv_lib_svld_dlopen=yes
11628else
11629  ac_cv_lib_svld_dlopen=no
11630fi
11631rm -f core conftest.err conftest.$ac_objext \
11632    conftest$ac_exeext conftest.$ac_ext
11633LIBS=$ac_check_lib_save_LIBS
11634fi
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11636$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11637if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11638  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11639else
11640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11641$as_echo_n "checking for dld_link in -ldld... " >&6; }
11642if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11643  $as_echo_n "(cached) " >&6
11644else
11645  ac_check_lib_save_LIBS=$LIBS
11646LIBS="-ldld  $LIBS"
11647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648/* end confdefs.h.  */
11649
11650/* Override any GCC internal prototype to avoid an error.
11651   Use char because int might match the return type of a GCC
11652   builtin and then its argument prototype would still apply.  */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656char dld_link ();
11657int
11658main ()
11659{
11660return dld_link ();
11661  ;
11662  return 0;
11663}
11664_ACEOF
11665if ac_fn_c_try_link "$LINENO"; then :
11666  ac_cv_lib_dld_dld_link=yes
11667else
11668  ac_cv_lib_dld_dld_link=no
11669fi
11670rm -f core conftest.err conftest.$ac_objext \
11671    conftest$ac_exeext conftest.$ac_ext
11672LIBS=$ac_check_lib_save_LIBS
11673fi
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11675$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11676if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11677  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11678fi
11679
11680
11681fi
11682
11683
11684fi
11685
11686
11687fi
11688
11689
11690fi
11691
11692
11693fi
11694
11695    ;;
11696  esac
11697
11698  if test "x$lt_cv_dlopen" != xno; then
11699    enable_dlopen=yes
11700  else
11701    enable_dlopen=no
11702  fi
11703
11704  case $lt_cv_dlopen in
11705  dlopen)
11706    save_CPPFLAGS="$CPPFLAGS"
11707    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11708
11709    save_LDFLAGS="$LDFLAGS"
11710    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11711
11712    save_LIBS="$LIBS"
11713    LIBS="$lt_cv_dlopen_libs $LIBS"
11714
11715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11716$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11717if test "${lt_cv_dlopen_self+set}" = set; then :
11718  $as_echo_n "(cached) " >&6
11719else
11720  	  if test "$cross_compiling" = yes; then :
11721  lt_cv_dlopen_self=cross
11722else
11723  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11724  lt_status=$lt_dlunknown
11725  cat > conftest.$ac_ext <<_LT_EOF
11726#line 11726 "configure"
11727#include "confdefs.h"
11728
11729#if HAVE_DLFCN_H
11730#include <dlfcn.h>
11731#endif
11732
11733#include <stdio.h>
11734
11735#ifdef RTLD_GLOBAL
11736#  define LT_DLGLOBAL		RTLD_GLOBAL
11737#else
11738#  ifdef DL_GLOBAL
11739#    define LT_DLGLOBAL		DL_GLOBAL
11740#  else
11741#    define LT_DLGLOBAL		0
11742#  endif
11743#endif
11744
11745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11746   find out it does not work in some platform. */
11747#ifndef LT_DLLAZY_OR_NOW
11748#  ifdef RTLD_LAZY
11749#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11750#  else
11751#    ifdef DL_LAZY
11752#      define LT_DLLAZY_OR_NOW		DL_LAZY
11753#    else
11754#      ifdef RTLD_NOW
11755#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11756#      else
11757#        ifdef DL_NOW
11758#          define LT_DLLAZY_OR_NOW	DL_NOW
11759#        else
11760#          define LT_DLLAZY_OR_NOW	0
11761#        endif
11762#      endif
11763#    endif
11764#  endif
11765#endif
11766
11767/* When -fvisbility=hidden is used, assume the code has been annotated
11768   correspondingly for the symbols needed.  */
11769#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11770void fnord () __attribute__((visibility("default")));
11771#endif
11772
11773void fnord () { int i=42; }
11774int main ()
11775{
11776  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11777  int status = $lt_dlunknown;
11778
11779  if (self)
11780    {
11781      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11782      else
11783        {
11784	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11785          else puts (dlerror ());
11786	}
11787      /* dlclose (self); */
11788    }
11789  else
11790    puts (dlerror ());
11791
11792  return status;
11793}
11794_LT_EOF
11795  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11796  (eval $ac_link) 2>&5
11797  ac_status=$?
11798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11800    (./conftest; exit; ) >&5 2>/dev/null
11801    lt_status=$?
11802    case x$lt_status in
11803      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11804      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11805      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11806    esac
11807  else :
11808    # compilation failed
11809    lt_cv_dlopen_self=no
11810  fi
11811fi
11812rm -fr conftest*
11813
11814
11815fi
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11817$as_echo "$lt_cv_dlopen_self" >&6; }
11818
11819    if test "x$lt_cv_dlopen_self" = xyes; then
11820      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11821      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11822$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11823if test "${lt_cv_dlopen_self_static+set}" = set; then :
11824  $as_echo_n "(cached) " >&6
11825else
11826  	  if test "$cross_compiling" = yes; then :
11827  lt_cv_dlopen_self_static=cross
11828else
11829  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11830  lt_status=$lt_dlunknown
11831  cat > conftest.$ac_ext <<_LT_EOF
11832#line 11832 "configure"
11833#include "confdefs.h"
11834
11835#if HAVE_DLFCN_H
11836#include <dlfcn.h>
11837#endif
11838
11839#include <stdio.h>
11840
11841#ifdef RTLD_GLOBAL
11842#  define LT_DLGLOBAL		RTLD_GLOBAL
11843#else
11844#  ifdef DL_GLOBAL
11845#    define LT_DLGLOBAL		DL_GLOBAL
11846#  else
11847#    define LT_DLGLOBAL		0
11848#  endif
11849#endif
11850
11851/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11852   find out it does not work in some platform. */
11853#ifndef LT_DLLAZY_OR_NOW
11854#  ifdef RTLD_LAZY
11855#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11856#  else
11857#    ifdef DL_LAZY
11858#      define LT_DLLAZY_OR_NOW		DL_LAZY
11859#    else
11860#      ifdef RTLD_NOW
11861#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11862#      else
11863#        ifdef DL_NOW
11864#          define LT_DLLAZY_OR_NOW	DL_NOW
11865#        else
11866#          define LT_DLLAZY_OR_NOW	0
11867#        endif
11868#      endif
11869#    endif
11870#  endif
11871#endif
11872
11873/* When -fvisbility=hidden is used, assume the code has been annotated
11874   correspondingly for the symbols needed.  */
11875#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11876void fnord () __attribute__((visibility("default")));
11877#endif
11878
11879void fnord () { int i=42; }
11880int main ()
11881{
11882  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883  int status = $lt_dlunknown;
11884
11885  if (self)
11886    {
11887      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11888      else
11889        {
11890	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11891          else puts (dlerror ());
11892	}
11893      /* dlclose (self); */
11894    }
11895  else
11896    puts (dlerror ());
11897
11898  return status;
11899}
11900_LT_EOF
11901  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11902  (eval $ac_link) 2>&5
11903  ac_status=$?
11904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11906    (./conftest; exit; ) >&5 2>/dev/null
11907    lt_status=$?
11908    case x$lt_status in
11909      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11912    esac
11913  else :
11914    # compilation failed
11915    lt_cv_dlopen_self_static=no
11916  fi
11917fi
11918rm -fr conftest*
11919
11920
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11923$as_echo "$lt_cv_dlopen_self_static" >&6; }
11924    fi
11925
11926    CPPFLAGS="$save_CPPFLAGS"
11927    LDFLAGS="$save_LDFLAGS"
11928    LIBS="$save_LIBS"
11929    ;;
11930  esac
11931
11932  case $lt_cv_dlopen_self in
11933  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934  *) enable_dlopen_self=unknown ;;
11935  esac
11936
11937  case $lt_cv_dlopen_self_static in
11938  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939  *) enable_dlopen_self_static=unknown ;;
11940  esac
11941fi
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959striplib=
11960old_striplib=
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11962$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11963if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11964  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11965  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967$as_echo "yes" >&6; }
11968else
11969# FIXME - insert some real tests, host_os isn't really good enough
11970  case $host_os in
11971  darwin*)
11972    if test -n "$STRIP" ; then
11973      striplib="$STRIP -x"
11974      old_striplib="$STRIP -S"
11975      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976$as_echo "yes" >&6; }
11977    else
11978      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980    fi
11981    ;;
11982  *)
11983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984$as_echo "no" >&6; }
11985    ;;
11986  esac
11987fi
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000  # Report which library types will actually be built
12001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12002$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12004$as_echo "$can_build_shared" >&6; }
12005
12006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12007$as_echo_n "checking whether to build shared libraries... " >&6; }
12008  test "$can_build_shared" = "no" && enable_shared=no
12009
12010  # On AIX, shared libraries and static libraries use the same namespace, and
12011  # are all built from PIC.
12012  case $host_os in
12013  aix3*)
12014    test "$enable_shared" = yes && enable_static=no
12015    if test -n "$RANLIB"; then
12016      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12017      postinstall_cmds='$RANLIB $lib'
12018    fi
12019    ;;
12020
12021  aix[4-9]*)
12022    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12023      test "$enable_shared" = yes && enable_static=no
12024    fi
12025    ;;
12026  esac
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12028$as_echo "$enable_shared" >&6; }
12029
12030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12031$as_echo_n "checking whether to build static libraries... " >&6; }
12032  # Make sure either enable_shared or enable_static is yes.
12033  test "$enable_shared" = yes || enable_static=yes
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12035$as_echo "$enable_static" >&6; }
12036
12037
12038
12039
12040fi
12041ac_ext=c
12042ac_cpp='$CPP $CPPFLAGS'
12043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045ac_compiler_gnu=$ac_cv_c_compiler_gnu
12046
12047CC="$lt_save_CC"
12048
12049      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12050    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12051    (test "X$CXX" != "Xg++"))) ; then
12052  ac_ext=cpp
12053ac_cpp='$CXXCPP $CPPFLAGS'
12054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12058$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12059if test -z "$CXXCPP"; then
12060  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063      # Double quotes because CXXCPP needs to be expanded
12064    for CXXCPP in "$CXX -E" "/lib/cpp"
12065    do
12066      ac_preproc_ok=false
12067for ac_cxx_preproc_warn_flag in '' yes
12068do
12069  # Use a header file that comes with gcc, so configuring glibc
12070  # with a fresh cross-compiler works.
12071  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072  # <limits.h> exists even on freestanding compilers.
12073  # On the NeXT, cc -E runs the code through the compiler's parser,
12074  # not just through cpp. "Syntax error" is here to catch this case.
12075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076/* end confdefs.h.  */
12077#ifdef __STDC__
12078# include <limits.h>
12079#else
12080# include <assert.h>
12081#endif
12082		     Syntax error
12083_ACEOF
12084if ac_fn_cxx_try_cpp "$LINENO"; then :
12085
12086else
12087  # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.$ac_ext
12091
12092  # OK, works on sane cases.  Now check whether nonexistent headers
12093  # can be detected and how.
12094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h.  */
12096#include <ac_nonexistent.h>
12097_ACEOF
12098if ac_fn_cxx_try_cpp "$LINENO"; then :
12099  # Broken: success on invalid input.
12100continue
12101else
12102  # Passes both tests.
12103ac_preproc_ok=:
12104break
12105fi
12106rm -f conftest.err conftest.$ac_ext
12107
12108done
12109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12110rm -f conftest.err conftest.$ac_ext
12111if $ac_preproc_ok; then :
12112  break
12113fi
12114
12115    done
12116    ac_cv_prog_CXXCPP=$CXXCPP
12117
12118fi
12119  CXXCPP=$ac_cv_prog_CXXCPP
12120else
12121  ac_cv_prog_CXXCPP=$CXXCPP
12122fi
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12124$as_echo "$CXXCPP" >&6; }
12125ac_preproc_ok=false
12126for ac_cxx_preproc_warn_flag in '' yes
12127do
12128  # Use a header file that comes with gcc, so configuring glibc
12129  # with a fresh cross-compiler works.
12130  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131  # <limits.h> exists even on freestanding compilers.
12132  # On the NeXT, cc -E runs the code through the compiler's parser,
12133  # not just through cpp. "Syntax error" is here to catch this case.
12134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136#ifdef __STDC__
12137# include <limits.h>
12138#else
12139# include <assert.h>
12140#endif
12141		     Syntax error
12142_ACEOF
12143if ac_fn_cxx_try_cpp "$LINENO"; then :
12144
12145else
12146  # Broken: fails on valid input.
12147continue
12148fi
12149rm -f conftest.err conftest.$ac_ext
12150
12151  # OK, works on sane cases.  Now check whether nonexistent headers
12152  # can be detected and how.
12153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154/* end confdefs.h.  */
12155#include <ac_nonexistent.h>
12156_ACEOF
12157if ac_fn_cxx_try_cpp "$LINENO"; then :
12158  # Broken: success on invalid input.
12159continue
12160else
12161  # Passes both tests.
12162ac_preproc_ok=:
12163break
12164fi
12165rm -f conftest.err conftest.$ac_ext
12166
12167done
12168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12169rm -f conftest.err conftest.$ac_ext
12170if $ac_preproc_ok; then :
12171
12172else
12173  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12175as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12176See \`config.log' for more details." "$LINENO" 5; }
12177fi
12178
12179ac_ext=c
12180ac_cpp='$CPP $CPPFLAGS'
12181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183ac_compiler_gnu=$ac_cv_c_compiler_gnu
12184
12185else
12186  _lt_caught_CXX_error=yes
12187fi
12188
12189ac_ext=cpp
12190ac_cpp='$CXXCPP $CPPFLAGS'
12191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12194
12195archive_cmds_need_lc_CXX=no
12196allow_undefined_flag_CXX=
12197always_export_symbols_CXX=no
12198archive_expsym_cmds_CXX=
12199compiler_needs_object_CXX=no
12200export_dynamic_flag_spec_CXX=
12201hardcode_direct_CXX=no
12202hardcode_direct_absolute_CXX=no
12203hardcode_libdir_flag_spec_CXX=
12204hardcode_libdir_flag_spec_ld_CXX=
12205hardcode_libdir_separator_CXX=
12206hardcode_minus_L_CXX=no
12207hardcode_shlibpath_var_CXX=unsupported
12208hardcode_automatic_CXX=no
12209inherit_rpath_CXX=no
12210module_cmds_CXX=
12211module_expsym_cmds_CXX=
12212link_all_deplibs_CXX=unknown
12213old_archive_cmds_CXX=$old_archive_cmds
12214reload_flag_CXX=$reload_flag
12215reload_cmds_CXX=$reload_cmds
12216no_undefined_flag_CXX=
12217whole_archive_flag_spec_CXX=
12218enable_shared_with_static_runtimes_CXX=no
12219
12220# Source file extension for C++ test sources.
12221ac_ext=cpp
12222
12223# Object file extension for compiled C++ test sources.
12224objext=o
12225objext_CXX=$objext
12226
12227# No sense in running all these tests if we already determined that
12228# the CXX compiler isn't working.  Some variables (like enable_shared)
12229# are currently assumed to apply to all compilers on this platform,
12230# and will be corrupted by setting them based on a non-working compiler.
12231if test "$_lt_caught_CXX_error" != yes; then
12232  # Code to be used in simple compile tests
12233  lt_simple_compile_test_code="int some_variable = 0;"
12234
12235  # Code to be used in simple link tests
12236  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12237
12238  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12239
12240
12241
12242
12243
12244
12245# If no C compiler was specified, use CC.
12246LTCC=${LTCC-"$CC"}
12247
12248# If no C compiler flags were specified, use CFLAGS.
12249LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12250
12251# Allow CC to be a program name with arguments.
12252compiler=$CC
12253
12254
12255  # save warnings/boilerplate of simple test code
12256  ac_outfile=conftest.$ac_objext
12257echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12259_lt_compiler_boilerplate=`cat conftest.err`
12260$RM conftest*
12261
12262  ac_outfile=conftest.$ac_objext
12263echo "$lt_simple_link_test_code" >conftest.$ac_ext
12264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12265_lt_linker_boilerplate=`cat conftest.err`
12266$RM -r conftest*
12267
12268
12269  # Allow CC to be a program name with arguments.
12270  lt_save_CC=$CC
12271  lt_save_LD=$LD
12272  lt_save_GCC=$GCC
12273  GCC=$GXX
12274  lt_save_with_gnu_ld=$with_gnu_ld
12275  lt_save_path_LD=$lt_cv_path_LD
12276  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12277    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12278  else
12279    $as_unset lt_cv_prog_gnu_ld
12280  fi
12281  if test -n "${lt_cv_path_LDCXX+set}"; then
12282    lt_cv_path_LD=$lt_cv_path_LDCXX
12283  else
12284    $as_unset lt_cv_path_LD
12285  fi
12286  test -z "${LDCXX+set}" || LD=$LDCXX
12287  CC=${CXX-"c++"}
12288  compiler=$CC
12289  compiler_CXX=$CC
12290  for cc_temp in $compiler""; do
12291  case $cc_temp in
12292    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12293    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12294    \-*) ;;
12295    *) break;;
12296  esac
12297done
12298cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12299
12300
12301  if test -n "$compiler"; then
12302    # We don't want -fno-exception when compiling C++ code, so set the
12303    # no_builtin_flag separately
12304    if test "$GXX" = yes; then
12305      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12306    else
12307      lt_prog_compiler_no_builtin_flag_CXX=
12308    fi
12309
12310    if test "$GXX" = yes; then
12311      # Set up default GNU C++ configuration
12312
12313
12314
12315# Check whether --with-gnu-ld was given.
12316if test "${with_gnu_ld+set}" = set; then :
12317  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12318else
12319  with_gnu_ld=no
12320fi
12321
12322ac_prog=ld
12323if test "$GCC" = yes; then
12324  # Check if gcc -print-prog-name=ld gives a path.
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12326$as_echo_n "checking for ld used by $CC... " >&6; }
12327  case $host in
12328  *-*-mingw*)
12329    # gcc leaves a trailing carriage return which upsets mingw
12330    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12331  *)
12332    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12333  esac
12334  case $ac_prog in
12335    # Accept absolute paths.
12336    [\\/]* | ?:[\\/]*)
12337      re_direlt='/[^/][^/]*/\.\./'
12338      # Canonicalize the pathname of ld
12339      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12340      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12341	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12342      done
12343      test -z "$LD" && LD="$ac_prog"
12344      ;;
12345  "")
12346    # If it fails, then pretend we aren't using GCC.
12347    ac_prog=ld
12348    ;;
12349  *)
12350    # If it is relative, then search for the first ld in PATH.
12351    with_gnu_ld=unknown
12352    ;;
12353  esac
12354elif test "$with_gnu_ld" = yes; then
12355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12356$as_echo_n "checking for GNU ld... " >&6; }
12357else
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12359$as_echo_n "checking for non-GNU ld... " >&6; }
12360fi
12361if test "${lt_cv_path_LD+set}" = set; then :
12362  $as_echo_n "(cached) " >&6
12363else
12364  if test -z "$LD"; then
12365  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12366  for ac_dir in $PATH; do
12367    IFS="$lt_save_ifs"
12368    test -z "$ac_dir" && ac_dir=.
12369    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12370      lt_cv_path_LD="$ac_dir/$ac_prog"
12371      # Check to see if the program is GNU ld.  I'd rather use --version,
12372      # but apparently some variants of GNU ld only accept -v.
12373      # Break only if it was the GNU/non-GNU ld that we prefer.
12374      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12375      *GNU* | *'with BFD'*)
12376	test "$with_gnu_ld" != no && break
12377	;;
12378      *)
12379	test "$with_gnu_ld" != yes && break
12380	;;
12381      esac
12382    fi
12383  done
12384  IFS="$lt_save_ifs"
12385else
12386  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12387fi
12388fi
12389
12390LD="$lt_cv_path_LD"
12391if test -n "$LD"; then
12392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12393$as_echo "$LD" >&6; }
12394else
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397fi
12398test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12401if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12405case `$LD -v 2>&1 </dev/null` in
12406*GNU* | *'with BFD'*)
12407  lt_cv_prog_gnu_ld=yes
12408  ;;
12409*)
12410  lt_cv_prog_gnu_ld=no
12411  ;;
12412esac
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12415$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12416with_gnu_ld=$lt_cv_prog_gnu_ld
12417
12418
12419
12420
12421
12422
12423
12424      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12425      # archiving commands below assume that GNU ld is being used.
12426      if test "$with_gnu_ld" = yes; then
12427        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12429
12430        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12431        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12432
12433        # If archive_cmds runs LD, not CC, wlarc should be empty
12434        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12435        #     investigate it a little bit more. (MM)
12436        wlarc='${wl}'
12437
12438        # ancient GNU ld didn't support --whole-archive et. al.
12439        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12440	  $GREP 'no-whole-archive' > /dev/null; then
12441          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12442        else
12443          whole_archive_flag_spec_CXX=
12444        fi
12445      else
12446        with_gnu_ld=no
12447        wlarc=
12448
12449        # A generic and very simple default shared library creation
12450        # command for GNU C++ for the case where it uses the native
12451        # linker, instead of GNU ld.  If possible, this setting should
12452        # overridden to take advantage of the native linker features on
12453        # the platform it is being used on.
12454        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12455      fi
12456
12457      # Commands to make compiler produce verbose output that lists
12458      # what "hidden" libraries, object files and flags are used when
12459      # linking a shared library.
12460      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12461
12462    else
12463      GXX=no
12464      with_gnu_ld=no
12465      wlarc=
12466    fi
12467
12468    # PORTME: fill in a description of your system's C++ link characteristics
12469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12470$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12471    ld_shlibs_CXX=yes
12472    case $host_os in
12473      aix3*)
12474        # FIXME: insert proper C++ library support
12475        ld_shlibs_CXX=no
12476        ;;
12477      aix[4-9]*)
12478        if test "$host_cpu" = ia64; then
12479          # On IA64, the linker does run time linking by default, so we don't
12480          # have to do anything special.
12481          aix_use_runtimelinking=no
12482          exp_sym_flag='-Bexport'
12483          no_entry_flag=""
12484        else
12485          aix_use_runtimelinking=no
12486
12487          # Test if we are trying to use run time linking or normal
12488          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489          # need to do runtime linking.
12490          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12491	    for ld_flag in $LDFLAGS; do
12492	      case $ld_flag in
12493	      *-brtl*)
12494	        aix_use_runtimelinking=yes
12495	        break
12496	        ;;
12497	      esac
12498	    done
12499	    ;;
12500          esac
12501
12502          exp_sym_flag='-bexport'
12503          no_entry_flag='-bnoentry'
12504        fi
12505
12506        # When large executables or shared objects are built, AIX ld can
12507        # have problems creating the table of contents.  If linking a library
12508        # or program results in "error TOC overflow" add -mminimal-toc to
12509        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12510        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12511
12512        archive_cmds_CXX=''
12513        hardcode_direct_CXX=yes
12514        hardcode_direct_absolute_CXX=yes
12515        hardcode_libdir_separator_CXX=':'
12516        link_all_deplibs_CXX=yes
12517        file_list_spec_CXX='${wl}-f,'
12518
12519        if test "$GXX" = yes; then
12520          case $host_os in aix4.[012]|aix4.[012].*)
12521          # We only want to do this on AIX 4.2 and lower, the check
12522          # below for broken collect2 doesn't work under 4.3+
12523	  collect2name=`${CC} -print-prog-name=collect2`
12524	  if test -f "$collect2name" &&
12525	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12526	  then
12527	    # We have reworked collect2
12528	    :
12529	  else
12530	    # We have old collect2
12531	    hardcode_direct_CXX=unsupported
12532	    # It fails to find uninstalled libraries when the uninstalled
12533	    # path is not listed in the libpath.  Setting hardcode_minus_L
12534	    # to unsupported forces relinking
12535	    hardcode_minus_L_CXX=yes
12536	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12537	    hardcode_libdir_separator_CXX=
12538	  fi
12539          esac
12540          shared_flag='-shared'
12541	  if test "$aix_use_runtimelinking" = yes; then
12542	    shared_flag="$shared_flag "'${wl}-G'
12543	  fi
12544        else
12545          # not using gcc
12546          if test "$host_cpu" = ia64; then
12547	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12548	  # chokes on -Wl,-G. The following line is correct:
12549	  shared_flag='-G'
12550          else
12551	    if test "$aix_use_runtimelinking" = yes; then
12552	      shared_flag='${wl}-G'
12553	    else
12554	      shared_flag='${wl}-bM:SRE'
12555	    fi
12556          fi
12557        fi
12558
12559        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12560        # It seems that -bexpall does not export symbols beginning with
12561        # underscore (_), so it is better to generate a list of symbols to
12562	# export.
12563        always_export_symbols_CXX=yes
12564        if test "$aix_use_runtimelinking" = yes; then
12565          # Warning - without using the other runtime loading flags (-brtl),
12566          # -berok will link without error, but may produce a broken library.
12567          allow_undefined_flag_CXX='-berok'
12568          # Determine the default libpath from the value encoded in an empty
12569          # executable.
12570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572
12573int
12574main ()
12575{
12576
12577  ;
12578  return 0;
12579}
12580_ACEOF
12581if ac_fn_cxx_try_link "$LINENO"; then :
12582
12583lt_aix_libpath_sed='
12584    /Import File Strings/,/^$/ {
12585	/^0/ {
12586	    s/^0  *\(.*\)$/\1/
12587	    p
12588	}
12589    }'
12590aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591# Check for a 64-bit object if we didn't find anything.
12592if test -z "$aix_libpath"; then
12593  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594fi
12595fi
12596rm -f core conftest.err conftest.$ac_objext \
12597    conftest$ac_exeext conftest.$ac_ext
12598if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12599
12600          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12601
12602          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"
12603        else
12604          if test "$host_cpu" = ia64; then
12605	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12606	    allow_undefined_flag_CXX="-z nodefs"
12607	    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"
12608          else
12609	    # Determine the default libpath from the value encoded in an
12610	    # empty executable.
12611	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h.  */
12613
12614int
12615main ()
12616{
12617
12618  ;
12619  return 0;
12620}
12621_ACEOF
12622if ac_fn_cxx_try_link "$LINENO"; then :
12623
12624lt_aix_libpath_sed='
12625    /Import File Strings/,/^$/ {
12626	/^0/ {
12627	    s/^0  *\(.*\)$/\1/
12628	    p
12629	}
12630    }'
12631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632# Check for a 64-bit object if we didn't find anything.
12633if test -z "$aix_libpath"; then
12634  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12635fi
12636fi
12637rm -f core conftest.err conftest.$ac_objext \
12638    conftest$ac_exeext conftest.$ac_ext
12639if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12640
12641	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12642	    # Warning - without using the other run time loading flags,
12643	    # -berok will link without error, but may produce a broken library.
12644	    no_undefined_flag_CXX=' ${wl}-bernotok'
12645	    allow_undefined_flag_CXX=' ${wl}-berok'
12646	    if test "$with_gnu_ld" = yes; then
12647	      # We only use this code for GNU lds that support --whole-archive.
12648	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12649	    else
12650	      # Exported symbols can be pulled into shared objects from archives
12651	      whole_archive_flag_spec_CXX='$convenience'
12652	    fi
12653	    archive_cmds_need_lc_CXX=yes
12654	    # This is similar to how AIX traditionally builds its shared
12655	    # libraries.
12656	    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'
12657          fi
12658        fi
12659        ;;
12660
12661      beos*)
12662	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12663	  allow_undefined_flag_CXX=unsupported
12664	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12665	  # support --undefined.  This deserves some investigation.  FIXME
12666	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667	else
12668	  ld_shlibs_CXX=no
12669	fi
12670	;;
12671
12672      chorus*)
12673        case $cc_basename in
12674          *)
12675	  # FIXME: insert proper C++ library support
12676	  ld_shlibs_CXX=no
12677	  ;;
12678        esac
12679        ;;
12680
12681      cygwin* | mingw* | pw32* | cegcc*)
12682        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12683        # as there is no search path for DLLs.
12684        hardcode_libdir_flag_spec_CXX='-L$libdir'
12685        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12686        allow_undefined_flag_CXX=unsupported
12687        always_export_symbols_CXX=no
12688        enable_shared_with_static_runtimes_CXX=yes
12689
12690        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12691          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'
12692          # If the export-symbols file already is a .def file (1st line
12693          # is EXPORTS), use it as is; otherwise, prepend...
12694          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12695	    cp $export_symbols $output_objdir/$soname.def;
12696          else
12697	    echo EXPORTS > $output_objdir/$soname.def;
12698	    cat $export_symbols >> $output_objdir/$soname.def;
12699          fi~
12700          $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'
12701        else
12702          ld_shlibs_CXX=no
12703        fi
12704        ;;
12705      darwin* | rhapsody*)
12706
12707
12708  archive_cmds_need_lc_CXX=no
12709  hardcode_direct_CXX=no
12710  hardcode_automatic_CXX=yes
12711  hardcode_shlibpath_var_CXX=unsupported
12712  if test "$lt_cv_ld_force_load" = "yes"; then
12713    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\"`'
12714  else
12715    whole_archive_flag_spec_CXX=''
12716  fi
12717  link_all_deplibs_CXX=yes
12718  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12719  case $cc_basename in
12720     ifort*) _lt_dar_can_shared=yes ;;
12721     *) _lt_dar_can_shared=$GCC ;;
12722  esac
12723  if test "$_lt_dar_can_shared" = "yes"; then
12724    output_verbose_link_cmd=func_echo_all
12725    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}"
12726    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12727    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}"
12728    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}"
12729       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12730      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}"
12731      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}"
12732    fi
12733
12734  else
12735  ld_shlibs_CXX=no
12736  fi
12737
12738	;;
12739
12740      dgux*)
12741        case $cc_basename in
12742          ec++*)
12743	    # FIXME: insert proper C++ library support
12744	    ld_shlibs_CXX=no
12745	    ;;
12746          ghcx*)
12747	    # Green Hills C++ Compiler
12748	    # FIXME: insert proper C++ library support
12749	    ld_shlibs_CXX=no
12750	    ;;
12751          *)
12752	    # FIXME: insert proper C++ library support
12753	    ld_shlibs_CXX=no
12754	    ;;
12755        esac
12756        ;;
12757
12758      freebsd2.*)
12759        # C++ shared libraries reported to be fairly broken before
12760	# switch to ELF
12761        ld_shlibs_CXX=no
12762        ;;
12763
12764      freebsd-elf*)
12765        archive_cmds_need_lc_CXX=no
12766        ;;
12767
12768      freebsd* | dragonfly*)
12769        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12770        # conventions
12771        ld_shlibs_CXX=yes
12772        ;;
12773
12774      gnu*)
12775        ;;
12776
12777      haiku*)
12778        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12779        link_all_deplibs_CXX=yes
12780        ;;
12781
12782      hpux9*)
12783        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12784        hardcode_libdir_separator_CXX=:
12785        export_dynamic_flag_spec_CXX='${wl}-E'
12786        hardcode_direct_CXX=yes
12787        hardcode_minus_L_CXX=yes # Not in the search PATH,
12788				             # but as the default
12789				             # location of the library.
12790
12791        case $cc_basename in
12792          CC*)
12793            # FIXME: insert proper C++ library support
12794            ld_shlibs_CXX=no
12795            ;;
12796          aCC*)
12797            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'
12798            # Commands to make compiler produce verbose output that lists
12799            # what "hidden" libraries, object files and flags are used when
12800            # linking a shared library.
12801            #
12802            # There doesn't appear to be a way to prevent this compiler from
12803            # explicitly linking system object files so we need to strip them
12804            # from the output so that they don't get included in the library
12805            # dependencies.
12806            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"'
12807            ;;
12808          *)
12809            if test "$GXX" = yes; then
12810              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'
12811            else
12812              # FIXME: insert proper C++ library support
12813              ld_shlibs_CXX=no
12814            fi
12815            ;;
12816        esac
12817        ;;
12818
12819      hpux10*|hpux11*)
12820        if test $with_gnu_ld = no; then
12821	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12822	  hardcode_libdir_separator_CXX=:
12823
12824          case $host_cpu in
12825            hppa*64*|ia64*)
12826              ;;
12827            *)
12828	      export_dynamic_flag_spec_CXX='${wl}-E'
12829              ;;
12830          esac
12831        fi
12832        case $host_cpu in
12833          hppa*64*|ia64*)
12834            hardcode_direct_CXX=no
12835            hardcode_shlibpath_var_CXX=no
12836            ;;
12837          *)
12838            hardcode_direct_CXX=yes
12839            hardcode_direct_absolute_CXX=yes
12840            hardcode_minus_L_CXX=yes # Not in the search PATH,
12841					         # but as the default
12842					         # location of the library.
12843            ;;
12844        esac
12845
12846        case $cc_basename in
12847          CC*)
12848	    # FIXME: insert proper C++ library support
12849	    ld_shlibs_CXX=no
12850	    ;;
12851          aCC*)
12852	    case $host_cpu in
12853	      hppa*64*)
12854	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855	        ;;
12856	      ia64*)
12857	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12858	        ;;
12859	      *)
12860	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12861	        ;;
12862	    esac
12863	    # Commands to make compiler produce verbose output that lists
12864	    # what "hidden" libraries, object files and flags are used when
12865	    # linking a shared library.
12866	    #
12867	    # There doesn't appear to be a way to prevent this compiler from
12868	    # explicitly linking system object files so we need to strip them
12869	    # from the output so that they don't get included in the library
12870	    # dependencies.
12871	    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"'
12872	    ;;
12873          *)
12874	    if test "$GXX" = yes; then
12875	      if test $with_gnu_ld = no; then
12876	        case $host_cpu in
12877	          hppa*64*)
12878	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879	            ;;
12880	          ia64*)
12881	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12882	            ;;
12883	          *)
12884	            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'
12885	            ;;
12886	        esac
12887	      fi
12888	    else
12889	      # FIXME: insert proper C++ library support
12890	      ld_shlibs_CXX=no
12891	    fi
12892	    ;;
12893        esac
12894        ;;
12895
12896      interix[3-9]*)
12897	hardcode_direct_CXX=no
12898	hardcode_shlibpath_var_CXX=no
12899	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900	export_dynamic_flag_spec_CXX='${wl}-E'
12901	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12902	# Instead, shared libraries are loaded at an image base (0x10000000 by
12903	# default) and relocated if they conflict, which is a slow very memory
12904	# consuming and fragmenting process.  To avoid this, we pick a random,
12905	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12906	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12907	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'
12908	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'
12909	;;
12910      irix5* | irix6*)
12911        case $cc_basename in
12912          CC*)
12913	    # SGI C++
12914	    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'
12915
12916	    # Archives containing C++ object files must be created using
12917	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12918	    # necessary to make sure instantiated templates are included
12919	    # in the archive.
12920	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12921	    ;;
12922          *)
12923	    if test "$GXX" = yes; then
12924	      if test "$with_gnu_ld" = no; then
12925	        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'
12926	      else
12927	        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'
12928	      fi
12929	    fi
12930	    link_all_deplibs_CXX=yes
12931	    ;;
12932        esac
12933        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934        hardcode_libdir_separator_CXX=:
12935        inherit_rpath_CXX=yes
12936        ;;
12937
12938      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12939        case $cc_basename in
12940          KCC*)
12941	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12942
12943	    # KCC will only create a shared library if the output file
12944	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12945	    # to its proper name (with version) after linking.
12946	    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'
12947	    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'
12948	    # Commands to make compiler produce verbose output that lists
12949	    # what "hidden" libraries, object files and flags are used when
12950	    # linking a shared library.
12951	    #
12952	    # There doesn't appear to be a way to prevent this compiler from
12953	    # explicitly linking system object files so we need to strip them
12954	    # from the output so that they don't get included in the library
12955	    # dependencies.
12956	    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"'
12957
12958	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12959	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12960
12961	    # Archives containing C++ object files must be created using
12962	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12963	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12964	    ;;
12965	  icpc* | ecpc* )
12966	    # Intel C++
12967	    with_gnu_ld=yes
12968	    # version 8.0 and above of icpc choke on multiply defined symbols
12969	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12970	    # earlier do not add the objects themselves.
12971	    case `$CC -V 2>&1` in
12972	      *"Version 7."*)
12973	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974		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'
12975		;;
12976	      *)  # Version 8.0 or newer
12977	        tmp_idyn=
12978	        case $host_cpu in
12979		  ia64*) tmp_idyn=' -i_dynamic';;
12980		esac
12981	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12982		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'
12983		;;
12984	    esac
12985	    archive_cmds_need_lc_CXX=no
12986	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12987	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12989	    ;;
12990          pgCC* | pgcpp*)
12991            # Portland Group C++ compiler
12992	    case `$CC -V` in
12993	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12994	      prelink_cmds_CXX='tpldir=Template.dir~
12995		rm -rf $tpldir~
12996		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12997		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12998	      old_archive_cmds_CXX='tpldir=Template.dir~
12999		rm -rf $tpldir~
13000		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13001		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13002		$RANLIB $oldlib'
13003	      archive_cmds_CXX='tpldir=Template.dir~
13004		rm -rf $tpldir~
13005		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13006		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13008		rm -rf $tpldir~
13009		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13010		$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'
13011	      ;;
13012	    *) # Version 6 and above use weak symbols
13013	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13014	      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'
13015	      ;;
13016	    esac
13017
13018	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13019	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13020	    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'
13021            ;;
13022	  cxx*)
13023	    # Compaq C++
13024	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13025	    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'
13026
13027	    runpath_var=LD_RUN_PATH
13028	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13029	    hardcode_libdir_separator_CXX=:
13030
13031	    # Commands to make compiler produce verbose output that lists
13032	    # what "hidden" libraries, object files and flags are used when
13033	    # linking a shared library.
13034	    #
13035	    # There doesn't appear to be a way to prevent this compiler from
13036	    # explicitly linking system object files so we need to strip them
13037	    # from the output so that they don't get included in the library
13038	    # dependencies.
13039	    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'
13040	    ;;
13041	  xl* | mpixl* | bgxl*)
13042	    # IBM XL 8.0 on PPC, with GNU ld
13043	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13045	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13046	    if test "x$supports_anon_versioning" = xyes; then
13047	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13048		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13049		echo "local: *; };" >> $output_objdir/$libname.ver~
13050		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13051	    fi
13052	    ;;
13053	  *)
13054	    case `$CC -V 2>&1 | sed 5q` in
13055	    *Sun\ C*)
13056	      # Sun C++ 5.9
13057	      no_undefined_flag_CXX=' -zdefs'
13058	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13059	      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'
13060	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13061	      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'
13062	      compiler_needs_object_CXX=yes
13063
13064	      # Not sure whether something based on
13065	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13066	      # would be better.
13067	      output_verbose_link_cmd='func_echo_all'
13068
13069	      # Archives containing C++ object files must be created using
13070	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13071	      # necessary to make sure instantiated templates are included
13072	      # in the archive.
13073	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13074	      ;;
13075	    esac
13076	    ;;
13077	esac
13078	;;
13079
13080      lynxos*)
13081        # FIXME: insert proper C++ library support
13082	ld_shlibs_CXX=no
13083	;;
13084
13085      m88k*)
13086        # FIXME: insert proper C++ library support
13087        ld_shlibs_CXX=no
13088	;;
13089
13090      mvs*)
13091        case $cc_basename in
13092          cxx*)
13093	    # FIXME: insert proper C++ library support
13094	    ld_shlibs_CXX=no
13095	    ;;
13096	  *)
13097	    # FIXME: insert proper C++ library support
13098	    ld_shlibs_CXX=no
13099	    ;;
13100	esac
13101	;;
13102
13103      netbsd*)
13104        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13105	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13106	  wlarc=
13107	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13108	  hardcode_direct_CXX=yes
13109	  hardcode_shlibpath_var_CXX=no
13110	fi
13111	# Workaround some broken pre-1.5 toolchains
13112	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13113	;;
13114
13115      *nto* | *qnx*)
13116        ld_shlibs_CXX=yes
13117	;;
13118
13119      openbsd2*)
13120        # C++ shared libraries are fairly broken
13121	ld_shlibs_CXX=no
13122	;;
13123
13124      openbsd*)
13125	if test -f /usr/libexec/ld.so; then
13126	  hardcode_direct_CXX=yes
13127	  hardcode_shlibpath_var_CXX=no
13128	  hardcode_direct_absolute_CXX=yes
13129	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13130	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13131	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13132	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13133	    export_dynamic_flag_spec_CXX='${wl}-E'
13134	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13135	  fi
13136	  output_verbose_link_cmd=func_echo_all
13137	else
13138	  ld_shlibs_CXX=no
13139	fi
13140	;;
13141
13142      osf3* | osf4* | osf5*)
13143        case $cc_basename in
13144          KCC*)
13145	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13146
13147	    # KCC will only create a shared library if the output file
13148	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13149	    # to its proper name (with version) after linking.
13150	    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'
13151
13152	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153	    hardcode_libdir_separator_CXX=:
13154
13155	    # Archives containing C++ object files must be created using
13156	    # the KAI C++ compiler.
13157	    case $host in
13158	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13159	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13160	    esac
13161	    ;;
13162          RCC*)
13163	    # Rational C++ 2.4.1
13164	    # FIXME: insert proper C++ library support
13165	    ld_shlibs_CXX=no
13166	    ;;
13167          cxx*)
13168	    case $host in
13169	      osf3*)
13170	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13171	        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'
13172	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13173		;;
13174	      *)
13175	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13176	        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'
13177	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13178	          echo "-hidden">> $lib.exp~
13179	          $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~
13180	          $RM $lib.exp'
13181	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13182		;;
13183	    esac
13184
13185	    hardcode_libdir_separator_CXX=:
13186
13187	    # Commands to make compiler produce verbose output that lists
13188	    # what "hidden" libraries, object files and flags are used when
13189	    # linking a shared library.
13190	    #
13191	    # There doesn't appear to be a way to prevent this compiler from
13192	    # explicitly linking system object files so we need to strip them
13193	    # from the output so that they don't get included in the library
13194	    # dependencies.
13195	    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"'
13196	    ;;
13197	  *)
13198	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13199	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13200	      case $host in
13201	        osf3*)
13202	          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'
13203		  ;;
13204	        *)
13205	          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'
13206		  ;;
13207	      esac
13208
13209	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13210	      hardcode_libdir_separator_CXX=:
13211
13212	      # Commands to make compiler produce verbose output that lists
13213	      # what "hidden" libraries, object files and flags are used when
13214	      # linking a shared library.
13215	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13216
13217	    else
13218	      # FIXME: insert proper C++ library support
13219	      ld_shlibs_CXX=no
13220	    fi
13221	    ;;
13222        esac
13223        ;;
13224
13225      psos*)
13226        # FIXME: insert proper C++ library support
13227        ld_shlibs_CXX=no
13228        ;;
13229
13230      sunos4*)
13231        case $cc_basename in
13232          CC*)
13233	    # Sun C++ 4.x
13234	    # FIXME: insert proper C++ library support
13235	    ld_shlibs_CXX=no
13236	    ;;
13237          lcc*)
13238	    # Lucid
13239	    # FIXME: insert proper C++ library support
13240	    ld_shlibs_CXX=no
13241	    ;;
13242          *)
13243	    # FIXME: insert proper C++ library support
13244	    ld_shlibs_CXX=no
13245	    ;;
13246        esac
13247        ;;
13248
13249      solaris*)
13250        case $cc_basename in
13251          CC*)
13252	    # Sun C++ 4.2, 5.x and Centerline C++
13253            archive_cmds_need_lc_CXX=yes
13254	    no_undefined_flag_CXX=' -zdefs'
13255	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13257	      $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'
13258
13259	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13260	    hardcode_shlibpath_var_CXX=no
13261	    case $host_os in
13262	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13263	      *)
13264		# The compiler driver will combine and reorder linker options,
13265		# but understands `-z linker_flag'.
13266	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13267		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13268	        ;;
13269	    esac
13270	    link_all_deplibs_CXX=yes
13271
13272	    output_verbose_link_cmd='func_echo_all'
13273
13274	    # Archives containing C++ object files must be created using
13275	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13276	    # necessary to make sure instantiated templates are included
13277	    # in the archive.
13278	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13279	    ;;
13280          gcx*)
13281	    # Green Hills C++ Compiler
13282	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13283
13284	    # The C++ compiler must be used to create the archive.
13285	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13286	    ;;
13287          *)
13288	    # GNU C++ compiler with Solaris linker
13289	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13290	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13291	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13292	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13293	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13294		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13295
13296	        # Commands to make compiler produce verbose output that lists
13297	        # what "hidden" libraries, object files and flags are used when
13298	        # linking a shared library.
13299	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13300	      else
13301	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13302	        # platform.
13303	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13304	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13305		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13306
13307	        # Commands to make compiler produce verbose output that lists
13308	        # what "hidden" libraries, object files and flags are used when
13309	        # linking a shared library.
13310	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13311	      fi
13312
13313	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13314	      case $host_os in
13315		solaris2.[0-5] | solaris2.[0-5].*) ;;
13316		*)
13317		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13318		  ;;
13319	      esac
13320	    fi
13321	    ;;
13322        esac
13323        ;;
13324
13325    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13326      no_undefined_flag_CXX='${wl}-z,text'
13327      archive_cmds_need_lc_CXX=no
13328      hardcode_shlibpath_var_CXX=no
13329      runpath_var='LD_RUN_PATH'
13330
13331      case $cc_basename in
13332        CC*)
13333	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335	  ;;
13336	*)
13337	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339	  ;;
13340      esac
13341      ;;
13342
13343      sysv5* | sco3.2v5* | sco5v6*)
13344	# Note: We can NOT use -z defs as we might desire, because we do not
13345	# link with -lc, and that would cause any symbols used from libc to
13346	# always be unresolved, which means just about no library would
13347	# ever link correctly.  If we're not using GNU ld we use -z text
13348	# though, which does catch some bad symbols but isn't as heavy-handed
13349	# as -z defs.
13350	no_undefined_flag_CXX='${wl}-z,text'
13351	allow_undefined_flag_CXX='${wl}-z,nodefs'
13352	archive_cmds_need_lc_CXX=no
13353	hardcode_shlibpath_var_CXX=no
13354	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13355	hardcode_libdir_separator_CXX=':'
13356	link_all_deplibs_CXX=yes
13357	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13358	runpath_var='LD_RUN_PATH'
13359
13360	case $cc_basename in
13361          CC*)
13362	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13365	      '"$old_archive_cmds_CXX"
13366	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13367	      '"$reload_cmds_CXX"
13368	    ;;
13369	  *)
13370	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13371	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13372	    ;;
13373	esac
13374      ;;
13375
13376      tandem*)
13377        case $cc_basename in
13378          NCC*)
13379	    # NonStop-UX NCC 3.20
13380	    # FIXME: insert proper C++ library support
13381	    ld_shlibs_CXX=no
13382	    ;;
13383          *)
13384	    # FIXME: insert proper C++ library support
13385	    ld_shlibs_CXX=no
13386	    ;;
13387        esac
13388        ;;
13389
13390      vxworks*)
13391        # FIXME: insert proper C++ library support
13392        ld_shlibs_CXX=no
13393        ;;
13394
13395      *)
13396        # FIXME: insert proper C++ library support
13397        ld_shlibs_CXX=no
13398        ;;
13399    esac
13400
13401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13402$as_echo "$ld_shlibs_CXX" >&6; }
13403    test "$ld_shlibs_CXX" = no && can_build_shared=no
13404
13405    GCC_CXX="$GXX"
13406    LD_CXX="$LD"
13407
13408    ## CAVEAT EMPTOR:
13409    ## There is no encapsulation within the following macros, do not change
13410    ## the running order or otherwise move them around unless you know exactly
13411    ## what you are doing...
13412    # Dependencies to place before and after the object being linked:
13413predep_objects_CXX=
13414postdep_objects_CXX=
13415predeps_CXX=
13416postdeps_CXX=
13417compiler_lib_search_path_CXX=
13418
13419cat > conftest.$ac_ext <<_LT_EOF
13420class Foo
13421{
13422public:
13423  Foo (void) { a = 0; }
13424private:
13425  int a;
13426};
13427_LT_EOF
13428
13429if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13430  (eval $ac_compile) 2>&5
13431  ac_status=$?
13432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433  test $ac_status = 0; }; then
13434  # Parse the compiler output and extract the necessary
13435  # objects, libraries and library flags.
13436
13437  # Sentinel used to keep track of whether or not we are before
13438  # the conftest object file.
13439  pre_test_object_deps_done=no
13440
13441  for p in `eval "$output_verbose_link_cmd"`; do
13442    case $p in
13443
13444    -L* | -R* | -l*)
13445       # Some compilers place space between "-{L,R}" and the path.
13446       # Remove the space.
13447       if test $p = "-L" ||
13448          test $p = "-R"; then
13449	 prev=$p
13450	 continue
13451       else
13452	 prev=
13453       fi
13454
13455       if test "$pre_test_object_deps_done" = no; then
13456	 case $p in
13457	 -L* | -R*)
13458	   # Internal compiler library paths should come after those
13459	   # provided the user.  The postdeps already come after the
13460	   # user supplied libs so there is no need to process them.
13461	   if test -z "$compiler_lib_search_path_CXX"; then
13462	     compiler_lib_search_path_CXX="${prev}${p}"
13463	   else
13464	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13465	   fi
13466	   ;;
13467	 # The "-l" case would never come before the object being
13468	 # linked, so don't bother handling this case.
13469	 esac
13470       else
13471	 if test -z "$postdeps_CXX"; then
13472	   postdeps_CXX="${prev}${p}"
13473	 else
13474	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13475	 fi
13476       fi
13477       ;;
13478
13479    *.$objext)
13480       # This assumes that the test object file only shows up
13481       # once in the compiler output.
13482       if test "$p" = "conftest.$objext"; then
13483	 pre_test_object_deps_done=yes
13484	 continue
13485       fi
13486
13487       if test "$pre_test_object_deps_done" = no; then
13488	 if test -z "$predep_objects_CXX"; then
13489	   predep_objects_CXX="$p"
13490	 else
13491	   predep_objects_CXX="$predep_objects_CXX $p"
13492	 fi
13493       else
13494	 if test -z "$postdep_objects_CXX"; then
13495	   postdep_objects_CXX="$p"
13496	 else
13497	   postdep_objects_CXX="$postdep_objects_CXX $p"
13498	 fi
13499       fi
13500       ;;
13501
13502    *) ;; # Ignore the rest.
13503
13504    esac
13505  done
13506
13507  # Clean up.
13508  rm -f a.out a.exe
13509else
13510  echo "libtool.m4: error: problem compiling CXX test program"
13511fi
13512
13513$RM -f confest.$objext
13514
13515# PORTME: override above test on systems where it is broken
13516case $host_os in
13517interix[3-9]*)
13518  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13519  # hack all around it, let's just trust "g++" to DTRT.
13520  predep_objects_CXX=
13521  postdep_objects_CXX=
13522  postdeps_CXX=
13523  ;;
13524
13525linux*)
13526  case `$CC -V 2>&1 | sed 5q` in
13527  *Sun\ C*)
13528    # Sun C++ 5.9
13529
13530    # The more standards-conforming stlport4 library is
13531    # incompatible with the Cstd library. Avoid specifying
13532    # it if it's in CXXFLAGS. Ignore libCrun as
13533    # -library=stlport4 depends on it.
13534    case " $CXX $CXXFLAGS " in
13535    *" -library=stlport4 "*)
13536      solaris_use_stlport4=yes
13537      ;;
13538    esac
13539
13540    if test "$solaris_use_stlport4" != yes; then
13541      postdeps_CXX='-library=Cstd -library=Crun'
13542    fi
13543    ;;
13544  esac
13545  ;;
13546
13547solaris*)
13548  case $cc_basename in
13549  CC*)
13550    # The more standards-conforming stlport4 library is
13551    # incompatible with the Cstd library. Avoid specifying
13552    # it if it's in CXXFLAGS. Ignore libCrun as
13553    # -library=stlport4 depends on it.
13554    case " $CXX $CXXFLAGS " in
13555    *" -library=stlport4 "*)
13556      solaris_use_stlport4=yes
13557      ;;
13558    esac
13559
13560    # Adding this requires a known-good setup of shared libraries for
13561    # Sun compiler versions before 5.6, else PIC objects from an old
13562    # archive will be linked into the output, leading to subtle bugs.
13563    if test "$solaris_use_stlport4" != yes; then
13564      postdeps_CXX='-library=Cstd -library=Crun'
13565    fi
13566    ;;
13567  esac
13568  ;;
13569esac
13570
13571
13572case " $postdeps_CXX " in
13573*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13574esac
13575 compiler_lib_search_dirs_CXX=
13576if test -n "${compiler_lib_search_path_CXX}"; then
13577 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13578fi
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610    lt_prog_compiler_wl_CXX=
13611lt_prog_compiler_pic_CXX=
13612lt_prog_compiler_static_CXX=
13613
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13615$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13616
13617  # C++ specific cases for pic, static, wl, etc.
13618  if test "$GXX" = yes; then
13619    lt_prog_compiler_wl_CXX='-Wl,'
13620    lt_prog_compiler_static_CXX='-static'
13621
13622    case $host_os in
13623    aix*)
13624      # All AIX code is PIC.
13625      if test "$host_cpu" = ia64; then
13626	# AIX 5 now supports IA64 processor
13627	lt_prog_compiler_static_CXX='-Bstatic'
13628      fi
13629      lt_prog_compiler_pic_CXX='-fPIC'
13630      ;;
13631
13632    amigaos*)
13633      case $host_cpu in
13634      powerpc)
13635            # see comment about AmigaOS4 .so support
13636            lt_prog_compiler_pic_CXX='-fPIC'
13637        ;;
13638      m68k)
13639            # FIXME: we need at least 68020 code to build shared libraries, but
13640            # adding the `-m68020' flag to GCC prevents building anything better,
13641            # like `-m68040'.
13642            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13643        ;;
13644      esac
13645      ;;
13646
13647    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13648      # PIC is the default for these OSes.
13649      ;;
13650    mingw* | cygwin* | os2* | pw32* | cegcc*)
13651      # This hack is so that the source file can tell whether it is being
13652      # built for inclusion in a dll (and should export symbols for example).
13653      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13654      # (--disable-auto-import) libraries
13655      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13656      ;;
13657    darwin* | rhapsody*)
13658      # PIC is the default on this platform
13659      # Common symbols not allowed in MH_DYLIB files
13660      lt_prog_compiler_pic_CXX='-fno-common'
13661      ;;
13662    *djgpp*)
13663      # DJGPP does not support shared libraries at all
13664      lt_prog_compiler_pic_CXX=
13665      ;;
13666    haiku*)
13667      # PIC is the default for Haiku.
13668      # The "-static" flag exists, but is broken.
13669      lt_prog_compiler_static_CXX=
13670      ;;
13671    interix[3-9]*)
13672      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13673      # Instead, we relocate shared libraries at runtime.
13674      ;;
13675    sysv4*MP*)
13676      if test -d /usr/nec; then
13677	lt_prog_compiler_pic_CXX=-Kconform_pic
13678      fi
13679      ;;
13680    hpux*)
13681      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13682      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13683      # sets the default TLS model and affects inlining.
13684      case $host_cpu in
13685      hppa*64*)
13686	;;
13687      *)
13688	lt_prog_compiler_pic_CXX='-fPIC'
13689	;;
13690      esac
13691      ;;
13692    *qnx* | *nto*)
13693      # QNX uses GNU C++, but need to define -shared option too, otherwise
13694      # it will coredump.
13695      lt_prog_compiler_pic_CXX='-fPIC -shared'
13696      ;;
13697    *)
13698      lt_prog_compiler_pic_CXX='-fPIC'
13699      ;;
13700    esac
13701  else
13702    case $host_os in
13703      aix[4-9]*)
13704	# All AIX code is PIC.
13705	if test "$host_cpu" = ia64; then
13706	  # AIX 5 now supports IA64 processor
13707	  lt_prog_compiler_static_CXX='-Bstatic'
13708	else
13709	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13710	fi
13711	;;
13712      chorus*)
13713	case $cc_basename in
13714	cxch68*)
13715	  # Green Hills C++ Compiler
13716	  # _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"
13717	  ;;
13718	esac
13719	;;
13720      dgux*)
13721	case $cc_basename in
13722	  ec++*)
13723	    lt_prog_compiler_pic_CXX='-KPIC'
13724	    ;;
13725	  ghcx*)
13726	    # Green Hills C++ Compiler
13727	    lt_prog_compiler_pic_CXX='-pic'
13728	    ;;
13729	  *)
13730	    ;;
13731	esac
13732	;;
13733      freebsd* | dragonfly*)
13734	# FreeBSD uses GNU C++
13735	;;
13736      hpux9* | hpux10* | hpux11*)
13737	case $cc_basename in
13738	  CC*)
13739	    lt_prog_compiler_wl_CXX='-Wl,'
13740	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13741	    if test "$host_cpu" != ia64; then
13742	      lt_prog_compiler_pic_CXX='+Z'
13743	    fi
13744	    ;;
13745	  aCC*)
13746	    lt_prog_compiler_wl_CXX='-Wl,'
13747	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13748	    case $host_cpu in
13749	    hppa*64*|ia64*)
13750	      # +Z the default
13751	      ;;
13752	    *)
13753	      lt_prog_compiler_pic_CXX='+Z'
13754	      ;;
13755	    esac
13756	    ;;
13757	  *)
13758	    ;;
13759	esac
13760	;;
13761      interix*)
13762	# This is c89, which is MS Visual C++ (no shared libs)
13763	# Anyone wants to do a port?
13764	;;
13765      irix5* | irix6* | nonstopux*)
13766	case $cc_basename in
13767	  CC*)
13768	    lt_prog_compiler_wl_CXX='-Wl,'
13769	    lt_prog_compiler_static_CXX='-non_shared'
13770	    # CC pic flag -KPIC is the default.
13771	    ;;
13772	  *)
13773	    ;;
13774	esac
13775	;;
13776      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13777	case $cc_basename in
13778	  KCC*)
13779	    # KAI C++ Compiler
13780	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13781	    lt_prog_compiler_pic_CXX='-fPIC'
13782	    ;;
13783	  ecpc* )
13784	    # old Intel C++ for x86_64 which still supported -KPIC.
13785	    lt_prog_compiler_wl_CXX='-Wl,'
13786	    lt_prog_compiler_pic_CXX='-KPIC'
13787	    lt_prog_compiler_static_CXX='-static'
13788	    ;;
13789	  icpc* )
13790	    # Intel C++, used to be incompatible with GCC.
13791	    # ICC 10 doesn't accept -KPIC any more.
13792	    lt_prog_compiler_wl_CXX='-Wl,'
13793	    lt_prog_compiler_pic_CXX='-fPIC'
13794	    lt_prog_compiler_static_CXX='-static'
13795	    ;;
13796	  pgCC* | pgcpp*)
13797	    # Portland Group C++ compiler
13798	    lt_prog_compiler_wl_CXX='-Wl,'
13799	    lt_prog_compiler_pic_CXX='-fpic'
13800	    lt_prog_compiler_static_CXX='-Bstatic'
13801	    ;;
13802	  cxx*)
13803	    # Compaq C++
13804	    # Make sure the PIC flag is empty.  It appears that all Alpha
13805	    # Linux and Compaq Tru64 Unix objects are PIC.
13806	    lt_prog_compiler_pic_CXX=
13807	    lt_prog_compiler_static_CXX='-non_shared'
13808	    ;;
13809	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13810	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13811	    lt_prog_compiler_wl_CXX='-Wl,'
13812	    lt_prog_compiler_pic_CXX='-qpic'
13813	    lt_prog_compiler_static_CXX='-qstaticlink'
13814	    ;;
13815	  *)
13816	    case `$CC -V 2>&1 | sed 5q` in
13817	    *Sun\ C*)
13818	      # Sun C++ 5.9
13819	      lt_prog_compiler_pic_CXX='-KPIC'
13820	      lt_prog_compiler_static_CXX='-Bstatic'
13821	      lt_prog_compiler_wl_CXX='-Qoption ld '
13822	      ;;
13823	    esac
13824	    ;;
13825	esac
13826	;;
13827      lynxos*)
13828	;;
13829      m88k*)
13830	;;
13831      mvs*)
13832	case $cc_basename in
13833	  cxx*)
13834	    lt_prog_compiler_pic_CXX='-W c,exportall'
13835	    ;;
13836	  *)
13837	    ;;
13838	esac
13839	;;
13840      netbsd*)
13841	;;
13842      *qnx* | *nto*)
13843        # QNX uses GNU C++, but need to define -shared option too, otherwise
13844        # it will coredump.
13845        lt_prog_compiler_pic_CXX='-fPIC -shared'
13846        ;;
13847      osf3* | osf4* | osf5*)
13848	case $cc_basename in
13849	  KCC*)
13850	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13851	    ;;
13852	  RCC*)
13853	    # Rational C++ 2.4.1
13854	    lt_prog_compiler_pic_CXX='-pic'
13855	    ;;
13856	  cxx*)
13857	    # Digital/Compaq C++
13858	    lt_prog_compiler_wl_CXX='-Wl,'
13859	    # Make sure the PIC flag is empty.  It appears that all Alpha
13860	    # Linux and Compaq Tru64 Unix objects are PIC.
13861	    lt_prog_compiler_pic_CXX=
13862	    lt_prog_compiler_static_CXX='-non_shared'
13863	    ;;
13864	  *)
13865	    ;;
13866	esac
13867	;;
13868      psos*)
13869	;;
13870      solaris*)
13871	case $cc_basename in
13872	  CC*)
13873	    # Sun C++ 4.2, 5.x and Centerline C++
13874	    lt_prog_compiler_pic_CXX='-KPIC'
13875	    lt_prog_compiler_static_CXX='-Bstatic'
13876	    lt_prog_compiler_wl_CXX='-Qoption ld '
13877	    ;;
13878	  gcx*)
13879	    # Green Hills C++ Compiler
13880	    lt_prog_compiler_pic_CXX='-PIC'
13881	    ;;
13882	  *)
13883	    ;;
13884	esac
13885	;;
13886      sunos4*)
13887	case $cc_basename in
13888	  CC*)
13889	    # Sun C++ 4.x
13890	    lt_prog_compiler_pic_CXX='-pic'
13891	    lt_prog_compiler_static_CXX='-Bstatic'
13892	    ;;
13893	  lcc*)
13894	    # Lucid
13895	    lt_prog_compiler_pic_CXX='-pic'
13896	    ;;
13897	  *)
13898	    ;;
13899	esac
13900	;;
13901      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13902	case $cc_basename in
13903	  CC*)
13904	    lt_prog_compiler_wl_CXX='-Wl,'
13905	    lt_prog_compiler_pic_CXX='-KPIC'
13906	    lt_prog_compiler_static_CXX='-Bstatic'
13907	    ;;
13908	esac
13909	;;
13910      tandem*)
13911	case $cc_basename in
13912	  NCC*)
13913	    # NonStop-UX NCC 3.20
13914	    lt_prog_compiler_pic_CXX='-KPIC'
13915	    ;;
13916	  *)
13917	    ;;
13918	esac
13919	;;
13920      vxworks*)
13921	;;
13922      *)
13923	lt_prog_compiler_can_build_shared_CXX=no
13924	;;
13925    esac
13926  fi
13927
13928case $host_os in
13929  # For platforms which do not support PIC, -DPIC is meaningless:
13930  *djgpp*)
13931    lt_prog_compiler_pic_CXX=
13932    ;;
13933  *)
13934    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13935    ;;
13936esac
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13938$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13939
13940
13941
13942#
13943# Check to make sure the PIC flag actually works.
13944#
13945if test -n "$lt_prog_compiler_pic_CXX"; then
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13947$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13948if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13949  $as_echo_n "(cached) " >&6
13950else
13951  lt_cv_prog_compiler_pic_works_CXX=no
13952   ac_outfile=conftest.$ac_objext
13953   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13955   # Insert the option either (1) after the last *FLAGS variable, or
13956   # (2) before a word containing "conftest.", or (3) at the end.
13957   # Note that $ac_compile itself does not contain backslashes and begins
13958   # with a dollar sign (not a hyphen), so the echo should work correctly.
13959   # The option is referenced via a variable to avoid confusing sed.
13960   lt_compile=`echo "$ac_compile" | $SED \
13961   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963   -e 's:$: $lt_compiler_flag:'`
13964   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13965   (eval "$lt_compile" 2>conftest.err)
13966   ac_status=$?
13967   cat conftest.err >&5
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   if (exit $ac_status) && test -s "$ac_outfile"; then
13970     # The compiler can only warn and ignore the option if not recognized
13971     # So say no if there are warnings other than the usual output.
13972     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13973     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13974     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13975       lt_cv_prog_compiler_pic_works_CXX=yes
13976     fi
13977   fi
13978   $RM conftest*
13979
13980fi
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13982$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13983
13984if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13985    case $lt_prog_compiler_pic_CXX in
13986     "" | " "*) ;;
13987     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13988     esac
13989else
13990    lt_prog_compiler_pic_CXX=
13991     lt_prog_compiler_can_build_shared_CXX=no
13992fi
13993
13994fi
13995
13996
13997
13998#
13999# Check to make sure the static flag actually works.
14000#
14001wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14003$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14004if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14005  $as_echo_n "(cached) " >&6
14006else
14007  lt_cv_prog_compiler_static_works_CXX=no
14008   save_LDFLAGS="$LDFLAGS"
14009   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14010   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14011   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14012     # The linker can only warn and ignore the option if not recognized
14013     # So say no if there are warnings
14014     if test -s conftest.err; then
14015       # Append any errors to the config.log.
14016       cat conftest.err 1>&5
14017       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14018       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14019       if diff conftest.exp conftest.er2 >/dev/null; then
14020         lt_cv_prog_compiler_static_works_CXX=yes
14021       fi
14022     else
14023       lt_cv_prog_compiler_static_works_CXX=yes
14024     fi
14025   fi
14026   $RM -r conftest*
14027   LDFLAGS="$save_LDFLAGS"
14028
14029fi
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14031$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14032
14033if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14034    :
14035else
14036    lt_prog_compiler_static_CXX=
14037fi
14038
14039
14040
14041
14042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14043$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14044if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14045  $as_echo_n "(cached) " >&6
14046else
14047  lt_cv_prog_compiler_c_o_CXX=no
14048   $RM -r conftest 2>/dev/null
14049   mkdir conftest
14050   cd conftest
14051   mkdir out
14052   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14053
14054   lt_compiler_flag="-o out/conftest2.$ac_objext"
14055   # Insert the option either (1) after the last *FLAGS variable, or
14056   # (2) before a word containing "conftest.", or (3) at the end.
14057   # Note that $ac_compile itself does not contain backslashes and begins
14058   # with a dollar sign (not a hyphen), so the echo should work correctly.
14059   lt_compile=`echo "$ac_compile" | $SED \
14060   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14061   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14062   -e 's:$: $lt_compiler_flag:'`
14063   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14064   (eval "$lt_compile" 2>out/conftest.err)
14065   ac_status=$?
14066   cat out/conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14069   then
14070     # The compiler can only warn and ignore the option if not recognized
14071     # So say no if there are warnings
14072     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14073     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14074     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14075       lt_cv_prog_compiler_c_o_CXX=yes
14076     fi
14077   fi
14078   chmod u+w . 2>&5
14079   $RM conftest*
14080   # SGI C++ compiler will create directory out/ii_files/ for
14081   # template instantiation
14082   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14083   $RM out/* && rmdir out
14084   cd ..
14085   $RM -r conftest
14086   $RM conftest*
14087
14088fi
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14090$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14091
14092
14093
14094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14095$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14096if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14097  $as_echo_n "(cached) " >&6
14098else
14099  lt_cv_prog_compiler_c_o_CXX=no
14100   $RM -r conftest 2>/dev/null
14101   mkdir conftest
14102   cd conftest
14103   mkdir out
14104   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14105
14106   lt_compiler_flag="-o out/conftest2.$ac_objext"
14107   # Insert the option either (1) after the last *FLAGS variable, or
14108   # (2) before a word containing "conftest.", or (3) at the end.
14109   # Note that $ac_compile itself does not contain backslashes and begins
14110   # with a dollar sign (not a hyphen), so the echo should work correctly.
14111   lt_compile=`echo "$ac_compile" | $SED \
14112   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14113   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14114   -e 's:$: $lt_compiler_flag:'`
14115   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14116   (eval "$lt_compile" 2>out/conftest.err)
14117   ac_status=$?
14118   cat out/conftest.err >&5
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14121   then
14122     # The compiler can only warn and ignore the option if not recognized
14123     # So say no if there are warnings
14124     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14125     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14126     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14127       lt_cv_prog_compiler_c_o_CXX=yes
14128     fi
14129   fi
14130   chmod u+w . 2>&5
14131   $RM conftest*
14132   # SGI C++ compiler will create directory out/ii_files/ for
14133   # template instantiation
14134   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14135   $RM out/* && rmdir out
14136   cd ..
14137   $RM -r conftest
14138   $RM conftest*
14139
14140fi
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14142$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14143
14144
14145
14146
14147hard_links="nottested"
14148if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149  # do not overwrite the value of need_locks provided by the user
14150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14151$as_echo_n "checking if we can lock with hard links... " >&6; }
14152  hard_links=yes
14153  $RM conftest*
14154  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155  touch conftest.a
14156  ln conftest.a conftest.b 2>&5 || hard_links=no
14157  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14159$as_echo "$hard_links" >&6; }
14160  if test "$hard_links" = no; then
14161    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14163    need_locks=warn
14164  fi
14165else
14166  need_locks=no
14167fi
14168
14169
14170
14171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14172$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14173
14174  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14175  case $host_os in
14176  aix[4-9]*)
14177    # If we're using GNU nm, then we don't want the "-C" option.
14178    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14179    # Also, AIX nm treats weak defined symbols like other global defined
14180    # symbols, whereas GNU nm marks them as "W".
14181    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14182      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'
14183    else
14184      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14185    fi
14186    ;;
14187  pw32*)
14188    export_symbols_cmds_CXX="$ltdll_cmds"
14189  ;;
14190  cygwin* | mingw* | cegcc*)
14191    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'
14192  ;;
14193  *)
14194    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14195  ;;
14196  esac
14197  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14198
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14200$as_echo "$ld_shlibs_CXX" >&6; }
14201test "$ld_shlibs_CXX" = no && can_build_shared=no
14202
14203with_gnu_ld_CXX=$with_gnu_ld
14204
14205
14206
14207
14208
14209
14210#
14211# Do we need to explicitly link libc?
14212#
14213case "x$archive_cmds_need_lc_CXX" in
14214x|xyes)
14215  # Assume -lc should be added
14216  archive_cmds_need_lc_CXX=yes
14217
14218  if test "$enable_shared" = yes && test "$GCC" = yes; then
14219    case $archive_cmds_CXX in
14220    *'~'*)
14221      # FIXME: we may have to deal with multi-command sequences.
14222      ;;
14223    '$CC '*)
14224      # Test whether the compiler implicitly links with -lc since on some
14225      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14226      # to ld, don't add -lc before -lgcc.
14227      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14228$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14229if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14230  $as_echo_n "(cached) " >&6
14231else
14232  $RM conftest*
14233	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14234
14235	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14236  (eval $ac_compile) 2>&5
14237  ac_status=$?
14238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239  test $ac_status = 0; } 2>conftest.err; then
14240	  soname=conftest
14241	  lib=conftest
14242	  libobjs=conftest.$ac_objext
14243	  deplibs=
14244	  wl=$lt_prog_compiler_wl_CXX
14245	  pic_flag=$lt_prog_compiler_pic_CXX
14246	  compiler_flags=-v
14247	  linker_flags=-v
14248	  verstring=
14249	  output_objdir=.
14250	  libname=conftest
14251	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14252	  allow_undefined_flag_CXX=
14253	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14254  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14255  ac_status=$?
14256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14257  test $ac_status = 0; }
14258	  then
14259	    lt_cv_archive_cmds_need_lc_CXX=no
14260	  else
14261	    lt_cv_archive_cmds_need_lc_CXX=yes
14262	  fi
14263	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14264	else
14265	  cat conftest.err 1>&5
14266	fi
14267	$RM conftest*
14268
14269fi
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14271$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14272      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14273      ;;
14274    esac
14275  fi
14276  ;;
14277esac
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
14335
14336
14337
14338
14339
14340
14341
14342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14343$as_echo_n "checking dynamic linker characteristics... " >&6; }
14344
14345library_names_spec=
14346libname_spec='lib$name'
14347soname_spec=
14348shrext_cmds=".so"
14349postinstall_cmds=
14350postuninstall_cmds=
14351finish_cmds=
14352finish_eval=
14353shlibpath_var=
14354shlibpath_overrides_runpath=unknown
14355version_type=none
14356dynamic_linker="$host_os ld.so"
14357sys_lib_dlsearch_path_spec="/lib /usr/lib"
14358need_lib_prefix=unknown
14359hardcode_into_libs=no
14360
14361# when you set need_version to no, make sure it does not cause -set_version
14362# flags to be left without arguments
14363need_version=unknown
14364
14365case $host_os in
14366aix3*)
14367  version_type=linux
14368  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14369  shlibpath_var=LIBPATH
14370
14371  # AIX 3 has no versioning support, so we append a major version to the name.
14372  soname_spec='${libname}${release}${shared_ext}$major'
14373  ;;
14374
14375aix[4-9]*)
14376  version_type=linux
14377  need_lib_prefix=no
14378  need_version=no
14379  hardcode_into_libs=yes
14380  if test "$host_cpu" = ia64; then
14381    # AIX 5 supports IA64
14382    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14383    shlibpath_var=LD_LIBRARY_PATH
14384  else
14385    # With GCC up to 2.95.x, collect2 would create an import file
14386    # for dependence libraries.  The import file would start with
14387    # the line `#! .'.  This would cause the generated library to
14388    # depend on `.', always an invalid library.  This was fixed in
14389    # development snapshots of GCC prior to 3.0.
14390    case $host_os in
14391      aix4 | aix4.[01] | aix4.[01].*)
14392      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14393	   echo ' yes '
14394	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14395	:
14396      else
14397	can_build_shared=no
14398      fi
14399      ;;
14400    esac
14401    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14402    # soname into executable. Probably we can add versioning support to
14403    # collect2, so additional links can be useful in future.
14404    if test "$aix_use_runtimelinking" = yes; then
14405      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14406      # instead of lib<name>.a to let people know that these are not
14407      # typical AIX shared libraries.
14408      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409    else
14410      # We preserve .a as extension for shared libraries through AIX4.2
14411      # and later when we are not doing run time linking.
14412      library_names_spec='${libname}${release}.a $libname.a'
14413      soname_spec='${libname}${release}${shared_ext}$major'
14414    fi
14415    shlibpath_var=LIBPATH
14416  fi
14417  ;;
14418
14419amigaos*)
14420  case $host_cpu in
14421  powerpc)
14422    # Since July 2007 AmigaOS4 officially supports .so libraries.
14423    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425    ;;
14426  m68k)
14427    library_names_spec='$libname.ixlibrary $libname.a'
14428    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14429    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'
14430    ;;
14431  esac
14432  ;;
14433
14434beos*)
14435  library_names_spec='${libname}${shared_ext}'
14436  dynamic_linker="$host_os ld.so"
14437  shlibpath_var=LIBRARY_PATH
14438  ;;
14439
14440bsdi[45]*)
14441  version_type=linux
14442  need_version=no
14443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444  soname_spec='${libname}${release}${shared_ext}$major'
14445  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14446  shlibpath_var=LD_LIBRARY_PATH
14447  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14448  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14449  # the default ld.so.conf also contains /usr/contrib/lib and
14450  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14451  # libtool to hard-code these into programs
14452  ;;
14453
14454cygwin* | mingw* | pw32* | cegcc*)
14455  version_type=windows
14456  shrext_cmds=".dll"
14457  need_version=no
14458  need_lib_prefix=no
14459
14460  case $GCC,$host_os in
14461  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14462    library_names_spec='$libname.dll.a'
14463    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14464    postinstall_cmds='base_file=`basename \${file}`~
14465      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14466      dldir=$destdir/`dirname \$dlpath`~
14467      test -d \$dldir || mkdir -p \$dldir~
14468      $install_prog $dir/$dlname \$dldir/$dlname~
14469      chmod a+x \$dldir/$dlname~
14470      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14471        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14472      fi'
14473    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14474      dlpath=$dir/\$dldll~
14475       $RM \$dlpath'
14476    shlibpath_overrides_runpath=yes
14477
14478    case $host_os in
14479    cygwin*)
14480      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14481      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14482
14483      ;;
14484    mingw* | cegcc*)
14485      # MinGW DLLs use traditional 'lib' prefix
14486      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487      ;;
14488    pw32*)
14489      # pw32 DLLs use 'pw' prefix rather than 'lib'
14490      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491      ;;
14492    esac
14493    ;;
14494
14495  *)
14496    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14497    ;;
14498  esac
14499  dynamic_linker='Win32 ld.exe'
14500  # FIXME: first we should search . and the directory the executable is in
14501  shlibpath_var=PATH
14502  ;;
14503
14504darwin* | rhapsody*)
14505  dynamic_linker="$host_os dyld"
14506  version_type=darwin
14507  need_lib_prefix=no
14508  need_version=no
14509  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14510  soname_spec='${libname}${release}${major}$shared_ext'
14511  shlibpath_overrides_runpath=yes
14512  shlibpath_var=DYLD_LIBRARY_PATH
14513  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14514
14515  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14516  ;;
14517
14518dgux*)
14519  version_type=linux
14520  need_lib_prefix=no
14521  need_version=no
14522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14523  soname_spec='${libname}${release}${shared_ext}$major'
14524  shlibpath_var=LD_LIBRARY_PATH
14525  ;;
14526
14527freebsd* | dragonfly*)
14528  # DragonFly does not have aout.  When/if they implement a new
14529  # versioning mechanism, adjust this.
14530  if test -x /usr/bin/objformat; then
14531    objformat=`/usr/bin/objformat`
14532  else
14533    case $host_os in
14534    freebsd[23].*) objformat=aout ;;
14535    *) objformat=elf ;;
14536    esac
14537  fi
14538  version_type=freebsd-$objformat
14539  case $version_type in
14540    freebsd-elf*)
14541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14542      need_version=no
14543      need_lib_prefix=no
14544      ;;
14545    freebsd-*)
14546      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14547      need_version=yes
14548      ;;
14549  esac
14550  shlibpath_var=LD_LIBRARY_PATH
14551  case $host_os in
14552  freebsd2.*)
14553    shlibpath_overrides_runpath=yes
14554    ;;
14555  freebsd3.[01]* | freebsdelf3.[01]*)
14556    shlibpath_overrides_runpath=yes
14557    hardcode_into_libs=yes
14558    ;;
14559  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14560  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14561    shlibpath_overrides_runpath=no
14562    hardcode_into_libs=yes
14563    ;;
14564  *) # from 4.6 on, and DragonFly
14565    shlibpath_overrides_runpath=yes
14566    hardcode_into_libs=yes
14567    ;;
14568  esac
14569  ;;
14570
14571gnu*)
14572  version_type=linux
14573  need_lib_prefix=no
14574  need_version=no
14575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576  soname_spec='${libname}${release}${shared_ext}$major'
14577  shlibpath_var=LD_LIBRARY_PATH
14578  hardcode_into_libs=yes
14579  ;;
14580
14581haiku*)
14582  version_type=linux
14583  need_lib_prefix=no
14584  need_version=no
14585  dynamic_linker="$host_os runtime_loader"
14586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14587  soname_spec='${libname}${release}${shared_ext}$major'
14588  shlibpath_var=LIBRARY_PATH
14589  shlibpath_overrides_runpath=yes
14590  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14591  hardcode_into_libs=yes
14592  ;;
14593
14594hpux9* | hpux10* | hpux11*)
14595  # Give a soname corresponding to the major version so that dld.sl refuses to
14596  # link against other versions.
14597  version_type=sunos
14598  need_lib_prefix=no
14599  need_version=no
14600  case $host_cpu in
14601  ia64*)
14602    shrext_cmds='.so'
14603    hardcode_into_libs=yes
14604    dynamic_linker="$host_os dld.so"
14605    shlibpath_var=LD_LIBRARY_PATH
14606    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608    soname_spec='${libname}${release}${shared_ext}$major'
14609    if test "X$HPUX_IA64_MODE" = X32; then
14610      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14611    else
14612      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14613    fi
14614    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14615    ;;
14616  hppa*64*)
14617    shrext_cmds='.sl'
14618    hardcode_into_libs=yes
14619    dynamic_linker="$host_os dld.sl"
14620    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14621    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14622    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623    soname_spec='${libname}${release}${shared_ext}$major'
14624    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14625    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14626    ;;
14627  *)
14628    shrext_cmds='.sl'
14629    dynamic_linker="$host_os dld.sl"
14630    shlibpath_var=SHLIB_PATH
14631    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14632    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14633    soname_spec='${libname}${release}${shared_ext}$major'
14634    ;;
14635  esac
14636  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14637  postinstall_cmds='chmod 555 $lib'
14638  # or fails outright, so override atomically:
14639  install_override_mode=555
14640  ;;
14641
14642interix[3-9]*)
14643  version_type=linux
14644  need_lib_prefix=no
14645  need_version=no
14646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14647  soname_spec='${libname}${release}${shared_ext}$major'
14648  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14649  shlibpath_var=LD_LIBRARY_PATH
14650  shlibpath_overrides_runpath=no
14651  hardcode_into_libs=yes
14652  ;;
14653
14654irix5* | irix6* | nonstopux*)
14655  case $host_os in
14656    nonstopux*) version_type=nonstopux ;;
14657    *)
14658	if test "$lt_cv_prog_gnu_ld" = yes; then
14659		version_type=linux
14660	else
14661		version_type=irix
14662	fi ;;
14663  esac
14664  need_lib_prefix=no
14665  need_version=no
14666  soname_spec='${libname}${release}${shared_ext}$major'
14667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14668  case $host_os in
14669  irix5* | nonstopux*)
14670    libsuff= shlibsuff=
14671    ;;
14672  *)
14673    case $LD in # libtool.m4 will add one of these switches to LD
14674    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14675      libsuff= shlibsuff= libmagic=32-bit;;
14676    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14677      libsuff=32 shlibsuff=N32 libmagic=N32;;
14678    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14679      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14680    *) libsuff= shlibsuff= libmagic=never-match;;
14681    esac
14682    ;;
14683  esac
14684  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14685  shlibpath_overrides_runpath=no
14686  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14687  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14688  hardcode_into_libs=yes
14689  ;;
14690
14691# No shared lib support for Linux oldld, aout, or coff.
14692linux*oldld* | linux*aout* | linux*coff*)
14693  dynamic_linker=no
14694  ;;
14695
14696# This must be Linux ELF.
14697linux* | k*bsd*-gnu | kopensolaris*-gnu)
14698  version_type=linux
14699  need_lib_prefix=no
14700  need_version=no
14701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702  soname_spec='${libname}${release}${shared_ext}$major'
14703  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14704  shlibpath_var=LD_LIBRARY_PATH
14705  shlibpath_overrides_runpath=no
14706
14707  # Some binutils ld are patched to set DT_RUNPATH
14708  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14709  $as_echo_n "(cached) " >&6
14710else
14711  lt_cv_shlibpath_overrides_runpath=no
14712    save_LDFLAGS=$LDFLAGS
14713    save_libdir=$libdir
14714    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14715	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14716    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717/* end confdefs.h.  */
14718
14719int
14720main ()
14721{
14722
14723  ;
14724  return 0;
14725}
14726_ACEOF
14727if ac_fn_cxx_try_link "$LINENO"; then :
14728  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14729  lt_cv_shlibpath_overrides_runpath=yes
14730fi
14731fi
14732rm -f core conftest.err conftest.$ac_objext \
14733    conftest$ac_exeext conftest.$ac_ext
14734    LDFLAGS=$save_LDFLAGS
14735    libdir=$save_libdir
14736
14737fi
14738
14739  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14740
14741  # This implies no fast_install, which is unacceptable.
14742  # Some rework will be needed to allow for fast_install
14743  # before this can be enabled.
14744  hardcode_into_libs=yes
14745
14746  # Append ld.so.conf contents to the search path
14747  if test -f /etc/ld.so.conf; then
14748    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' ' '`
14749    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14750  fi
14751
14752  # We used to test for /lib/ld.so.1 and disable shared libraries on
14753  # powerpc, because MkLinux only supported shared libraries with the
14754  # GNU dynamic linker.  Since this was broken with cross compilers,
14755  # most powerpc-linux boxes support dynamic linking these days and
14756  # people can always --disable-shared, the test was removed, and we
14757  # assume the GNU/Linux dynamic linker is in use.
14758  dynamic_linker='GNU/Linux ld.so'
14759  ;;
14760
14761netbsd*)
14762  version_type=sunos
14763  need_lib_prefix=no
14764  need_version=no
14765  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768    dynamic_linker='NetBSD (a.out) ld.so'
14769  else
14770    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14771    soname_spec='${libname}${release}${shared_ext}$major'
14772    dynamic_linker='NetBSD ld.elf_so'
14773  fi
14774  shlibpath_var=LD_LIBRARY_PATH
14775  shlibpath_overrides_runpath=yes
14776  hardcode_into_libs=yes
14777  ;;
14778
14779newsos6)
14780  version_type=linux
14781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782  shlibpath_var=LD_LIBRARY_PATH
14783  shlibpath_overrides_runpath=yes
14784  ;;
14785
14786*nto* | *qnx*)
14787  version_type=qnx
14788  need_lib_prefix=no
14789  need_version=no
14790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791  soname_spec='${libname}${release}${shared_ext}$major'
14792  shlibpath_var=LD_LIBRARY_PATH
14793  shlibpath_overrides_runpath=no
14794  hardcode_into_libs=yes
14795  dynamic_linker='ldqnx.so'
14796  ;;
14797
14798openbsd*)
14799  version_type=sunos
14800  sys_lib_dlsearch_path_spec="/usr/lib"
14801  need_lib_prefix=no
14802  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14803  case $host_os in
14804    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14805    *)				need_version=no  ;;
14806  esac
14807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14808  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14809  shlibpath_var=LD_LIBRARY_PATH
14810  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14811    case $host_os in
14812      openbsd2.[89] | openbsd2.[89].*)
14813	shlibpath_overrides_runpath=no
14814	;;
14815      *)
14816	shlibpath_overrides_runpath=yes
14817	;;
14818      esac
14819  else
14820    shlibpath_overrides_runpath=yes
14821  fi
14822  ;;
14823
14824os2*)
14825  libname_spec='$name'
14826  shrext_cmds=".dll"
14827  need_lib_prefix=no
14828  library_names_spec='$libname${shared_ext} $libname.a'
14829  dynamic_linker='OS/2 ld.exe'
14830  shlibpath_var=LIBPATH
14831  ;;
14832
14833osf3* | osf4* | osf5*)
14834  version_type=osf
14835  need_lib_prefix=no
14836  need_version=no
14837  soname_spec='${libname}${release}${shared_ext}$major'
14838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839  shlibpath_var=LD_LIBRARY_PATH
14840  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14841  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14842  ;;
14843
14844rdos*)
14845  dynamic_linker=no
14846  ;;
14847
14848solaris*)
14849  version_type=linux
14850  need_lib_prefix=no
14851  need_version=no
14852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853  soname_spec='${libname}${release}${shared_ext}$major'
14854  shlibpath_var=LD_LIBRARY_PATH
14855  shlibpath_overrides_runpath=yes
14856  hardcode_into_libs=yes
14857  # ldd complains unless libraries are executable
14858  postinstall_cmds='chmod +x $lib'
14859  ;;
14860
14861sunos4*)
14862  version_type=sunos
14863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14865  shlibpath_var=LD_LIBRARY_PATH
14866  shlibpath_overrides_runpath=yes
14867  if test "$with_gnu_ld" = yes; then
14868    need_lib_prefix=no
14869  fi
14870  need_version=yes
14871  ;;
14872
14873sysv4 | sysv4.3*)
14874  version_type=linux
14875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876  soname_spec='${libname}${release}${shared_ext}$major'
14877  shlibpath_var=LD_LIBRARY_PATH
14878  case $host_vendor in
14879    sni)
14880      shlibpath_overrides_runpath=no
14881      need_lib_prefix=no
14882      runpath_var=LD_RUN_PATH
14883      ;;
14884    siemens)
14885      need_lib_prefix=no
14886      ;;
14887    motorola)
14888      need_lib_prefix=no
14889      need_version=no
14890      shlibpath_overrides_runpath=no
14891      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14892      ;;
14893  esac
14894  ;;
14895
14896sysv4*MP*)
14897  if test -d /usr/nec ;then
14898    version_type=linux
14899    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14900    soname_spec='$libname${shared_ext}.$major'
14901    shlibpath_var=LD_LIBRARY_PATH
14902  fi
14903  ;;
14904
14905sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14906  version_type=freebsd-elf
14907  need_lib_prefix=no
14908  need_version=no
14909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14910  soname_spec='${libname}${release}${shared_ext}$major'
14911  shlibpath_var=LD_LIBRARY_PATH
14912  shlibpath_overrides_runpath=yes
14913  hardcode_into_libs=yes
14914  if test "$with_gnu_ld" = yes; then
14915    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14916  else
14917    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14918    case $host_os in
14919      sco3.2v5*)
14920        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14921	;;
14922    esac
14923  fi
14924  sys_lib_dlsearch_path_spec='/usr/lib'
14925  ;;
14926
14927tpf*)
14928  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14929  version_type=linux
14930  need_lib_prefix=no
14931  need_version=no
14932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933  shlibpath_var=LD_LIBRARY_PATH
14934  shlibpath_overrides_runpath=no
14935  hardcode_into_libs=yes
14936  ;;
14937
14938uts4*)
14939  version_type=linux
14940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941  soname_spec='${libname}${release}${shared_ext}$major'
14942  shlibpath_var=LD_LIBRARY_PATH
14943  ;;
14944
14945*)
14946  dynamic_linker=no
14947  ;;
14948esac
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14950$as_echo "$dynamic_linker" >&6; }
14951test "$dynamic_linker" = no && can_build_shared=no
14952
14953variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14954if test "$GCC" = yes; then
14955  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14956fi
14957
14958if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14959  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14960fi
14961if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14962  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14963fi
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
14995
14996
14997
14998
14999
15000
15001
15002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15003$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15004hardcode_action_CXX=
15005if test -n "$hardcode_libdir_flag_spec_CXX" ||
15006   test -n "$runpath_var_CXX" ||
15007   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15008
15009  # We can hardcode non-existent directories.
15010  if test "$hardcode_direct_CXX" != no &&
15011     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15012     # have to relink, otherwise we might link with an installed library
15013     # when we should be linking with a yet-to-be-installed one
15014     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15015     test "$hardcode_minus_L_CXX" != no; then
15016    # Linking always hardcodes the temporary library directory.
15017    hardcode_action_CXX=relink
15018  else
15019    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15020    hardcode_action_CXX=immediate
15021  fi
15022else
15023  # We cannot hardcode anything, or else we can only hardcode existing
15024  # directories.
15025  hardcode_action_CXX=unsupported
15026fi
15027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15028$as_echo "$hardcode_action_CXX" >&6; }
15029
15030if test "$hardcode_action_CXX" = relink ||
15031   test "$inherit_rpath_CXX" = yes; then
15032  # Fast installation is not supported
15033  enable_fast_install=no
15034elif test "$shlibpath_overrides_runpath" = yes ||
15035     test "$enable_shared" = no; then
15036  # Fast installation is not necessary
15037  enable_fast_install=needless
15038fi
15039
15040
15041
15042
15043
15044
15045
15046  fi # test -n "$compiler"
15047
15048  CC=$lt_save_CC
15049  LDCXX=$LD
15050  LD=$lt_save_LD
15051  GCC=$lt_save_GCC
15052  with_gnu_ld=$lt_save_with_gnu_ld
15053  lt_cv_path_LDCXX=$lt_cv_path_LD
15054  lt_cv_path_LD=$lt_save_path_LD
15055  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15056  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15057fi # test "$_lt_caught_CXX_error" != yes
15058
15059ac_ext=c
15060ac_cpp='$CPP $CPPFLAGS'
15061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15063ac_compiler_gnu=$ac_cv_c_compiler_gnu
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077        ac_config_commands="$ac_config_commands libtool"
15078
15079
15080
15081
15082# Only expand once:
15083
15084
15085
15086# The tests for host and target for $enable_largefile require
15087# canonical names.
15088
15089
15090
15091# As the $enable_largefile decision depends on --enable-plugins we must set it
15092# even in directories otherwise not depending on the $plugins option.
15093
15094
15095  maybe_plugins=no
15096  for ac_header in dlfcn.h
15097do :
15098  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15099"
15100if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15101  cat >>confdefs.h <<_ACEOF
15102#define HAVE_DLFCN_H 1
15103_ACEOF
15104 maybe_plugins=yes
15105fi
15106
15107done
15108
15109  for ac_header in windows.h
15110do :
15111  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15112"
15113if test "x$ac_cv_header_windows_h" = x""yes; then :
15114  cat >>confdefs.h <<_ACEOF
15115#define HAVE_WINDOWS_H 1
15116_ACEOF
15117 maybe_plugins=yes
15118fi
15119
15120done
15121
15122
15123  # Check whether --enable-plugins was given.
15124if test "${enable_plugins+set}" = set; then :
15125  enableval=$enable_plugins; case "${enableval}" in
15126      no) plugins=no ;;
15127      *) plugins=yes
15128         if test "$maybe_plugins" != "yes" ; then
15129	   as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15130	 fi ;;
15131     esac
15132else
15133  plugins=$maybe_plugins
15134
15135fi
15136
15137  if test "$plugins" = "yes"; then
15138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15139$as_echo_n "checking for library containing dlopen... " >&6; }
15140if test "${ac_cv_search_dlopen+set}" = set; then :
15141  $as_echo_n "(cached) " >&6
15142else
15143  ac_func_search_save_LIBS=$LIBS
15144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h.  */
15146
15147/* Override any GCC internal prototype to avoid an error.
15148   Use char because int might match the return type of a GCC
15149   builtin and then its argument prototype would still apply.  */
15150#ifdef __cplusplus
15151extern "C"
15152#endif
15153char dlopen ();
15154int
15155main ()
15156{
15157return dlopen ();
15158  ;
15159  return 0;
15160}
15161_ACEOF
15162for ac_lib in '' dl; do
15163  if test -z "$ac_lib"; then
15164    ac_res="none required"
15165  else
15166    ac_res=-l$ac_lib
15167    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15168  fi
15169  if ac_fn_c_try_link "$LINENO"; then :
15170  ac_cv_search_dlopen=$ac_res
15171fi
15172rm -f core conftest.err conftest.$ac_objext \
15173    conftest$ac_exeext
15174  if test "${ac_cv_search_dlopen+set}" = set; then :
15175  break
15176fi
15177done
15178if test "${ac_cv_search_dlopen+set}" = set; then :
15179
15180else
15181  ac_cv_search_dlopen=no
15182fi
15183rm conftest.$ac_ext
15184LIBS=$ac_func_search_save_LIBS
15185fi
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15187$as_echo "$ac_cv_search_dlopen" >&6; }
15188ac_res=$ac_cv_search_dlopen
15189if test "$ac_res" != no; then :
15190  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15191
15192fi
15193
15194  fi
15195
15196
15197case "${host}" in
15198  sparc-*-solaris*|i[3-7]86-*-solaris*)
15199    # On native 32bit sparc and ia32 solaris, large-file and procfs support
15200    # are mutually exclusive; and without procfs support, the bfd/ elf module
15201    # cannot provide certain routines such as elfcore_write_prpsinfo
15202    # or elfcore_write_prstatus.  So unless the user explicitly requested
15203    # large-file support through the --enable-largefile switch, disable
15204    # large-file support in favor of procfs support.
15205    test "${target}" = "${host}" -a "x$plugins" = xno \
15206      && : ${enable_largefile="no"}
15207    ;;
15208esac
15209
15210# Check whether --enable-largefile was given.
15211if test "${enable_largefile+set}" = set; then :
15212  enableval=$enable_largefile;
15213fi
15214
15215if test "$enable_largefile" != no; then
15216
15217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15218$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15219if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15220  $as_echo_n "(cached) " >&6
15221else
15222  ac_cv_sys_largefile_CC=no
15223     if test "$GCC" != yes; then
15224       ac_save_CC=$CC
15225       while :; do
15226	 # IRIX 6.2 and later do not support large files by default,
15227	 # so use the C compiler's -n32 option if that helps.
15228	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230#include <sys/types.h>
15231 /* Check that off_t can represent 2**63 - 1 correctly.
15232    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15233    since some C++ compilers masquerading as C compilers
15234    incorrectly reject 9223372036854775807.  */
15235#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15236  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15237		       && LARGE_OFF_T % 2147483647 == 1)
15238		      ? 1 : -1];
15239int
15240main ()
15241{
15242
15243  ;
15244  return 0;
15245}
15246_ACEOF
15247	 if ac_fn_c_try_compile "$LINENO"; then :
15248  break
15249fi
15250rm -f core conftest.err conftest.$ac_objext
15251	 CC="$CC -n32"
15252	 if ac_fn_c_try_compile "$LINENO"; then :
15253  ac_cv_sys_largefile_CC=' -n32'; break
15254fi
15255rm -f core conftest.err conftest.$ac_objext
15256	 break
15257       done
15258       CC=$ac_save_CC
15259       rm -f conftest.$ac_ext
15260    fi
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15263$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15264  if test "$ac_cv_sys_largefile_CC" != no; then
15265    CC=$CC$ac_cv_sys_largefile_CC
15266  fi
15267
15268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15269$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15270if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15271  $as_echo_n "(cached) " >&6
15272else
15273  while :; do
15274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275/* end confdefs.h.  */
15276#include <sys/types.h>
15277 /* Check that off_t can represent 2**63 - 1 correctly.
15278    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15279    since some C++ compilers masquerading as C compilers
15280    incorrectly reject 9223372036854775807.  */
15281#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15282  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15283		       && LARGE_OFF_T % 2147483647 == 1)
15284		      ? 1 : -1];
15285int
15286main ()
15287{
15288
15289  ;
15290  return 0;
15291}
15292_ACEOF
15293if ac_fn_c_try_compile "$LINENO"; then :
15294  ac_cv_sys_file_offset_bits=no; break
15295fi
15296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298/* end confdefs.h.  */
15299#define _FILE_OFFSET_BITS 64
15300#include <sys/types.h>
15301 /* Check that off_t can represent 2**63 - 1 correctly.
15302    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15303    since some C++ compilers masquerading as C compilers
15304    incorrectly reject 9223372036854775807.  */
15305#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15306  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15307		       && LARGE_OFF_T % 2147483647 == 1)
15308		      ? 1 : -1];
15309int
15310main ()
15311{
15312
15313  ;
15314  return 0;
15315}
15316_ACEOF
15317if ac_fn_c_try_compile "$LINENO"; then :
15318  ac_cv_sys_file_offset_bits=64; break
15319fi
15320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321  ac_cv_sys_file_offset_bits=unknown
15322  break
15323done
15324fi
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15326$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15327case $ac_cv_sys_file_offset_bits in #(
15328  no | unknown) ;;
15329  *)
15330cat >>confdefs.h <<_ACEOF
15331#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15332_ACEOF
15333;;
15334esac
15335rm -rf conftest*
15336  if test $ac_cv_sys_file_offset_bits = unknown; then
15337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15338$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15339if test "${ac_cv_sys_large_files+set}" = set; then :
15340  $as_echo_n "(cached) " >&6
15341else
15342  while :; do
15343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h.  */
15345#include <sys/types.h>
15346 /* Check that off_t can represent 2**63 - 1 correctly.
15347    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15348    since some C++ compilers masquerading as C compilers
15349    incorrectly reject 9223372036854775807.  */
15350#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15351  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15352		       && LARGE_OFF_T % 2147483647 == 1)
15353		      ? 1 : -1];
15354int
15355main ()
15356{
15357
15358  ;
15359  return 0;
15360}
15361_ACEOF
15362if ac_fn_c_try_compile "$LINENO"; then :
15363  ac_cv_sys_large_files=no; break
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367/* end confdefs.h.  */
15368#define _LARGE_FILES 1
15369#include <sys/types.h>
15370 /* Check that off_t can represent 2**63 - 1 correctly.
15371    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15372    since some C++ compilers masquerading as C compilers
15373    incorrectly reject 9223372036854775807.  */
15374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15375  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15376		       && LARGE_OFF_T % 2147483647 == 1)
15377		      ? 1 : -1];
15378int
15379main ()
15380{
15381
15382  ;
15383  return 0;
15384}
15385_ACEOF
15386if ac_fn_c_try_compile "$LINENO"; then :
15387  ac_cv_sys_large_files=1; break
15388fi
15389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390  ac_cv_sys_large_files=unknown
15391  break
15392done
15393fi
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15395$as_echo "$ac_cv_sys_large_files" >&6; }
15396case $ac_cv_sys_large_files in #(
15397  no | unknown) ;;
15398  *)
15399cat >>confdefs.h <<_ACEOF
15400#define _LARGE_FILES $ac_cv_sys_large_files
15401_ACEOF
15402;;
15403esac
15404rm -rf conftest*
15405  fi
15406fi
15407
15408
15409
15410
15411# Check whether --with-lib-path was given.
15412if test "${with_lib_path+set}" = set; then :
15413  withval=$with_lib_path; LIB_PATH=$withval
15414fi
15415
15416# Check whether --enable-targets was given.
15417if test "${enable_targets+set}" = set; then :
15418  enableval=$enable_targets; case "${enableval}" in
15419  yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15420            ;;
15421  no)       enable_targets= ;;
15422  *)        enable_targets=$enableval ;;
15423esac
15424fi
15425# Check whether --enable-64-bit-bfd was given.
15426if test "${enable_64_bit_bfd+set}" = set; then :
15427  enableval=$enable_64_bit_bfd; case "${enableval}" in
15428  yes)  want64=true  ;;
15429  no)   want64=false ;;
15430  *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15431esac
15432else
15433  want64=false
15434fi
15435
15436
15437# Check whether --with-sysroot was given.
15438if test "${with_sysroot+set}" = set; then :
15439  withval=$with_sysroot;
15440 case ${with_sysroot} in
15441 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15442 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15443 esac
15444
15445 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15446 use_sysroot=yes
15447
15448 if test "x$prefix" = xNONE; then
15449  test_prefix=/usr/local
15450 else
15451  test_prefix=$prefix
15452 fi
15453 if test "x$exec_prefix" = xNONE; then
15454  test_exec_prefix=$test_prefix
15455 else
15456  test_exec_prefix=$exec_prefix
15457 fi
15458 case ${TARGET_SYSTEM_ROOT} in
15459 "${test_prefix}"|"${test_prefix}/"*|\
15460 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15461 '${prefix}'|'${prefix}/'*|\
15462 '${exec_prefix}'|'${exec_prefix}/'*)
15463   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15464   TARGET_SYSTEM_ROOT_DEFINE="$t"
15465   ;;
15466 esac
15467
15468else
15469
15470 use_sysroot=no
15471 TARGET_SYSTEM_ROOT=
15472 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15473
15474fi
15475
15476
15477
15478
15479
15480# Check whether --enable-gold was given.
15481if test "${enable_gold+set}" = set; then :
15482  enableval=$enable_gold; case "${enableval}" in
15483 default)
15484   install_as_default=no
15485   installed_linker=ld.bfd
15486   ;;
15487 yes|no)
15488   install_as_default=yes
15489   installed_linker=ld.bfd
15490   ;;
15491 *)
15492   as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15493   ;;
15494 esac
15495else
15496  install_as_default=yes
15497 installed_linker=ld.bfd
15498fi
15499
15500
15501
15502
15503# Check whether --enable-got was given.
15504if test "${enable_got+set}" = set; then :
15505  enableval=$enable_got; case "${enableval}" in
15506  target | single | negative | multigot)  got_handling=$enableval ;;
15507  *)  as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15508esac
15509else
15510  got_handling=target
15511fi
15512
15513
15514case "${got_handling}" in
15515  target)
15516
15517$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15518 ;;
15519  single)
15520
15521$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15522 ;;
15523  negative)
15524
15525$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15526 ;;
15527  multigot)
15528
15529$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15530 ;;
15531  *)  as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15532esac
15533
15534# PR gas/19109
15535# Decide the default method for compressing debug sections.
15536ac_default_compressed_debug_sections=unset
15537# Provide a configure time option to override our default.
15538# Check whether --enable-compressed_debug_sections was given.
15539if test "${enable_compressed_debug_sections+set}" = set; then :
15540  enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15541  ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15542  ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
15543esac
15544fi
15545
15546# Decide if -z relro should be enabled in ELF linker by default.
15547ac_default_ld_z_relro=unset
15548# Provide a configure time option to override our default.
15549# Check whether --enable-relro was given.
15550if test "${enable_relro+set}" = set; then :
15551  enableval=$enable_relro; case "${enableval}" in
15552  yes)  ac_default_ld_z_relro=1 ;;
15553  no)  ac_default_ld_z_relro=0 ;;
15554esac
15555fi
15556
15557
15558# Set the 'development' global.
15559. $srcdir/../bfd/development.sh
15560
15561# Default set of GCC warnings to enable.
15562GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15563
15564# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566/* end confdefs.h.  */
15567__GNUC__
15568_ACEOF
15569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15570  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15571
15572else
15573  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15574fi
15575rm -f conftest*
15576
15577
15578# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580/* end confdefs.h.  */
15581__GNUC__
15582_ACEOF
15583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15584  $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15585
15586else
15587  GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15588fi
15589rm -f conftest*
15590
15591
15592# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15593WARN_WRITE_STRINGS=""
15594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595/* end confdefs.h.  */
15596__GNUC__
15597_ACEOF
15598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599  $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15600
15601else
15602  WARN_WRITE_STRINGS="-Wwrite-strings"
15603fi
15604rm -f conftest*
15605
15606
15607# Check whether --enable-werror was given.
15608if test "${enable_werror+set}" = set; then :
15609  enableval=$enable_werror; case "${enableval}" in
15610     yes | y) ERROR_ON_WARNING="yes" ;;
15611     no | n)  ERROR_ON_WARNING="no" ;;
15612     *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15613   esac
15614fi
15615
15616
15617# Disable -Wformat by default when using gcc on mingw
15618case "${host}" in
15619  *-*-mingw32*)
15620    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15621      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15622    fi
15623    ;;
15624  *) ;;
15625esac
15626
15627# Enable -Werror by default when using gcc.  Turn it off for releases.
15628if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15629    ERROR_ON_WARNING=yes
15630fi
15631
15632NO_WERROR=
15633if test "${ERROR_ON_WARNING}" = yes ; then
15634    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15635    NO_WERROR="-Wno-error"
15636fi
15637
15638if test "${GCC}" = yes ; then
15639  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15640fi
15641
15642# Check whether --enable-build-warnings was given.
15643if test "${enable_build_warnings+set}" = set; then :
15644  enableval=$enable_build_warnings; case "${enableval}" in
15645  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15646  no)	if test "${GCC}" = yes ; then
15647	  WARN_CFLAGS="-w"
15648	fi;;
15649  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15650        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15651  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
15652        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15653  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15654esac
15655fi
15656
15657
15658if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15659  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15660fi
15661
15662
15663
15664
15665
15666
15667
15668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15669$as_echo_n "checking for LC_MESSAGES... " >&6; }
15670if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15671  $as_echo_n "(cached) " >&6
15672else
15673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674/* end confdefs.h.  */
15675#include <locale.h>
15676int
15677main ()
15678{
15679return LC_MESSAGES
15680  ;
15681  return 0;
15682}
15683_ACEOF
15684if ac_fn_c_try_link "$LINENO"; then :
15685  am_cv_val_LC_MESSAGES=yes
15686else
15687  am_cv_val_LC_MESSAGES=no
15688fi
15689rm -f core conftest.err conftest.$ac_objext \
15690    conftest$ac_exeext conftest.$ac_ext
15691fi
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15693$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15694  if test $am_cv_val_LC_MESSAGES = yes; then
15695
15696$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15697
15698  fi
15699
15700
15701ac_config_headers="$ac_config_headers config.h:config.in"
15702
15703
15704# PR 14072
15705
15706
15707if test -z "$target" ; then
15708    as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15709fi
15710if test -z "$host" ; then
15711    as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15712fi
15713
15714# host-specific stuff:
15715
15716ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15717# If we haven't got the data from the intl directory,
15718# assume NLS is disabled.
15719USE_NLS=no
15720LIBINTL=
15721LIBINTL_DEP=
15722INCINTL=
15723XGETTEXT=
15724GMSGFMT=
15725POSUB=
15726
15727if test -f  ../intl/config.intl; then
15728  .  ../intl/config.intl
15729fi
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15731$as_echo_n "checking whether NLS is requested... " >&6; }
15732if test x"$USE_NLS" != xyes; then
15733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734$as_echo "no" >&6; }
15735else
15736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737$as_echo "yes" >&6; }
15738
15739$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15740
15741
15742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15743$as_echo_n "checking for catalogs to be installed... " >&6; }
15744  # Look for .po and .gmo files in the source directory.
15745  CATALOGS=
15746  XLINGUAS=
15747  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15748    # If there aren't any .gmo files the shell will give us the
15749    # literal string "../path/to/srcdir/po/*.gmo" which has to be
15750    # weeded out.
15751    case "$cat" in *\**)
15752      continue;;
15753    esac
15754    # The quadruple backslash is collapsed to a double backslash
15755    # by the backticks, then collapsed again by the double quotes,
15756    # leaving us with one backslash in the sed expression (right
15757    # before the dot that mustn't act as a wildcard).
15758    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15759    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15760    # The user is allowed to set LINGUAS to a list of languages to
15761    # install catalogs for.  If it's empty that means "all of them."
15762    if test "x$LINGUAS" = x; then
15763      CATALOGS="$CATALOGS $cat"
15764      XLINGUAS="$XLINGUAS $lang"
15765    else
15766      case "$LINGUAS" in *$lang*)
15767        CATALOGS="$CATALOGS $cat"
15768        XLINGUAS="$XLINGUAS $lang"
15769        ;;
15770      esac
15771    fi
15772  done
15773  LINGUAS="$XLINGUAS"
15774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15775$as_echo "$LINGUAS" >&6; }
15776
15777
15778    DATADIRNAME=share
15779
15780  INSTOBJEXT=.mo
15781
15782  GENCAT=gencat
15783
15784  CATOBJEXT=.gmo
15785
15786fi
15787
15788        MKINSTALLDIRS=
15789  if test -n "$ac_aux_dir"; then
15790    case "$ac_aux_dir" in
15791      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15792      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15793    esac
15794  fi
15795  if test -z "$MKINSTALLDIRS"; then
15796    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15797  fi
15798
15799
15800
15801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15802$as_echo_n "checking whether NLS is requested... " >&6; }
15803    # Check whether --enable-nls was given.
15804if test "${enable_nls+set}" = set; then :
15805  enableval=$enable_nls; USE_NLS=$enableval
15806else
15807  USE_NLS=yes
15808fi
15809
15810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15811$as_echo "$USE_NLS" >&6; }
15812
15813
15814
15815
15816
15817
15818# Prepare PATH_SEPARATOR.
15819# The user is always right.
15820if test "${PATH_SEPARATOR+set}" != set; then
15821  echo "#! /bin/sh" >conf$$.sh
15822  echo  "exit 0"   >>conf$$.sh
15823  chmod +x conf$$.sh
15824  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15825    PATH_SEPARATOR=';'
15826  else
15827    PATH_SEPARATOR=:
15828  fi
15829  rm -f conf$$.sh
15830fi
15831
15832# Find out how to test for executable files. Don't use a zero-byte file,
15833# as systems may use methods other than mode bits to determine executability.
15834cat >conf$$.file <<_ASEOF
15835#! /bin/sh
15836exit 0
15837_ASEOF
15838chmod +x conf$$.file
15839if test -x conf$$.file >/dev/null 2>&1; then
15840  ac_executable_p="test -x"
15841else
15842  ac_executable_p="test -f"
15843fi
15844rm -f conf$$.file
15845
15846# Extract the first word of "msgfmt", so it can be a program name with args.
15847set dummy msgfmt; ac_word=$2
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15849$as_echo_n "checking for $ac_word... " >&6; }
15850if test "${ac_cv_path_MSGFMT+set}" = set; then :
15851  $as_echo_n "(cached) " >&6
15852else
15853  case "$MSGFMT" in
15854  [\\/]* | ?:[\\/]*)
15855    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15856    ;;
15857  *)
15858    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15859    for ac_dir in $PATH; do
15860      IFS="$ac_save_IFS"
15861      test -z "$ac_dir" && ac_dir=.
15862      for ac_exec_ext in '' $ac_executable_extensions; do
15863        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15864          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15865     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15866            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15867            break 2
15868          fi
15869        fi
15870      done
15871    done
15872    IFS="$ac_save_IFS"
15873  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15874    ;;
15875esac
15876fi
15877MSGFMT="$ac_cv_path_MSGFMT"
15878if test "$MSGFMT" != ":"; then
15879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15880$as_echo "$MSGFMT" >&6; }
15881else
15882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883$as_echo "no" >&6; }
15884fi
15885
15886  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15887set dummy gmsgfmt; ac_word=$2
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889$as_echo_n "checking for $ac_word... " >&6; }
15890if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15891  $as_echo_n "(cached) " >&6
15892else
15893  case $GMSGFMT in
15894  [\\/]* | ?:[\\/]*)
15895  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15896  ;;
15897  *)
15898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15899for as_dir in $PATH
15900do
15901  IFS=$as_save_IFS
15902  test -z "$as_dir" && as_dir=.
15903    for ac_exec_ext in '' $ac_executable_extensions; do
15904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15905    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15907    break 2
15908  fi
15909done
15910  done
15911IFS=$as_save_IFS
15912
15913  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15914  ;;
15915esac
15916fi
15917GMSGFMT=$ac_cv_path_GMSGFMT
15918if test -n "$GMSGFMT"; then
15919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15920$as_echo "$GMSGFMT" >&6; }
15921else
15922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923$as_echo "no" >&6; }
15924fi
15925
15926
15927
15928
15929# Prepare PATH_SEPARATOR.
15930# The user is always right.
15931if test "${PATH_SEPARATOR+set}" != set; then
15932  echo "#! /bin/sh" >conf$$.sh
15933  echo  "exit 0"   >>conf$$.sh
15934  chmod +x conf$$.sh
15935  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15936    PATH_SEPARATOR=';'
15937  else
15938    PATH_SEPARATOR=:
15939  fi
15940  rm -f conf$$.sh
15941fi
15942
15943# Find out how to test for executable files. Don't use a zero-byte file,
15944# as systems may use methods other than mode bits to determine executability.
15945cat >conf$$.file <<_ASEOF
15946#! /bin/sh
15947exit 0
15948_ASEOF
15949chmod +x conf$$.file
15950if test -x conf$$.file >/dev/null 2>&1; then
15951  ac_executable_p="test -x"
15952else
15953  ac_executable_p="test -f"
15954fi
15955rm -f conf$$.file
15956
15957# Extract the first word of "xgettext", so it can be a program name with args.
15958set dummy xgettext; ac_word=$2
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15960$as_echo_n "checking for $ac_word... " >&6; }
15961if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15962  $as_echo_n "(cached) " >&6
15963else
15964  case "$XGETTEXT" in
15965  [\\/]* | ?:[\\/]*)
15966    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15967    ;;
15968  *)
15969    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15970    for ac_dir in $PATH; do
15971      IFS="$ac_save_IFS"
15972      test -z "$ac_dir" && ac_dir=.
15973      for ac_exec_ext in '' $ac_executable_extensions; do
15974        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15975          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15976     (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
15977            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15978            break 2
15979          fi
15980        fi
15981      done
15982    done
15983    IFS="$ac_save_IFS"
15984  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15985    ;;
15986esac
15987fi
15988XGETTEXT="$ac_cv_path_XGETTEXT"
15989if test "$XGETTEXT" != ":"; then
15990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15991$as_echo "$XGETTEXT" >&6; }
15992else
15993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994$as_echo "no" >&6; }
15995fi
15996
15997    rm -f messages.po
15998
15999
16000# Prepare PATH_SEPARATOR.
16001# The user is always right.
16002if test "${PATH_SEPARATOR+set}" != set; then
16003  echo "#! /bin/sh" >conf$$.sh
16004  echo  "exit 0"   >>conf$$.sh
16005  chmod +x conf$$.sh
16006  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16007    PATH_SEPARATOR=';'
16008  else
16009    PATH_SEPARATOR=:
16010  fi
16011  rm -f conf$$.sh
16012fi
16013
16014# Find out how to test for executable files. Don't use a zero-byte file,
16015# as systems may use methods other than mode bits to determine executability.
16016cat >conf$$.file <<_ASEOF
16017#! /bin/sh
16018exit 0
16019_ASEOF
16020chmod +x conf$$.file
16021if test -x conf$$.file >/dev/null 2>&1; then
16022  ac_executable_p="test -x"
16023else
16024  ac_executable_p="test -f"
16025fi
16026rm -f conf$$.file
16027
16028# Extract the first word of "msgmerge", so it can be a program name with args.
16029set dummy msgmerge; ac_word=$2
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16031$as_echo_n "checking for $ac_word... " >&6; }
16032if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16033  $as_echo_n "(cached) " >&6
16034else
16035  case "$MSGMERGE" in
16036  [\\/]* | ?:[\\/]*)
16037    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16038    ;;
16039  *)
16040    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16041    for ac_dir in $PATH; do
16042      IFS="$ac_save_IFS"
16043      test -z "$ac_dir" && ac_dir=.
16044      for ac_exec_ext in '' $ac_executable_extensions; do
16045        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16046          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16047            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16048            break 2
16049          fi
16050        fi
16051      done
16052    done
16053    IFS="$ac_save_IFS"
16054  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16055    ;;
16056esac
16057fi
16058MSGMERGE="$ac_cv_path_MSGMERGE"
16059if test "$MSGMERGE" != ":"; then
16060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16061$as_echo "$MSGMERGE" >&6; }
16062else
16063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16064$as_echo "no" >&6; }
16065fi
16066
16067
16068      if test "$GMSGFMT" != ":"; then
16069            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16070       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16071      : ;
16072    else
16073      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16074      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16075$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16076      GMSGFMT=":"
16077    fi
16078  fi
16079
16080      if test "$XGETTEXT" != ":"; then
16081            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16082       (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
16083      : ;
16084    else
16085      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16086$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16087      XGETTEXT=":"
16088    fi
16089        rm -f messages.po
16090  fi
16091
16092  ac_config_commands="$ac_config_commands default-1"
16093
16094
16095
16096
16097
16098for ac_prog in 'bison -y' byacc
16099do
16100  # Extract the first word of "$ac_prog", so it can be a program name with args.
16101set dummy $ac_prog; ac_word=$2
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16103$as_echo_n "checking for $ac_word... " >&6; }
16104if test "${ac_cv_prog_YACC+set}" = set; then :
16105  $as_echo_n "(cached) " >&6
16106else
16107  if test -n "$YACC"; then
16108  ac_cv_prog_YACC="$YACC" # Let the user override the test.
16109else
16110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111for as_dir in $PATH
16112do
16113  IFS=$as_save_IFS
16114  test -z "$as_dir" && as_dir=.
16115    for ac_exec_ext in '' $ac_executable_extensions; do
16116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16117    ac_cv_prog_YACC="$ac_prog"
16118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16119    break 2
16120  fi
16121done
16122  done
16123IFS=$as_save_IFS
16124
16125fi
16126fi
16127YACC=$ac_cv_prog_YACC
16128if test -n "$YACC"; then
16129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16130$as_echo "$YACC" >&6; }
16131else
16132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133$as_echo "no" >&6; }
16134fi
16135
16136
16137  test -n "$YACC" && break
16138done
16139test -n "$YACC" || YACC="yacc"
16140
16141for ac_prog in flex lex
16142do
16143  # Extract the first word of "$ac_prog", so it can be a program name with args.
16144set dummy $ac_prog; ac_word=$2
16145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16146$as_echo_n "checking for $ac_word... " >&6; }
16147if test "${ac_cv_prog_LEX+set}" = set; then :
16148  $as_echo_n "(cached) " >&6
16149else
16150  if test -n "$LEX"; then
16151  ac_cv_prog_LEX="$LEX" # Let the user override the test.
16152else
16153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154for as_dir in $PATH
16155do
16156  IFS=$as_save_IFS
16157  test -z "$as_dir" && as_dir=.
16158    for ac_exec_ext in '' $ac_executable_extensions; do
16159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16160    ac_cv_prog_LEX="$ac_prog"
16161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16162    break 2
16163  fi
16164done
16165  done
16166IFS=$as_save_IFS
16167
16168fi
16169fi
16170LEX=$ac_cv_prog_LEX
16171if test -n "$LEX"; then
16172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16173$as_echo "$LEX" >&6; }
16174else
16175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176$as_echo "no" >&6; }
16177fi
16178
16179
16180  test -n "$LEX" && break
16181done
16182test -n "$LEX" || LEX=":"
16183
16184case "$LEX" in
16185  :|*"missing "*) ;;
16186  *) cat >conftest.l <<_ACEOF
16187%%
16188a { ECHO; }
16189b { REJECT; }
16190c { yymore (); }
16191d { yyless (1); }
16192e { yyless (input () != 0); }
16193f { unput (yytext[0]); }
16194. { BEGIN INITIAL; }
16195%%
16196#ifdef YYTEXT_POINTER
16197extern char *yytext;
16198#endif
16199int
16200main (void)
16201{
16202  return ! yylex () + ! yywrap ();
16203}
16204_ACEOF
16205{ { ac_try="$LEX conftest.l"
16206case "(($ac_try" in
16207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208  *) ac_try_echo=$ac_try;;
16209esac
16210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16211$as_echo "$ac_try_echo"; } >&5
16212  (eval "$LEX conftest.l") 2>&5
16213  ac_status=$?
16214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16215  test $ac_status = 0; }
16216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16217$as_echo_n "checking lex output file root... " >&6; }
16218if test "${ac_cv_prog_lex_root+set}" = set; then :
16219  $as_echo_n "(cached) " >&6
16220else
16221
16222if test -f lex.yy.c; then
16223  ac_cv_prog_lex_root=lex.yy
16224elif test -f lexyy.c; then
16225  ac_cv_prog_lex_root=lexyy
16226else
16227  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16228fi
16229fi
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16231$as_echo "$ac_cv_prog_lex_root" >&6; }
16232LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16233
16234if test -z "${LEXLIB+set}"; then
16235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16236$as_echo_n "checking lex library... " >&6; }
16237if test "${ac_cv_lib_lex+set}" = set; then :
16238  $as_echo_n "(cached) " >&6
16239else
16240
16241    ac_save_LIBS=$LIBS
16242    ac_cv_lib_lex='none needed'
16243    for ac_lib in '' -lfl -ll; do
16244      LIBS="$ac_lib $ac_save_LIBS"
16245      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246/* end confdefs.h.  */
16247`cat $LEX_OUTPUT_ROOT.c`
16248_ACEOF
16249if ac_fn_c_try_link "$LINENO"; then :
16250  ac_cv_lib_lex=$ac_lib
16251fi
16252rm -f core conftest.err conftest.$ac_objext \
16253    conftest$ac_exeext conftest.$ac_ext
16254      test "$ac_cv_lib_lex" != 'none needed' && break
16255    done
16256    LIBS=$ac_save_LIBS
16257
16258fi
16259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16260$as_echo "$ac_cv_lib_lex" >&6; }
16261  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16262fi
16263
16264
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16266$as_echo_n "checking whether yytext is a pointer... " >&6; }
16267if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16268  $as_echo_n "(cached) " >&6
16269else
16270  # POSIX says lex can declare yytext either as a pointer or an array; the
16271# default is implementation-dependent.  Figure out which it is, since
16272# not all implementations provide the %pointer and %array declarations.
16273ac_cv_prog_lex_yytext_pointer=no
16274ac_save_LIBS=$LIBS
16275LIBS="$LEXLIB $ac_save_LIBS"
16276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277/* end confdefs.h.  */
16278#define YYTEXT_POINTER 1
16279`cat $LEX_OUTPUT_ROOT.c`
16280_ACEOF
16281if ac_fn_c_try_link "$LINENO"; then :
16282  ac_cv_prog_lex_yytext_pointer=yes
16283fi
16284rm -f core conftest.err conftest.$ac_objext \
16285    conftest$ac_exeext conftest.$ac_ext
16286LIBS=$ac_save_LIBS
16287
16288fi
16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16290$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16291if test $ac_cv_prog_lex_yytext_pointer = yes; then
16292
16293$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16294
16295fi
16296rm -f conftest.l $LEX_OUTPUT_ROOT.c
16297 ;;
16298esac
16299if test "$LEX" = :; then
16300  LEX=${am_missing_run}flex
16301fi
16302
16303
16304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16305$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16306    # Check whether --enable-maintainer-mode was given.
16307if test "${enable_maintainer_mode+set}" = set; then :
16308  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16309else
16310  USE_MAINTAINER_MODE=no
16311fi
16312
16313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16314$as_echo "$USE_MAINTAINER_MODE" >&6; }
16315   if test $USE_MAINTAINER_MODE = yes; then
16316  MAINTAINER_MODE_TRUE=
16317  MAINTAINER_MODE_FALSE='#'
16318else
16319  MAINTAINER_MODE_TRUE='#'
16320  MAINTAINER_MODE_FALSE=
16321fi
16322
16323  MAINT=$MAINTAINER_MODE_TRUE
16324
16325
16326 if false; then
16327  GENINSRC_NEVER_TRUE=
16328  GENINSRC_NEVER_FALSE='#'
16329else
16330  GENINSRC_NEVER_TRUE='#'
16331  GENINSRC_NEVER_FALSE=
16332fi
16333
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16335$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16336if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16337  $as_echo_n "(cached) " >&6
16338else
16339   echo abfoo >t1
16340  echo cdfoo >t2
16341  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16342  if cmp t1 t2 2 2 > /dev/null 2>&1; then
16343    if cmp t1 t2 1 1 > /dev/null 2>&1; then
16344      :
16345    else
16346      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16347    fi
16348  fi
16349  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16350    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16351      :
16352    else
16353      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16354    fi
16355  fi
16356  rm t1 t2
16357
16358fi
16359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16360$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16361do_compare="$gcc_cv_prog_cmp_skip"
16362
16363
16364
16365. ${srcdir}/configure.host
16366
16367
16368
16369
16370
16371
16372
16373
16374for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16375do :
16376  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16378eval as_val=\$$as_ac_Header
16379   if test "x$as_val" = x""yes; then :
16380  cat >>confdefs.h <<_ACEOF
16381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16382_ACEOF
16383
16384fi
16385
16386done
16387
16388for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16389do :
16390  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16391ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16392eval as_val=\$$as_ac_Header
16393   if test "x$as_val" = x""yes; then :
16394  cat >>confdefs.h <<_ACEOF
16395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16396_ACEOF
16397
16398fi
16399
16400done
16401
16402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16403$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16404if test "${gcc_cv_header_string+set}" = set; then :
16405  $as_echo_n "(cached) " >&6
16406else
16407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h.  */
16409#include <string.h>
16410#include <strings.h>
16411int
16412main ()
16413{
16414
16415  ;
16416  return 0;
16417}
16418_ACEOF
16419if ac_fn_c_try_compile "$LINENO"; then :
16420  gcc_cv_header_string=yes
16421else
16422  gcc_cv_header_string=no
16423fi
16424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16427$as_echo "$gcc_cv_header_string" >&6; }
16428if test $gcc_cv_header_string = yes; then
16429
16430$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16431
16432fi
16433
16434for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16435do :
16436  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16437ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16438eval as_val=\$$as_ac_var
16439   if test "x$as_val" = x""yes; then :
16440  cat >>confdefs.h <<_ACEOF
16441#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16442_ACEOF
16443
16444fi
16445done
16446
16447for ac_func in open lseek close
16448do :
16449  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16450ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16451eval as_val=\$$as_ac_var
16452   if test "x$as_val" = x""yes; then :
16453  cat >>confdefs.h <<_ACEOF
16454#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455_ACEOF
16456
16457fi
16458done
16459
16460ac_header_dirent=no
16461for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16462  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16464$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16466  $as_echo_n "(cached) " >&6
16467else
16468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469/* end confdefs.h.  */
16470#include <sys/types.h>
16471#include <$ac_hdr>
16472
16473int
16474main ()
16475{
16476if ((DIR *) 0)
16477return 0;
16478  ;
16479  return 0;
16480}
16481_ACEOF
16482if ac_fn_c_try_compile "$LINENO"; then :
16483  eval "$as_ac_Header=yes"
16484else
16485  eval "$as_ac_Header=no"
16486fi
16487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488fi
16489eval ac_res=\$$as_ac_Header
16490	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16491$as_echo "$ac_res" >&6; }
16492eval as_val=\$$as_ac_Header
16493   if test "x$as_val" = x""yes; then :
16494  cat >>confdefs.h <<_ACEOF
16495#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16496_ACEOF
16497
16498ac_header_dirent=$ac_hdr; break
16499fi
16500
16501done
16502# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16503if test $ac_header_dirent = dirent.h; then
16504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16505$as_echo_n "checking for library containing opendir... " >&6; }
16506if test "${ac_cv_search_opendir+set}" = set; then :
16507  $as_echo_n "(cached) " >&6
16508else
16509  ac_func_search_save_LIBS=$LIBS
16510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511/* end confdefs.h.  */
16512
16513/* Override any GCC internal prototype to avoid an error.
16514   Use char because int might match the return type of a GCC
16515   builtin and then its argument prototype would still apply.  */
16516#ifdef __cplusplus
16517extern "C"
16518#endif
16519char opendir ();
16520int
16521main ()
16522{
16523return opendir ();
16524  ;
16525  return 0;
16526}
16527_ACEOF
16528for ac_lib in '' dir; do
16529  if test -z "$ac_lib"; then
16530    ac_res="none required"
16531  else
16532    ac_res=-l$ac_lib
16533    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16534  fi
16535  if ac_fn_c_try_link "$LINENO"; then :
16536  ac_cv_search_opendir=$ac_res
16537fi
16538rm -f core conftest.err conftest.$ac_objext \
16539    conftest$ac_exeext
16540  if test "${ac_cv_search_opendir+set}" = set; then :
16541  break
16542fi
16543done
16544if test "${ac_cv_search_opendir+set}" = set; then :
16545
16546else
16547  ac_cv_search_opendir=no
16548fi
16549rm conftest.$ac_ext
16550LIBS=$ac_func_search_save_LIBS
16551fi
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16553$as_echo "$ac_cv_search_opendir" >&6; }
16554ac_res=$ac_cv_search_opendir
16555if test "$ac_res" != no; then :
16556  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16557
16558fi
16559
16560else
16561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16562$as_echo_n "checking for library containing opendir... " >&6; }
16563if test "${ac_cv_search_opendir+set}" = set; then :
16564  $as_echo_n "(cached) " >&6
16565else
16566  ac_func_search_save_LIBS=$LIBS
16567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568/* end confdefs.h.  */
16569
16570/* Override any GCC internal prototype to avoid an error.
16571   Use char because int might match the return type of a GCC
16572   builtin and then its argument prototype would still apply.  */
16573#ifdef __cplusplus
16574extern "C"
16575#endif
16576char opendir ();
16577int
16578main ()
16579{
16580return opendir ();
16581  ;
16582  return 0;
16583}
16584_ACEOF
16585for ac_lib in '' x; do
16586  if test -z "$ac_lib"; then
16587    ac_res="none required"
16588  else
16589    ac_res=-l$ac_lib
16590    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16591  fi
16592  if ac_fn_c_try_link "$LINENO"; then :
16593  ac_cv_search_opendir=$ac_res
16594fi
16595rm -f core conftest.err conftest.$ac_objext \
16596    conftest$ac_exeext
16597  if test "${ac_cv_search_opendir+set}" = set; then :
16598  break
16599fi
16600done
16601if test "${ac_cv_search_opendir+set}" = set; then :
16602
16603else
16604  ac_cv_search_opendir=no
16605fi
16606rm conftest.$ac_ext
16607LIBS=$ac_func_search_save_LIBS
16608fi
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16610$as_echo "$ac_cv_search_opendir" >&6; }
16611ac_res=$ac_cv_search_opendir
16612if test "$ac_res" != no; then :
16613  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16614
16615fi
16616
16617fi
16618
16619
16620for ac_header in stdlib.h unistd.h
16621do :
16622  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16623ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16624eval as_val=\$$as_ac_Header
16625   if test "x$as_val" = x""yes; then :
16626  cat >>confdefs.h <<_ACEOF
16627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16628_ACEOF
16629
16630fi
16631
16632done
16633
16634for ac_func in getpagesize
16635do :
16636  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16637if test "x$ac_cv_func_getpagesize" = x""yes; then :
16638  cat >>confdefs.h <<_ACEOF
16639#define HAVE_GETPAGESIZE 1
16640_ACEOF
16641
16642fi
16643done
16644
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16646$as_echo_n "checking for working mmap... " >&6; }
16647if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16648  $as_echo_n "(cached) " >&6
16649else
16650  if test "$cross_compiling" = yes; then :
16651  ac_cv_func_mmap_fixed_mapped=no
16652else
16653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h.  */
16655$ac_includes_default
16656/* malloc might have been renamed as rpl_malloc. */
16657#undef malloc
16658
16659/* Thanks to Mike Haertel and Jim Avera for this test.
16660   Here is a matrix of mmap possibilities:
16661	mmap private not fixed
16662	mmap private fixed at somewhere currently unmapped
16663	mmap private fixed at somewhere already mapped
16664	mmap shared not fixed
16665	mmap shared fixed at somewhere currently unmapped
16666	mmap shared fixed at somewhere already mapped
16667   For private mappings, we should verify that changes cannot be read()
16668   back from the file, nor mmap's back from the file at a different
16669   address.  (There have been systems where private was not correctly
16670   implemented like the infamous i386 svr4.0, and systems where the
16671   VM page cache was not coherent with the file system buffer cache
16672   like early versions of FreeBSD and possibly contemporary NetBSD.)
16673   For shared mappings, we should conversely verify that changes get
16674   propagated back to all the places they're supposed to be.
16675
16676   Grep wants private fixed already mapped.
16677   The main things grep needs to know about mmap are:
16678   * does it exist and is it safe to write into the mmap'd area
16679   * how to use it (BSD variants)  */
16680
16681#include <fcntl.h>
16682#include <sys/mman.h>
16683
16684#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16685char *malloc ();
16686#endif
16687
16688/* This mess was copied from the GNU getpagesize.h.  */
16689#ifndef HAVE_GETPAGESIZE
16690/* Assume that all systems that can run configure have sys/param.h.  */
16691# ifndef HAVE_SYS_PARAM_H
16692#  define HAVE_SYS_PARAM_H 1
16693# endif
16694
16695# ifdef _SC_PAGESIZE
16696#  define getpagesize() sysconf(_SC_PAGESIZE)
16697# else /* no _SC_PAGESIZE */
16698#  ifdef HAVE_SYS_PARAM_H
16699#   include <sys/param.h>
16700#   ifdef EXEC_PAGESIZE
16701#    define getpagesize() EXEC_PAGESIZE
16702#   else /* no EXEC_PAGESIZE */
16703#    ifdef NBPG
16704#     define getpagesize() NBPG * CLSIZE
16705#     ifndef CLSIZE
16706#      define CLSIZE 1
16707#     endif /* no CLSIZE */
16708#    else /* no NBPG */
16709#     ifdef NBPC
16710#      define getpagesize() NBPC
16711#     else /* no NBPC */
16712#      ifdef PAGESIZE
16713#       define getpagesize() PAGESIZE
16714#      endif /* PAGESIZE */
16715#     endif /* no NBPC */
16716#    endif /* no NBPG */
16717#   endif /* no EXEC_PAGESIZE */
16718#  else /* no HAVE_SYS_PARAM_H */
16719#   define getpagesize() 8192	/* punt totally */
16720#  endif /* no HAVE_SYS_PARAM_H */
16721# endif /* no _SC_PAGESIZE */
16722
16723#endif /* no HAVE_GETPAGESIZE */
16724
16725int
16726main ()
16727{
16728  char *data, *data2, *data3;
16729  int i, pagesize;
16730  int fd;
16731
16732  pagesize = getpagesize ();
16733
16734  /* First, make a file with some known garbage in it. */
16735  data = (char *) malloc (pagesize);
16736  if (!data)
16737    return 1;
16738  for (i = 0; i < pagesize; ++i)
16739    *(data + i) = rand ();
16740  umask (0);
16741  fd = creat ("conftest.mmap", 0600);
16742  if (fd < 0)
16743    return 1;
16744  if (write (fd, data, pagesize) != pagesize)
16745    return 1;
16746  close (fd);
16747
16748  /* Next, try to mmap the file at a fixed address which already has
16749     something else allocated at it.  If we can, also make sure that
16750     we see the same garbage.  */
16751  fd = open ("conftest.mmap", O_RDWR);
16752  if (fd < 0)
16753    return 1;
16754  data2 = (char *) malloc (2 * pagesize);
16755  if (!data2)
16756    return 1;
16757  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16758  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16759		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16760    return 1;
16761  for (i = 0; i < pagesize; ++i)
16762    if (*(data + i) != *(data2 + i))
16763      return 1;
16764
16765  /* Finally, make sure that changes to the mapped area do not
16766     percolate back to the file as seen by read().  (This is a bug on
16767     some variants of i386 svr4.0.)  */
16768  for (i = 0; i < pagesize; ++i)
16769    *(data2 + i) = *(data2 + i) + 1;
16770  data3 = (char *) malloc (pagesize);
16771  if (!data3)
16772    return 1;
16773  if (read (fd, data3, pagesize) != pagesize)
16774    return 1;
16775  for (i = 0; i < pagesize; ++i)
16776    if (*(data + i) != *(data3 + i))
16777      return 1;
16778  close (fd);
16779  return 0;
16780}
16781_ACEOF
16782if ac_fn_c_try_run "$LINENO"; then :
16783  ac_cv_func_mmap_fixed_mapped=yes
16784else
16785  ac_cv_func_mmap_fixed_mapped=no
16786fi
16787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16788  conftest.$ac_objext conftest.beam conftest.$ac_ext
16789fi
16790
16791fi
16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16793$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16794if test $ac_cv_func_mmap_fixed_mapped = yes; then
16795
16796$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16797
16798fi
16799rm -f conftest.mmap
16800
16801
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16803$as_echo_n "checking for library containing dlopen... " >&6; }
16804if test "${ac_cv_search_dlopen+set}" = set; then :
16805  $as_echo_n "(cached) " >&6
16806else
16807  ac_func_search_save_LIBS=$LIBS
16808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809/* end confdefs.h.  */
16810
16811/* Override any GCC internal prototype to avoid an error.
16812   Use char because int might match the return type of a GCC
16813   builtin and then its argument prototype would still apply.  */
16814#ifdef __cplusplus
16815extern "C"
16816#endif
16817char dlopen ();
16818int
16819main ()
16820{
16821return dlopen ();
16822  ;
16823  return 0;
16824}
16825_ACEOF
16826for ac_lib in '' dl; do
16827  if test -z "$ac_lib"; then
16828    ac_res="none required"
16829  else
16830    ac_res=-l$ac_lib
16831    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16832  fi
16833  if ac_fn_c_try_link "$LINENO"; then :
16834  ac_cv_search_dlopen=$ac_res
16835fi
16836rm -f core conftest.err conftest.$ac_objext \
16837    conftest$ac_exeext
16838  if test "${ac_cv_search_dlopen+set}" = set; then :
16839  break
16840fi
16841done
16842if test "${ac_cv_search_dlopen+set}" = set; then :
16843
16844else
16845  ac_cv_search_dlopen=no
16846fi
16847rm conftest.$ac_ext
16848LIBS=$ac_func_search_save_LIBS
16849fi
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16851$as_echo "$ac_cv_search_dlopen" >&6; }
16852ac_res=$ac_cv_search_dlopen
16853if test "$ac_res" != no; then :
16854  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16855
16856fi
16857
16858 if test x$plugins = xyes; then
16859  ENABLE_PLUGINS_TRUE=
16860  ENABLE_PLUGINS_FALSE='#'
16861else
16862  ENABLE_PLUGINS_TRUE='#'
16863  ENABLE_PLUGINS_FALSE=
16864fi
16865
16866
16867# Check whether --enable-initfini-array was given.
16868if test "${enable_initfini_array+set}" = set; then :
16869  enableval=$enable_initfini_array;
16870else
16871
16872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16873$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16874if test "${gcc_cv_initfini_array+set}" = set; then :
16875  $as_echo_n "(cached) " >&6
16876else
16877    if test "x${build}" = "x${target}" ; then
16878    if test "$cross_compiling" = yes; then :
16879  gcc_cv_initfini_array=no
16880else
16881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882/* end confdefs.h.  */
16883
16884static int x = -1;
16885int main (void) { return x; }
16886int foo (void) { x = 0; }
16887int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16888_ACEOF
16889if ac_fn_c_try_run "$LINENO"; then :
16890  gcc_cv_initfini_array=yes
16891 else
16892  gcc_cv_initfini_array=no
16893fi
16894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16895  conftest.$ac_objext conftest.beam conftest.$ac_ext
16896fi
16897
16898   else
16899     gcc_cv_initfini_array=no
16900   fi
16901fi
16902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16903$as_echo "$gcc_cv_initfini_array" >&6; }
16904  enable_initfini_array=$gcc_cv_initfini_array
16905
16906 fi
16907
16908if test $enable_initfini_array = yes; then
16909
16910$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16911
16912fi
16913
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16915$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16916if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16917  $as_echo_n "(cached) " >&6
16918else
16919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920/* end confdefs.h.  */
16921#include <unistd.h>
16922int
16923main ()
16924{
16925extern int getopt (int, char *const*, const char *);
16926  ;
16927  return 0;
16928}
16929_ACEOF
16930if ac_fn_c_try_compile "$LINENO"; then :
16931  ld_cv_decl_getopt_unistd_h=yes
16932else
16933  ld_cv_decl_getopt_unistd_h=no
16934fi
16935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936fi
16937
16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16939$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16940if test $ld_cv_decl_getopt_unistd_h = yes; then
16941
16942$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16943
16944fi
16945
16946
16947case "${host}" in
16948*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16949
16950$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16951 ;;
16952esac
16953
16954ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16955if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16956  ac_have_decl=1
16957else
16958  ac_have_decl=0
16959fi
16960
16961cat >>confdefs.h <<_ACEOF
16962#define HAVE_DECL_STRSTR $ac_have_decl
16963_ACEOF
16964ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16965if test "x$ac_cv_have_decl_free" = x""yes; then :
16966  ac_have_decl=1
16967else
16968  ac_have_decl=0
16969fi
16970
16971cat >>confdefs.h <<_ACEOF
16972#define HAVE_DECL_FREE $ac_have_decl
16973_ACEOF
16974ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16975if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16976  ac_have_decl=1
16977else
16978  ac_have_decl=0
16979fi
16980
16981cat >>confdefs.h <<_ACEOF
16982#define HAVE_DECL_SBRK $ac_have_decl
16983_ACEOF
16984ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16985if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16986  ac_have_decl=1
16987else
16988  ac_have_decl=0
16989fi
16990
16991cat >>confdefs.h <<_ACEOF
16992#define HAVE_DECL_GETENV $ac_have_decl
16993_ACEOF
16994ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16995if test "x$ac_cv_have_decl_environ" = x""yes; then :
16996  ac_have_decl=1
16997else
16998  ac_have_decl=0
16999fi
17000
17001cat >>confdefs.h <<_ACEOF
17002#define HAVE_DECL_ENVIRON $ac_have_decl
17003_ACEOF
17004
17005
17006# When converting linker scripts into strings for use in emulation
17007# files, use astring.sed if the compiler supports ANSI string
17008# concatenation, or ostring.sed otherwise.  This is to support the
17009# broken Microsoft MSVC compiler, which limits the length of string
17010# constants, while still supporting pre-ANSI compilers which do not
17011# support string concatenation.
17012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17013$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17014if test "${ld_cv_string_concatenation+set}" = set; then :
17015  $as_echo_n "(cached) " >&6
17016else
17017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018/* end confdefs.h.  */
17019
17020int
17021main ()
17022{
17023char *a = "a" "a";
17024  ;
17025  return 0;
17026}
17027_ACEOF
17028if ac_fn_c_try_compile "$LINENO"; then :
17029  ld_cv_string_concatenation=yes
17030else
17031  ld_cv_string_concatenation=no
17032fi
17033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034fi
17035
17036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17037$as_echo "$ld_cv_string_concatenation" >&6; }
17038if test "$ld_cv_string_concatenation" = "yes"; then
17039  STRINGIFY=astring.sed
17040else
17041  STRINGIFY=ostring.sed
17042fi
17043
17044
17045# target-specific stuff:
17046
17047all_targets=
17048EMUL=
17049all_emuls=
17050all_emul_extras=
17051all_libpath=
17052
17053rm -f tdirs
17054
17055# If the host is 64-bit, then we enable 64-bit targets by default.
17056# This is consistent with what ../bfd/configure.ac does.
17057if test x${want64} = xfalse; then
17058  # The cast to long int works around a bug in the HP C Compiler
17059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17061# This bug is HP SR number 8606223364.
17062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17063$as_echo_n "checking size of void *... " >&6; }
17064if test "${ac_cv_sizeof_void_p+set}" = set; then :
17065  $as_echo_n "(cached) " >&6
17066else
17067  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
17068
17069else
17070  if test "$ac_cv_type_void_p" = yes; then
17071     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17073{ as_fn_set_status 77
17074as_fn_error "cannot compute sizeof (void *)
17075See \`config.log' for more details." "$LINENO" 5; }; }
17076   else
17077     ac_cv_sizeof_void_p=0
17078   fi
17079fi
17080
17081fi
17082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17083$as_echo "$ac_cv_sizeof_void_p" >&6; }
17084
17085
17086
17087cat >>confdefs.h <<_ACEOF
17088#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17089_ACEOF
17090
17091
17092  if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17093    want64=true
17094  fi
17095fi
17096
17097elf_list_options=FALSE
17098elf_shlib_list_options=FALSE
17099elf_plt_unwind_list_options=FALSE
17100for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17101do
17102  if test "$targ_alias" = "all"; then
17103    all_targets=true
17104    elf_list_options=TRUE
17105    elf_shlib_list_options=TRUE
17106    elf_plt_unwind_list_options=TRUE
17107  else
17108    # Canonicalize the secondary target names.
17109    result=`$ac_config_sub $targ_alias 2>/dev/null`
17110    if test -n "$result"; then
17111	targ=$result
17112    else
17113	targ=$targ_alias
17114    fi
17115
17116    . ${srcdir}/configure.tgt
17117
17118    if test "$targ" = "$target"; then
17119      EMUL=$targ_emul
17120    fi
17121
17122    if test x${want64} = xfalse; then
17123      . ${srcdir}/../bfd/config.bfd
17124    fi
17125
17126    if test x${want64} = xtrue; then
17127      targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17128      targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17129    fi
17130
17131    for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17132	case " $all_emuls " in
17133	*" e${i}.o "*) ;;
17134	*)
17135	  all_emuls="$all_emuls e${i}.o"
17136	  eval result=\$tdir_$i
17137	  test -z "$result" && result=$targ_alias
17138	  echo tdir_$i=$result >> tdirs
17139	  case "${i}" in
17140	  *elf*)
17141	    elf_list_options=TRUE
17142	    ;;
17143	  *)
17144	    if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17145	      elf_list_options=TRUE
17146	    fi
17147	    ;;
17148	  esac
17149	  if test "$elf_list_options" = "TRUE"; then
17150	    . ${srcdir}/emulparams/${i}.sh
17151	    if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17152	      elf_shlib_list_options=TRUE
17153	    fi
17154	    if test x${PLT_UNWIND} = xyes; then
17155	      elf_plt_unwind_list_options=TRUE
17156	    fi
17157	  fi
17158	  ;;
17159	esac
17160    done
17161
17162    for i in $targ_emul $targ_extra_libpath; do
17163	case " $all_libpath " in
17164	*" ${i} "*) ;;
17165	*)
17166	  if test -z "$all_libpath"; then
17167	    all_libpath=${i}
17168	  else
17169	    all_libpath="$all_libpath ${i}"
17170	  fi
17171	  ;;
17172	esac
17173    done
17174
17175    for i in $targ_extra_ofiles; do
17176	case " $all_emul_extras " in
17177	*" ${i} "*) ;;
17178	*)
17179	  all_emul_extras="$all_emul_extras ${i}"
17180	  ;;
17181	esac
17182    done
17183
17184  fi
17185done
17186
17187if test x$ac_default_compressed_debug_sections = xyes ; then
17188
17189$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17190
17191fi
17192
17193if test "${ac_default_ld_z_relro}" = unset; then
17194  ac_default_ld_z_relro=0
17195fi
17196
17197cat >>confdefs.h <<_ACEOF
17198#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17199_ACEOF
17200
17201
17202
17203
17204
17205
17206
17207TDIRS=tdirs
17208
17209
17210if test x${all_targets} = xtrue; then
17211  if test x${want64} = xtrue; then
17212    EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17213    EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17214  else
17215    EMULATION_OFILES='$(ALL_EMULATIONS)'
17216    EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17217  fi
17218else
17219  EMULATION_OFILES=$all_emuls
17220  EMUL_EXTRA_OFILES=$all_emul_extras
17221fi
17222
17223
17224
17225
17226EMULATION_LIBPATH=$all_libpath
17227
17228
17229if test x${enable_static} = xno; then
17230  TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17231else
17232  TESTBFDLIB="../bfd/.libs/libbfd.a"
17233fi
17234
17235
17236target_vendor=${target_vendor=$host_vendor}
17237case "$target_vendor" in
17238  hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17239  *)  EXTRA_SHLIB_EXTENSION= ;;
17240esac
17241
17242case "$target_os" in
17243  lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17244esac
17245
17246if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17247
17248cat >>confdefs.h <<_ACEOF
17249#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17250_ACEOF
17251
17252fi
17253
17254
17255
17256
17257
17258
17259ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17260
17261cat >confcache <<\_ACEOF
17262# This file is a shell script that caches the results of configure
17263# tests run on this system so they can be shared between configure
17264# scripts and configure runs, see configure's option --config-cache.
17265# It is not useful on other systems.  If it contains results you don't
17266# want to keep, you may remove or edit it.
17267#
17268# config.status only pays attention to the cache file if you give it
17269# the --recheck option to rerun configure.
17270#
17271# `ac_cv_env_foo' variables (set or unset) will be overridden when
17272# loading this file, other *unset* `ac_cv_foo' will be assigned the
17273# following values.
17274
17275_ACEOF
17276
17277# The following way of writing the cache mishandles newlines in values,
17278# but we know of no workaround that is simple, portable, and efficient.
17279# So, we kill variables containing newlines.
17280# Ultrix sh set writes to stderr and can't be redirected directly,
17281# and sets the high bit in the cache file unless we assign to the vars.
17282(
17283  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17284    eval ac_val=\$$ac_var
17285    case $ac_val in #(
17286    *${as_nl}*)
17287      case $ac_var in #(
17288      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17289$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17290      esac
17291      case $ac_var in #(
17292      _ | IFS | as_nl) ;; #(
17293      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17294      *) { eval $ac_var=; unset $ac_var;} ;;
17295      esac ;;
17296    esac
17297  done
17298
17299  (set) 2>&1 |
17300    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17301    *${as_nl}ac_space=\ *)
17302      # `set' does not quote correctly, so add quotes: double-quote
17303      # substitution turns \\\\ into \\, and sed turns \\ into \.
17304      sed -n \
17305	"s/'/'\\\\''/g;
17306	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17307      ;; #(
17308    *)
17309      # `set' quotes correctly as required by POSIX, so do not add quotes.
17310      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17311      ;;
17312    esac |
17313    sort
17314) |
17315  sed '
17316     /^ac_cv_env_/b end
17317     t clear
17318     :clear
17319     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17320     t end
17321     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17322     :end' >>confcache
17323if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17324  if test -w "$cache_file"; then
17325    test "x$cache_file" != "x/dev/null" &&
17326      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17327$as_echo "$as_me: updating cache $cache_file" >&6;}
17328    cat confcache >$cache_file
17329  else
17330    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17331$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17332  fi
17333fi
17334rm -f confcache
17335
17336test "x$prefix" = xNONE && prefix=$ac_default_prefix
17337# Let make expand exec_prefix.
17338test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17339
17340DEFS=-DHAVE_CONFIG_H
17341
17342ac_libobjs=
17343ac_ltlibobjs=
17344for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17345  # 1. Remove the extension, and $U if already installed.
17346  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17347  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17348  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17349  #    will be set to the directory where LIBOBJS objects are built.
17350  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17351  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17352done
17353LIBOBJS=$ac_libobjs
17354
17355LTLIBOBJS=$ac_ltlibobjs
17356
17357
17358if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17359  as_fn_error "conditional \"AMDEP\" was never defined.
17360Usually this means the macro was only invoked conditionally." "$LINENO" 5
17361fi
17362if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17363  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17364Usually this means the macro was only invoked conditionally." "$LINENO" 5
17365fi
17366 if test -n "$EXEEXT"; then
17367  am__EXEEXT_TRUE=
17368  am__EXEEXT_FALSE='#'
17369else
17370  am__EXEEXT_TRUE='#'
17371  am__EXEEXT_FALSE=
17372fi
17373
17374if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17375  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17376Usually this means the macro was only invoked conditionally." "$LINENO" 5
17377fi
17378if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17379  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17380Usually this means the macro was only invoked conditionally." "$LINENO" 5
17381fi
17382if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17383  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17384Usually this means the macro was only invoked conditionally." "$LINENO" 5
17385fi
17386if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17387  as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17388Usually this means the macro was only invoked conditionally." "$LINENO" 5
17389fi
17390if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17391  as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17392Usually this means the macro was only invoked conditionally." "$LINENO" 5
17393fi
17394
17395: ${CONFIG_STATUS=./config.status}
17396ac_write_fail=0
17397ac_clean_files_save=$ac_clean_files
17398ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17399{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17400$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17401as_write_fail=0
17402cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17403#! $SHELL
17404# Generated by $as_me.
17405# Run this file to recreate the current configuration.
17406# Compiler output produced by configure, useful for debugging
17407# configure, is in config.log if it exists.
17408
17409debug=false
17410ac_cs_recheck=false
17411ac_cs_silent=false
17412
17413SHELL=\${CONFIG_SHELL-$SHELL}
17414export SHELL
17415_ASEOF
17416cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17417## -------------------- ##
17418## M4sh Initialization. ##
17419## -------------------- ##
17420
17421# Be more Bourne compatible
17422DUALCASE=1; export DUALCASE # for MKS sh
17423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17424  emulate sh
17425  NULLCMD=:
17426  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17427  # is contrary to our usage.  Disable this feature.
17428  alias -g '${1+"$@"}'='"$@"'
17429  setopt NO_GLOB_SUBST
17430else
17431  case `(set -o) 2>/dev/null` in #(
17432  *posix*) :
17433    set -o posix ;; #(
17434  *) :
17435     ;;
17436esac
17437fi
17438
17439
17440as_nl='
17441'
17442export as_nl
17443# Printing a long string crashes Solaris 7 /usr/bin/printf.
17444as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17445as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17446as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17447# Prefer a ksh shell builtin over an external printf program on Solaris,
17448# but without wasting forks for bash or zsh.
17449if test -z "$BASH_VERSION$ZSH_VERSION" \
17450    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17451  as_echo='print -r --'
17452  as_echo_n='print -rn --'
17453elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17454  as_echo='printf %s\n'
17455  as_echo_n='printf %s'
17456else
17457  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17458    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17459    as_echo_n='/usr/ucb/echo -n'
17460  else
17461    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17462    as_echo_n_body='eval
17463      arg=$1;
17464      case $arg in #(
17465      *"$as_nl"*)
17466	expr "X$arg" : "X\\(.*\\)$as_nl";
17467	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17468      esac;
17469      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17470    '
17471    export as_echo_n_body
17472    as_echo_n='sh -c $as_echo_n_body as_echo'
17473  fi
17474  export as_echo_body
17475  as_echo='sh -c $as_echo_body as_echo'
17476fi
17477
17478# The user is always right.
17479if test "${PATH_SEPARATOR+set}" != set; then
17480  PATH_SEPARATOR=:
17481  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17482    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17483      PATH_SEPARATOR=';'
17484  }
17485fi
17486
17487
17488# IFS
17489# We need space, tab and new line, in precisely that order.  Quoting is
17490# there to prevent editors from complaining about space-tab.
17491# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17492# splitting by setting IFS to empty value.)
17493IFS=" ""	$as_nl"
17494
17495# Find who we are.  Look in the path if we contain no directory separator.
17496case $0 in #((
17497  *[\\/]* ) as_myself=$0 ;;
17498  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17499for as_dir in $PATH
17500do
17501  IFS=$as_save_IFS
17502  test -z "$as_dir" && as_dir=.
17503    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17504  done
17505IFS=$as_save_IFS
17506
17507     ;;
17508esac
17509# We did not find ourselves, most probably we were run as `sh COMMAND'
17510# in which case we are not to be found in the path.
17511if test "x$as_myself" = x; then
17512  as_myself=$0
17513fi
17514if test ! -f "$as_myself"; then
17515  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17516  exit 1
17517fi
17518
17519# Unset variables that we do not need and which cause bugs (e.g. in
17520# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17521# suppresses any "Segmentation fault" message there.  '((' could
17522# trigger a bug in pdksh 5.2.14.
17523for as_var in BASH_ENV ENV MAIL MAILPATH
17524do eval test x\${$as_var+set} = xset \
17525  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17526done
17527PS1='$ '
17528PS2='> '
17529PS4='+ '
17530
17531# NLS nuisances.
17532LC_ALL=C
17533export LC_ALL
17534LANGUAGE=C
17535export LANGUAGE
17536
17537# CDPATH.
17538(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17539
17540
17541# as_fn_error ERROR [LINENO LOG_FD]
17542# ---------------------------------
17543# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17544# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17545# script with status $?, using 1 if that was 0.
17546as_fn_error ()
17547{
17548  as_status=$?; test $as_status -eq 0 && as_status=1
17549  if test "$3"; then
17550    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17551    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17552  fi
17553  $as_echo "$as_me: error: $1" >&2
17554  as_fn_exit $as_status
17555} # as_fn_error
17556
17557
17558# as_fn_set_status STATUS
17559# -----------------------
17560# Set $? to STATUS, without forking.
17561as_fn_set_status ()
17562{
17563  return $1
17564} # as_fn_set_status
17565
17566# as_fn_exit STATUS
17567# -----------------
17568# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17569as_fn_exit ()
17570{
17571  set +e
17572  as_fn_set_status $1
17573  exit $1
17574} # as_fn_exit
17575
17576# as_fn_unset VAR
17577# ---------------
17578# Portably unset VAR.
17579as_fn_unset ()
17580{
17581  { eval $1=; unset $1;}
17582}
17583as_unset=as_fn_unset
17584# as_fn_append VAR VALUE
17585# ----------------------
17586# Append the text in VALUE to the end of the definition contained in VAR. Take
17587# advantage of any shell optimizations that allow amortized linear growth over
17588# repeated appends, instead of the typical quadratic growth present in naive
17589# implementations.
17590if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17591  eval 'as_fn_append ()
17592  {
17593    eval $1+=\$2
17594  }'
17595else
17596  as_fn_append ()
17597  {
17598    eval $1=\$$1\$2
17599  }
17600fi # as_fn_append
17601
17602# as_fn_arith ARG...
17603# ------------------
17604# Perform arithmetic evaluation on the ARGs, and store the result in the
17605# global $as_val. Take advantage of shells that can avoid forks. The arguments
17606# must be portable across $(()) and expr.
17607if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17608  eval 'as_fn_arith ()
17609  {
17610    as_val=$(( $* ))
17611  }'
17612else
17613  as_fn_arith ()
17614  {
17615    as_val=`expr "$@" || test $? -eq 1`
17616  }
17617fi # as_fn_arith
17618
17619
17620if expr a : '\(a\)' >/dev/null 2>&1 &&
17621   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17622  as_expr=expr
17623else
17624  as_expr=false
17625fi
17626
17627if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17628  as_basename=basename
17629else
17630  as_basename=false
17631fi
17632
17633if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17634  as_dirname=dirname
17635else
17636  as_dirname=false
17637fi
17638
17639as_me=`$as_basename -- "$0" ||
17640$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17641	 X"$0" : 'X\(//\)$' \| \
17642	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17643$as_echo X/"$0" |
17644    sed '/^.*\/\([^/][^/]*\)\/*$/{
17645	    s//\1/
17646	    q
17647	  }
17648	  /^X\/\(\/\/\)$/{
17649	    s//\1/
17650	    q
17651	  }
17652	  /^X\/\(\/\).*/{
17653	    s//\1/
17654	    q
17655	  }
17656	  s/.*/./; q'`
17657
17658# Avoid depending upon Character Ranges.
17659as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17660as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17661as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17662as_cr_digits='0123456789'
17663as_cr_alnum=$as_cr_Letters$as_cr_digits
17664
17665ECHO_C= ECHO_N= ECHO_T=
17666case `echo -n x` in #(((((
17667-n*)
17668  case `echo 'xy\c'` in
17669  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17670  xy)  ECHO_C='\c';;
17671  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17672       ECHO_T='	';;
17673  esac;;
17674*)
17675  ECHO_N='-n';;
17676esac
17677
17678rm -f conf$$ conf$$.exe conf$$.file
17679if test -d conf$$.dir; then
17680  rm -f conf$$.dir/conf$$.file
17681else
17682  rm -f conf$$.dir
17683  mkdir conf$$.dir 2>/dev/null
17684fi
17685if (echo >conf$$.file) 2>/dev/null; then
17686  if ln -s conf$$.file conf$$ 2>/dev/null; then
17687    as_ln_s='ln -s'
17688    # ... but there are two gotchas:
17689    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17690    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17691    # In both cases, we have to default to `cp -p'.
17692    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17693      as_ln_s='cp -p'
17694  elif ln conf$$.file conf$$ 2>/dev/null; then
17695    as_ln_s=ln
17696  else
17697    as_ln_s='cp -p'
17698  fi
17699else
17700  as_ln_s='cp -p'
17701fi
17702rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17703rmdir conf$$.dir 2>/dev/null
17704
17705
17706# as_fn_mkdir_p
17707# -------------
17708# Create "$as_dir" as a directory, including parents if necessary.
17709as_fn_mkdir_p ()
17710{
17711
17712  case $as_dir in #(
17713  -*) as_dir=./$as_dir;;
17714  esac
17715  test -d "$as_dir" || eval $as_mkdir_p || {
17716    as_dirs=
17717    while :; do
17718      case $as_dir in #(
17719      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17720      *) as_qdir=$as_dir;;
17721      esac
17722      as_dirs="'$as_qdir' $as_dirs"
17723      as_dir=`$as_dirname -- "$as_dir" ||
17724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17725	 X"$as_dir" : 'X\(//\)[^/]' \| \
17726	 X"$as_dir" : 'X\(//\)$' \| \
17727	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17728$as_echo X"$as_dir" |
17729    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17730	    s//\1/
17731	    q
17732	  }
17733	  /^X\(\/\/\)[^/].*/{
17734	    s//\1/
17735	    q
17736	  }
17737	  /^X\(\/\/\)$/{
17738	    s//\1/
17739	    q
17740	  }
17741	  /^X\(\/\).*/{
17742	    s//\1/
17743	    q
17744	  }
17745	  s/.*/./; q'`
17746      test -d "$as_dir" && break
17747    done
17748    test -z "$as_dirs" || eval "mkdir $as_dirs"
17749  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17750
17751
17752} # as_fn_mkdir_p
17753if mkdir -p . 2>/dev/null; then
17754  as_mkdir_p='mkdir -p "$as_dir"'
17755else
17756  test -d ./-p && rmdir ./-p
17757  as_mkdir_p=false
17758fi
17759
17760if test -x / >/dev/null 2>&1; then
17761  as_test_x='test -x'
17762else
17763  if ls -dL / >/dev/null 2>&1; then
17764    as_ls_L_option=L
17765  else
17766    as_ls_L_option=
17767  fi
17768  as_test_x='
17769    eval sh -c '\''
17770      if test -d "$1"; then
17771	test -d "$1/.";
17772      else
17773	case $1 in #(
17774	-*)set "./$1";;
17775	esac;
17776	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17777	???[sx]*):;;*)false;;esac;fi
17778    '\'' sh
17779  '
17780fi
17781as_executable_p=$as_test_x
17782
17783# Sed expression to map a string onto a valid CPP name.
17784as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17785
17786# Sed expression to map a string onto a valid variable name.
17787as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17788
17789
17790exec 6>&1
17791## ----------------------------------- ##
17792## Main body of $CONFIG_STATUS script. ##
17793## ----------------------------------- ##
17794_ASEOF
17795test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17796
17797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17798# Save the log message, to keep $0 and so on meaningful, and to
17799# report actual input values of CONFIG_FILES etc. instead of their
17800# values after options handling.
17801ac_log="
17802This file was extended by ld $as_me 2.27, which was
17803generated by GNU Autoconf 2.64.  Invocation command line was
17804
17805  CONFIG_FILES    = $CONFIG_FILES
17806  CONFIG_HEADERS  = $CONFIG_HEADERS
17807  CONFIG_LINKS    = $CONFIG_LINKS
17808  CONFIG_COMMANDS = $CONFIG_COMMANDS
17809  $ $0 $@
17810
17811on `(hostname || uname -n) 2>/dev/null | sed 1q`
17812"
17813
17814_ACEOF
17815
17816case $ac_config_files in *"
17817"*) set x $ac_config_files; shift; ac_config_files=$*;;
17818esac
17819
17820case $ac_config_headers in *"
17821"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17822esac
17823
17824
17825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17826# Files that config.status was made for.
17827config_files="$ac_config_files"
17828config_headers="$ac_config_headers"
17829config_commands="$ac_config_commands"
17830
17831_ACEOF
17832
17833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17834ac_cs_usage="\
17835\`$as_me' instantiates files and other configuration actions
17836from templates according to the current configuration.  Unless the files
17837and actions are specified as TAGs, all are instantiated by default.
17838
17839Usage: $0 [OPTION]... [TAG]...
17840
17841  -h, --help       print this help, then exit
17842  -V, --version    print version number and configuration settings, then exit
17843  -q, --quiet, --silent
17844                   do not print progress messages
17845  -d, --debug      don't remove temporary files
17846      --recheck    update $as_me by reconfiguring in the same conditions
17847      --file=FILE[:TEMPLATE]
17848                   instantiate the configuration file FILE
17849      --header=FILE[:TEMPLATE]
17850                   instantiate the configuration header FILE
17851
17852Configuration files:
17853$config_files
17854
17855Configuration headers:
17856$config_headers
17857
17858Configuration commands:
17859$config_commands
17860
17861Report bugs to the package provider."
17862
17863_ACEOF
17864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17865ac_cs_version="\\
17866ld config.status 2.27
17867configured by $0, generated by GNU Autoconf 2.64,
17868  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17869
17870Copyright (C) 2009 Free Software Foundation, Inc.
17871This config.status script is free software; the Free Software Foundation
17872gives unlimited permission to copy, distribute and modify it."
17873
17874ac_pwd='$ac_pwd'
17875srcdir='$srcdir'
17876INSTALL='$INSTALL'
17877MKDIR_P='$MKDIR_P'
17878AWK='$AWK'
17879test -n "\$AWK" || AWK=awk
17880_ACEOF
17881
17882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17883# The default lists apply if the user does not specify any file.
17884ac_need_defaults=:
17885while test $# != 0
17886do
17887  case $1 in
17888  --*=*)
17889    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17890    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17891    ac_shift=:
17892    ;;
17893  *)
17894    ac_option=$1
17895    ac_optarg=$2
17896    ac_shift=shift
17897    ;;
17898  esac
17899
17900  case $ac_option in
17901  # Handling of the options.
17902  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17903    ac_cs_recheck=: ;;
17904  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17905    $as_echo "$ac_cs_version"; exit ;;
17906  --debug | --debu | --deb | --de | --d | -d )
17907    debug=: ;;
17908  --file | --fil | --fi | --f )
17909    $ac_shift
17910    case $ac_optarg in
17911    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17912    esac
17913    as_fn_append CONFIG_FILES " '$ac_optarg'"
17914    ac_need_defaults=false;;
17915  --header | --heade | --head | --hea )
17916    $ac_shift
17917    case $ac_optarg in
17918    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17919    esac
17920    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17921    ac_need_defaults=false;;
17922  --he | --h)
17923    # Conflict between --help and --header
17924    as_fn_error "ambiguous option: \`$1'
17925Try \`$0 --help' for more information.";;
17926  --help | --hel | -h )
17927    $as_echo "$ac_cs_usage"; exit ;;
17928  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17929  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17930    ac_cs_silent=: ;;
17931
17932  # This is an error.
17933  -*) as_fn_error "unrecognized option: \`$1'
17934Try \`$0 --help' for more information." ;;
17935
17936  *) as_fn_append ac_config_targets " $1"
17937     ac_need_defaults=false ;;
17938
17939  esac
17940  shift
17941done
17942
17943ac_configure_extra_args=
17944
17945if $ac_cs_silent; then
17946  exec 6>/dev/null
17947  ac_configure_extra_args="$ac_configure_extra_args --silent"
17948fi
17949
17950_ACEOF
17951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17952if \$ac_cs_recheck; then
17953  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17954  shift
17955  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17956  CONFIG_SHELL='$SHELL'
17957  export CONFIG_SHELL
17958  exec "\$@"
17959fi
17960
17961_ACEOF
17962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17963exec 5>>config.log
17964{
17965  echo
17966  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17967## Running $as_me. ##
17968_ASBOX
17969  $as_echo "$ac_log"
17970} >&5
17971
17972_ACEOF
17973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17974#
17975# INIT-COMMANDS
17976#
17977AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17978
17979
17980# The HP-UX ksh and POSIX shell print the target directory to stdout
17981# if CDPATH is set.
17982(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17983
17984sed_quote_subst='$sed_quote_subst'
17985double_quote_subst='$double_quote_subst'
17986delay_variable_subst='$delay_variable_subst'
17987macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17988macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17989enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17990enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17991pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17992enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17993SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17994ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17995host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17996host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17997host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17998build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17999build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18000build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18001SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18002Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18003GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18004EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18005FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18006LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18007NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18008LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18009max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18010ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18011exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18012lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18013lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18014lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18015reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18016reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18017OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18018deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18019file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18020AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18021AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18022STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18023RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18024old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18025old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18026old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18027lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18028CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18029CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18030compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18031GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18032lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18033lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18034lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18035lt_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"`'
18036objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18037MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18038lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18039lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18040lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18041lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18042lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18043need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18044DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18045NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18046LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18047OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18048OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18049libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18050shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18051extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18052archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18053enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18054export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18055whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18056compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18057old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18058old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18059archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18060archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18061module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18062module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18063with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18064allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18065no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18066hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18067hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18068hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18069hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18070hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18071hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18072hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18073hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18074inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18075link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18076fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18077always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18078export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18079exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18080include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18081prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18082file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18083variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18084need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18085need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18086version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18087runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18088shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18089shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18090libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18091library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18092soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18093install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18094postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18095postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18096finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18097finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18098hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18099sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18100sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18101hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18102enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18103enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18104enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18105old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18106striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18107compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18108predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18109postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18110predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18111postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18112compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18113LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18114reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18115reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18116old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18117compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18118GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18119lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18120lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18121lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18122lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18123lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18124archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18125enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18126export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18127whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18128compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18129old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18130old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18131archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18132archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18133module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18134module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18135with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18136allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18137no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18138hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18139hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18140hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18141hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18142hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18143hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18144hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18145hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18146inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18147link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18148fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18149always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18150export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18151exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18152include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18153prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18154file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18155hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18156compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18157predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18158postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18159predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18160postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18161compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18162
18163LTCC='$LTCC'
18164LTCFLAGS='$LTCFLAGS'
18165compiler='$compiler_DEFAULT'
18166
18167# A function that is used when there is no print builtin or printf.
18168func_fallback_echo ()
18169{
18170  eval 'cat <<_LTECHO_EOF
18171\$1
18172_LTECHO_EOF'
18173}
18174
18175# Quote evaled strings.
18176for var in SHELL \
18177ECHO \
18178SED \
18179GREP \
18180EGREP \
18181FGREP \
18182LD \
18183NM \
18184LN_S \
18185lt_SP2NL \
18186lt_NL2SP \
18187reload_flag \
18188OBJDUMP \
18189deplibs_check_method \
18190file_magic_cmd \
18191AR \
18192AR_FLAGS \
18193STRIP \
18194RANLIB \
18195CC \
18196CFLAGS \
18197compiler \
18198lt_cv_sys_global_symbol_pipe \
18199lt_cv_sys_global_symbol_to_cdecl \
18200lt_cv_sys_global_symbol_to_c_name_address \
18201lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18202lt_prog_compiler_no_builtin_flag \
18203lt_prog_compiler_wl \
18204lt_prog_compiler_pic \
18205lt_prog_compiler_static \
18206lt_cv_prog_compiler_c_o \
18207need_locks \
18208DSYMUTIL \
18209NMEDIT \
18210LIPO \
18211OTOOL \
18212OTOOL64 \
18213shrext_cmds \
18214export_dynamic_flag_spec \
18215whole_archive_flag_spec \
18216compiler_needs_object \
18217with_gnu_ld \
18218allow_undefined_flag \
18219no_undefined_flag \
18220hardcode_libdir_flag_spec \
18221hardcode_libdir_flag_spec_ld \
18222hardcode_libdir_separator \
18223fix_srcfile_path \
18224exclude_expsyms \
18225include_expsyms \
18226file_list_spec \
18227variables_saved_for_relink \
18228libname_spec \
18229library_names_spec \
18230soname_spec \
18231install_override_mode \
18232finish_eval \
18233old_striplib \
18234striplib \
18235compiler_lib_search_dirs \
18236predep_objects \
18237postdep_objects \
18238predeps \
18239postdeps \
18240compiler_lib_search_path \
18241LD_CXX \
18242reload_flag_CXX \
18243compiler_CXX \
18244lt_prog_compiler_no_builtin_flag_CXX \
18245lt_prog_compiler_wl_CXX \
18246lt_prog_compiler_pic_CXX \
18247lt_prog_compiler_static_CXX \
18248lt_cv_prog_compiler_c_o_CXX \
18249export_dynamic_flag_spec_CXX \
18250whole_archive_flag_spec_CXX \
18251compiler_needs_object_CXX \
18252with_gnu_ld_CXX \
18253allow_undefined_flag_CXX \
18254no_undefined_flag_CXX \
18255hardcode_libdir_flag_spec_CXX \
18256hardcode_libdir_flag_spec_ld_CXX \
18257hardcode_libdir_separator_CXX \
18258fix_srcfile_path_CXX \
18259exclude_expsyms_CXX \
18260include_expsyms_CXX \
18261file_list_spec_CXX \
18262compiler_lib_search_dirs_CXX \
18263predep_objects_CXX \
18264postdep_objects_CXX \
18265predeps_CXX \
18266postdeps_CXX \
18267compiler_lib_search_path_CXX; do
18268    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18269    *[\\\\\\\`\\"\\\$]*)
18270      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18271      ;;
18272    *)
18273      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18274      ;;
18275    esac
18276done
18277
18278# Double-quote double-evaled strings.
18279for var in reload_cmds \
18280old_postinstall_cmds \
18281old_postuninstall_cmds \
18282old_archive_cmds \
18283extract_expsyms_cmds \
18284old_archive_from_new_cmds \
18285old_archive_from_expsyms_cmds \
18286archive_cmds \
18287archive_expsym_cmds \
18288module_cmds \
18289module_expsym_cmds \
18290export_symbols_cmds \
18291prelink_cmds \
18292postinstall_cmds \
18293postuninstall_cmds \
18294finish_cmds \
18295sys_lib_search_path_spec \
18296sys_lib_dlsearch_path_spec \
18297reload_cmds_CXX \
18298old_archive_cmds_CXX \
18299old_archive_from_new_cmds_CXX \
18300old_archive_from_expsyms_cmds_CXX \
18301archive_cmds_CXX \
18302archive_expsym_cmds_CXX \
18303module_cmds_CXX \
18304module_expsym_cmds_CXX \
18305export_symbols_cmds_CXX \
18306prelink_cmds_CXX; do
18307    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18308    *[\\\\\\\`\\"\\\$]*)
18309      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18310      ;;
18311    *)
18312      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18313      ;;
18314    esac
18315done
18316
18317ac_aux_dir='$ac_aux_dir'
18318xsi_shell='$xsi_shell'
18319lt_shell_append='$lt_shell_append'
18320
18321# See if we are running on zsh, and set the options which allow our
18322# commands through without removal of \ escapes INIT.
18323if test -n "\${ZSH_VERSION+set}" ; then
18324   setopt NO_GLOB_SUBST
18325fi
18326
18327
18328    PACKAGE='$PACKAGE'
18329    VERSION='$VERSION'
18330    TIMESTAMP='$TIMESTAMP'
18331    RM='$RM'
18332    ofile='$ofile'
18333
18334
18335
18336
18337
18338# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18339    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18340    # from automake.
18341    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18342    # Capture the value of LINGUAS because we need it to compute CATALOGS.
18343    LINGUAS="${LINGUAS-%UNSET%}"
18344
18345
18346_ACEOF
18347
18348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18349
18350# Handling of arguments.
18351for ac_config_target in $ac_config_targets
18352do
18353  case $ac_config_target in
18354    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18355    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18356    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18357    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18358    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18359    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18360
18361  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18362  esac
18363done
18364
18365
18366# If the user did not use the arguments to specify the items to instantiate,
18367# then the envvar interface is used.  Set only those that are not.
18368# We use the long form for the default assignment because of an extremely
18369# bizarre bug on SunOS 4.1.3.
18370if $ac_need_defaults; then
18371  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18372  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18373  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18374fi
18375
18376# Have a temporary directory for convenience.  Make it in the build tree
18377# simply because there is no reason against having it here, and in addition,
18378# creating and moving files from /tmp can sometimes cause problems.
18379# Hook for its removal unless debugging.
18380# Note that there is a small window in which the directory will not be cleaned:
18381# after its creation but before its name has been assigned to `$tmp'.
18382$debug ||
18383{
18384  tmp=
18385  trap 'exit_status=$?
18386  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18387' 0
18388  trap 'as_fn_exit 1' 1 2 13 15
18389}
18390# Create a (secure) tmp directory for tmp files.
18391
18392{
18393  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18394  test -n "$tmp" && test -d "$tmp"
18395}  ||
18396{
18397  tmp=./conf$$-$RANDOM
18398  (umask 077 && mkdir "$tmp")
18399} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18400
18401# Set up the scripts for CONFIG_FILES section.
18402# No need to generate them if there are no CONFIG_FILES.
18403# This happens for instance with `./config.status config.h'.
18404if test -n "$CONFIG_FILES"; then
18405
18406if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18407  ac_cs_awk_getline=:
18408  ac_cs_awk_pipe_init=
18409  ac_cs_awk_read_file='
18410      while ((getline aline < (F[key])) > 0)
18411	print(aline)
18412      close(F[key])'
18413  ac_cs_awk_pipe_fini=
18414else
18415  ac_cs_awk_getline=false
18416  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18417  ac_cs_awk_read_file='
18418      print "|#_!!_#|"
18419      print "cat " F[key] " &&"
18420      '$ac_cs_awk_pipe_init
18421  # The final `:' finishes the AND list.
18422  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18423fi
18424ac_cr=`echo X | tr X '\015'`
18425# On cygwin, bash can eat \r inside `` if the user requested igncr.
18426# But we know of no other shell where ac_cr would be empty at this
18427# point, so we can use a bashism as a fallback.
18428if test "x$ac_cr" = x; then
18429  eval ac_cr=\$\'\\r\'
18430fi
18431ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18432if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18433  ac_cs_awk_cr='\r'
18434else
18435  ac_cs_awk_cr=$ac_cr
18436fi
18437
18438echo 'BEGIN {' >"$tmp/subs1.awk" &&
18439_ACEOF
18440
18441# Create commands to substitute file output variables.
18442{
18443  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18444  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18445  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18446  echo "_ACAWK" &&
18447  echo "_ACEOF"
18448} >conf$$files.sh &&
18449. ./conf$$files.sh ||
18450  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18451rm -f conf$$files.sh
18452
18453{
18454  echo "cat >conf$$subs.awk <<_ACEOF" &&
18455  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18456  echo "_ACEOF"
18457} >conf$$subs.sh ||
18458  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18459ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18460ac_delim='%!_!# '
18461for ac_last_try in false false false false false :; do
18462  . ./conf$$subs.sh ||
18463    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18464
18465  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18466  if test $ac_delim_n = $ac_delim_num; then
18467    break
18468  elif $ac_last_try; then
18469    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18470  else
18471    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18472  fi
18473done
18474rm -f conf$$subs.sh
18475
18476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18477cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18478_ACEOF
18479sed -n '
18480h
18481s/^/S["/; s/!.*/"]=/
18482p
18483g
18484s/^[^!]*!//
18485:repl
18486t repl
18487s/'"$ac_delim"'$//
18488t delim
18489:nl
18490h
18491s/\(.\{148\}\).*/\1/
18492t more1
18493s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18494p
18495n
18496b repl
18497:more1
18498s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18499p
18500g
18501s/.\{148\}//
18502t nl
18503:delim
18504h
18505s/\(.\{148\}\).*/\1/
18506t more2
18507s/["\\]/\\&/g; s/^/"/; s/$/"/
18508p
18509b
18510:more2
18511s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18512p
18513g
18514s/.\{148\}//
18515t delim
18516' <conf$$subs.awk | sed '
18517/^[^""]/{
18518  N
18519  s/\n//
18520}
18521' >>$CONFIG_STATUS || ac_write_fail=1
18522rm -f conf$$subs.awk
18523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18524_ACAWK
18525cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18526  for (key in S) S_is_set[key] = 1
18527  FS = ""
18528  \$ac_cs_awk_pipe_init
18529}
18530{
18531  line = $ 0
18532  nfields = split(line, field, "@")
18533  substed = 0
18534  len = length(field[1])
18535  for (i = 2; i < nfields; i++) {
18536    key = field[i]
18537    keylen = length(key)
18538    if (S_is_set[key]) {
18539      value = S[key]
18540      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18541      len += length(value) + length(field[++i])
18542      substed = 1
18543    } else
18544      len += 1 + keylen
18545  }
18546  if (nfields == 3 && !substed) {
18547    key = field[2]
18548    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
18549      \$ac_cs_awk_read_file
18550      next
18551    }
18552  }
18553  print line
18554}
18555\$ac_cs_awk_pipe_fini
18556_ACAWK
18557_ACEOF
18558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18559if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18560  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18561else
18562  cat
18563fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18564  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18565_ACEOF
18566
18567# VPATH may cause trouble with some makes, so we remove $(srcdir),
18568# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18569# trailing colons and then remove the whole line if VPATH becomes empty
18570# (actually we leave an empty line to preserve line numbers).
18571if test "x$srcdir" = x.; then
18572  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18573s/:*\$(srcdir):*/:/
18574s/:*\${srcdir}:*/:/
18575s/:*@srcdir@:*/:/
18576s/^\([^=]*=[	 ]*\):*/\1/
18577s/:*$//
18578s/^[^=]*=[	 ]*$//
18579}'
18580fi
18581
18582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18583fi # test -n "$CONFIG_FILES"
18584
18585# Set up the scripts for CONFIG_HEADERS section.
18586# No need to generate them if there are no CONFIG_HEADERS.
18587# This happens for instance with `./config.status Makefile'.
18588if test -n "$CONFIG_HEADERS"; then
18589cat >"$tmp/defines.awk" <<\_ACAWK ||
18590BEGIN {
18591_ACEOF
18592
18593# Transform confdefs.h into an awk script `defines.awk', embedded as
18594# here-document in config.status, that substitutes the proper values into
18595# config.h.in to produce config.h.
18596
18597# Create a delimiter string that does not exist in confdefs.h, to ease
18598# handling of long lines.
18599ac_delim='%!_!# '
18600for ac_last_try in false false :; do
18601  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18602  if test -z "$ac_t"; then
18603    break
18604  elif $ac_last_try; then
18605    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18606  else
18607    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18608  fi
18609done
18610
18611# For the awk script, D is an array of macro values keyed by name,
18612# likewise P contains macro parameters if any.  Preserve backslash
18613# newline sequences.
18614
18615ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18616sed -n '
18617s/.\{148\}/&'"$ac_delim"'/g
18618t rset
18619:rset
18620s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18621t def
18622d
18623:def
18624s/\\$//
18625t bsnl
18626s/["\\]/\\&/g
18627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18628D["\1"]=" \3"/p
18629s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18630d
18631:bsnl
18632s/["\\]/\\&/g
18633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18634D["\1"]=" \3\\\\\\n"\\/p
18635t cont
18636s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18637t cont
18638d
18639:cont
18640n
18641s/.\{148\}/&'"$ac_delim"'/g
18642t clear
18643:clear
18644s/\\$//
18645t bsnlc
18646s/["\\]/\\&/g; s/^/"/; s/$/"/p
18647d
18648:bsnlc
18649s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18650b cont
18651' <confdefs.h | sed '
18652s/'"$ac_delim"'/"\\\
18653"/g' >>$CONFIG_STATUS || ac_write_fail=1
18654
18655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18656  for (key in D) D_is_set[key] = 1
18657  FS = ""
18658}
18659/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18660  line = \$ 0
18661  split(line, arg, " ")
18662  if (arg[1] == "#") {
18663    defundef = arg[2]
18664    mac1 = arg[3]
18665  } else {
18666    defundef = substr(arg[1], 2)
18667    mac1 = arg[2]
18668  }
18669  split(mac1, mac2, "(") #)
18670  macro = mac2[1]
18671  prefix = substr(line, 1, index(line, defundef) - 1)
18672  if (D_is_set[macro]) {
18673    # Preserve the white space surrounding the "#".
18674    print prefix "define", macro P[macro] D[macro]
18675    next
18676  } else {
18677    # Replace #undef with comments.  This is necessary, for example,
18678    # in the case of _POSIX_SOURCE, which is predefined and required
18679    # on some systems where configure will not decide to define it.
18680    if (defundef == "undef") {
18681      print "/*", prefix defundef, macro, "*/"
18682      next
18683    }
18684  }
18685}
18686{ print }
18687_ACAWK
18688_ACEOF
18689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18690  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18691fi # test -n "$CONFIG_HEADERS"
18692
18693
18694eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18695shift
18696for ac_tag
18697do
18698  case $ac_tag in
18699  :[FHLC]) ac_mode=$ac_tag; continue;;
18700  esac
18701  case $ac_mode$ac_tag in
18702  :[FHL]*:*);;
18703  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18704  :[FH]-) ac_tag=-:-;;
18705  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18706  esac
18707  ac_save_IFS=$IFS
18708  IFS=:
18709  set x $ac_tag
18710  IFS=$ac_save_IFS
18711  shift
18712  ac_file=$1
18713  shift
18714
18715  case $ac_mode in
18716  :L) ac_source=$1;;
18717  :[FH])
18718    ac_file_inputs=
18719    for ac_f
18720    do
18721      case $ac_f in
18722      -) ac_f="$tmp/stdin";;
18723      *) # Look for the file first in the build tree, then in the source tree
18724	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18725	 # because $ac_f cannot contain `:'.
18726	 test -f "$ac_f" ||
18727	   case $ac_f in
18728	   [\\/$]*) false;;
18729	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18730	   esac ||
18731	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18732      esac
18733      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18734      as_fn_append ac_file_inputs " '$ac_f'"
18735    done
18736
18737    # Let's still pretend it is `configure' which instantiates (i.e., don't
18738    # use $as_me), people would be surprised to read:
18739    #    /* config.h.  Generated by config.status.  */
18740    configure_input='Generated from '`
18741	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18742	`' by configure.'
18743    if test x"$ac_file" != x-; then
18744      configure_input="$ac_file.  $configure_input"
18745      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18746$as_echo "$as_me: creating $ac_file" >&6;}
18747    fi
18748    # Neutralize special characters interpreted by sed in replacement strings.
18749    case $configure_input in #(
18750    *\&* | *\|* | *\\* )
18751       ac_sed_conf_input=`$as_echo "$configure_input" |
18752       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18753    *) ac_sed_conf_input=$configure_input;;
18754    esac
18755
18756    case $ac_tag in
18757    *:-:* | *:-) cat >"$tmp/stdin" \
18758      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18759    esac
18760    ;;
18761  esac
18762
18763  ac_dir=`$as_dirname -- "$ac_file" ||
18764$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18765	 X"$ac_file" : 'X\(//\)[^/]' \| \
18766	 X"$ac_file" : 'X\(//\)$' \| \
18767	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18768$as_echo X"$ac_file" |
18769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18770	    s//\1/
18771	    q
18772	  }
18773	  /^X\(\/\/\)[^/].*/{
18774	    s//\1/
18775	    q
18776	  }
18777	  /^X\(\/\/\)$/{
18778	    s//\1/
18779	    q
18780	  }
18781	  /^X\(\/\).*/{
18782	    s//\1/
18783	    q
18784	  }
18785	  s/.*/./; q'`
18786  as_dir="$ac_dir"; as_fn_mkdir_p
18787  ac_builddir=.
18788
18789case "$ac_dir" in
18790.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18791*)
18792  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18793  # A ".." for each directory in $ac_dir_suffix.
18794  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18795  case $ac_top_builddir_sub in
18796  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18797  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18798  esac ;;
18799esac
18800ac_abs_top_builddir=$ac_pwd
18801ac_abs_builddir=$ac_pwd$ac_dir_suffix
18802# for backward compatibility:
18803ac_top_builddir=$ac_top_build_prefix
18804
18805case $srcdir in
18806  .)  # We are building in place.
18807    ac_srcdir=.
18808    ac_top_srcdir=$ac_top_builddir_sub
18809    ac_abs_top_srcdir=$ac_pwd ;;
18810  [\\/]* | ?:[\\/]* )  # Absolute name.
18811    ac_srcdir=$srcdir$ac_dir_suffix;
18812    ac_top_srcdir=$srcdir
18813    ac_abs_top_srcdir=$srcdir ;;
18814  *) # Relative name.
18815    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18816    ac_top_srcdir=$ac_top_build_prefix$srcdir
18817    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18818esac
18819ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18820
18821
18822  case $ac_mode in
18823  :F)
18824  #
18825  # CONFIG_FILE
18826  #
18827
18828  case $INSTALL in
18829  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18830  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18831  esac
18832  ac_MKDIR_P=$MKDIR_P
18833  case $MKDIR_P in
18834  [\\/$]* | ?:[\\/]* ) ;;
18835  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18836  esac
18837_ACEOF
18838
18839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18840# If the template does not know about datarootdir, expand it.
18841# FIXME: This hack should be removed a few years after 2.60.
18842ac_datarootdir_hack=; ac_datarootdir_seen=
18843ac_sed_dataroot='
18844/datarootdir/ {
18845  p
18846  q
18847}
18848/@datadir@/p
18849/@docdir@/p
18850/@infodir@/p
18851/@localedir@/p
18852/@mandir@/p'
18853case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18854*datarootdir*) ac_datarootdir_seen=yes;;
18855*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18857$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18858_ACEOF
18859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18860  ac_datarootdir_hack='
18861  s&@datadir@&$datadir&g
18862  s&@docdir@&$docdir&g
18863  s&@infodir@&$infodir&g
18864  s&@localedir@&$localedir&g
18865  s&@mandir@&$mandir&g
18866  s&\\\${datarootdir}&$datarootdir&g' ;;
18867esac
18868_ACEOF
18869
18870# Neutralize VPATH when `$srcdir' = `.'.
18871# Shell code in configure.ac might set extrasub.
18872# FIXME: do we really want to maintain this feature?
18873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18874ac_sed_extra="$ac_vpsub
18875$extrasub
18876_ACEOF
18877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18878:t
18879/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18880s|@configure_input@|$ac_sed_conf_input|;t t
18881s&@top_builddir@&$ac_top_builddir_sub&;t t
18882s&@top_build_prefix@&$ac_top_build_prefix&;t t
18883s&@srcdir@&$ac_srcdir&;t t
18884s&@abs_srcdir@&$ac_abs_srcdir&;t t
18885s&@top_srcdir@&$ac_top_srcdir&;t t
18886s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18887s&@builddir@&$ac_builddir&;t t
18888s&@abs_builddir@&$ac_abs_builddir&;t t
18889s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18890s&@INSTALL@&$ac_INSTALL&;t t
18891s&@MKDIR_P@&$ac_MKDIR_P&;t t
18892$ac_datarootdir_hack
18893"
18894eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18895if $ac_cs_awk_getline; then
18896  $AWK -f "$tmp/subs.awk"
18897else
18898  $AWK -f "$tmp/subs.awk" | $SHELL
18899fi >$tmp/out \
18900  || as_fn_error "could not create $ac_file" "$LINENO" 5
18901
18902test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18903  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18904  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18905  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18906which seems to be undefined.  Please make sure it is defined." >&5
18907$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18908which seems to be undefined.  Please make sure it is defined." >&2;}
18909
18910  rm -f "$tmp/stdin"
18911  case $ac_file in
18912  -) cat "$tmp/out" && rm -f "$tmp/out";;
18913  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18914  esac \
18915  || as_fn_error "could not create $ac_file" "$LINENO" 5
18916 ;;
18917  :H)
18918  #
18919  # CONFIG_HEADER
18920  #
18921  if test x"$ac_file" != x-; then
18922    {
18923      $as_echo "/* $configure_input  */" \
18924      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18925    } >"$tmp/config.h" \
18926      || as_fn_error "could not create $ac_file" "$LINENO" 5
18927    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18928      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18929$as_echo "$as_me: $ac_file is unchanged" >&6;}
18930    else
18931      rm -f "$ac_file"
18932      mv "$tmp/config.h" "$ac_file" \
18933	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18934    fi
18935  else
18936    $as_echo "/* $configure_input  */" \
18937      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18938      || as_fn_error "could not create -" "$LINENO" 5
18939  fi
18940# Compute "$ac_file"'s index in $config_headers.
18941_am_arg="$ac_file"
18942_am_stamp_count=1
18943for _am_header in $config_headers :; do
18944  case $_am_header in
18945    $_am_arg | $_am_arg:* )
18946      break ;;
18947    * )
18948      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18949  esac
18950done
18951echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18952$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18953	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18954	 X"$_am_arg" : 'X\(//\)$' \| \
18955	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18956$as_echo X"$_am_arg" |
18957    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18958	    s//\1/
18959	    q
18960	  }
18961	  /^X\(\/\/\)[^/].*/{
18962	    s//\1/
18963	    q
18964	  }
18965	  /^X\(\/\/\)$/{
18966	    s//\1/
18967	    q
18968	  }
18969	  /^X\(\/\).*/{
18970	    s//\1/
18971	    q
18972	  }
18973	  s/.*/./; q'`/stamp-h$_am_stamp_count
18974 ;;
18975
18976  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18977$as_echo "$as_me: executing $ac_file commands" >&6;}
18978 ;;
18979  esac
18980
18981
18982  case $ac_file$ac_mode in
18983    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18984  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18985  # are listed without --file.  Let's play safe and only enable the eval
18986  # if we detect the quoting.
18987  case $CONFIG_FILES in
18988  *\'*) eval set x "$CONFIG_FILES" ;;
18989  *)   set x $CONFIG_FILES ;;
18990  esac
18991  shift
18992  for mf
18993  do
18994    # Strip MF so we end up with the name of the file.
18995    mf=`echo "$mf" | sed -e 's/:.*$//'`
18996    # Check whether this is an Automake generated Makefile or not.
18997    # We used to match only the files named `Makefile.in', but
18998    # some people rename them; so instead we look at the file content.
18999    # Grep'ing the first line is not enough: some people post-process
19000    # each Makefile.in and add a new line on top of each file to say so.
19001    # Grep'ing the whole file is not good either: AIX grep has a line
19002    # limit of 2048, but all sed's we know have understand at least 4000.
19003    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19004      dirpart=`$as_dirname -- "$mf" ||
19005$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19006	 X"$mf" : 'X\(//\)[^/]' \| \
19007	 X"$mf" : 'X\(//\)$' \| \
19008	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19009$as_echo X"$mf" |
19010    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19011	    s//\1/
19012	    q
19013	  }
19014	  /^X\(\/\/\)[^/].*/{
19015	    s//\1/
19016	    q
19017	  }
19018	  /^X\(\/\/\)$/{
19019	    s//\1/
19020	    q
19021	  }
19022	  /^X\(\/\).*/{
19023	    s//\1/
19024	    q
19025	  }
19026	  s/.*/./; q'`
19027    else
19028      continue
19029    fi
19030    # Extract the definition of DEPDIR, am__include, and am__quote
19031    # from the Makefile without running `make'.
19032    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19033    test -z "$DEPDIR" && continue
19034    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19035    test -z "am__include" && continue
19036    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19037    # When using ansi2knr, U may be empty or an underscore; expand it
19038    U=`sed -n 's/^U = //p' < "$mf"`
19039    # Find all dependency output files, they are included files with
19040    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19041    # simplest approach to changing $(DEPDIR) to its actual value in the
19042    # expansion.
19043    for file in `sed -n "
19044      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19045	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19046      # Make sure the directory exists.
19047      test -f "$dirpart/$file" && continue
19048      fdir=`$as_dirname -- "$file" ||
19049$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19050	 X"$file" : 'X\(//\)[^/]' \| \
19051	 X"$file" : 'X\(//\)$' \| \
19052	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19053$as_echo X"$file" |
19054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19055	    s//\1/
19056	    q
19057	  }
19058	  /^X\(\/\/\)[^/].*/{
19059	    s//\1/
19060	    q
19061	  }
19062	  /^X\(\/\/\)$/{
19063	    s//\1/
19064	    q
19065	  }
19066	  /^X\(\/\).*/{
19067	    s//\1/
19068	    q
19069	  }
19070	  s/.*/./; q'`
19071      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19072      # echo "creating $dirpart/$file"
19073      echo '# dummy' > "$dirpart/$file"
19074    done
19075  done
19076}
19077 ;;
19078    "libtool":C)
19079
19080    # See if we are running on zsh, and set the options which allow our
19081    # commands through without removal of \ escapes.
19082    if test -n "${ZSH_VERSION+set}" ; then
19083      setopt NO_GLOB_SUBST
19084    fi
19085
19086    cfgfile="${ofile}T"
19087    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19088    $RM "$cfgfile"
19089
19090    cat <<_LT_EOF >> "$cfgfile"
19091#! $SHELL
19092
19093# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19094# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19096# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19097#
19098#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19099#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19100#   Written by Gordon Matzigkeit, 1996
19101#
19102#   This file is part of GNU Libtool.
19103#
19104# GNU Libtool is free software; you can redistribute it and/or
19105# modify it under the terms of the GNU General Public License as
19106# published by the Free Software Foundation; either version 2 of
19107# the License, or (at your option) any later version.
19108#
19109# As a special exception to the GNU General Public License,
19110# if you distribute this file as part of a program or library that
19111# is built using GNU Libtool, you may include this file under the
19112# same distribution terms that you use for the rest of that program.
19113#
19114# GNU Libtool is distributed in the hope that it will be useful,
19115# but WITHOUT ANY WARRANTY; without even the implied warranty of
19116# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19117# GNU General Public License for more details.
19118#
19119# You should have received a copy of the GNU General Public License
19120# along with GNU Libtool; see the file COPYING.  If not, a copy
19121# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19122# obtained by writing to the Free Software Foundation, Inc.,
19123# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19124
19125
19126# The names of the tagged configurations supported by this script.
19127available_tags="CXX "
19128
19129# ### BEGIN LIBTOOL CONFIG
19130
19131# Which release of libtool.m4 was used?
19132macro_version=$macro_version
19133macro_revision=$macro_revision
19134
19135# Whether or not to build shared libraries.
19136build_libtool_libs=$enable_shared
19137
19138# Whether or not to build static libraries.
19139build_old_libs=$enable_static
19140
19141# What type of objects to build.
19142pic_mode=$pic_mode
19143
19144# Whether or not to optimize for fast installation.
19145fast_install=$enable_fast_install
19146
19147# Shell to use when invoking shell scripts.
19148SHELL=$lt_SHELL
19149
19150# An echo program that protects backslashes.
19151ECHO=$lt_ECHO
19152
19153# The host system.
19154host_alias=$host_alias
19155host=$host
19156host_os=$host_os
19157
19158# The build system.
19159build_alias=$build_alias
19160build=$build
19161build_os=$build_os
19162
19163# A sed program that does not truncate output.
19164SED=$lt_SED
19165
19166# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19167Xsed="\$SED -e 1s/^X//"
19168
19169# A grep program that handles long lines.
19170GREP=$lt_GREP
19171
19172# An ERE matcher.
19173EGREP=$lt_EGREP
19174
19175# A literal string matcher.
19176FGREP=$lt_FGREP
19177
19178# A BSD- or MS-compatible name lister.
19179NM=$lt_NM
19180
19181# Whether we need soft or hard links.
19182LN_S=$lt_LN_S
19183
19184# What is the maximum length of a command?
19185max_cmd_len=$max_cmd_len
19186
19187# Object file suffix (normally "o").
19188objext=$ac_objext
19189
19190# Executable file suffix (normally "").
19191exeext=$exeext
19192
19193# whether the shell understands "unset".
19194lt_unset=$lt_unset
19195
19196# turn spaces into newlines.
19197SP2NL=$lt_lt_SP2NL
19198
19199# turn newlines into spaces.
19200NL2SP=$lt_lt_NL2SP
19201
19202# An object symbol dumper.
19203OBJDUMP=$lt_OBJDUMP
19204
19205# Method to check whether dependent libraries are shared objects.
19206deplibs_check_method=$lt_deplibs_check_method
19207
19208# Command to use when deplibs_check_method == "file_magic".
19209file_magic_cmd=$lt_file_magic_cmd
19210
19211# The archiver.
19212AR=$lt_AR
19213AR_FLAGS=$lt_AR_FLAGS
19214
19215# A symbol stripping program.
19216STRIP=$lt_STRIP
19217
19218# Commands used to install an old-style archive.
19219RANLIB=$lt_RANLIB
19220old_postinstall_cmds=$lt_old_postinstall_cmds
19221old_postuninstall_cmds=$lt_old_postuninstall_cmds
19222
19223# Whether to use a lock for old archive extraction.
19224lock_old_archive_extraction=$lock_old_archive_extraction
19225
19226# A C compiler.
19227LTCC=$lt_CC
19228
19229# LTCC compiler flags.
19230LTCFLAGS=$lt_CFLAGS
19231
19232# Take the output of nm and produce a listing of raw symbols and C names.
19233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19234
19235# Transform the output of nm in a proper C declaration.
19236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19237
19238# Transform the output of nm in a C name address pair.
19239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19240
19241# Transform the output of nm in a C name address pair when lib prefix is needed.
19242global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19243
19244# The name of the directory that contains temporary libtool files.
19245objdir=$objdir
19246
19247# Used to examine libraries when file_magic_cmd begins with "file".
19248MAGIC_CMD=$MAGIC_CMD
19249
19250# Must we lock files when doing compilation?
19251need_locks=$lt_need_locks
19252
19253# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19254DSYMUTIL=$lt_DSYMUTIL
19255
19256# Tool to change global to local symbols on Mac OS X.
19257NMEDIT=$lt_NMEDIT
19258
19259# Tool to manipulate fat objects and archives on Mac OS X.
19260LIPO=$lt_LIPO
19261
19262# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19263OTOOL=$lt_OTOOL
19264
19265# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19266OTOOL64=$lt_OTOOL64
19267
19268# Old archive suffix (normally "a").
19269libext=$libext
19270
19271# Shared library suffix (normally ".so").
19272shrext_cmds=$lt_shrext_cmds
19273
19274# The commands to extract the exported symbol list from a shared archive.
19275extract_expsyms_cmds=$lt_extract_expsyms_cmds
19276
19277# Variables whose values should be saved in libtool wrapper scripts and
19278# restored at link time.
19279variables_saved_for_relink=$lt_variables_saved_for_relink
19280
19281# Do we need the "lib" prefix for modules?
19282need_lib_prefix=$need_lib_prefix
19283
19284# Do we need a version for libraries?
19285need_version=$need_version
19286
19287# Library versioning type.
19288version_type=$version_type
19289
19290# Shared library runtime path variable.
19291runpath_var=$runpath_var
19292
19293# Shared library path variable.
19294shlibpath_var=$shlibpath_var
19295
19296# Is shlibpath searched before the hard-coded library search path?
19297shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19298
19299# Format of library name prefix.
19300libname_spec=$lt_libname_spec
19301
19302# List of archive names.  First name is the real one, the rest are links.
19303# The last name is the one that the linker finds with -lNAME
19304library_names_spec=$lt_library_names_spec
19305
19306# The coded name of the library, if different from the real name.
19307soname_spec=$lt_soname_spec
19308
19309# Permission mode override for installation of shared libraries.
19310install_override_mode=$lt_install_override_mode
19311
19312# Command to use after installation of a shared archive.
19313postinstall_cmds=$lt_postinstall_cmds
19314
19315# Command to use after uninstallation of a shared archive.
19316postuninstall_cmds=$lt_postuninstall_cmds
19317
19318# Commands used to finish a libtool library installation in a directory.
19319finish_cmds=$lt_finish_cmds
19320
19321# As "finish_cmds", except a single script fragment to be evaled but
19322# not shown.
19323finish_eval=$lt_finish_eval
19324
19325# Whether we should hardcode library paths into libraries.
19326hardcode_into_libs=$hardcode_into_libs
19327
19328# Compile-time system search path for libraries.
19329sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19330
19331# Run-time system search path for libraries.
19332sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19333
19334# Whether dlopen is supported.
19335dlopen_support=$enable_dlopen
19336
19337# Whether dlopen of programs is supported.
19338dlopen_self=$enable_dlopen_self
19339
19340# Whether dlopen of statically linked programs is supported.
19341dlopen_self_static=$enable_dlopen_self_static
19342
19343# Commands to strip libraries.
19344old_striplib=$lt_old_striplib
19345striplib=$lt_striplib
19346
19347
19348# The linker used to build libraries.
19349LD=$lt_LD
19350
19351# How to create reloadable object files.
19352reload_flag=$lt_reload_flag
19353reload_cmds=$lt_reload_cmds
19354
19355# Commands used to build an old-style archive.
19356old_archive_cmds=$lt_old_archive_cmds
19357
19358# A language specific compiler.
19359CC=$lt_compiler
19360
19361# Is the compiler the GNU compiler?
19362with_gcc=$GCC
19363
19364# Compiler flag to turn off builtin functions.
19365no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19366
19367# How to pass a linker flag through the compiler.
19368wl=$lt_lt_prog_compiler_wl
19369
19370# Additional compiler flags for building library objects.
19371pic_flag=$lt_lt_prog_compiler_pic
19372
19373# Compiler flag to prevent dynamic linking.
19374link_static_flag=$lt_lt_prog_compiler_static
19375
19376# Does compiler simultaneously support -c and -o options?
19377compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19378
19379# Whether or not to add -lc for building shared libraries.
19380build_libtool_need_lc=$archive_cmds_need_lc
19381
19382# Whether or not to disallow shared libs when runtime libs are static.
19383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19384
19385# Compiler flag to allow reflexive dlopens.
19386export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19387
19388# Compiler flag to generate shared objects directly from archives.
19389whole_archive_flag_spec=$lt_whole_archive_flag_spec
19390
19391# Whether the compiler copes with passing no objects directly.
19392compiler_needs_object=$lt_compiler_needs_object
19393
19394# Create an old-style archive from a shared archive.
19395old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19396
19397# Create a temporary old-style archive to link instead of a shared archive.
19398old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19399
19400# Commands used to build a shared archive.
19401archive_cmds=$lt_archive_cmds
19402archive_expsym_cmds=$lt_archive_expsym_cmds
19403
19404# Commands used to build a loadable module if different from building
19405# a shared archive.
19406module_cmds=$lt_module_cmds
19407module_expsym_cmds=$lt_module_expsym_cmds
19408
19409# Whether we are building with GNU ld or not.
19410with_gnu_ld=$lt_with_gnu_ld
19411
19412# Flag that allows shared libraries with undefined symbols to be built.
19413allow_undefined_flag=$lt_allow_undefined_flag
19414
19415# Flag that enforces no undefined symbols.
19416no_undefined_flag=$lt_no_undefined_flag
19417
19418# Flag to hardcode \$libdir into a binary during linking.
19419# This must work even if \$libdir does not exist
19420hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19421
19422# If ld is used when linking, flag to hardcode \$libdir into a binary
19423# during linking.  This must work even if \$libdir does not exist.
19424hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19425
19426# Whether we need a single "-rpath" flag with a separated argument.
19427hardcode_libdir_separator=$lt_hardcode_libdir_separator
19428
19429# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19430# DIR into the resulting binary.
19431hardcode_direct=$hardcode_direct
19432
19433# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19434# DIR into the resulting binary and the resulting library dependency is
19435# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19436# library is relocated.
19437hardcode_direct_absolute=$hardcode_direct_absolute
19438
19439# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19440# into the resulting binary.
19441hardcode_minus_L=$hardcode_minus_L
19442
19443# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19444# into the resulting binary.
19445hardcode_shlibpath_var=$hardcode_shlibpath_var
19446
19447# Set to "yes" if building a shared library automatically hardcodes DIR
19448# into the library and all subsequent libraries and executables linked
19449# against it.
19450hardcode_automatic=$hardcode_automatic
19451
19452# Set to yes if linker adds runtime paths of dependent libraries
19453# to runtime path list.
19454inherit_rpath=$inherit_rpath
19455
19456# Whether libtool must link a program against all its dependency libraries.
19457link_all_deplibs=$link_all_deplibs
19458
19459# Fix the shell variable \$srcfile for the compiler.
19460fix_srcfile_path=$lt_fix_srcfile_path
19461
19462# Set to "yes" if exported symbols are required.
19463always_export_symbols=$always_export_symbols
19464
19465# The commands to list exported symbols.
19466export_symbols_cmds=$lt_export_symbols_cmds
19467
19468# Symbols that should not be listed in the preloaded symbols.
19469exclude_expsyms=$lt_exclude_expsyms
19470
19471# Symbols that must always be exported.
19472include_expsyms=$lt_include_expsyms
19473
19474# Commands necessary for linking programs (against libraries) with templates.
19475prelink_cmds=$lt_prelink_cmds
19476
19477# Specify filename containing input files.
19478file_list_spec=$lt_file_list_spec
19479
19480# How to hardcode a shared library path into an executable.
19481hardcode_action=$hardcode_action
19482
19483# The directories searched by this compiler when creating a shared library.
19484compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19485
19486# Dependencies to place before and after the objects being linked to
19487# create a shared library.
19488predep_objects=$lt_predep_objects
19489postdep_objects=$lt_postdep_objects
19490predeps=$lt_predeps
19491postdeps=$lt_postdeps
19492
19493# The library search path used internally by the compiler when linking
19494# a shared library.
19495compiler_lib_search_path=$lt_compiler_lib_search_path
19496
19497# ### END LIBTOOL CONFIG
19498
19499_LT_EOF
19500
19501  case $host_os in
19502  aix3*)
19503    cat <<\_LT_EOF >> "$cfgfile"
19504# AIX sometimes has problems with the GCC collect2 program.  For some
19505# reason, if we set the COLLECT_NAMES environment variable, the problems
19506# vanish in a puff of smoke.
19507if test "X${COLLECT_NAMES+set}" != Xset; then
19508  COLLECT_NAMES=
19509  export COLLECT_NAMES
19510fi
19511_LT_EOF
19512    ;;
19513  esac
19514
19515
19516ltmain="$ac_aux_dir/ltmain.sh"
19517
19518
19519  # We use sed instead of cat because bash on DJGPP gets confused if
19520  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19521  # text mode, it properly converts lines to CR/LF.  This bash problem
19522  # is reportedly fixed, but why not run on old versions too?
19523  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19524    || (rm -f "$cfgfile"; exit 1)
19525
19526  case $xsi_shell in
19527  yes)
19528    cat << \_LT_EOF >> "$cfgfile"
19529
19530# func_dirname file append nondir_replacement
19531# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19532# otherwise set result to NONDIR_REPLACEMENT.
19533func_dirname ()
19534{
19535  case ${1} in
19536    */*) func_dirname_result="${1%/*}${2}" ;;
19537    *  ) func_dirname_result="${3}" ;;
19538  esac
19539}
19540
19541# func_basename file
19542func_basename ()
19543{
19544  func_basename_result="${1##*/}"
19545}
19546
19547# func_dirname_and_basename file append nondir_replacement
19548# perform func_basename and func_dirname in a single function
19549# call:
19550#   dirname:  Compute the dirname of FILE.  If nonempty,
19551#             add APPEND to the result, otherwise set result
19552#             to NONDIR_REPLACEMENT.
19553#             value returned in "$func_dirname_result"
19554#   basename: Compute filename of FILE.
19555#             value retuned in "$func_basename_result"
19556# Implementation must be kept synchronized with func_dirname
19557# and func_basename. For efficiency, we do not delegate to
19558# those functions but instead duplicate the functionality here.
19559func_dirname_and_basename ()
19560{
19561  case ${1} in
19562    */*) func_dirname_result="${1%/*}${2}" ;;
19563    *  ) func_dirname_result="${3}" ;;
19564  esac
19565  func_basename_result="${1##*/}"
19566}
19567
19568# func_stripname prefix suffix name
19569# strip PREFIX and SUFFIX off of NAME.
19570# PREFIX and SUFFIX must not contain globbing or regex special
19571# characters, hashes, percent signs, but SUFFIX may contain a leading
19572# dot (in which case that matches only a dot).
19573func_stripname ()
19574{
19575  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19576  # positional parameters, so assign one to ordinary parameter first.
19577  func_stripname_result=${3}
19578  func_stripname_result=${func_stripname_result#"${1}"}
19579  func_stripname_result=${func_stripname_result%"${2}"}
19580}
19581
19582# func_opt_split
19583func_opt_split ()
19584{
19585  func_opt_split_opt=${1%%=*}
19586  func_opt_split_arg=${1#*=}
19587}
19588
19589# func_lo2o object
19590func_lo2o ()
19591{
19592  case ${1} in
19593    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19594    *)    func_lo2o_result=${1} ;;
19595  esac
19596}
19597
19598# func_xform libobj-or-source
19599func_xform ()
19600{
19601  func_xform_result=${1%.*}.lo
19602}
19603
19604# func_arith arithmetic-term...
19605func_arith ()
19606{
19607  func_arith_result=$(( $* ))
19608}
19609
19610# func_len string
19611# STRING may not start with a hyphen.
19612func_len ()
19613{
19614  func_len_result=${#1}
19615}
19616
19617_LT_EOF
19618    ;;
19619  *) # Bourne compatible functions.
19620    cat << \_LT_EOF >> "$cfgfile"
19621
19622# func_dirname file append nondir_replacement
19623# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19624# otherwise set result to NONDIR_REPLACEMENT.
19625func_dirname ()
19626{
19627  # Extract subdirectory from the argument.
19628  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19629  if test "X$func_dirname_result" = "X${1}"; then
19630    func_dirname_result="${3}"
19631  else
19632    func_dirname_result="$func_dirname_result${2}"
19633  fi
19634}
19635
19636# func_basename file
19637func_basename ()
19638{
19639  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19640}
19641
19642
19643# func_stripname prefix suffix name
19644# strip PREFIX and SUFFIX off of NAME.
19645# PREFIX and SUFFIX must not contain globbing or regex special
19646# characters, hashes, percent signs, but SUFFIX may contain a leading
19647# dot (in which case that matches only a dot).
19648# func_strip_suffix prefix name
19649func_stripname ()
19650{
19651  case ${2} in
19652    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19653    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19654  esac
19655}
19656
19657# sed scripts:
19658my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19659my_sed_long_arg='1s/^-[^=]*=//'
19660
19661# func_opt_split
19662func_opt_split ()
19663{
19664  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19665  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19666}
19667
19668# func_lo2o object
19669func_lo2o ()
19670{
19671  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19672}
19673
19674# func_xform libobj-or-source
19675func_xform ()
19676{
19677  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19678}
19679
19680# func_arith arithmetic-term...
19681func_arith ()
19682{
19683  func_arith_result=`expr "$@"`
19684}
19685
19686# func_len string
19687# STRING may not start with a hyphen.
19688func_len ()
19689{
19690  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19691}
19692
19693_LT_EOF
19694esac
19695
19696case $lt_shell_append in
19697  yes)
19698    cat << \_LT_EOF >> "$cfgfile"
19699
19700# func_append var value
19701# Append VALUE to the end of shell variable VAR.
19702func_append ()
19703{
19704  eval "$1+=\$2"
19705}
19706_LT_EOF
19707    ;;
19708  *)
19709    cat << \_LT_EOF >> "$cfgfile"
19710
19711# func_append var value
19712# Append VALUE to the end of shell variable VAR.
19713func_append ()
19714{
19715  eval "$1=\$$1\$2"
19716}
19717
19718_LT_EOF
19719    ;;
19720  esac
19721
19722
19723  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19724    || (rm -f "$cfgfile"; exit 1)
19725
19726  mv -f "$cfgfile" "$ofile" ||
19727    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19728  chmod +x "$ofile"
19729
19730
19731    cat <<_LT_EOF >> "$ofile"
19732
19733# ### BEGIN LIBTOOL TAG CONFIG: CXX
19734
19735# The linker used to build libraries.
19736LD=$lt_LD_CXX
19737
19738# How to create reloadable object files.
19739reload_flag=$lt_reload_flag_CXX
19740reload_cmds=$lt_reload_cmds_CXX
19741
19742# Commands used to build an old-style archive.
19743old_archive_cmds=$lt_old_archive_cmds_CXX
19744
19745# A language specific compiler.
19746CC=$lt_compiler_CXX
19747
19748# Is the compiler the GNU compiler?
19749with_gcc=$GCC_CXX
19750
19751# Compiler flag to turn off builtin functions.
19752no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19753
19754# How to pass a linker flag through the compiler.
19755wl=$lt_lt_prog_compiler_wl_CXX
19756
19757# Additional compiler flags for building library objects.
19758pic_flag=$lt_lt_prog_compiler_pic_CXX
19759
19760# Compiler flag to prevent dynamic linking.
19761link_static_flag=$lt_lt_prog_compiler_static_CXX
19762
19763# Does compiler simultaneously support -c and -o options?
19764compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19765
19766# Whether or not to add -lc for building shared libraries.
19767build_libtool_need_lc=$archive_cmds_need_lc_CXX
19768
19769# Whether or not to disallow shared libs when runtime libs are static.
19770allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19771
19772# Compiler flag to allow reflexive dlopens.
19773export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19774
19775# Compiler flag to generate shared objects directly from archives.
19776whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19777
19778# Whether the compiler copes with passing no objects directly.
19779compiler_needs_object=$lt_compiler_needs_object_CXX
19780
19781# Create an old-style archive from a shared archive.
19782old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19783
19784# Create a temporary old-style archive to link instead of a shared archive.
19785old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19786
19787# Commands used to build a shared archive.
19788archive_cmds=$lt_archive_cmds_CXX
19789archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19790
19791# Commands used to build a loadable module if different from building
19792# a shared archive.
19793module_cmds=$lt_module_cmds_CXX
19794module_expsym_cmds=$lt_module_expsym_cmds_CXX
19795
19796# Whether we are building with GNU ld or not.
19797with_gnu_ld=$lt_with_gnu_ld_CXX
19798
19799# Flag that allows shared libraries with undefined symbols to be built.
19800allow_undefined_flag=$lt_allow_undefined_flag_CXX
19801
19802# Flag that enforces no undefined symbols.
19803no_undefined_flag=$lt_no_undefined_flag_CXX
19804
19805# Flag to hardcode \$libdir into a binary during linking.
19806# This must work even if \$libdir does not exist
19807hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19808
19809# If ld is used when linking, flag to hardcode \$libdir into a binary
19810# during linking.  This must work even if \$libdir does not exist.
19811hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19812
19813# Whether we need a single "-rpath" flag with a separated argument.
19814hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19815
19816# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19817# DIR into the resulting binary.
19818hardcode_direct=$hardcode_direct_CXX
19819
19820# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19821# DIR into the resulting binary and the resulting library dependency is
19822# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19823# library is relocated.
19824hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19825
19826# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19827# into the resulting binary.
19828hardcode_minus_L=$hardcode_minus_L_CXX
19829
19830# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19831# into the resulting binary.
19832hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19833
19834# Set to "yes" if building a shared library automatically hardcodes DIR
19835# into the library and all subsequent libraries and executables linked
19836# against it.
19837hardcode_automatic=$hardcode_automatic_CXX
19838
19839# Set to yes if linker adds runtime paths of dependent libraries
19840# to runtime path list.
19841inherit_rpath=$inherit_rpath_CXX
19842
19843# Whether libtool must link a program against all its dependency libraries.
19844link_all_deplibs=$link_all_deplibs_CXX
19845
19846# Fix the shell variable \$srcfile for the compiler.
19847fix_srcfile_path=$lt_fix_srcfile_path_CXX
19848
19849# Set to "yes" if exported symbols are required.
19850always_export_symbols=$always_export_symbols_CXX
19851
19852# The commands to list exported symbols.
19853export_symbols_cmds=$lt_export_symbols_cmds_CXX
19854
19855# Symbols that should not be listed in the preloaded symbols.
19856exclude_expsyms=$lt_exclude_expsyms_CXX
19857
19858# Symbols that must always be exported.
19859include_expsyms=$lt_include_expsyms_CXX
19860
19861# Commands necessary for linking programs (against libraries) with templates.
19862prelink_cmds=$lt_prelink_cmds_CXX
19863
19864# Specify filename containing input files.
19865file_list_spec=$lt_file_list_spec_CXX
19866
19867# How to hardcode a shared library path into an executable.
19868hardcode_action=$hardcode_action_CXX
19869
19870# The directories searched by this compiler when creating a shared library.
19871compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19872
19873# Dependencies to place before and after the objects being linked to
19874# create a shared library.
19875predep_objects=$lt_predep_objects_CXX
19876postdep_objects=$lt_postdep_objects_CXX
19877predeps=$lt_predeps_CXX
19878postdeps=$lt_postdeps_CXX
19879
19880# The library search path used internally by the compiler when linking
19881# a shared library.
19882compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19883
19884# ### END LIBTOOL TAG CONFIG: CXX
19885_LT_EOF
19886
19887 ;;
19888    "default-1":C)
19889    for ac_file in $CONFIG_FILES; do
19890      # Support "outfile[:infile[:infile...]]"
19891      case "$ac_file" in
19892        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19893      esac
19894      # PO directories have a Makefile.in generated from Makefile.in.in.
19895      case "$ac_file" in */Makefile.in)
19896        # Adjust a relative srcdir.
19897        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19898        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19899        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19900        # In autoconf-2.13 it is called $ac_given_srcdir.
19901        # In autoconf-2.50 it is called $srcdir.
19902        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19903        case "$ac_given_srcdir" in
19904          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19905          /*) top_srcdir="$ac_given_srcdir" ;;
19906          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19907        esac
19908        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19909          rm -f "$ac_dir/POTFILES"
19910          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19911          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19912          POMAKEFILEDEPS="POTFILES.in"
19913          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19914          # on $ac_dir but don't depend on user-specified configuration
19915          # parameters.
19916          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19917            # The LINGUAS file contains the set of available languages.
19918            if test -n "$OBSOLETE_ALL_LINGUAS"; then
19919              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19920            fi
19921            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19922            # Hide the ALL_LINGUAS assigment from automake.
19923            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19924            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19925          else
19926            # The set of available languages was given in configure.ac.
19927            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19928          fi
19929          case "$ac_given_srcdir" in
19930            .) srcdirpre= ;;
19931            *) srcdirpre='$(srcdir)/' ;;
19932          esac
19933          POFILES=
19934          GMOFILES=
19935          UPDATEPOFILES=
19936          DUMMYPOFILES=
19937          for lang in $ALL_LINGUAS; do
19938            POFILES="$POFILES $srcdirpre$lang.po"
19939            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19940            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19941            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19942          done
19943          # CATALOGS depends on both $ac_dir and the user's LINGUAS
19944          # environment variable.
19945          INST_LINGUAS=
19946          if test -n "$ALL_LINGUAS"; then
19947            for presentlang in $ALL_LINGUAS; do
19948              useit=no
19949              if test "%UNSET%" != "$LINGUAS"; then
19950                desiredlanguages="$LINGUAS"
19951              else
19952                desiredlanguages="$ALL_LINGUAS"
19953              fi
19954              for desiredlang in $desiredlanguages; do
19955                # Use the presentlang catalog if desiredlang is
19956                #   a. equal to presentlang, or
19957                #   b. a variant of presentlang (because in this case,
19958                #      presentlang can be used as a fallback for messages
19959                #      which are not translated in the desiredlang catalog).
19960                case "$desiredlang" in
19961                  "$presentlang"*) useit=yes;;
19962                esac
19963              done
19964              if test $useit = yes; then
19965                INST_LINGUAS="$INST_LINGUAS $presentlang"
19966              fi
19967            done
19968          fi
19969          CATALOGS=
19970          if test -n "$INST_LINGUAS"; then
19971            for lang in $INST_LINGUAS; do
19972              CATALOGS="$CATALOGS $lang.gmo"
19973            done
19974          fi
19975          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19976          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"
19977          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19978            if test -f "$f"; then
19979              case "$f" in
19980                *.orig | *.bak | *~) ;;
19981                *) cat "$f" >> "$ac_dir/Makefile" ;;
19982              esac
19983            fi
19984          done
19985        fi
19986        ;;
19987      esac
19988    done ;;
19989
19990  esac
19991done # for ac_tag
19992
19993
19994as_fn_exit 0
19995_ACEOF
19996ac_clean_files=$ac_clean_files_save
19997
19998test $ac_write_fail = 0 ||
19999  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20000
20001
20002# configure is writing to config.log, and then calls config.status.
20003# config.status does its own redirection, appending to config.log.
20004# Unfortunately, on DOS this fails, as config.log is still kept open
20005# by configure, so config.status won't be able to write to it; its
20006# output is simply discarded.  So we exec the FD to /dev/null,
20007# effectively closing config.log, so it can be properly (re)opened and
20008# appended to by config.status.  When coming back to configure, we
20009# need to make the FD available again.
20010if test "$no_create" != yes; then
20011  ac_cs_success=:
20012  ac_config_status_args=
20013  test "$silent" = yes &&
20014    ac_config_status_args="$ac_config_status_args --quiet"
20015  exec 5>/dev/null
20016  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20017  exec 5>>config.log
20018  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20019  # would make configure fail if this is the last instruction.
20020  $ac_cs_success || as_fn_exit $?
20021fi
20022if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20023  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20024$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20025fi
20026
20027