1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183  if (eval "$as_required") 2>/dev/null; then :
184  as_have_required=yes
185else
186  as_have_required=no
187fi
188  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195  IFS=$as_save_IFS
196  test -z "$as_dir" && as_dir=.
197  as_found=:
198  case $as_dir in #(
199	 /*)
200	   for as_base in sh bash ksh sh5; do
201	     # Try only shells that exist, to save several forks.
202	     as_shell=$as_dir/$as_base
203	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  CONFIG_SHELL=$as_shell as_have_required=yes
206		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  break 2
208fi
209fi
210	   done;;
211       esac
212  as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216  CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221      if test "x$CONFIG_SHELL" != x; then :
222  # We cannot yet assume a decent shell, so we have to provide a
223	# neutralization value for shells without unset; and this also
224	# works around shells that cannot unset nonexistent variables.
225	BASH_ENV=/dev/null
226	ENV=/dev/null
227	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228	export CONFIG_SHELL
229	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243  fi
244  exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262  { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271  return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279  set +e
280  as_fn_set_status $1
281  exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290  case $as_dir in #(
291  -*) as_dir=./$as_dir;;
292  esac
293  test -d "$as_dir" || eval $as_mkdir_p || {
294    as_dirs=
295    while :; do
296      case $as_dir in #(
297      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298      *) as_qdir=$as_dir;;
299      esac
300      as_dirs="'$as_qdir' $as_dirs"
301      as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303	 X"$as_dir" : 'X\(//\)[^/]' \| \
304	 X"$as_dir" : 'X\(//\)$' \| \
305	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)[^/].*/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\).*/{
320	    s//\1/
321	    q
322	  }
323	  s/.*/./; q'`
324      test -d "$as_dir" && break
325    done
326    test -z "$as_dirs" || eval "mkdir $as_dirs"
327  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338  eval 'as_fn_append ()
339  {
340    eval $1+=\$2
341  }'
342else
343  as_fn_append ()
344  {
345    eval $1=\$$1\$2
346  }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355  eval 'as_fn_arith ()
356  {
357    as_val=$(( $* ))
358  }'
359else
360  as_fn_arith ()
361  {
362    as_val=`expr "$@" || test $? -eq 1`
363  }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374  as_status=$1; test $as_status -eq 0 && as_status=1
375  if test "$4"; then
376    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378  fi
379  $as_echo "$as_me: error: $2" >&2
380  as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385  as_expr=expr
386else
387  as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391  as_basename=basename
392else
393  as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397  as_dirname=dirname
398else
399  as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404	 X"$0" : 'X\(//\)$' \| \
405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407    sed '/^.*\/\([^/][^/]*\)\/*$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\/\)$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\).*/{
416	    s//\1/
417	    q
418	  }
419	  s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452  # Don't try to exec as it changes $[0], causing all sort of problems
453  # (the dirname of $[0] is not the place where we might find the
454  # original and so on.  Autoconf is especially sensitive to this).
455  . "./$as_me.lineno"
456  # Exit status is that of the last command.
457  exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463  case `echo 'xy\c'` in
464  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
465  xy)  ECHO_C='\c';;
466  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467       ECHO_T='	';;
468  esac;;
469*)
470  ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475  rm -f conf$$.dir/conf$$.file
476else
477  rm -f conf$$.dir
478  mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481  if ln -s conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s='ln -s'
483    # ... but there are two gotchas:
484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486    # In both cases, we have to default to `cp -p'.
487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488      as_ln_s='cp -p'
489  elif ln conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s=ln
491  else
492    as_ln_s='cp -p'
493  fi
494else
495  as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501  as_mkdir_p='mkdir -p "$as_dir"'
502else
503  test -d ./-p && rmdir ./-p
504  as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508  as_test_x='test -x'
509else
510  if ls -dL / >/dev/null 2>&1; then
511    as_ls_L_option=L
512  else
513    as_ls_L_option=
514  fi
515  as_test_x='
516    eval sh -c '\''
517      if test -d "$1"; then
518	test -d "$1/.";
519      else
520	case $1 in #(
521	-*)set "./$1";;
522	esac;
523	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524	???[sx]*):;;*)false;;esac;fi
525    '\'' sh
526  '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539test -n "$DJDIR" || exec 7<&0 </dev/null
540exec 6>&1
541
542# Name of the host.
543# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558
559# Identity of this package.
560PACKAGE_NAME=
561PACKAGE_TARNAME=
562PACKAGE_VERSION=
563PACKAGE_STRING=
564PACKAGE_BUGREPORT=
565PACKAGE_URL=
566
567ac_unique_file="Makefile.am"
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
571#ifdef HAVE_SYS_TYPES_H
572# include <sys/types.h>
573#endif
574#ifdef HAVE_SYS_STAT_H
575# include <sys/stat.h>
576#endif
577#ifdef STDC_HEADERS
578# include <stdlib.h>
579# include <stddef.h>
580#else
581# ifdef HAVE_STDLIB_H
582#  include <stdlib.h>
583# endif
584#endif
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587#  include <memory.h>
588# endif
589# include <string.h>
590#endif
591#ifdef HAVE_STRINGS_H
592# include <strings.h>
593#endif
594#ifdef HAVE_INTTYPES_H
595# include <inttypes.h>
596#endif
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
604ac_subst_vars='am__EXEEXT_FALSE
605am__EXEEXT_TRUE
606LTLIBOBJS
607LIBOBJS
608AO_LIBS
609AO_CFLAGS
610LIBMODPLUG_LIBS
611LIBMODPLUG_CFLAGS
612PKG_CONFIG_LIBDIR
613PKG_CONFIG_PATH
614PKG_CONFIG
615HAVE_PKG_CONFIG
616CXXCPP
617OTOOL64
618OTOOL
619LIPO
620NMEDIT
621DSYMUTIL
622RANLIB
623AR
624OBJDUMP
625LN_S
626NM
627ac_ct_DUMPBIN
628DUMPBIN
629LD
630FGREP
631SED
632LIBTOOL
633am__fastdepCXX_FALSE
634am__fastdepCXX_TRUE
635CXXDEPMODE
636ac_ct_CXX
637CXXFLAGS
638CXX
639EGREP
640GREP
641CPP
642am__fastdepCC_FALSE
643am__fastdepCC_TRUE
644CCDEPMODE
645AMDEPBACKSLASH
646AMDEP_FALSE
647AMDEP_TRUE
648am__quote
649am__include
650DEPDIR
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658MAINT
659MAINTAINER_MODE_FALSE
660MAINTAINER_MODE_TRUE
661AM_BACKSLASH
662AM_DEFAULT_VERBOSITY
663am__untar
664am__tar
665AMTAR
666am__leading_dot
667SET_MAKE
668AWK
669mkdir_p
670MKDIR_P
671INSTALL_STRIP_PROGRAM
672STRIP
673install_sh
674MAKEINFO
675AUTOHEADER
676AUTOMAKE
677AUTOCONF
678ACLOCAL
679VERSION
680PACKAGE
681CYGPATH_W
682am__isrc
683INSTALL_DATA
684INSTALL_SCRIPT
685INSTALL_PROGRAM
686target_os
687target_vendor
688target_cpu
689target
690host_os
691host_vendor
692host_cpu
693host
694build_os
695build_vendor
696build_cpu
697build
698target_alias
699host_alias
700build_alias
701LIBS
702ECHO_T
703ECHO_N
704ECHO_C
705DEFS
706mandir
707localedir
708libdir
709psdir
710pdfdir
711dvidir
712htmldir
713infodir
714docdir
715oldincludedir
716includedir
717localstatedir
718sharedstatedir
719sysconfdir
720datadir
721datarootdir
722libexecdir
723sbindir
724bindir
725program_transform_name
726prefix
727exec_prefix
728PACKAGE_URL
729PACKAGE_BUGREPORT
730PACKAGE_STRING
731PACKAGE_VERSION
732PACKAGE_TARNAME
733PACKAGE_NAME
734PATH_SEPARATOR
735SHELL'
736ac_subst_files=''
737ac_user_opts='
738enable_option_checking
739enable_silent_rules
740enable_maintainer_mode
741enable_dependency_tracking
742enable_shared
743enable_static
744with_pic
745enable_fast_install
746with_gnu_ld
747enable_libtool_lock
748enable_largefile
749'
750      ac_precious_vars='build_alias
751host_alias
752target_alias
753CC
754CFLAGS
755LDFLAGS
756LIBS
757CPPFLAGS
758CPP
759CXX
760CXXFLAGS
761CCC
762CXXCPP
763PKG_CONFIG
764PKG_CONFIG_PATH
765PKG_CONFIG_LIBDIR
766LIBMODPLUG_CFLAGS
767LIBMODPLUG_LIBS
768AO_CFLAGS
769AO_LIBS'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *)	ac_optarg=yes ;;
834  esac
835
836  # Accept the important Cygnus configure options, so we can diagnose typos.
837
838  case $ac_dashdash$ac_option in
839  --)
840    ac_dashdash=yes ;;
841
842  -bindir | --bindir | --bindi | --bind | --bin | --bi)
843    ac_prev=bindir ;;
844  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845    bindir=$ac_optarg ;;
846
847  -build | --build | --buil | --bui | --bu)
848    ac_prev=build_alias ;;
849  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850    build_alias=$ac_optarg ;;
851
852  -cache-file | --cache-file | --cache-fil | --cache-fi \
853  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854    ac_prev=cache_file ;;
855  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857    cache_file=$ac_optarg ;;
858
859  --config-cache | -C)
860    cache_file=config.cache ;;
861
862  -datadir | --datadir | --datadi | --datad)
863    ac_prev=datadir ;;
864  -datadir=* | --datadir=* | --datadi=* | --datad=*)
865    datadir=$ac_optarg ;;
866
867  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868  | --dataroo | --dataro | --datar)
869    ac_prev=datarootdir ;;
870  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872    datarootdir=$ac_optarg ;;
873
874  -disable-* | --disable-*)
875    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876    # Reject names that are not valid shell variable names.
877    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878      as_fn_error $? "invalid feature name: $ac_useropt"
879    ac_useropt_orig=$ac_useropt
880    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881    case $ac_user_opts in
882      *"
883"enable_$ac_useropt"
884"*) ;;
885      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886	 ac_unrecognized_sep=', ';;
887    esac
888    eval enable_$ac_useropt=no ;;
889
890  -docdir | --docdir | --docdi | --doc | --do)
891    ac_prev=docdir ;;
892  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893    docdir=$ac_optarg ;;
894
895  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896    ac_prev=dvidir ;;
897  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898    dvidir=$ac_optarg ;;
899
900  -enable-* | --enable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=\$ac_optarg ;;
915
916  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918  | --exec | --exe | --ex)
919    ac_prev=exec_prefix ;;
920  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922  | --exec=* | --exe=* | --ex=*)
923    exec_prefix=$ac_optarg ;;
924
925  -gas | --gas | --ga | --g)
926    # Obsolete; use --with-gas.
927    with_gas=yes ;;
928
929  -help | --help | --hel | --he | -h)
930    ac_init_help=long ;;
931  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932    ac_init_help=recursive ;;
933  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934    ac_init_help=short ;;
935
936  -host | --host | --hos | --ho)
937    ac_prev=host_alias ;;
938  -host=* | --host=* | --hos=* | --ho=*)
939    host_alias=$ac_optarg ;;
940
941  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942    ac_prev=htmldir ;;
943  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944  | --ht=*)
945    htmldir=$ac_optarg ;;
946
947  -includedir | --includedir | --includedi | --included | --include \
948  | --includ | --inclu | --incl | --inc)
949    ac_prev=includedir ;;
950  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951  | --includ=* | --inclu=* | --incl=* | --inc=*)
952    includedir=$ac_optarg ;;
953
954  -infodir | --infodir | --infodi | --infod | --info | --inf)
955    ac_prev=infodir ;;
956  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957    infodir=$ac_optarg ;;
958
959  -libdir | --libdir | --libdi | --libd)
960    ac_prev=libdir ;;
961  -libdir=* | --libdir=* | --libdi=* | --libd=*)
962    libdir=$ac_optarg ;;
963
964  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965  | --libexe | --libex | --libe)
966    ac_prev=libexecdir ;;
967  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968  | --libexe=* | --libex=* | --libe=*)
969    libexecdir=$ac_optarg ;;
970
971  -localedir | --localedir | --localedi | --localed | --locale)
972    ac_prev=localedir ;;
973  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974    localedir=$ac_optarg ;;
975
976  -localstatedir | --localstatedir | --localstatedi | --localstated \
977  | --localstate | --localstat | --localsta | --localst | --locals)
978    ac_prev=localstatedir ;;
979  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981    localstatedir=$ac_optarg ;;
982
983  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984    ac_prev=mandir ;;
985  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986    mandir=$ac_optarg ;;
987
988  -nfp | --nfp | --nf)
989    # Obsolete; use --without-fp.
990    with_fp=no ;;
991
992  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993  | --no-cr | --no-c | -n)
994    no_create=yes ;;
995
996  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998    no_recursion=yes ;;
999
1000  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002  | --oldin | --oldi | --old | --ol | --o)
1003    ac_prev=oldincludedir ;;
1004  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007    oldincludedir=$ac_optarg ;;
1008
1009  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010    ac_prev=prefix ;;
1011  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012    prefix=$ac_optarg ;;
1013
1014  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015  | --program-pre | --program-pr | --program-p)
1016    ac_prev=program_prefix ;;
1017  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019    program_prefix=$ac_optarg ;;
1020
1021  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022  | --program-suf | --program-su | --program-s)
1023    ac_prev=program_suffix ;;
1024  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026    program_suffix=$ac_optarg ;;
1027
1028  -program-transform-name | --program-transform-name \
1029  | --program-transform-nam | --program-transform-na \
1030  | --program-transform-n | --program-transform- \
1031  | --program-transform | --program-transfor \
1032  | --program-transfo | --program-transf \
1033  | --program-trans | --program-tran \
1034  | --progr-tra | --program-tr | --program-t)
1035    ac_prev=program_transform_name ;;
1036  -program-transform-name=* | --program-transform-name=* \
1037  | --program-transform-nam=* | --program-transform-na=* \
1038  | --program-transform-n=* | --program-transform-=* \
1039  | --program-transform=* | --program-transfor=* \
1040  | --program-transfo=* | --program-transf=* \
1041  | --program-trans=* | --program-tran=* \
1042  | --progr-tra=* | --program-tr=* | --program-t=*)
1043    program_transform_name=$ac_optarg ;;
1044
1045  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046    ac_prev=pdfdir ;;
1047  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048    pdfdir=$ac_optarg ;;
1049
1050  -psdir | --psdir | --psdi | --psd | --ps)
1051    ac_prev=psdir ;;
1052  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053    psdir=$ac_optarg ;;
1054
1055  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056  | -silent | --silent | --silen | --sile | --sil)
1057    silent=yes ;;
1058
1059  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060    ac_prev=sbindir ;;
1061  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062  | --sbi=* | --sb=*)
1063    sbindir=$ac_optarg ;;
1064
1065  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067  | --sharedst | --shareds | --shared | --share | --shar \
1068  | --sha | --sh)
1069    ac_prev=sharedstatedir ;;
1070  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073  | --sha=* | --sh=*)
1074    sharedstatedir=$ac_optarg ;;
1075
1076  -site | --site | --sit)
1077    ac_prev=site ;;
1078  -site=* | --site=* | --sit=*)
1079    site=$ac_optarg ;;
1080
1081  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082    ac_prev=srcdir ;;
1083  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084    srcdir=$ac_optarg ;;
1085
1086  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087  | --syscon | --sysco | --sysc | --sys | --sy)
1088    ac_prev=sysconfdir ;;
1089  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091    sysconfdir=$ac_optarg ;;
1092
1093  -target | --target | --targe | --targ | --tar | --ta | --t)
1094    ac_prev=target_alias ;;
1095  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096    target_alias=$ac_optarg ;;
1097
1098  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099    verbose=yes ;;
1100
1101  -version | --version | --versio | --versi | --vers | -V)
1102    ac_init_version=: ;;
1103
1104  -with-* | --with-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      as_fn_error $? "invalid package name: $ac_useropt"
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"with_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval with_$ac_useropt=\$ac_optarg ;;
1119
1120  -without-* | --without-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=no ;;
1135
1136  --x)
1137    # Obsolete; use --with-x.
1138    with_x=yes ;;
1139
1140  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141  | --x-incl | --x-inc | --x-in | --x-i)
1142    ac_prev=x_includes ;;
1143  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145    x_includes=$ac_optarg ;;
1146
1147  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149    ac_prev=x_libraries ;;
1150  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152    x_libraries=$ac_optarg ;;
1153
1154  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155Try \`$0 --help' for more information"
1156    ;;
1157
1158  *=*)
1159    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160    # Reject names that are not valid shell variable names.
1161    case $ac_envvar in #(
1162      '' | [0-9]* | *[!_$as_cr_alnum]* )
1163      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164    esac
1165    eval $ac_envvar=\$ac_optarg
1166    export $ac_envvar ;;
1167
1168  *)
1169    # FIXME: should be removed in autoconf 3.0.
1170    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174    ;;
1175
1176  esac
1177done
1178
1179if test -n "$ac_prev"; then
1180  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181  as_fn_error $? "missing argument to $ac_option"
1182fi
1183
1184if test -n "$ac_unrecognized_opts"; then
1185  case $enable_option_checking in
1186    no) ;;
1187    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189  esac
1190fi
1191
1192# Check all directory arguments for consistency.
1193for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194		datadir sysconfdir sharedstatedir localstatedir includedir \
1195		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196		libdir localedir mandir
1197do
1198  eval ac_val=\$$ac_var
1199  # Remove trailing slashes.
1200  case $ac_val in
1201    */ )
1202      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203      eval $ac_var=\$ac_val;;
1204  esac
1205  # Be sure to have absolute directory names.
1206  case $ac_val in
1207    [\\/$]* | ?:[\\/]* )  continue;;
1208    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209  esac
1210  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211done
1212
1213# There might be people who depend on the old broken behavior: `$host'
1214# used to hold the argument of --host etc.
1215# FIXME: To remove some day.
1216build=$build_alias
1217host=$host_alias
1218target=$target_alias
1219
1220# FIXME: To remove some day.
1221if test "x$host_alias" != x; then
1222  if test "x$build_alias" = x; then
1223    cross_compiling=maybe
1224    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225    If a cross compiler is detected then cross compile mode will be used" >&2
1226  elif test "x$build_alias" != "x$host_alias"; then
1227    cross_compiling=yes
1228  fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240  as_fn_error $? "working directory cannot be determined"
1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242  as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247  ac_srcdir_defaulted=yes
1248  # Try the directory containing this script, then the parent directory.
1249  ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251	 X"$as_myself" : 'X\(//\)[^/]' \| \
1252	 X"$as_myself" : 'X\(//\)$' \| \
1253	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
1255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\/\)[^/].*/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\/\)$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\).*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  s/.*/./; q'`
1272  srcdir=$ac_confdir
1273  if test ! -r "$srcdir/$ac_unique_file"; then
1274    srcdir=..
1275  fi
1276else
1277  ac_srcdir_defaulted=no
1278fi
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282fi
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
1285	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286	pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289  srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299  eval ac_env_${ac_var}_value=\$${ac_var}
1300  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308  # Omit some internal or obsolete options to make the list less imposing.
1309  # This message is too long to be a string in the A/UX 3.1 sh.
1310  cat <<_ACEOF
1311\`configure' configures this package to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321  -h, --help              display this help and exit
1322      --help=short        display options specific to this package
1323      --help=recursive    display the short help of all the included packages
1324  -V, --version           display version information and exit
1325  -q, --quiet, --silent   do not print \`checking ...' messages
1326      --cache-file=FILE   cache test results in FILE [disabled]
1327  -C, --config-cache      alias for \`--cache-file=config.cache'
1328  -n, --no-create         do not create output files
1329      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331Installation directories:
1332  --prefix=PREFIX         install architecture-independent files in PREFIX
1333                          [$ac_default_prefix]
1334  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                          [PREFIX]
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
1345  --bindir=DIR            user executables [EPREFIX/bin]
1346  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347  --libexecdir=DIR        program executables [EPREFIX/libexec]
1348  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351  --libdir=DIR            object code libraries [EPREFIX/lib]
1352  --includedir=DIR        C header files [PREFIX/include]
1353  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356  --infodir=DIR           info documentation [DATAROOTDIR/info]
1357  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358  --mandir=DIR            man documentation [DATAROOTDIR/man]
1359  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1360  --htmldir=DIR           html documentation [DOCDIR]
1361  --dvidir=DIR            dvi documentation [DOCDIR]
1362  --pdfdir=DIR            pdf documentation [DOCDIR]
1363  --psdir=DIR             ps documentation [DOCDIR]
1364_ACEOF
1365
1366  cat <<\_ACEOF
1367
1368Program names:
1369  --program-prefix=PREFIX            prepend PREFIX to installed program names
1370  --program-suffix=SUFFIX            append SUFFIX to installed program names
1371  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1372
1373System types:
1374  --build=BUILD     configure for building on BUILD [guessed]
1375  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376  --target=TARGET   configure for building compilers for TARGET [HOST]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381
1382  cat <<\_ACEOF
1383
1384Optional Features:
1385  --disable-option-checking  ignore unrecognized --enable/--with options
1386  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388  --enable-silent-rules          less verbose build output (undo: `make V=1')
1389  --disable-silent-rules         verbose build output (undo: `make V=0')
1390  --enable-maintainer-mode  enable make rules and dependencies not useful
1391			  (and sometimes confusing) to the casual installer
1392  --disable-dependency-tracking  speeds up one-time build
1393  --enable-dependency-tracking   do not reject slow dependency extractors
1394  --enable-shared[=PKGS]  build shared libraries [default=yes]
1395  --enable-static[=PKGS]  build static libraries [default=yes]
1396  --enable-fast-install[=PKGS]
1397                          optimize for fast installation [default=yes]
1398  --disable-libtool-lock  avoid locking (might break parallel builds)
1399  --disable-largefile     omit support for large files
1400
1401Optional Packages:
1402  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404  --with-pic              try to use only PIC/non-PIC objects [default=use
1405                          both]
1406  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1407
1408Some influential environment variables:
1409  CC          C compiler command
1410  CFLAGS      C compiler flags
1411  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412              nonstandard directory <lib dir>
1413  LIBS        libraries to pass to the linker, e.g. -l<library>
1414  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415              you have headers in a nonstandard directory <include dir>
1416  CPP         C preprocessor
1417  CXX         C++ compiler command
1418  CXXFLAGS    C++ compiler flags
1419  CXXCPP      C++ preprocessor
1420  PKG_CONFIG  path to pkg-config utility
1421  PKG_CONFIG_PATH
1422              directories to add to pkg-config's search path
1423  PKG_CONFIG_LIBDIR
1424              path overriding pkg-config's built-in search path
1425  LIBMODPLUG_CFLAGS
1426              C compiler flags for LIBMODPLUG, overriding pkg-config
1427  LIBMODPLUG_LIBS
1428              linker flags for LIBMODPLUG, overriding pkg-config
1429  AO_CFLAGS   C compiler flags for AO, overriding pkg-config
1430  AO_LIBS     linker flags for AO, overriding pkg-config
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to the package provider.
1436_ACEOF
1437ac_status=$?
1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441  # If there are subdirs, report their specific --help.
1442  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443    test -d "$ac_dir" ||
1444      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445      continue
1446    ac_builddir=.
1447
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1451  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452  # A ".." for each directory in $ac_dir_suffix.
1453  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454  case $ac_top_builddir_sub in
1455  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457  esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1463
1464case $srcdir in
1465  .)  # We are building in place.
1466    ac_srcdir=.
1467    ac_top_srcdir=$ac_top_builddir_sub
1468    ac_abs_top_srcdir=$ac_pwd ;;
1469  [\\/]* | ?:[\\/]* )  # Absolute name.
1470    ac_srcdir=$srcdir$ac_dir_suffix;
1471    ac_top_srcdir=$srcdir
1472    ac_abs_top_srcdir=$srcdir ;;
1473  *) # Relative name.
1474    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475    ac_top_srcdir=$ac_top_build_prefix$srcdir
1476    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477esac
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480    cd "$ac_dir" || { ac_status=$?; continue; }
1481    # Check for guested configure.
1482    if test -f "$ac_srcdir/configure.gnu"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485    elif test -f "$ac_srcdir/configure"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure" --help=recursive
1488    else
1489      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490    fi || ac_status=$?
1491    cd "$ac_pwd" || { ac_status=$?; break; }
1492  done
1493fi
1494
1495test -n "$ac_init_help" && exit $ac_status
1496if $ac_init_version; then
1497  cat <<\_ACEOF
1498configure
1499generated by GNU Autoconf 2.66
1500
1501Copyright (C) 2010 Free Software Foundation, Inc.
1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
1505  exit
1506fi
1507
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
1511
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
1516{
1517  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518  rm -f conftest.$ac_objext
1519  if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522  *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526  (eval "$ac_compile") 2>conftest.err
1527  ac_status=$?
1528  if test -s conftest.err; then
1529    grep -v '^ *+' conftest.err >conftest.er1
1530    cat conftest.er1 >&5
1531    mv -f conftest.er1 conftest.err
1532  fi
1533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534  test $ac_status = 0; } && {
1535	 test -z "$ac_c_werror_flag" ||
1536	 test ! -s conftest.err
1537       } && test -s conftest.$ac_objext; then :
1538  ac_retval=0
1539else
1540  $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543	ac_retval=1
1544fi
1545  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546  as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_cpp LINENO
1551# ----------------------
1552# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_cpp ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  if { { ac_try="$ac_cpp conftest.$ac_ext"
1557case "(($ac_try" in
1558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559  *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562$as_echo "$ac_try_echo"; } >&5
1563  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1564  ac_status=$?
1565  if test -s conftest.err; then
1566    grep -v '^ *+' conftest.err >conftest.er1
1567    cat conftest.er1 >&5
1568    mv -f conftest.er1 conftest.err
1569  fi
1570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571  test $ac_status = 0; } >/dev/null && {
1572	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1573	 test ! -s conftest.err
1574       }; then :
1575  ac_retval=0
1576else
1577  $as_echo "$as_me: failed program was:" >&5
1578sed 's/^/| /' conftest.$ac_ext >&5
1579
1580    ac_retval=1
1581fi
1582  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583  as_fn_set_status $ac_retval
1584
1585} # ac_fn_c_try_cpp
1586
1587# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1588# -------------------------------------------------------
1589# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1590# the include files in INCLUDES and setting the cache variable VAR
1591# accordingly.
1592ac_fn_c_check_header_mongrel ()
1593{
1594  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595  if eval "test \"\${$3+set}\"" = set; then :
1596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597$as_echo_n "checking for $2... " >&6; }
1598if eval "test \"\${$3+set}\"" = set; then :
1599  $as_echo_n "(cached) " >&6
1600fi
1601eval ac_res=\$$3
1602	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603$as_echo "$ac_res" >&6; }
1604else
1605  # Is the header compilable?
1606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1607$as_echo_n "checking $2 usability... " >&6; }
1608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h.  */
1610$4
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"; then :
1614  ac_header_compiler=yes
1615else
1616  ac_header_compiler=no
1617fi
1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1620$as_echo "$ac_header_compiler" >&6; }
1621
1622# Is the header present?
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1624$as_echo_n "checking $2 presence... " >&6; }
1625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627#include <$2>
1628_ACEOF
1629if ac_fn_c_try_cpp "$LINENO"; then :
1630  ac_header_preproc=yes
1631else
1632  ac_header_preproc=no
1633fi
1634rm -f conftest.err conftest.$ac_ext
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1636$as_echo "$ac_header_preproc" >&6; }
1637
1638# So?  What about this header?
1639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1640  yes:no: )
1641    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1642$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645    ;;
1646  no:yes:* )
1647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1648$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1649    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1650$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1651    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1652$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1654$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1655    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657    ;;
1658esac
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if eval "test \"\${$3+set}\"" = set; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  eval "$3=\$ac_header_compiler"
1665fi
1666eval ac_res=\$$3
1667	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669fi
1670  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671
1672} # ac_fn_c_check_header_mongrel
1673
1674# ac_fn_c_try_run LINENO
1675# ----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677# that executables *can* be run.
1678ac_fn_c_try_run ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692  { { case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_try") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; }; }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: program exited with status $ac_status" >&5
1705       $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_run
1715
1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_c_check_header_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval "test \"\${$3+set}\"" = set; then :
1726  $as_echo_n "(cached) " >&6
1727else
1728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734  eval "$3=yes"
1735else
1736  eval "$3=no"
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739fi
1740eval ac_res=\$$3
1741	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744
1745} # ac_fn_c_check_header_compile
1746
1747# ac_fn_cxx_try_compile LINENO
1748# ----------------------------
1749# Try to compile conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_cxx_try_compile ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  rm -f conftest.$ac_objext
1754  if { { ac_try="$ac_compile"
1755case "(($ac_try" in
1756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757  *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761  (eval "$ac_compile") 2>conftest.err
1762  ac_status=$?
1763  if test -s conftest.err; then
1764    grep -v '^ *+' conftest.err >conftest.er1
1765    cat conftest.er1 >&5
1766    mv -f conftest.er1 conftest.err
1767  fi
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && {
1770	 test -z "$ac_cxx_werror_flag" ||
1771	 test ! -s conftest.err
1772       } && test -s conftest.$ac_objext; then :
1773  ac_retval=0
1774else
1775  $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778	ac_retval=1
1779fi
1780  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781  as_fn_set_status $ac_retval
1782
1783} # ac_fn_cxx_try_compile
1784
1785# ac_fn_c_try_link LINENO
1786# -----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_link ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  rm -f conftest.$ac_objext conftest$ac_exeext
1792  if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795  *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799  (eval "$ac_link") 2>conftest.err
1800  ac_status=$?
1801  if test -s conftest.err; then
1802    grep -v '^ *+' conftest.err >conftest.er1
1803    cat conftest.er1 >&5
1804    mv -f conftest.er1 conftest.err
1805  fi
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; } && {
1808	 test -z "$ac_c_werror_flag" ||
1809	 test ! -s conftest.err
1810       } && test -s conftest$ac_exeext && {
1811	 test "$cross_compiling" = yes ||
1812	 $as_test_x conftest$ac_exeext
1813       }; then :
1814  ac_retval=0
1815else
1816  $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819	ac_retval=1
1820fi
1821  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823  # interfere with the next link command; also delete a directory that is
1824  # left behind by Apple's compiler.  We do this before executing the actions.
1825  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827  as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_link
1830
1831# ac_fn_c_check_func LINENO FUNC VAR
1832# ----------------------------------
1833# Tests whether FUNC exists, setting the cache variable VAR accordingly
1834ac_fn_c_check_func ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval "test \"\${$3+set}\"" = set; then :
1840  $as_echo_n "(cached) " >&6
1841else
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849    which can conflict with char $2 (); below.
1850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851    <limits.h> exists even on freestanding compilers.  */
1852
1853#ifdef __STDC__
1854# include <limits.h>
1855#else
1856# include <assert.h>
1857#endif
1858
1859#undef $2
1860
1861/* Override any GCC internal prototype to avoid an error.
1862   Use char because int might match the return type of a GCC
1863   builtin and then its argument prototype would still apply.  */
1864#ifdef __cplusplus
1865extern "C"
1866#endif
1867char $2 ();
1868/* The GNU C library defines this for functions which it implements
1869    to always fail with ENOSYS.  Some functions are actually named
1870    something starting with __ and the normal name is an alias.  */
1871#if defined __stub_$2 || defined __stub___$2
1872choke me
1873#endif
1874
1875int
1876main ()
1877{
1878return $2 ();
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_link "$LINENO"; then :
1884  eval "$3=yes"
1885else
1886  eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext \
1889    conftest$ac_exeext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895
1896} # ac_fn_c_check_func
1897
1898# ac_fn_cxx_try_cpp LINENO
1899# ------------------------
1900# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1901ac_fn_cxx_try_cpp ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  if { { ac_try="$ac_cpp conftest.$ac_ext"
1905case "(($ac_try" in
1906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907  *) ac_try_echo=$ac_try;;
1908esac
1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910$as_echo "$ac_try_echo"; } >&5
1911  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1912  ac_status=$?
1913  if test -s conftest.err; then
1914    grep -v '^ *+' conftest.err >conftest.er1
1915    cat conftest.er1 >&5
1916    mv -f conftest.er1 conftest.err
1917  fi
1918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919  test $ac_status = 0; } >/dev/null && {
1920	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1921	 test ! -s conftest.err
1922       }; then :
1923  ac_retval=0
1924else
1925  $as_echo "$as_me: failed program was:" >&5
1926sed 's/^/| /' conftest.$ac_ext >&5
1927
1928    ac_retval=1
1929fi
1930  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931  as_fn_set_status $ac_retval
1932
1933} # ac_fn_cxx_try_cpp
1934
1935# ac_fn_cxx_try_link LINENO
1936# -------------------------
1937# Try to link conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_cxx_try_link ()
1939{
1940  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941  rm -f conftest.$ac_objext conftest$ac_exeext
1942  if { { ac_try="$ac_link"
1943case "(($ac_try" in
1944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945  *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949  (eval "$ac_link") 2>conftest.err
1950  ac_status=$?
1951  if test -s conftest.err; then
1952    grep -v '^ *+' conftest.err >conftest.er1
1953    cat conftest.er1 >&5
1954    mv -f conftest.er1 conftest.err
1955  fi
1956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957  test $ac_status = 0; } && {
1958	 test -z "$ac_cxx_werror_flag" ||
1959	 test ! -s conftest.err
1960       } && test -s conftest$ac_exeext && {
1961	 test "$cross_compiling" = yes ||
1962	 $as_test_x conftest$ac_exeext
1963       }; then :
1964  ac_retval=0
1965else
1966  $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969	ac_retval=1
1970fi
1971  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973  # interfere with the next link command; also delete a directory that is
1974  # left behind by Apple's compiler.  We do this before executing the actions.
1975  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977  as_fn_set_status $ac_retval
1978
1979} # ac_fn_cxx_try_link
1980
1981# ac_fn_c_find_intX_t LINENO BITS VAR
1982# -----------------------------------
1983# Finds a signed integer type with width BITS, setting cache variable VAR
1984# accordingly.
1985ac_fn_c_find_intX_t ()
1986{
1987  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1989$as_echo_n "checking for int$2_t... " >&6; }
1990if eval "test \"\${$3+set}\"" = set; then :
1991  $as_echo_n "(cached) " >&6
1992else
1993  eval "$3=no"
1994     # Order is important - never check a type that is potentially smaller
1995     # than half of the expected target width.
1996     for ac_type in int$2_t 'int' 'long int' \
1997	 'long long int' 'short int' 'signed char'; do
1998       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$ac_includes_default
2001	     enum { N = $2 / 2 - 1 };
2002int
2003main ()
2004{
2005static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2006test_array [0] = 0
2007
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015$ac_includes_default
2016	        enum { N = $2 / 2 - 1 };
2017int
2018main ()
2019{
2020static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2021		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2022test_array [0] = 0
2023
2024  ;
2025  return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029
2030else
2031  case $ac_type in #(
2032  int$2_t) :
2033    eval "$3=yes" ;; #(
2034  *) :
2035    eval "$3=\$ac_type" ;;
2036esac
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041       if eval test \"x\$"$3"\" = x"no"; then :
2042
2043else
2044  break
2045fi
2046     done
2047fi
2048eval ac_res=\$$3
2049	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053} # ac_fn_c_find_intX_t
2054
2055# ac_fn_c_find_uintX_t LINENO BITS VAR
2056# ------------------------------------
2057# Finds an unsigned integer type with width BITS, setting cache variable VAR
2058# accordingly.
2059ac_fn_c_find_uintX_t ()
2060{
2061  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2063$as_echo_n "checking for uint$2_t... " >&6; }
2064if eval "test \"\${$3+set}\"" = set; then :
2065  $as_echo_n "(cached) " >&6
2066else
2067  eval "$3=no"
2068     # Order is important - never check a type that is potentially smaller
2069     # than half of the expected target width.
2070     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2071	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2072       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$ac_includes_default
2075int
2076main ()
2077{
2078static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2079test_array [0] = 0
2080
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
2086  case $ac_type in #(
2087  uint$2_t) :
2088    eval "$3=yes" ;; #(
2089  *) :
2090    eval "$3=\$ac_type" ;;
2091esac
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094       if eval test \"x\$"$3"\" = x"no"; then :
2095
2096else
2097  break
2098fi
2099     done
2100fi
2101eval ac_res=\$$3
2102	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105
2106} # ac_fn_c_find_uintX_t
2107cat >config.log <<_ACEOF
2108This file contains any messages produced by compilers while
2109running configure, to aid debugging if configure makes a mistake.
2110
2111It was created by $as_me, which was
2112generated by GNU Autoconf 2.66.  Invocation command line was
2113
2114  $ $0 $@
2115
2116_ACEOF
2117exec 5>>config.log
2118{
2119cat <<_ASUNAME
2120## --------- ##
2121## Platform. ##
2122## --------- ##
2123
2124hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129
2130/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2132
2133/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2134/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2135/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2137/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2138/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2139/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2140
2141_ASUNAME
2142
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148    $as_echo "PATH: $as_dir"
2149  done
2150IFS=$as_save_IFS
2151
2152} >&5
2153
2154cat >&5 <<_ACEOF
2155
2156
2157## ----------- ##
2158## Core tests. ##
2159## ----------- ##
2160
2161_ACEOF
2162
2163
2164# Keep a trace of the command line.
2165# Strip out --no-create and --no-recursion so they do not pile up.
2166# Strip out --silent because we don't want to record it for future runs.
2167# Also quote any args containing shell meta-characters.
2168# Make two passes to allow for proper duplicate-argument suppression.
2169ac_configure_args=
2170ac_configure_args0=
2171ac_configure_args1=
2172ac_must_keep_next=false
2173for ac_pass in 1 2
2174do
2175  for ac_arg
2176  do
2177    case $ac_arg in
2178    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180    | -silent | --silent | --silen | --sile | --sil)
2181      continue ;;
2182    *\'*)
2183      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184    esac
2185    case $ac_pass in
2186    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187    2)
2188      as_fn_append ac_configure_args1 " '$ac_arg'"
2189      if test $ac_must_keep_next = true; then
2190	ac_must_keep_next=false # Got value, back to normal.
2191      else
2192	case $ac_arg in
2193	  *=* | --config-cache | -C | -disable-* | --disable-* \
2194	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196	  | -with-* | --with-* | -without-* | --without-* | --x)
2197	    case "$ac_configure_args0 " in
2198	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199	    esac
2200	    ;;
2201	  -* ) ac_must_keep_next=true ;;
2202	esac
2203      fi
2204      as_fn_append ac_configure_args " '$ac_arg'"
2205      ;;
2206    esac
2207  done
2208done
2209{ ac_configure_args0=; unset ac_configure_args0;}
2210{ ac_configure_args1=; unset ac_configure_args1;}
2211
2212# When interrupted or exit'd, cleanup temporary files, and complete
2213# config.log.  We remove comments because anyway the quotes in there
2214# would cause problems or look ugly.
2215# WARNING: Use '\'' to represent an apostrophe within the trap.
2216# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217trap 'exit_status=$?
2218  # Save into config.log some information that might help in debugging.
2219  {
2220    echo
2221
2222    $as_echo "## ---------------- ##
2223## Cache variables. ##
2224## ---------------- ##"
2225    echo
2226    # The following way of writing the cache mishandles newlines in values,
2227(
2228  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229    eval ac_val=\$$ac_var
2230    case $ac_val in #(
2231    *${as_nl}*)
2232      case $ac_var in #(
2233      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235      esac
2236      case $ac_var in #(
2237      _ | IFS | as_nl) ;; #(
2238      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239      *) { eval $ac_var=; unset $ac_var;} ;;
2240      esac ;;
2241    esac
2242  done
2243  (set) 2>&1 |
2244    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245    *${as_nl}ac_space=\ *)
2246      sed -n \
2247	"s/'\''/'\''\\\\'\'''\''/g;
2248	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249      ;; #(
2250    *)
2251      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252      ;;
2253    esac |
2254    sort
2255)
2256    echo
2257
2258    $as_echo "## ----------------- ##
2259## Output variables. ##
2260## ----------------- ##"
2261    echo
2262    for ac_var in $ac_subst_vars
2263    do
2264      eval ac_val=\$$ac_var
2265      case $ac_val in
2266      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267      esac
2268      $as_echo "$ac_var='\''$ac_val'\''"
2269    done | sort
2270    echo
2271
2272    if test -n "$ac_subst_files"; then
2273      $as_echo "## ------------------- ##
2274## File substitutions. ##
2275## ------------------- ##"
2276      echo
2277      for ac_var in $ac_subst_files
2278      do
2279	eval ac_val=\$$ac_var
2280	case $ac_val in
2281	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282	esac
2283	$as_echo "$ac_var='\''$ac_val'\''"
2284      done | sort
2285      echo
2286    fi
2287
2288    if test -s confdefs.h; then
2289      $as_echo "## ----------- ##
2290## confdefs.h. ##
2291## ----------- ##"
2292      echo
2293      cat confdefs.h
2294      echo
2295    fi
2296    test "$ac_signal" != 0 &&
2297      $as_echo "$as_me: caught signal $ac_signal"
2298    $as_echo "$as_me: exit $exit_status"
2299  } >&5
2300  rm -f core *.core core.conftest.* &&
2301    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302    exit $exit_status
2303' 0
2304for ac_signal in 1 2 13 15; do
2305  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306done
2307ac_signal=0
2308
2309# confdefs.h avoids OS command line length limits that DEFS can exceed.
2310rm -f -r conftest* confdefs.h
2311
2312$as_echo "/* confdefs.h */" > confdefs.h
2313
2314# Predefined preprocessor variables.
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_NAME "$PACKAGE_NAME"
2318_ACEOF
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322_ACEOF
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_VERSION "$PACKAGE_VERSION"
2326_ACEOF
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_STRING "$PACKAGE_STRING"
2330_ACEOF
2331
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334_ACEOF
2335
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_URL "$PACKAGE_URL"
2338_ACEOF
2339
2340
2341# Let the site file select an alternate cache file if it wants to.
2342# Prefer an explicitly selected file to automatically selected ones.
2343ac_site_file1=NONE
2344ac_site_file2=NONE
2345if test -n "$CONFIG_SITE"; then
2346  # We do not want a PATH search for config.site.
2347  case $CONFIG_SITE in #((
2348    -*)  ac_site_file1=./$CONFIG_SITE;;
2349    */*) ac_site_file1=$CONFIG_SITE;;
2350    *)   ac_site_file1=./$CONFIG_SITE;;
2351  esac
2352elif test "x$prefix" != xNONE; then
2353  ac_site_file1=$prefix/share/config.site
2354  ac_site_file2=$prefix/etc/config.site
2355else
2356  ac_site_file1=$ac_default_prefix/share/config.site
2357  ac_site_file2=$ac_default_prefix/etc/config.site
2358fi
2359for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360do
2361  test "x$ac_site_file" = xNONE && continue
2362  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2363    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365    sed 's/^/| /' "$ac_site_file" >&5
2366    . "$ac_site_file" \
2367      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369as_fn_error $? "failed to load site script $ac_site_file
2370See \`config.log' for more details" "$LINENO" 5; }
2371  fi
2372done
2373
2374if test -r "$cache_file"; then
2375  # Some versions of bash will fail to source /dev/null (special files
2376  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2377  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2378    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379$as_echo "$as_me: loading cache $cache_file" >&6;}
2380    case $cache_file in
2381      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382      *)                      . "./$cache_file";;
2383    esac
2384  fi
2385else
2386  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387$as_echo "$as_me: creating cache $cache_file" >&6;}
2388  >$cache_file
2389fi
2390
2391# Check that the precious variables saved in the cache have kept the same
2392# value.
2393ac_cache_corrupted=false
2394for ac_var in $ac_precious_vars; do
2395  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396  eval ac_new_set=\$ac_env_${ac_var}_set
2397  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398  eval ac_new_val=\$ac_env_${ac_var}_value
2399  case $ac_old_set,$ac_new_set in
2400    set,)
2401      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2403      ac_cache_corrupted=: ;;
2404    ,set)
2405      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2406$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2407      ac_cache_corrupted=: ;;
2408    ,);;
2409    *)
2410      if test "x$ac_old_val" != "x$ac_new_val"; then
2411	# differences in whitespace do not lead to failure.
2412	ac_old_val_w=`echo x $ac_old_val`
2413	ac_new_val_w=`echo x $ac_new_val`
2414	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2415	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2416$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417	  ac_cache_corrupted=:
2418	else
2419	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2420$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2421	  eval $ac_var=\$ac_old_val
2422	fi
2423	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2424$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2425	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2426$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2427      fi;;
2428  esac
2429  # Pass precious variables to config.status.
2430  if test "$ac_new_set" = set; then
2431    case $ac_new_val in
2432    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2433    *) ac_arg=$ac_var=$ac_new_val ;;
2434    esac
2435    case " $ac_configure_args " in
2436      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2437      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2438    esac
2439  fi
2440done
2441if $ac_cache_corrupted; then
2442  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2445$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2446  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2447fi
2448## -------------------- ##
2449## Main body of script. ##
2450## -------------------- ##
2451
2452ac_ext=c
2453ac_cpp='$CPP $CPPFLAGS'
2454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457
2458
2459
2460
2461ac_aux_dir=
2462for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2463  if test -f "$ac_dir/install-sh"; then
2464    ac_aux_dir=$ac_dir
2465    ac_install_sh="$ac_aux_dir/install-sh -c"
2466    break
2467  elif test -f "$ac_dir/install.sh"; then
2468    ac_aux_dir=$ac_dir
2469    ac_install_sh="$ac_aux_dir/install.sh -c"
2470    break
2471  elif test -f "$ac_dir/shtool"; then
2472    ac_aux_dir=$ac_dir
2473    ac_install_sh="$ac_aux_dir/shtool install -c"
2474    break
2475  fi
2476done
2477if test -z "$ac_aux_dir"; then
2478  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2479fi
2480
2481# These three variables are undocumented and unsupported,
2482# and are intended to be withdrawn in a future Autoconf release.
2483# They can cause serious problems if a builder's source tree is in a directory
2484# whose full name contains unusual characters.
2485ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2486ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2487ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2488
2489
2490# Make sure we can run config.sub.
2491$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2492  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2493
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2495$as_echo_n "checking build system type... " >&6; }
2496if test "${ac_cv_build+set}" = set; then :
2497  $as_echo_n "(cached) " >&6
2498else
2499  ac_build_alias=$build_alias
2500test "x$ac_build_alias" = x &&
2501  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2502test "x$ac_build_alias" = x &&
2503  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2504ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2505  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2506
2507fi
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2509$as_echo "$ac_cv_build" >&6; }
2510case $ac_cv_build in
2511*-*-*) ;;
2512*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2513esac
2514build=$ac_cv_build
2515ac_save_IFS=$IFS; IFS='-'
2516set x $ac_cv_build
2517shift
2518build_cpu=$1
2519build_vendor=$2
2520shift; shift
2521# Remember, the first character of IFS is used to create $*,
2522# except with old shells:
2523build_os=$*
2524IFS=$ac_save_IFS
2525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2526
2527
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2529$as_echo_n "checking host system type... " >&6; }
2530if test "${ac_cv_host+set}" = set; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test "x$host_alias" = x; then
2534  ac_cv_host=$ac_cv_build
2535else
2536  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2537    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2538fi
2539
2540fi
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2542$as_echo "$ac_cv_host" >&6; }
2543case $ac_cv_host in
2544*-*-*) ;;
2545*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2546esac
2547host=$ac_cv_host
2548ac_save_IFS=$IFS; IFS='-'
2549set x $ac_cv_host
2550shift
2551host_cpu=$1
2552host_vendor=$2
2553shift; shift
2554# Remember, the first character of IFS is used to create $*,
2555# except with old shells:
2556host_os=$*
2557IFS=$ac_save_IFS
2558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2559
2560
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2562$as_echo_n "checking target system type... " >&6; }
2563if test "${ac_cv_target+set}" = set; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if test "x$target_alias" = x; then
2567  ac_cv_target=$ac_cv_host
2568else
2569  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2570    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2571fi
2572
2573fi
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2575$as_echo "$ac_cv_target" >&6; }
2576case $ac_cv_target in
2577*-*-*) ;;
2578*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2579esac
2580target=$ac_cv_target
2581ac_save_IFS=$IFS; IFS='-'
2582set x $ac_cv_target
2583shift
2584target_cpu=$1
2585target_vendor=$2
2586shift; shift
2587# Remember, the first character of IFS is used to create $*,
2588# except with old shells:
2589target_os=$*
2590IFS=$ac_save_IFS
2591case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2592
2593
2594# The aliases save the names the user supplied, while $host etc.
2595# will get canonicalized.
2596test -n "$target_alias" &&
2597  test "$program_prefix$program_suffix$program_transform_name" = \
2598    NONENONEs,x,x, &&
2599  program_prefix=${target_alias}-
2600
2601
2602
2603am__api_version='1.11'
2604
2605# Find a good install program.  We prefer a C program (faster),
2606# so one script is as good as another.  But avoid the broken or
2607# incompatible versions:
2608# SysV /etc/install, /usr/sbin/install
2609# SunOS /usr/etc/install
2610# IRIX /sbin/install
2611# AIX /bin/install
2612# AmigaOS /C/install, which installs bootblocks on floppy discs
2613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2614# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2616# OS/2's system install, which has a completely different semantic
2617# ./install, which can be erroneously created by make from ./install.sh.
2618# Reject install programs that cannot install multiple files.
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2620$as_echo_n "checking for a BSD-compatible install... " >&6; }
2621if test -z "$INSTALL"; then
2622if test "${ac_cv_path_install+set}" = set; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630    # Account for people who put trailing slashes in PATH elements.
2631case $as_dir/ in #((
2632  ./ | .// | /[cC]/* | \
2633  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2634  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2635  /usr/ucb/* ) ;;
2636  *)
2637    # OSF1 and SCO ODT 3.0 have their own names for install.
2638    # Don't use installbsd from OSF since it installs stuff as root
2639    # by default.
2640    for ac_prog in ginstall scoinst install; do
2641      for ac_exec_ext in '' $ac_executable_extensions; do
2642	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2643	  if test $ac_prog = install &&
2644	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645	    # AIX install.  It has an incompatible calling convention.
2646	    :
2647	  elif test $ac_prog = install &&
2648	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2649	    # program-specific install script used by HP pwplus--don't use.
2650	    :
2651	  else
2652	    rm -rf conftest.one conftest.two conftest.dir
2653	    echo one > conftest.one
2654	    echo two > conftest.two
2655	    mkdir conftest.dir
2656	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2657	      test -s conftest.one && test -s conftest.two &&
2658	      test -s conftest.dir/conftest.one &&
2659	      test -s conftest.dir/conftest.two
2660	    then
2661	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2662	      break 3
2663	    fi
2664	  fi
2665	fi
2666      done
2667    done
2668    ;;
2669esac
2670
2671  done
2672IFS=$as_save_IFS
2673
2674rm -rf conftest.one conftest.two conftest.dir
2675
2676fi
2677  if test "${ac_cv_path_install+set}" = set; then
2678    INSTALL=$ac_cv_path_install
2679  else
2680    # As a last resort, use the slow shell script.  Don't cache a
2681    # value for INSTALL within a source directory, because that will
2682    # break other packages using the cache if that directory is
2683    # removed, or if the value is a relative name.
2684    INSTALL=$ac_install_sh
2685  fi
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2688$as_echo "$INSTALL" >&6; }
2689
2690# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2691# It thinks the first close brace ends the variable substitution.
2692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693
2694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695
2696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2699$as_echo_n "checking whether build environment is sane... " >&6; }
2700# Just in case
2701sleep 1
2702echo timestamp > conftest.file
2703# Reject unsafe characters in $srcdir or the absolute working directory
2704# name.  Accept space and tab only in the latter.
2705am_lf='
2706'
2707case `pwd` in
2708  *[\\\"\#\$\&\'\`$am_lf]*)
2709    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2710esac
2711case $srcdir in
2712  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2713    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2714esac
2715
2716# Do `set' in a subshell so we don't clobber the current shell's
2717# arguments.  Must try -L first in case configure is actually a
2718# symlink; some systems play weird games with the mod time of symlinks
2719# (eg FreeBSD returns the mod time of the symlink's containing
2720# directory).
2721if (
2722   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2723   if test "$*" = "X"; then
2724      # -L didn't work.
2725      set X `ls -t "$srcdir/configure" conftest.file`
2726   fi
2727   rm -f conftest.file
2728   if test "$*" != "X $srcdir/configure conftest.file" \
2729      && test "$*" != "X conftest.file $srcdir/configure"; then
2730
2731      # If neither matched, then we have a broken ls.  This can happen
2732      # if, for instance, CONFIG_SHELL is bash and it inherits a
2733      # broken ls alias from the environment.  This has actually
2734      # happened.  Such a system could not be considered "sane".
2735      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2736alias in your environment" "$LINENO" 5
2737   fi
2738
2739   test "$2" = conftest.file
2740   )
2741then
2742   # Ok.
2743   :
2744else
2745   as_fn_error $? "newly created file is older than distributed files!
2746Check your system clock" "$LINENO" 5
2747fi
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749$as_echo "yes" >&6; }
2750test "$program_prefix" != NONE &&
2751  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752# Use a double $ so make ignores it.
2753test "$program_suffix" != NONE &&
2754  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755# Double any \ or $.
2756# By default was `s,x,x', remove it if useless.
2757ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
2760# expand $ac_aux_dir to an absolute path
2761am_aux_dir=`cd $ac_aux_dir && pwd`
2762
2763if test x"${MISSING+set}" != xset; then
2764  case $am_aux_dir in
2765  *\ * | *\	*)
2766    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767  *)
2768    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769  esac
2770fi
2771# Use eval to expand $SHELL
2772if eval "$MISSING --run true"; then
2773  am_missing_run="$MISSING --run "
2774else
2775  am_missing_run=
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2777$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2778fi
2779
2780if test x"${install_sh}" != xset; then
2781  case $am_aux_dir in
2782  *\ * | *\	*)
2783    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784  *)
2785    install_sh="\${SHELL} $am_aux_dir/install-sh"
2786  esac
2787fi
2788
2789# Installed binaries are usually stripped using `strip' when the user
2790# run `make install-strip'.  However `strip' might not be the right
2791# tool to use in cross-compilation environments, therefore Automake
2792# will honor the `STRIP' environment variable to overrule this program.
2793if test "$cross_compiling" != no; then
2794  if test -n "$ac_tool_prefix"; then
2795  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796set dummy ${ac_tool_prefix}strip; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if test "${ac_cv_prog_STRIP+set}" = set; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  if test -n "$STRIP"; then
2803  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822STRIP=$ac_cv_prog_STRIP
2823if test -n "$STRIP"; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825$as_echo "$STRIP" >&6; }
2826else
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832fi
2833if test -z "$ac_cv_prog_STRIP"; then
2834  ac_ct_STRIP=$STRIP
2835  # Extract the first word of "strip", so it can be a program name with args.
2836set dummy strip; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  if test -n "$ac_ct_STRIP"; then
2843  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852    ac_cv_prog_ac_ct_STRIP="strip"
2853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863if test -n "$ac_ct_STRIP"; then
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865$as_echo "$ac_ct_STRIP" >&6; }
2866else
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871  if test "x$ac_ct_STRIP" = x; then
2872    STRIP=":"
2873  else
2874    case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880    STRIP=$ac_ct_STRIP
2881  fi
2882else
2883  STRIP="$ac_cv_prog_STRIP"
2884fi
2885
2886fi
2887INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891if test -z "$MKDIR_P"; then
2892  if test "${ac_cv_path_mkdir+set}" = set; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900    for ac_prog in mkdir gmkdir; do
2901	 for ac_exec_ext in '' $ac_executable_extensions; do
2902	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2903	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904	     'mkdir (GNU coreutils) '* | \
2905	     'mkdir (coreutils) '* | \
2906	     'mkdir (fileutils) '4.1*)
2907	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2908	       break 3;;
2909	   esac
2910	 done
2911       done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916
2917  test -d ./--version && rmdir ./--version
2918  if test "${ac_cv_path_mkdir+set}" = set; then
2919    MKDIR_P="$ac_cv_path_mkdir -p"
2920  else
2921    # As a last resort, use the slow shell script.  Don't cache a
2922    # value for MKDIR_P within a source directory, because that will
2923    # break other packages using the cache if that directory is
2924    # removed, or if the value is a relative name.
2925    MKDIR_P="$ac_install_sh -d"
2926  fi
2927fi
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929$as_echo "$MKDIR_P" >&6; }
2930
2931mkdir_p="$MKDIR_P"
2932case $mkdir_p in
2933  [\\/$]* | ?:[\\/]*) ;;
2934  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2935esac
2936
2937for ac_prog in gawk mawk nawk awk
2938do
2939  # Extract the first word of "$ac_prog", so it can be a program name with args.
2940set dummy $ac_prog; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if test "${ac_cv_prog_AWK+set}" = set; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$AWK"; then
2947  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956    ac_cv_prog_AWK="$ac_prog"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966AWK=$ac_cv_prog_AWK
2967if test -n "$AWK"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2969$as_echo "$AWK" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976  test -n "$AWK" && break
2977done
2978
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2980$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2981set x ${MAKE-make}
2982ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2983if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  cat >conftest.make <<\_ACEOF
2987SHELL = /bin/sh
2988all:
2989	@echo '@@@%%%=$(MAKE)=@@@%%%'
2990_ACEOF
2991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2992case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993  *@@@%%%=?*=@@@%%%*)
2994    eval ac_cv_prog_make_${ac_make}_set=yes;;
2995  *)
2996    eval ac_cv_prog_make_${ac_make}_set=no;;
2997esac
2998rm -f conftest.make
2999fi
3000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002$as_echo "yes" >&6; }
3003  SET_MAKE=
3004else
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
3007  SET_MAKE="MAKE=${MAKE-make}"
3008fi
3009
3010rm -rf .tst 2>/dev/null
3011mkdir .tst 2>/dev/null
3012if test -d .tst; then
3013  am__leading_dot=.
3014else
3015  am__leading_dot=_
3016fi
3017rmdir .tst 2>/dev/null
3018
3019if test "`cd $srcdir && pwd`" != "`pwd`"; then
3020  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3021  # is not polluted with repeated "-I."
3022  am__isrc=' -I$(srcdir)'
3023  # test to see if srcdir already configured
3024  if test -f $srcdir/config.status; then
3025    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3026  fi
3027fi
3028
3029# test whether we have cygpath
3030if test -z "$CYGPATH_W"; then
3031  if (cygpath --version) >/dev/null 2>/dev/null; then
3032    CYGPATH_W='cygpath -w'
3033  else
3034    CYGPATH_W=echo
3035  fi
3036fi
3037
3038
3039# Define the identity of the package.
3040 PACKAGE=modplugtools
3041 VERSION=0.5.3
3042
3043
3044cat >>confdefs.h <<_ACEOF
3045#define PACKAGE "$PACKAGE"
3046_ACEOF
3047
3048
3049cat >>confdefs.h <<_ACEOF
3050#define VERSION "$VERSION"
3051_ACEOF
3052
3053# Some tools Automake needs.
3054
3055ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3056
3057
3058AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3059
3060
3061AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3062
3063
3064AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3065
3066
3067MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3068
3069# We need awk for the "check" target.  The system "awk" is bad on
3070# some platforms.
3071# Always define AMTAR for backward compatibility.
3072
3073AMTAR=${AMTAR-"${am_missing_run}tar"}
3074
3075am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3076
3077
3078
3079
3080
3081# Check whether --enable-silent-rules was given.
3082if test "${enable_silent_rules+set}" = set; then :
3083  enableval=$enable_silent_rules;
3084fi
3085
3086case $enable_silent_rules in
3087yes) AM_DEFAULT_VERBOSITY=0;;
3088no)  AM_DEFAULT_VERBOSITY=1;;
3089*)   AM_DEFAULT_VERBOSITY=1;;
3090esac
3091AM_BACKSLASH='\'
3092
3093# Check whether --enable-silent-rules was given.
3094if test "${enable_silent_rules+set}" = set; then :
3095  enableval=$enable_silent_rules;
3096fi
3097
3098case $enable_silent_rules in
3099yes) AM_DEFAULT_VERBOSITY=0;;
3100no)  AM_DEFAULT_VERBOSITY=1;;
3101*)   AM_DEFAULT_VERBOSITY=0;;
3102esac
3103AM_BACKSLASH='\'
3104
3105
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3107$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3108    # Check whether --enable-maintainer-mode was given.
3109if test "${enable_maintainer_mode+set}" = set; then :
3110  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3111else
3112  USE_MAINTAINER_MODE=no
3113fi
3114
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3116$as_echo "$USE_MAINTAINER_MODE" >&6; }
3117   if test $USE_MAINTAINER_MODE = yes; then
3118  MAINTAINER_MODE_TRUE=
3119  MAINTAINER_MODE_FALSE='#'
3120else
3121  MAINTAINER_MODE_TRUE='#'
3122  MAINTAINER_MODE_FALSE=
3123fi
3124
3125  MAINT=$MAINTAINER_MODE_TRUE
3126
3127
3128
3129ac_config_headers="$ac_config_headers config.h"
3130
3131
3132DEPDIR="${am__leading_dot}deps"
3133
3134ac_config_commands="$ac_config_commands depfiles"
3135
3136
3137am_make=${MAKE-make}
3138cat > confinc << 'END'
3139am__doit:
3140	@echo this is the am__doit target
3141.PHONY: am__doit
3142END
3143# If we don't find an include directive, just comment out the code.
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3145$as_echo_n "checking for style of include used by $am_make... " >&6; }
3146am__include="#"
3147am__quote=
3148_am_result=none
3149# First try GNU make style include.
3150echo "include confinc" > confmf
3151# Ignore all kinds of additional output from `make'.
3152case `$am_make -s -f confmf 2> /dev/null` in #(
3153*the\ am__doit\ target*)
3154  am__include=include
3155  am__quote=
3156  _am_result=GNU
3157  ;;
3158esac
3159# Now try BSD make style include.
3160if test "$am__include" = "#"; then
3161   echo '.include "confinc"' > confmf
3162   case `$am_make -s -f confmf 2> /dev/null` in #(
3163   *the\ am__doit\ target*)
3164     am__include=.include
3165     am__quote="\""
3166     _am_result=BSD
3167     ;;
3168   esac
3169fi
3170
3171
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3173$as_echo "$_am_result" >&6; }
3174rm -f confinc confmf
3175
3176# Check whether --enable-dependency-tracking was given.
3177if test "${enable_dependency_tracking+set}" = set; then :
3178  enableval=$enable_dependency_tracking;
3179fi
3180
3181if test "x$enable_dependency_tracking" != xno; then
3182  am_depcomp="$ac_aux_dir/depcomp"
3183  AMDEPBACKSLASH='\'
3184fi
3185 if test "x$enable_dependency_tracking" != xno; then
3186  AMDEP_TRUE=
3187  AMDEP_FALSE='#'
3188else
3189  AMDEP_TRUE='#'
3190  AMDEP_FALSE=
3191fi
3192
3193
3194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199if test -n "$ac_tool_prefix"; then
3200  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3201set dummy ${ac_tool_prefix}gcc; ac_word=$2
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203$as_echo_n "checking for $ac_word... " >&6; }
3204if test "${ac_cv_prog_CC+set}" = set; then :
3205  $as_echo_n "(cached) " >&6
3206else
3207  if test -n "$CC"; then
3208  ac_cv_prog_CC="$CC" # Let the user override the test.
3209else
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213  IFS=$as_save_IFS
3214  test -z "$as_dir" && as_dir=.
3215    for ac_exec_ext in '' $ac_executable_extensions; do
3216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219    break 2
3220  fi
3221done
3222  done
3223IFS=$as_save_IFS
3224
3225fi
3226fi
3227CC=$ac_cv_prog_CC
3228if test -n "$CC"; then
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230$as_echo "$CC" >&6; }
3231else
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233$as_echo "no" >&6; }
3234fi
3235
3236
3237fi
3238if test -z "$ac_cv_prog_CC"; then
3239  ac_ct_CC=$CC
3240  # Extract the first word of "gcc", so it can be a program name with args.
3241set dummy gcc; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  if test -n "$ac_ct_CC"; then
3248  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257    ac_cv_prog_ac_ct_CC="gcc"
3258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262  done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268if test -n "$ac_ct_CC"; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270$as_echo "$ac_ct_CC" >&6; }
3271else
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276  if test "x$ac_ct_CC" = x; then
3277    CC=""
3278  else
3279    case $cross_compiling:$ac_tool_warned in
3280yes:)
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283ac_tool_warned=yes ;;
3284esac
3285    CC=$ac_ct_CC
3286  fi
3287else
3288  CC="$ac_cv_prog_CC"
3289fi
3290
3291if test -z "$CC"; then
3292          if test -n "$ac_tool_prefix"; then
3293    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3294set dummy ${ac_tool_prefix}cc; ac_word=$2
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
3297if test "${ac_cv_prog_CC+set}" = set; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if test -n "$CC"; then
3301  ac_cv_prog_CC="$CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310    ac_cv_prog_CC="${ac_tool_prefix}cc"
3311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323$as_echo "$CC" >&6; }
3324else
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330  fi
3331fi
3332if test -z "$CC"; then
3333  # Extract the first word of "cc", so it can be a program name with args.
3334set dummy cc; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if test "${ac_cv_prog_CC+set}" = set; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$CC"; then
3341  ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343  ac_prog_rejected=no
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349    for ac_exec_ext in '' $ac_executable_extensions; do
3350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3352       ac_prog_rejected=yes
3353       continue
3354     fi
3355    ac_cv_prog_CC="cc"
3356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360  done
3361IFS=$as_save_IFS
3362
3363if test $ac_prog_rejected = yes; then
3364  # We found a bogon in the path, so make sure we never use it.
3365  set dummy $ac_cv_prog_CC
3366  shift
3367  if test $# != 0; then
3368    # We chose a different compiler from the bogus one.
3369    # However, it has the same basename, so the bogon will be chosen
3370    # first if we set CC to just the basename; use the full file name.
3371    shift
3372    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3373  fi
3374fi
3375fi
3376fi
3377CC=$ac_cv_prog_CC
3378if test -n "$CC"; then
3379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380$as_echo "$CC" >&6; }
3381else
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383$as_echo "no" >&6; }
3384fi
3385
3386
3387fi
3388if test -z "$CC"; then
3389  if test -n "$ac_tool_prefix"; then
3390  for ac_prog in cl.exe
3391  do
3392    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if test "${ac_cv_prog_CC+set}" = set; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if test -n "$CC"; then
3400  ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405  IFS=$as_save_IFS
3406  test -z "$as_dir" && as_dir=.
3407    for ac_exec_ext in '' $ac_executable_extensions; do
3408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419CC=$ac_cv_prog_CC
3420if test -n "$CC"; then
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422$as_echo "$CC" >&6; }
3423else
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428
3429    test -n "$CC" && break
3430  done
3431fi
3432if test -z "$CC"; then
3433  ac_ct_CC=$CC
3434  for ac_prog in cl.exe
3435do
3436  # Extract the first word of "$ac_prog", so it can be a program name with args.
3437set dummy $ac_prog; ac_word=$2
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  if test -n "$ac_ct_CC"; then
3444  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445else
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449  IFS=$as_save_IFS
3450  test -z "$as_dir" && as_dir=.
3451    for ac_exec_ext in '' $ac_executable_extensions; do
3452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453    ac_cv_prog_ac_ct_CC="$ac_prog"
3454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455    break 2
3456  fi
3457done
3458  done
3459IFS=$as_save_IFS
3460
3461fi
3462fi
3463ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464if test -n "$ac_ct_CC"; then
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466$as_echo "$ac_ct_CC" >&6; }
3467else
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470fi
3471
3472
3473  test -n "$ac_ct_CC" && break
3474done
3475
3476  if test "x$ac_ct_CC" = x; then
3477    CC=""
3478  else
3479    case $cross_compiling:$ac_tool_warned in
3480yes:)
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483ac_tool_warned=yes ;;
3484esac
3485    CC=$ac_ct_CC
3486  fi
3487fi
3488
3489fi
3490
3491
3492test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494as_fn_error $? "no acceptable C compiler found in \$PATH
3495See \`config.log' for more details" "$LINENO" 5; }
3496
3497# Provide some information about the compiler.
3498$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3499set X $ac_compile
3500ac_compiler=$2
3501for ac_option in --version -v -V -qversion; do
3502  { { ac_try="$ac_compiler $ac_option >&5"
3503case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508$as_echo "$ac_try_echo"; } >&5
3509  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510  ac_status=$?
3511  if test -s conftest.err; then
3512    sed '10a\
3513... rest of stderr output deleted ...
3514         10q' conftest.err >conftest.er1
3515    cat conftest.er1 >&5
3516  fi
3517  rm -f conftest.er1 conftest.err
3518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }
3520done
3521
3522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533ac_clean_files_save=$ac_clean_files
3534ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3535# Try to create an executable without -o first, disregard a.out.
3536# It will help us diagnose broken compilers, and finding out an intuition
3537# of exeext.
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3539$as_echo_n "checking whether the C compiler works... " >&6; }
3540ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3541
3542# The possible output files:
3543ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3544
3545ac_rmfiles=
3546for ac_file in $ac_files
3547do
3548  case $ac_file in
3549    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3551  esac
3552done
3553rm -f $ac_rmfiles
3554
3555if { { ac_try="$ac_link_default"
3556case "(($ac_try" in
3557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558  *) ac_try_echo=$ac_try;;
3559esac
3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561$as_echo "$ac_try_echo"; } >&5
3562  (eval "$ac_link_default") 2>&5
3563  ac_status=$?
3564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565  test $ac_status = 0; }; then :
3566  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3567# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3568# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3569# so that the user can short-circuit this test for compilers unknown to
3570# Autoconf.
3571for ac_file in $ac_files ''
3572do
3573  test -f "$ac_file" || continue
3574  case $ac_file in
3575    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3576	;;
3577    [ab].out )
3578	# We found the default executable, but exeext='' is most
3579	# certainly right.
3580	break;;
3581    *.* )
3582	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3583	then :; else
3584	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585	fi
3586	# We set ac_cv_exeext here because the later test for it is not
3587	# safe: cross compilers may not add the suffix if given an `-o'
3588	# argument, so we may need to know it at that point already.
3589	# Even if this section looks crufty: it has the advantage of
3590	# actually working.
3591	break;;
3592    * )
3593	break;;
3594  esac
3595done
3596test "$ac_cv_exeext" = no && ac_cv_exeext=
3597
3598else
3599  ac_file=''
3600fi
3601if test -z "$ac_file"; then :
3602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603$as_echo "no" >&6; }
3604$as_echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609as_fn_error 77 "C compiler cannot create executables
3610See \`config.log' for more details" "$LINENO" 5; }
3611else
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613$as_echo "yes" >&6; }
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3616$as_echo_n "checking for C compiler default output file name... " >&6; }
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3618$as_echo "$ac_file" >&6; }
3619ac_exeext=$ac_cv_exeext
3620
3621rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3622ac_clean_files=$ac_clean_files_save
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3624$as_echo_n "checking for suffix of executables... " >&6; }
3625if { { ac_try="$ac_link"
3626case "(($ac_try" in
3627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628  *) ac_try_echo=$ac_try;;
3629esac
3630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631$as_echo "$ac_try_echo"; } >&5
3632  (eval "$ac_link") 2>&5
3633  ac_status=$?
3634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635  test $ac_status = 0; }; then :
3636  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3637# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3638# work properly (i.e., refer to `conftest.exe'), while it won't with
3639# `rm'.
3640for ac_file in conftest.exe conftest conftest.*; do
3641  test -f "$ac_file" || continue
3642  case $ac_file in
3643    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3644    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645	  break;;
3646    * ) break;;
3647  esac
3648done
3649else
3650  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3653See \`config.log' for more details" "$LINENO" 5; }
3654fi
3655rm -f conftest conftest$ac_cv_exeext
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3657$as_echo "$ac_cv_exeext" >&6; }
3658
3659rm -f conftest.$ac_ext
3660EXEEXT=$ac_cv_exeext
3661ac_exeext=$EXEEXT
3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664#include <stdio.h>
3665int
3666main ()
3667{
3668FILE *f = fopen ("conftest.out", "w");
3669 return ferror (f) || fclose (f) != 0;
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675ac_clean_files="$ac_clean_files conftest.out"
3676# Check that the compiler produces executables we can run.  If not, either
3677# the compiler is broken, or we cross compile.
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3679$as_echo_n "checking whether we are cross compiling... " >&6; }
3680if test "$cross_compiling" != yes; then
3681  { { ac_try="$ac_link"
3682case "(($ac_try" in
3683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684  *) ac_try_echo=$ac_try;;
3685esac
3686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687$as_echo "$ac_try_echo"; } >&5
3688  (eval "$ac_link") 2>&5
3689  ac_status=$?
3690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691  test $ac_status = 0; }
3692  if { ac_try='./conftest$ac_cv_exeext'
3693  { { case "(($ac_try" in
3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695  *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698$as_echo "$ac_try_echo"; } >&5
3699  (eval "$ac_try") 2>&5
3700  ac_status=$?
3701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702  test $ac_status = 0; }; }; then
3703    cross_compiling=no
3704  else
3705    if test "$cross_compiling" = maybe; then
3706	cross_compiling=yes
3707    else
3708	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710as_fn_error $? "cannot run C compiled programs.
3711If you meant to cross compile, use \`--host'.
3712See \`config.log' for more details" "$LINENO" 5; }
3713    fi
3714  fi
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3717$as_echo "$cross_compiling" >&6; }
3718
3719rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3720ac_clean_files=$ac_clean_files_save
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3722$as_echo_n "checking for suffix of object files... " >&6; }
3723if test "${ac_cv_objext+set}" = set; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h.  */
3728
3729int
3730main ()
3731{
3732
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737rm -f conftest.o conftest.obj
3738if { { ac_try="$ac_compile"
3739case "(($ac_try" in
3740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741  *) ac_try_echo=$ac_try;;
3742esac
3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744$as_echo "$ac_try_echo"; } >&5
3745  (eval "$ac_compile") 2>&5
3746  ac_status=$?
3747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748  test $ac_status = 0; }; then :
3749  for ac_file in conftest.o conftest.obj conftest.*; do
3750  test -f "$ac_file" || continue;
3751  case $ac_file in
3752    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3753    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3754       break;;
3755  esac
3756done
3757else
3758  $as_echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763as_fn_error $? "cannot compute suffix of object files: cannot compile
3764See \`config.log' for more details" "$LINENO" 5; }
3765fi
3766rm -f conftest.$ac_cv_objext conftest.$ac_ext
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3769$as_echo "$ac_cv_objext" >&6; }
3770OBJEXT=$ac_cv_objext
3771ac_objext=$OBJEXT
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3773$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3774if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779
3780int
3781main ()
3782{
3783#ifndef __GNUC__
3784       choke me
3785#endif
3786
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792  ac_compiler_gnu=yes
3793else
3794  ac_compiler_gnu=no
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797ac_cv_c_compiler_gnu=$ac_compiler_gnu
3798
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3801$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3802if test $ac_compiler_gnu = yes; then
3803  GCC=yes
3804else
3805  GCC=
3806fi
3807ac_test_CFLAGS=${CFLAGS+set}
3808ac_save_CFLAGS=$CFLAGS
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3810$as_echo_n "checking whether $CC accepts -g... " >&6; }
3811if test "${ac_cv_prog_cc_g+set}" = set; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  ac_save_c_werror_flag=$ac_c_werror_flag
3815   ac_c_werror_flag=yes
3816   ac_cv_prog_cc_g=no
3817   CFLAGS="-g"
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830  ac_cv_prog_cc_g=yes
3831else
3832  CFLAGS=""
3833      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h.  */
3835
3836int
3837main ()
3838{
3839
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844if ac_fn_c_try_compile "$LINENO"; then :
3845
3846else
3847  ac_c_werror_flag=$ac_save_c_werror_flag
3848	 CFLAGS="-g"
3849	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851
3852int
3853main ()
3854{
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"; then :
3861  ac_cv_prog_cc_g=yes
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866fi
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868   ac_c_werror_flag=$ac_save_c_werror_flag
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3871$as_echo "$ac_cv_prog_cc_g" >&6; }
3872if test "$ac_test_CFLAGS" = set; then
3873  CFLAGS=$ac_save_CFLAGS
3874elif test $ac_cv_prog_cc_g = yes; then
3875  if test "$GCC" = yes; then
3876    CFLAGS="-g -O2"
3877  else
3878    CFLAGS="-g"
3879  fi
3880else
3881  if test "$GCC" = yes; then
3882    CFLAGS="-O2"
3883  else
3884    CFLAGS=
3885  fi
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3888$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3889if test "${ac_cv_prog_cc_c89+set}" = set; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  ac_cv_prog_cc_c89=no
3893ac_save_CC=$CC
3894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896#include <stdarg.h>
3897#include <stdio.h>
3898#include <sys/types.h>
3899#include <sys/stat.h>
3900/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3901struct buf { int x; };
3902FILE * (*rcsopen) (struct buf *, struct stat *, int);
3903static char *e (p, i)
3904     char **p;
3905     int i;
3906{
3907  return p[i];
3908}
3909static char *f (char * (*g) (char **, int), char **p, ...)
3910{
3911  char *s;
3912  va_list v;
3913  va_start (v,p);
3914  s = g (p, va_arg (v,int));
3915  va_end (v);
3916  return s;
3917}
3918
3919/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3920   function prototypes and stuff, but not '\xHH' hex character constants.
3921   These don't provoke an error unfortunately, instead are silently treated
3922   as 'x'.  The following induces an error, until -std is added to get
3923   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3924   array size at least.  It's necessary to write '\x00'==0 to get something
3925   that's true only with -std.  */
3926int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3927
3928/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3929   inside strings and character constants.  */
3930#define FOO(x) 'x'
3931int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3932
3933int test (int i, double x);
3934struct s1 {int (*f) (int a);};
3935struct s2 {int (*f) (double a);};
3936int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3937int argc;
3938char **argv;
3939int
3940main ()
3941{
3942return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3948	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3949do
3950  CC="$ac_save_CC $ac_arg"
3951  if ac_fn_c_try_compile "$LINENO"; then :
3952  ac_cv_prog_cc_c89=$ac_arg
3953fi
3954rm -f core conftest.err conftest.$ac_objext
3955  test "x$ac_cv_prog_cc_c89" != "xno" && break
3956done
3957rm -f conftest.$ac_ext
3958CC=$ac_save_CC
3959
3960fi
3961# AC_CACHE_VAL
3962case "x$ac_cv_prog_cc_c89" in
3963  x)
3964    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3965$as_echo "none needed" >&6; } ;;
3966  xno)
3967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3968$as_echo "unsupported" >&6; } ;;
3969  *)
3970    CC="$CC $ac_cv_prog_cc_c89"
3971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3972$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3973esac
3974if test "x$ac_cv_prog_cc_c89" != xno; then :
3975
3976fi
3977
3978ac_ext=c
3979ac_cpp='$CPP $CPPFLAGS'
3980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984depcc="$CC"   am_compiler_list=
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3987$as_echo_n "checking dependency style of $depcc... " >&6; }
3988if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3992  # We make a subdir and do the tests there.  Otherwise we can end up
3993  # making bogus files that we don't know about and never remove.  For
3994  # instance it was reported that on HP-UX the gcc test will end up
3995  # making a dummy file named `D' -- because `-MD' means `put the output
3996  # in D'.
3997  mkdir conftest.dir
3998  # Copy depcomp to subdir because otherwise we won't find it if we're
3999  # using a relative directory.
4000  cp "$am_depcomp" conftest.dir
4001  cd conftest.dir
4002  # We will build objects and dependencies in a subdirectory because
4003  # it helps to detect inapplicable dependency modes.  For instance
4004  # both Tru64's cc and ICC support -MD to output dependencies as a
4005  # side effect of compilation, but ICC will put the dependencies in
4006  # the current directory while Tru64 will put them in the object
4007  # directory.
4008  mkdir sub
4009
4010  am_cv_CC_dependencies_compiler_type=none
4011  if test "$am_compiler_list" = ""; then
4012     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4013  fi
4014  am__universal=false
4015  case " $depcc " in #(
4016     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4017     esac
4018
4019  for depmode in $am_compiler_list; do
4020    # Setup a source with many dependencies, because some compilers
4021    # like to wrap large dependency lists on column 80 (with \), and
4022    # we should not choose a depcomp mode which is confused by this.
4023    #
4024    # We need to recreate these files for each test, as the compiler may
4025    # overwrite some of them when testing with obscure command lines.
4026    # This happens at least with the AIX C compiler.
4027    : > sub/conftest.c
4028    for i in 1 2 3 4 5 6; do
4029      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031      # Solaris 8's {/usr,}/bin/sh.
4032      touch sub/conftst$i.h
4033    done
4034    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035
4036    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4037    # mode.  It turns out that the SunPro C++ compiler does not properly
4038    # handle `-M -o', and we need to detect this.  Also, some Intel
4039    # versions had trouble with output in subdirs
4040    am__obj=sub/conftest.${OBJEXT-o}
4041    am__minus_obj="-o $am__obj"
4042    case $depmode in
4043    gcc)
4044      # This depmode causes a compiler race in universal mode.
4045      test "$am__universal" = false || continue
4046      ;;
4047    nosideeffect)
4048      # after this tag, mechanisms are not by side-effect, so they'll
4049      # only be used when explicitly requested
4050      if test "x$enable_dependency_tracking" = xyes; then
4051	continue
4052      else
4053	break
4054      fi
4055      ;;
4056    msvisualcpp | msvcmsys)
4057      # This compiler won't grok `-c -o', but also, the minuso test has
4058      # not run yet.  These depmodes are late enough in the game, and
4059      # so weak that their functioning should not be impacted.
4060      am__obj=conftest.${OBJEXT-o}
4061      am__minus_obj=
4062      ;;
4063    none) break ;;
4064    esac
4065    if depmode=$depmode \
4066       source=sub/conftest.c object=$am__obj \
4067       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4069         >/dev/null 2>conftest.err &&
4070       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4071       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4072       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4073       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4074      # icc doesn't choke on unknown options, it will just issue warnings
4075      # or remarks (even with -Werror).  So we grep stderr for any message
4076      # that says an option was ignored or not supported.
4077      # When given -MP, icc 7.0 and 7.1 complain thusly:
4078      #   icc: Command line warning: ignoring option '-M'; no argument required
4079      # The diagnosis changed in icc 8.0:
4080      #   icc: Command line remark: option '-MP' not supported
4081      if (grep 'ignoring option' conftest.err ||
4082          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4083        am_cv_CC_dependencies_compiler_type=$depmode
4084        break
4085      fi
4086    fi
4087  done
4088
4089  cd ..
4090  rm -rf conftest.dir
4091else
4092  am_cv_CC_dependencies_compiler_type=none
4093fi
4094
4095fi
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4097$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4098CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4099
4100 if
4101  test "x$enable_dependency_tracking" != xno \
4102  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4103  am__fastdepCC_TRUE=
4104  am__fastdepCC_FALSE='#'
4105else
4106  am__fastdepCC_TRUE='#'
4107  am__fastdepCC_FALSE=
4108fi
4109
4110
4111
4112ac_ext=c
4113ac_cpp='$CPP $CPPFLAGS'
4114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4118$as_echo_n "checking how to run the C preprocessor... " >&6; }
4119# On Suns, sometimes $CPP names a directory.
4120if test -n "$CPP" && test -d "$CPP"; then
4121  CPP=
4122fi
4123if test -z "$CPP"; then
4124  if test "${ac_cv_prog_CPP+set}" = set; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127      # Double quotes because CPP needs to be expanded
4128    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4129    do
4130      ac_preproc_ok=false
4131for ac_c_preproc_warn_flag in '' yes
4132do
4133  # Use a header file that comes with gcc, so configuring glibc
4134  # with a fresh cross-compiler works.
4135  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136  # <limits.h> exists even on freestanding compilers.
4137  # On the NeXT, cc -E runs the code through the compiler's parser,
4138  # not just through cpp. "Syntax error" is here to catch this case.
4139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141#ifdef __STDC__
4142# include <limits.h>
4143#else
4144# include <assert.h>
4145#endif
4146		     Syntax error
4147_ACEOF
4148if ac_fn_c_try_cpp "$LINENO"; then :
4149
4150else
4151  # Broken: fails on valid input.
4152continue
4153fi
4154rm -f conftest.err conftest.$ac_ext
4155
4156  # OK, works on sane cases.  Now check whether nonexistent headers
4157  # can be detected and how.
4158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159/* end confdefs.h.  */
4160#include <ac_nonexistent.h>
4161_ACEOF
4162if ac_fn_c_try_cpp "$LINENO"; then :
4163  # Broken: success on invalid input.
4164continue
4165else
4166  # Passes both tests.
4167ac_preproc_ok=:
4168break
4169fi
4170rm -f conftest.err conftest.$ac_ext
4171
4172done
4173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174rm -f conftest.err conftest.$ac_ext
4175if $ac_preproc_ok; then :
4176  break
4177fi
4178
4179    done
4180    ac_cv_prog_CPP=$CPP
4181
4182fi
4183  CPP=$ac_cv_prog_CPP
4184else
4185  ac_cv_prog_CPP=$CPP
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4188$as_echo "$CPP" >&6; }
4189ac_preproc_ok=false
4190for ac_c_preproc_warn_flag in '' yes
4191do
4192  # Use a header file that comes with gcc, so configuring glibc
4193  # with a fresh cross-compiler works.
4194  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195  # <limits.h> exists even on freestanding compilers.
4196  # On the NeXT, cc -E runs the code through the compiler's parser,
4197  # not just through cpp. "Syntax error" is here to catch this case.
4198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200#ifdef __STDC__
4201# include <limits.h>
4202#else
4203# include <assert.h>
4204#endif
4205		     Syntax error
4206_ACEOF
4207if ac_fn_c_try_cpp "$LINENO"; then :
4208
4209else
4210  # Broken: fails on valid input.
4211continue
4212fi
4213rm -f conftest.err conftest.$ac_ext
4214
4215  # OK, works on sane cases.  Now check whether nonexistent headers
4216  # can be detected and how.
4217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h.  */
4219#include <ac_nonexistent.h>
4220_ACEOF
4221if ac_fn_c_try_cpp "$LINENO"; then :
4222  # Broken: success on invalid input.
4223continue
4224else
4225  # Passes both tests.
4226ac_preproc_ok=:
4227break
4228fi
4229rm -f conftest.err conftest.$ac_ext
4230
4231done
4232# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233rm -f conftest.err conftest.$ac_ext
4234if $ac_preproc_ok; then :
4235
4236else
4237  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4240See \`config.log' for more details" "$LINENO" 5; }
4241fi
4242
4243ac_ext=c
4244ac_cpp='$CPP $CPPFLAGS'
4245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248
4249
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4251$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4252if test "${ac_cv_path_GREP+set}" = set; then :
4253  $as_echo_n "(cached) " >&6
4254else
4255  if test -z "$GREP"; then
4256  ac_path_GREP_found=false
4257  # Loop through the user's path and test for each of PROGNAME-LIST
4258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260do
4261  IFS=$as_save_IFS
4262  test -z "$as_dir" && as_dir=.
4263    for ac_prog in grep ggrep; do
4264    for ac_exec_ext in '' $ac_executable_extensions; do
4265      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4266      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4267# Check for GNU ac_path_GREP and select it if it is found.
4268  # Check for GNU $ac_path_GREP
4269case `"$ac_path_GREP" --version 2>&1` in
4270*GNU*)
4271  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4272*)
4273  ac_count=0
4274  $as_echo_n 0123456789 >"conftest.in"
4275  while :
4276  do
4277    cat "conftest.in" "conftest.in" >"conftest.tmp"
4278    mv "conftest.tmp" "conftest.in"
4279    cp "conftest.in" "conftest.nl"
4280    $as_echo 'GREP' >> "conftest.nl"
4281    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283    as_fn_arith $ac_count + 1 && ac_count=$as_val
4284    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285      # Best one so far, save it but keep looking for a better one
4286      ac_cv_path_GREP="$ac_path_GREP"
4287      ac_path_GREP_max=$ac_count
4288    fi
4289    # 10*(2^10) chars as input seems more than enough
4290    test $ac_count -gt 10 && break
4291  done
4292  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293esac
4294
4295      $ac_path_GREP_found && break 3
4296    done
4297  done
4298  done
4299IFS=$as_save_IFS
4300  if test -z "$ac_cv_path_GREP"; then
4301    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4302  fi
4303else
4304  ac_cv_path_GREP=$GREP
4305fi
4306
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4309$as_echo "$ac_cv_path_GREP" >&6; }
4310 GREP="$ac_cv_path_GREP"
4311
4312
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4314$as_echo_n "checking for egrep... " >&6; }
4315if test "${ac_cv_path_EGREP+set}" = set; then :
4316  $as_echo_n "(cached) " >&6
4317else
4318  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4319   then ac_cv_path_EGREP="$GREP -E"
4320   else
4321     if test -z "$EGREP"; then
4322  ac_path_EGREP_found=false
4323  # Loop through the user's path and test for each of PROGNAME-LIST
4324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329    for ac_prog in egrep; do
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4332      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4333# Check for GNU ac_path_EGREP and select it if it is found.
4334  # Check for GNU $ac_path_EGREP
4335case `"$ac_path_EGREP" --version 2>&1` in
4336*GNU*)
4337  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4338*)
4339  ac_count=0
4340  $as_echo_n 0123456789 >"conftest.in"
4341  while :
4342  do
4343    cat "conftest.in" "conftest.in" >"conftest.tmp"
4344    mv "conftest.tmp" "conftest.in"
4345    cp "conftest.in" "conftest.nl"
4346    $as_echo 'EGREP' >> "conftest.nl"
4347    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349    as_fn_arith $ac_count + 1 && ac_count=$as_val
4350    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4351      # Best one so far, save it but keep looking for a better one
4352      ac_cv_path_EGREP="$ac_path_EGREP"
4353      ac_path_EGREP_max=$ac_count
4354    fi
4355    # 10*(2^10) chars as input seems more than enough
4356    test $ac_count -gt 10 && break
4357  done
4358  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359esac
4360
4361      $ac_path_EGREP_found && break 3
4362    done
4363  done
4364  done
4365IFS=$as_save_IFS
4366  if test -z "$ac_cv_path_EGREP"; then
4367    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368  fi
4369else
4370  ac_cv_path_EGREP=$EGREP
4371fi
4372
4373   fi
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4376$as_echo "$ac_cv_path_EGREP" >&6; }
4377 EGREP="$ac_cv_path_EGREP"
4378
4379
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4381$as_echo_n "checking for ANSI C header files... " >&6; }
4382if test "${ac_cv_header_stdc+set}" = set; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387#include <stdlib.h>
4388#include <stdarg.h>
4389#include <string.h>
4390#include <float.h>
4391
4392int
4393main ()
4394{
4395
4396  ;
4397  return 0;
4398}
4399_ACEOF
4400if ac_fn_c_try_compile "$LINENO"; then :
4401  ac_cv_header_stdc=yes
4402else
4403  ac_cv_header_stdc=no
4404fi
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406
4407if test $ac_cv_header_stdc = yes; then
4408  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h.  */
4411#include <string.h>
4412
4413_ACEOF
4414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415  $EGREP "memchr" >/dev/null 2>&1; then :
4416
4417else
4418  ac_cv_header_stdc=no
4419fi
4420rm -f conftest*
4421
4422fi
4423
4424if test $ac_cv_header_stdc = yes; then
4425  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h.  */
4428#include <stdlib.h>
4429
4430_ACEOF
4431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432  $EGREP "free" >/dev/null 2>&1; then :
4433
4434else
4435  ac_cv_header_stdc=no
4436fi
4437rm -f conftest*
4438
4439fi
4440
4441if test $ac_cv_header_stdc = yes; then
4442  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4443  if test "$cross_compiling" = yes; then :
4444  :
4445else
4446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h.  */
4448#include <ctype.h>
4449#include <stdlib.h>
4450#if ((' ' & 0x0FF) == 0x020)
4451# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4452# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4453#else
4454# define ISLOWER(c) \
4455		   (('a' <= (c) && (c) <= 'i') \
4456		     || ('j' <= (c) && (c) <= 'r') \
4457		     || ('s' <= (c) && (c) <= 'z'))
4458# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4459#endif
4460
4461#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4462int
4463main ()
4464{
4465  int i;
4466  for (i = 0; i < 256; i++)
4467    if (XOR (islower (i), ISLOWER (i))
4468	|| toupper (i) != TOUPPER (i))
4469      return 2;
4470  return 0;
4471}
4472_ACEOF
4473if ac_fn_c_try_run "$LINENO"; then :
4474
4475else
4476  ac_cv_header_stdc=no
4477fi
4478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4479  conftest.$ac_objext conftest.beam conftest.$ac_ext
4480fi
4481
4482fi
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4485$as_echo "$ac_cv_header_stdc" >&6; }
4486if test $ac_cv_header_stdc = yes; then
4487
4488$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4489
4490fi
4491
4492# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4493for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4494		  inttypes.h stdint.h unistd.h
4495do :
4496  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4497ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4498"
4499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4500  cat >>confdefs.h <<_ACEOF
4501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502_ACEOF
4503
4504fi
4505
4506done
4507
4508
4509
4510  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4511if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4512  MINIX=yes
4513else
4514  MINIX=
4515fi
4516
4517
4518  if test "$MINIX" = yes; then
4519
4520$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4521
4522
4523$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4524
4525
4526$as_echo "#define _MINIX 1" >>confdefs.h
4527
4528  fi
4529
4530
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4532$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4533if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4534  $as_echo_n "(cached) " >&6
4535else
4536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538
4539#	  define __EXTENSIONS__ 1
4540	  $ac_includes_default
4541int
4542main ()
4543{
4544
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549if ac_fn_c_try_compile "$LINENO"; then :
4550  ac_cv_safe_to_define___extensions__=yes
4551else
4552  ac_cv_safe_to_define___extensions__=no
4553fi
4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4557$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4558  test $ac_cv_safe_to_define___extensions__ = yes &&
4559    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4560
4561  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4562
4563  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4564
4565  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4566
4567  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4568
4569
4570
4571cflags_save="$CFLAGS"
4572ac_ext=c
4573ac_cpp='$CPP $CPPFLAGS'
4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577if test -n "$ac_tool_prefix"; then
4578  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4579set dummy ${ac_tool_prefix}gcc; ac_word=$2
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581$as_echo_n "checking for $ac_word... " >&6; }
4582if test "${ac_cv_prog_CC+set}" = set; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  if test -n "$CC"; then
4586  ac_cv_prog_CC="$CC" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591  IFS=$as_save_IFS
4592  test -z "$as_dir" && as_dir=.
4593    for ac_exec_ext in '' $ac_executable_extensions; do
4594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597    break 2
4598  fi
4599done
4600  done
4601IFS=$as_save_IFS
4602
4603fi
4604fi
4605CC=$ac_cv_prog_CC
4606if test -n "$CC"; then
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4608$as_echo "$CC" >&6; }
4609else
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614
4615fi
4616if test -z "$ac_cv_prog_CC"; then
4617  ac_ct_CC=$CC
4618  # Extract the first word of "gcc", so it can be a program name with args.
4619set dummy gcc; ac_word=$2
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621$as_echo_n "checking for $ac_word... " >&6; }
4622if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test -n "$ac_ct_CC"; then
4626  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_exec_ext in '' $ac_executable_extensions; do
4634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635    ac_cv_prog_ac_ct_CC="gcc"
4636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637    break 2
4638  fi
4639done
4640  done
4641IFS=$as_save_IFS
4642
4643fi
4644fi
4645ac_ct_CC=$ac_cv_prog_ac_ct_CC
4646if test -n "$ac_ct_CC"; then
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4648$as_echo "$ac_ct_CC" >&6; }
4649else
4650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651$as_echo "no" >&6; }
4652fi
4653
4654  if test "x$ac_ct_CC" = x; then
4655    CC=""
4656  else
4657    case $cross_compiling:$ac_tool_warned in
4658yes:)
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661ac_tool_warned=yes ;;
4662esac
4663    CC=$ac_ct_CC
4664  fi
4665else
4666  CC="$ac_cv_prog_CC"
4667fi
4668
4669if test -z "$CC"; then
4670          if test -n "$ac_tool_prefix"; then
4671    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4672set dummy ${ac_tool_prefix}cc; ac_word=$2
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674$as_echo_n "checking for $ac_word... " >&6; }
4675if test "${ac_cv_prog_CC+set}" = set; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  if test -n "$CC"; then
4679  ac_cv_prog_CC="$CC" # Let the user override the test.
4680else
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684  IFS=$as_save_IFS
4685  test -z "$as_dir" && as_dir=.
4686    for ac_exec_ext in '' $ac_executable_extensions; do
4687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688    ac_cv_prog_CC="${ac_tool_prefix}cc"
4689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690    break 2
4691  fi
4692done
4693  done
4694IFS=$as_save_IFS
4695
4696fi
4697fi
4698CC=$ac_cv_prog_CC
4699if test -n "$CC"; then
4700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701$as_echo "$CC" >&6; }
4702else
4703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704$as_echo "no" >&6; }
4705fi
4706
4707
4708  fi
4709fi
4710if test -z "$CC"; then
4711  # Extract the first word of "cc", so it can be a program name with args.
4712set dummy cc; ac_word=$2
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714$as_echo_n "checking for $ac_word... " >&6; }
4715if test "${ac_cv_prog_CC+set}" = set; then :
4716  $as_echo_n "(cached) " >&6
4717else
4718  if test -n "$CC"; then
4719  ac_cv_prog_CC="$CC" # Let the user override the test.
4720else
4721  ac_prog_rejected=no
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725  IFS=$as_save_IFS
4726  test -z "$as_dir" && as_dir=.
4727    for ac_exec_ext in '' $ac_executable_extensions; do
4728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4730       ac_prog_rejected=yes
4731       continue
4732     fi
4733    ac_cv_prog_CC="cc"
4734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735    break 2
4736  fi
4737done
4738  done
4739IFS=$as_save_IFS
4740
4741if test $ac_prog_rejected = yes; then
4742  # We found a bogon in the path, so make sure we never use it.
4743  set dummy $ac_cv_prog_CC
4744  shift
4745  if test $# != 0; then
4746    # We chose a different compiler from the bogus one.
4747    # However, it has the same basename, so the bogon will be chosen
4748    # first if we set CC to just the basename; use the full file name.
4749    shift
4750    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4751  fi
4752fi
4753fi
4754fi
4755CC=$ac_cv_prog_CC
4756if test -n "$CC"; then
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758$as_echo "$CC" >&6; }
4759else
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
4762fi
4763
4764
4765fi
4766if test -z "$CC"; then
4767  if test -n "$ac_tool_prefix"; then
4768  for ac_prog in cl.exe
4769  do
4770    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
4774if test "${ac_cv_prog_CC+set}" = set; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  if test -n "$CC"; then
4778  ac_cv_prog_CC="$CC" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  test -z "$as_dir" && as_dir=.
4785    for ac_exec_ext in '' $ac_executable_extensions; do
4786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792  done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797CC=$ac_cv_prog_CC
4798if test -n "$CC"; then
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800$as_echo "$CC" >&6; }
4801else
4802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805
4806
4807    test -n "$CC" && break
4808  done
4809fi
4810if test -z "$CC"; then
4811  ac_ct_CC=$CC
4812  for ac_prog in cl.exe
4813do
4814  # Extract the first word of "$ac_prog", so it can be a program name with args.
4815set dummy $ac_prog; ac_word=$2
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817$as_echo_n "checking for $ac_word... " >&6; }
4818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test -n "$ac_ct_CC"; then
4822  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827  IFS=$as_save_IFS
4828  test -z "$as_dir" && as_dir=.
4829    for ac_exec_ext in '' $ac_executable_extensions; do
4830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831    ac_cv_prog_ac_ct_CC="$ac_prog"
4832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833    break 2
4834  fi
4835done
4836  done
4837IFS=$as_save_IFS
4838
4839fi
4840fi
4841ac_ct_CC=$ac_cv_prog_ac_ct_CC
4842if test -n "$ac_ct_CC"; then
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4844$as_echo "$ac_ct_CC" >&6; }
4845else
4846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
4848fi
4849
4850
4851  test -n "$ac_ct_CC" && break
4852done
4853
4854  if test "x$ac_ct_CC" = x; then
4855    CC=""
4856  else
4857    case $cross_compiling:$ac_tool_warned in
4858yes:)
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861ac_tool_warned=yes ;;
4862esac
4863    CC=$ac_ct_CC
4864  fi
4865fi
4866
4867fi
4868
4869
4870test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4872as_fn_error $? "no acceptable C compiler found in \$PATH
4873See \`config.log' for more details" "$LINENO" 5; }
4874
4875# Provide some information about the compiler.
4876$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4877set X $ac_compile
4878ac_compiler=$2
4879for ac_option in --version -v -V -qversion; do
4880  { { ac_try="$ac_compiler $ac_option >&5"
4881case "(($ac_try" in
4882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883  *) ac_try_echo=$ac_try;;
4884esac
4885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4886$as_echo "$ac_try_echo"; } >&5
4887  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4888  ac_status=$?
4889  if test -s conftest.err; then
4890    sed '10a\
4891... rest of stderr output deleted ...
4892         10q' conftest.err >conftest.er1
4893    cat conftest.er1 >&5
4894  fi
4895  rm -f conftest.er1 conftest.err
4896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4897  test $ac_status = 0; }
4898done
4899
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4901$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4902if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907
4908int
4909main ()
4910{
4911#ifndef __GNUC__
4912       choke me
4913#endif
4914
4915  ;
4916  return 0;
4917}
4918_ACEOF
4919if ac_fn_c_try_compile "$LINENO"; then :
4920  ac_compiler_gnu=yes
4921else
4922  ac_compiler_gnu=no
4923fi
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925ac_cv_c_compiler_gnu=$ac_compiler_gnu
4926
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4929$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4930if test $ac_compiler_gnu = yes; then
4931  GCC=yes
4932else
4933  GCC=
4934fi
4935ac_test_CFLAGS=${CFLAGS+set}
4936ac_save_CFLAGS=$CFLAGS
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4938$as_echo_n "checking whether $CC accepts -g... " >&6; }
4939if test "${ac_cv_prog_cc_g+set}" = set; then :
4940  $as_echo_n "(cached) " >&6
4941else
4942  ac_save_c_werror_flag=$ac_c_werror_flag
4943   ac_c_werror_flag=yes
4944   ac_cv_prog_cc_g=no
4945   CFLAGS="-g"
4946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947/* end confdefs.h.  */
4948
4949int
4950main ()
4951{
4952
4953  ;
4954  return 0;
4955}
4956_ACEOF
4957if ac_fn_c_try_compile "$LINENO"; then :
4958  ac_cv_prog_cc_g=yes
4959else
4960  CFLAGS=""
4961      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h.  */
4963
4964int
4965main ()
4966{
4967
4968  ;
4969  return 0;
4970}
4971_ACEOF
4972if ac_fn_c_try_compile "$LINENO"; then :
4973
4974else
4975  ac_c_werror_flag=$ac_save_c_werror_flag
4976	 CFLAGS="-g"
4977	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979
4980int
4981main ()
4982{
4983
4984  ;
4985  return 0;
4986}
4987_ACEOF
4988if ac_fn_c_try_compile "$LINENO"; then :
4989  ac_cv_prog_cc_g=yes
4990fi
4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992fi
4993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994fi
4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996   ac_c_werror_flag=$ac_save_c_werror_flag
4997fi
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4999$as_echo "$ac_cv_prog_cc_g" >&6; }
5000if test "$ac_test_CFLAGS" = set; then
5001  CFLAGS=$ac_save_CFLAGS
5002elif test $ac_cv_prog_cc_g = yes; then
5003  if test "$GCC" = yes; then
5004    CFLAGS="-g -O2"
5005  else
5006    CFLAGS="-g"
5007  fi
5008else
5009  if test "$GCC" = yes; then
5010    CFLAGS="-O2"
5011  else
5012    CFLAGS=
5013  fi
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5016$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5017if test "${ac_cv_prog_cc_c89+set}" = set; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  ac_cv_prog_cc_c89=no
5021ac_save_CC=$CC
5022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h.  */
5024#include <stdarg.h>
5025#include <stdio.h>
5026#include <sys/types.h>
5027#include <sys/stat.h>
5028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5029struct buf { int x; };
5030FILE * (*rcsopen) (struct buf *, struct stat *, int);
5031static char *e (p, i)
5032     char **p;
5033     int i;
5034{
5035  return p[i];
5036}
5037static char *f (char * (*g) (char **, int), char **p, ...)
5038{
5039  char *s;
5040  va_list v;
5041  va_start (v,p);
5042  s = g (p, va_arg (v,int));
5043  va_end (v);
5044  return s;
5045}
5046
5047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5048   function prototypes and stuff, but not '\xHH' hex character constants.
5049   These don't provoke an error unfortunately, instead are silently treated
5050   as 'x'.  The following induces an error, until -std is added to get
5051   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5052   array size at least.  It's necessary to write '\x00'==0 to get something
5053   that's true only with -std.  */
5054int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5055
5056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5057   inside strings and character constants.  */
5058#define FOO(x) 'x'
5059int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5060
5061int test (int i, double x);
5062struct s1 {int (*f) (int a);};
5063struct s2 {int (*f) (double a);};
5064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5065int argc;
5066char **argv;
5067int
5068main ()
5069{
5070return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5071  ;
5072  return 0;
5073}
5074_ACEOF
5075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5076	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5077do
5078  CC="$ac_save_CC $ac_arg"
5079  if ac_fn_c_try_compile "$LINENO"; then :
5080  ac_cv_prog_cc_c89=$ac_arg
5081fi
5082rm -f core conftest.err conftest.$ac_objext
5083  test "x$ac_cv_prog_cc_c89" != "xno" && break
5084done
5085rm -f conftest.$ac_ext
5086CC=$ac_save_CC
5087
5088fi
5089# AC_CACHE_VAL
5090case "x$ac_cv_prog_cc_c89" in
5091  x)
5092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5093$as_echo "none needed" >&6; } ;;
5094  xno)
5095    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5096$as_echo "unsupported" >&6; } ;;
5097  *)
5098    CC="$CC $ac_cv_prog_cc_c89"
5099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5100$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5101esac
5102if test "x$ac_cv_prog_cc_c89" != xno; then :
5103
5104fi
5105
5106ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112depcc="$CC"   am_compiler_list=
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5115$as_echo_n "checking dependency style of $depcc... " >&6; }
5116if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5120  # We make a subdir and do the tests there.  Otherwise we can end up
5121  # making bogus files that we don't know about and never remove.  For
5122  # instance it was reported that on HP-UX the gcc test will end up
5123  # making a dummy file named `D' -- because `-MD' means `put the output
5124  # in D'.
5125  mkdir conftest.dir
5126  # Copy depcomp to subdir because otherwise we won't find it if we're
5127  # using a relative directory.
5128  cp "$am_depcomp" conftest.dir
5129  cd conftest.dir
5130  # We will build objects and dependencies in a subdirectory because
5131  # it helps to detect inapplicable dependency modes.  For instance
5132  # both Tru64's cc and ICC support -MD to output dependencies as a
5133  # side effect of compilation, but ICC will put the dependencies in
5134  # the current directory while Tru64 will put them in the object
5135  # directory.
5136  mkdir sub
5137
5138  am_cv_CC_dependencies_compiler_type=none
5139  if test "$am_compiler_list" = ""; then
5140     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5141  fi
5142  am__universal=false
5143  case " $depcc " in #(
5144     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5145     esac
5146
5147  for depmode in $am_compiler_list; do
5148    # Setup a source with many dependencies, because some compilers
5149    # like to wrap large dependency lists on column 80 (with \), and
5150    # we should not choose a depcomp mode which is confused by this.
5151    #
5152    # We need to recreate these files for each test, as the compiler may
5153    # overwrite some of them when testing with obscure command lines.
5154    # This happens at least with the AIX C compiler.
5155    : > sub/conftest.c
5156    for i in 1 2 3 4 5 6; do
5157      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5158      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5159      # Solaris 8's {/usr,}/bin/sh.
5160      touch sub/conftst$i.h
5161    done
5162    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5163
5164    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5165    # mode.  It turns out that the SunPro C++ compiler does not properly
5166    # handle `-M -o', and we need to detect this.  Also, some Intel
5167    # versions had trouble with output in subdirs
5168    am__obj=sub/conftest.${OBJEXT-o}
5169    am__minus_obj="-o $am__obj"
5170    case $depmode in
5171    gcc)
5172      # This depmode causes a compiler race in universal mode.
5173      test "$am__universal" = false || continue
5174      ;;
5175    nosideeffect)
5176      # after this tag, mechanisms are not by side-effect, so they'll
5177      # only be used when explicitly requested
5178      if test "x$enable_dependency_tracking" = xyes; then
5179	continue
5180      else
5181	break
5182      fi
5183      ;;
5184    msvisualcpp | msvcmsys)
5185      # This compiler won't grok `-c -o', but also, the minuso test has
5186      # not run yet.  These depmodes are late enough in the game, and
5187      # so weak that their functioning should not be impacted.
5188      am__obj=conftest.${OBJEXT-o}
5189      am__minus_obj=
5190      ;;
5191    none) break ;;
5192    esac
5193    if depmode=$depmode \
5194       source=sub/conftest.c object=$am__obj \
5195       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5196       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5197         >/dev/null 2>conftest.err &&
5198       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5199       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5200       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5201       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5202      # icc doesn't choke on unknown options, it will just issue warnings
5203      # or remarks (even with -Werror).  So we grep stderr for any message
5204      # that says an option was ignored or not supported.
5205      # When given -MP, icc 7.0 and 7.1 complain thusly:
5206      #   icc: Command line warning: ignoring option '-M'; no argument required
5207      # The diagnosis changed in icc 8.0:
5208      #   icc: Command line remark: option '-MP' not supported
5209      if (grep 'ignoring option' conftest.err ||
5210          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5211        am_cv_CC_dependencies_compiler_type=$depmode
5212        break
5213      fi
5214    fi
5215  done
5216
5217  cd ..
5218  rm -rf conftest.dir
5219else
5220  am_cv_CC_dependencies_compiler_type=none
5221fi
5222
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5225$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5226CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5227
5228 if
5229  test "x$enable_dependency_tracking" != xno \
5230  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5231  am__fastdepCC_TRUE=
5232  am__fastdepCC_FALSE='#'
5233else
5234  am__fastdepCC_TRUE='#'
5235  am__fastdepCC_FALSE=
5236fi
5237
5238
5239CFLAGS="$cflags_save"
5240
5241ac_ext=cpp
5242ac_cpp='$CXXCPP $CPPFLAGS'
5243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5246if test -z "$CXX"; then
5247  if test -n "$CCC"; then
5248    CXX=$CCC
5249  else
5250    if test -n "$ac_tool_prefix"; then
5251  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5252  do
5253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256$as_echo_n "checking for $ac_word... " >&6; }
5257if test "${ac_cv_prog_CXX+set}" = set; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  if test -n "$CXX"; then
5261  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  test -z "$as_dir" && as_dir=.
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275  done
5276IFS=$as_save_IFS
5277
5278fi
5279fi
5280CXX=$ac_cv_prog_CXX
5281if test -n "$CXX"; then
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5283$as_echo "$CXX" >&6; }
5284else
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287fi
5288
5289
5290    test -n "$CXX" && break
5291  done
5292fi
5293if test -z "$CXX"; then
5294  ac_ct_CXX=$CXX
5295  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5296do
5297  # Extract the first word of "$ac_prog", so it can be a program name with args.
5298set dummy $ac_prog; ac_word=$2
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300$as_echo_n "checking for $ac_word... " >&6; }
5301if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304  if test -n "$ac_ct_CXX"; then
5305  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5306else
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310  IFS=$as_save_IFS
5311  test -z "$as_dir" && as_dir=.
5312    for ac_exec_ext in '' $ac_executable_extensions; do
5313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314    ac_cv_prog_ac_ct_CXX="$ac_prog"
5315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316    break 2
5317  fi
5318done
5319  done
5320IFS=$as_save_IFS
5321
5322fi
5323fi
5324ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5325if test -n "$ac_ct_CXX"; then
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5327$as_echo "$ac_ct_CXX" >&6; }
5328else
5329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
5331fi
5332
5333
5334  test -n "$ac_ct_CXX" && break
5335done
5336
5337  if test "x$ac_ct_CXX" = x; then
5338    CXX="g++"
5339  else
5340    case $cross_compiling:$ac_tool_warned in
5341yes:)
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344ac_tool_warned=yes ;;
5345esac
5346    CXX=$ac_ct_CXX
5347  fi
5348fi
5349
5350  fi
5351fi
5352# Provide some information about the compiler.
5353$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5354set X $ac_compile
5355ac_compiler=$2
5356for ac_option in --version -v -V -qversion; do
5357  { { ac_try="$ac_compiler $ac_option >&5"
5358case "(($ac_try" in
5359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360  *) ac_try_echo=$ac_try;;
5361esac
5362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5363$as_echo "$ac_try_echo"; } >&5
5364  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5365  ac_status=$?
5366  if test -s conftest.err; then
5367    sed '10a\
5368... rest of stderr output deleted ...
5369         10q' conftest.err >conftest.er1
5370    cat conftest.er1 >&5
5371  fi
5372  rm -f conftest.er1 conftest.err
5373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5374  test $ac_status = 0; }
5375done
5376
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5378$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5379if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384
5385int
5386main ()
5387{
5388#ifndef __GNUC__
5389       choke me
5390#endif
5391
5392  ;
5393  return 0;
5394}
5395_ACEOF
5396if ac_fn_cxx_try_compile "$LINENO"; then :
5397  ac_compiler_gnu=yes
5398else
5399  ac_compiler_gnu=no
5400fi
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5403
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5406$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5407if test $ac_compiler_gnu = yes; then
5408  GXX=yes
5409else
5410  GXX=
5411fi
5412ac_test_CXXFLAGS=${CXXFLAGS+set}
5413ac_save_CXXFLAGS=$CXXFLAGS
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5415$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5416if test "${ac_cv_prog_cxx_g+set}" = set; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5420   ac_cxx_werror_flag=yes
5421   ac_cv_prog_cxx_g=no
5422   CXXFLAGS="-g"
5423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h.  */
5425
5426int
5427main ()
5428{
5429
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434if ac_fn_cxx_try_compile "$LINENO"; then :
5435  ac_cv_prog_cxx_g=yes
5436else
5437  CXXFLAGS=""
5438      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440
5441int
5442main ()
5443{
5444
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449if ac_fn_cxx_try_compile "$LINENO"; then :
5450
5451else
5452  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5453	 CXXFLAGS="-g"
5454	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456
5457int
5458main ()
5459{
5460
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465if ac_fn_cxx_try_compile "$LINENO"; then :
5466  ac_cv_prog_cxx_g=yes
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469fi
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5474fi
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5476$as_echo "$ac_cv_prog_cxx_g" >&6; }
5477if test "$ac_test_CXXFLAGS" = set; then
5478  CXXFLAGS=$ac_save_CXXFLAGS
5479elif test $ac_cv_prog_cxx_g = yes; then
5480  if test "$GXX" = yes; then
5481    CXXFLAGS="-g -O2"
5482  else
5483    CXXFLAGS="-g"
5484  fi
5485else
5486  if test "$GXX" = yes; then
5487    CXXFLAGS="-O2"
5488  else
5489    CXXFLAGS=
5490  fi
5491fi
5492ac_ext=c
5493ac_cpp='$CPP $CPPFLAGS'
5494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
5498depcc="$CXX"  am_compiler_list=
5499
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5501$as_echo_n "checking dependency style of $depcc... " >&6; }
5502if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5506  # We make a subdir and do the tests there.  Otherwise we can end up
5507  # making bogus files that we don't know about and never remove.  For
5508  # instance it was reported that on HP-UX the gcc test will end up
5509  # making a dummy file named `D' -- because `-MD' means `put the output
5510  # in D'.
5511  mkdir conftest.dir
5512  # Copy depcomp to subdir because otherwise we won't find it if we're
5513  # using a relative directory.
5514  cp "$am_depcomp" conftest.dir
5515  cd conftest.dir
5516  # We will build objects and dependencies in a subdirectory because
5517  # it helps to detect inapplicable dependency modes.  For instance
5518  # both Tru64's cc and ICC support -MD to output dependencies as a
5519  # side effect of compilation, but ICC will put the dependencies in
5520  # the current directory while Tru64 will put them in the object
5521  # directory.
5522  mkdir sub
5523
5524  am_cv_CXX_dependencies_compiler_type=none
5525  if test "$am_compiler_list" = ""; then
5526     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5527  fi
5528  am__universal=false
5529  case " $depcc " in #(
5530     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5531     esac
5532
5533  for depmode in $am_compiler_list; do
5534    # Setup a source with many dependencies, because some compilers
5535    # like to wrap large dependency lists on column 80 (with \), and
5536    # we should not choose a depcomp mode which is confused by this.
5537    #
5538    # We need to recreate these files for each test, as the compiler may
5539    # overwrite some of them when testing with obscure command lines.
5540    # This happens at least with the AIX C compiler.
5541    : > sub/conftest.c
5542    for i in 1 2 3 4 5 6; do
5543      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5544      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5545      # Solaris 8's {/usr,}/bin/sh.
5546      touch sub/conftst$i.h
5547    done
5548    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5549
5550    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5551    # mode.  It turns out that the SunPro C++ compiler does not properly
5552    # handle `-M -o', and we need to detect this.  Also, some Intel
5553    # versions had trouble with output in subdirs
5554    am__obj=sub/conftest.${OBJEXT-o}
5555    am__minus_obj="-o $am__obj"
5556    case $depmode in
5557    gcc)
5558      # This depmode causes a compiler race in universal mode.
5559      test "$am__universal" = false || continue
5560      ;;
5561    nosideeffect)
5562      # after this tag, mechanisms are not by side-effect, so they'll
5563      # only be used when explicitly requested
5564      if test "x$enable_dependency_tracking" = xyes; then
5565	continue
5566      else
5567	break
5568      fi
5569      ;;
5570    msvisualcpp | msvcmsys)
5571      # This compiler won't grok `-c -o', but also, the minuso test has
5572      # not run yet.  These depmodes are late enough in the game, and
5573      # so weak that their functioning should not be impacted.
5574      am__obj=conftest.${OBJEXT-o}
5575      am__minus_obj=
5576      ;;
5577    none) break ;;
5578    esac
5579    if depmode=$depmode \
5580       source=sub/conftest.c object=$am__obj \
5581       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5582       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5583         >/dev/null 2>conftest.err &&
5584       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5585       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5586       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5587       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5588      # icc doesn't choke on unknown options, it will just issue warnings
5589      # or remarks (even with -Werror).  So we grep stderr for any message
5590      # that says an option was ignored or not supported.
5591      # When given -MP, icc 7.0 and 7.1 complain thusly:
5592      #   icc: Command line warning: ignoring option '-M'; no argument required
5593      # The diagnosis changed in icc 8.0:
5594      #   icc: Command line remark: option '-MP' not supported
5595      if (grep 'ignoring option' conftest.err ||
5596          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5597        am_cv_CXX_dependencies_compiler_type=$depmode
5598        break
5599      fi
5600    fi
5601  done
5602
5603  cd ..
5604  rm -rf conftest.dir
5605else
5606  am_cv_CXX_dependencies_compiler_type=none
5607fi
5608
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5611$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5612CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5613
5614 if
5615  test "x$enable_dependency_tracking" != xno \
5616  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5617  am__fastdepCXX_TRUE=
5618  am__fastdepCXX_FALSE='#'
5619else
5620  am__fastdepCXX_TRUE='#'
5621  am__fastdepCXX_FALSE=
5622fi
5623
5624
5625case `pwd` in
5626  *\ * | *\	*)
5627    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5628$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5629esac
5630
5631
5632
5633macro_version='2.2.10'
5634macro_revision='1.3175'
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648ltmain="$ac_aux_dir/ltmain.sh"
5649
5650# Backslashify metacharacters that are still active within
5651# double-quoted strings.
5652sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5653
5654# Same as above, but do not quote variable references.
5655double_quote_subst='s/\(["`\\]\)/\\\1/g'
5656
5657# Sed substitution to delay expansion of an escaped shell variable in a
5658# double_quote_subst'ed string.
5659delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5660
5661# Sed substitution to delay expansion of an escaped single quote.
5662delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5663
5664# Sed substitution to avoid accidental globbing in evaled expressions
5665no_glob_subst='s/\*/\\\*/g'
5666
5667ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5668ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5669ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5670
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5672$as_echo_n "checking how to print strings... " >&6; }
5673# Test print first, because it will be a builtin if present.
5674if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5675   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5676  ECHO='print -r --'
5677elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5678  ECHO='printf %s\n'
5679else
5680  # Use this function as a fallback that always works.
5681  func_fallback_echo ()
5682  {
5683    eval 'cat <<_LTECHO_EOF
5684$1
5685_LTECHO_EOF'
5686  }
5687  ECHO='func_fallback_echo'
5688fi
5689
5690# func_echo_all arg...
5691# Invoke $ECHO with all args, space-separated.
5692func_echo_all ()
5693{
5694    $ECHO ""
5695}
5696
5697case "$ECHO" in
5698  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5699$as_echo "printf" >&6; } ;;
5700  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5701$as_echo "print -r" >&6; } ;;
5702  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5703$as_echo "cat" >&6; } ;;
5704esac
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5720$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5721if test "${ac_cv_path_SED+set}" = set; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5725     for ac_i in 1 2 3 4 5 6 7; do
5726       ac_script="$ac_script$as_nl$ac_script"
5727     done
5728     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5729     { ac_script=; unset ac_script;}
5730     if test -z "$SED"; then
5731  ac_path_SED_found=false
5732  # Loop through the user's path and test for each of PROGNAME-LIST
5733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  test -z "$as_dir" && as_dir=.
5738    for ac_prog in sed gsed; do
5739    for ac_exec_ext in '' $ac_executable_extensions; do
5740      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5741      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5742# Check for GNU ac_path_SED and select it if it is found.
5743  # Check for GNU $ac_path_SED
5744case `"$ac_path_SED" --version 2>&1` in
5745*GNU*)
5746  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5747*)
5748  ac_count=0
5749  $as_echo_n 0123456789 >"conftest.in"
5750  while :
5751  do
5752    cat "conftest.in" "conftest.in" >"conftest.tmp"
5753    mv "conftest.tmp" "conftest.in"
5754    cp "conftest.in" "conftest.nl"
5755    $as_echo '' >> "conftest.nl"
5756    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5757    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5758    as_fn_arith $ac_count + 1 && ac_count=$as_val
5759    if test $ac_count -gt ${ac_path_SED_max-0}; then
5760      # Best one so far, save it but keep looking for a better one
5761      ac_cv_path_SED="$ac_path_SED"
5762      ac_path_SED_max=$ac_count
5763    fi
5764    # 10*(2^10) chars as input seems more than enough
5765    test $ac_count -gt 10 && break
5766  done
5767  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5768esac
5769
5770      $ac_path_SED_found && break 3
5771    done
5772  done
5773  done
5774IFS=$as_save_IFS
5775  if test -z "$ac_cv_path_SED"; then
5776    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5777  fi
5778else
5779  ac_cv_path_SED=$SED
5780fi
5781
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5784$as_echo "$ac_cv_path_SED" >&6; }
5785 SED="$ac_cv_path_SED"
5786  rm -f conftest.sed
5787
5788test -z "$SED" && SED=sed
5789Xsed="$SED -e 1s/^X//"
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5802$as_echo_n "checking for fgrep... " >&6; }
5803if test "${ac_cv_path_FGREP+set}" = set; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5807   then ac_cv_path_FGREP="$GREP -F"
5808   else
5809     if test -z "$FGREP"; then
5810  ac_path_FGREP_found=false
5811  # Loop through the user's path and test for each of PROGNAME-LIST
5812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5814do
5815  IFS=$as_save_IFS
5816  test -z "$as_dir" && as_dir=.
5817    for ac_prog in fgrep; do
5818    for ac_exec_ext in '' $ac_executable_extensions; do
5819      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5820      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5821# Check for GNU ac_path_FGREP and select it if it is found.
5822  # Check for GNU $ac_path_FGREP
5823case `"$ac_path_FGREP" --version 2>&1` in
5824*GNU*)
5825  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5826*)
5827  ac_count=0
5828  $as_echo_n 0123456789 >"conftest.in"
5829  while :
5830  do
5831    cat "conftest.in" "conftest.in" >"conftest.tmp"
5832    mv "conftest.tmp" "conftest.in"
5833    cp "conftest.in" "conftest.nl"
5834    $as_echo 'FGREP' >> "conftest.nl"
5835    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5836    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5837    as_fn_arith $ac_count + 1 && ac_count=$as_val
5838    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5839      # Best one so far, save it but keep looking for a better one
5840      ac_cv_path_FGREP="$ac_path_FGREP"
5841      ac_path_FGREP_max=$ac_count
5842    fi
5843    # 10*(2^10) chars as input seems more than enough
5844    test $ac_count -gt 10 && break
5845  done
5846  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5847esac
5848
5849      $ac_path_FGREP_found && break 3
5850    done
5851  done
5852  done
5853IFS=$as_save_IFS
5854  if test -z "$ac_cv_path_FGREP"; then
5855    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5856  fi
5857else
5858  ac_cv_path_FGREP=$FGREP
5859fi
5860
5861   fi
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5864$as_echo "$ac_cv_path_FGREP" >&6; }
5865 FGREP="$ac_cv_path_FGREP"
5866
5867
5868test -z "$GREP" && GREP=grep
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888# Check whether --with-gnu-ld was given.
5889if test "${with_gnu_ld+set}" = set; then :
5890  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5891else
5892  with_gnu_ld=no
5893fi
5894
5895ac_prog=ld
5896if test "$GCC" = yes; then
5897  # Check if gcc -print-prog-name=ld gives a path.
5898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5899$as_echo_n "checking for ld used by $CC... " >&6; }
5900  case $host in
5901  *-*-mingw*)
5902    # gcc leaves a trailing carriage return which upsets mingw
5903    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5904  *)
5905    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5906  esac
5907  case $ac_prog in
5908    # Accept absolute paths.
5909    [\\/]* | ?:[\\/]*)
5910      re_direlt='/[^/][^/]*/\.\./'
5911      # Canonicalize the pathname of ld
5912      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5913      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5914	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5915      done
5916      test -z "$LD" && LD="$ac_prog"
5917      ;;
5918  "")
5919    # If it fails, then pretend we aren't using GCC.
5920    ac_prog=ld
5921    ;;
5922  *)
5923    # If it is relative, then search for the first ld in PATH.
5924    with_gnu_ld=unknown
5925    ;;
5926  esac
5927elif test "$with_gnu_ld" = yes; then
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5929$as_echo_n "checking for GNU ld... " >&6; }
5930else
5931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5932$as_echo_n "checking for non-GNU ld... " >&6; }
5933fi
5934if test "${lt_cv_path_LD+set}" = set; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  if test -z "$LD"; then
5938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5939  for ac_dir in $PATH; do
5940    IFS="$lt_save_ifs"
5941    test -z "$ac_dir" && ac_dir=.
5942    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5943      lt_cv_path_LD="$ac_dir/$ac_prog"
5944      # Check to see if the program is GNU ld.  I'd rather use --version,
5945      # but apparently some variants of GNU ld only accept -v.
5946      # Break only if it was the GNU/non-GNU ld that we prefer.
5947      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5948      *GNU* | *'with BFD'*)
5949	test "$with_gnu_ld" != no && break
5950	;;
5951      *)
5952	test "$with_gnu_ld" != yes && break
5953	;;
5954      esac
5955    fi
5956  done
5957  IFS="$lt_save_ifs"
5958else
5959  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5960fi
5961fi
5962
5963LD="$lt_cv_path_LD"
5964if test -n "$LD"; then
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5966$as_echo "$LD" >&6; }
5967else
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970fi
5971test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5973$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5974if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5978case `$LD -v 2>&1 </dev/null` in
5979*GNU* | *'with BFD'*)
5980  lt_cv_prog_gnu_ld=yes
5981  ;;
5982*)
5983  lt_cv_prog_gnu_ld=no
5984  ;;
5985esac
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5988$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5989with_gnu_ld=$lt_cv_prog_gnu_ld
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6000$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6001if test "${lt_cv_path_NM+set}" = set; then :
6002  $as_echo_n "(cached) " >&6
6003else
6004  if test -n "$NM"; then
6005  # Let the user override the test.
6006  lt_cv_path_NM="$NM"
6007else
6008  lt_nm_to_check="${ac_tool_prefix}nm"
6009  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6010    lt_nm_to_check="$lt_nm_to_check nm"
6011  fi
6012  for lt_tmp_nm in $lt_nm_to_check; do
6013    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6014    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6015      IFS="$lt_save_ifs"
6016      test -z "$ac_dir" && ac_dir=.
6017      tmp_nm="$ac_dir/$lt_tmp_nm"
6018      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6019	# Check to see if the nm accepts a BSD-compat flag.
6020	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6021	#   nm: unknown option "B" ignored
6022	# Tru64's nm complains that /dev/null is an invalid object file
6023	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6024	*/dev/null* | *'Invalid file or object type'*)
6025	  lt_cv_path_NM="$tmp_nm -B"
6026	  break
6027	  ;;
6028	*)
6029	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6030	  */dev/null*)
6031	    lt_cv_path_NM="$tmp_nm -p"
6032	    break
6033	    ;;
6034	  *)
6035	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6036	    continue # so that we can try to find one that supports BSD flags
6037	    ;;
6038	  esac
6039	  ;;
6040	esac
6041      fi
6042    done
6043    IFS="$lt_save_ifs"
6044  done
6045  : ${lt_cv_path_NM=no}
6046fi
6047fi
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6049$as_echo "$lt_cv_path_NM" >&6; }
6050if test "$lt_cv_path_NM" != "no"; then
6051  NM="$lt_cv_path_NM"
6052else
6053  # Didn't find any BSD compatible name lister, look for dumpbin.
6054  if test -n "$DUMPBIN"; then :
6055    # Let the user override the test.
6056  else
6057    if test -n "$ac_tool_prefix"; then
6058  for ac_prog in dumpbin "link -dump"
6059  do
6060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063$as_echo_n "checking for $ac_word... " >&6; }
6064if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  if test -n "$DUMPBIN"; then
6068  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6069else
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073  IFS=$as_save_IFS
6074  test -z "$as_dir" && as_dir=.
6075    for ac_exec_ext in '' $ac_executable_extensions; do
6076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079    break 2
6080  fi
6081done
6082  done
6083IFS=$as_save_IFS
6084
6085fi
6086fi
6087DUMPBIN=$ac_cv_prog_DUMPBIN
6088if test -n "$DUMPBIN"; then
6089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6090$as_echo "$DUMPBIN" >&6; }
6091else
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093$as_echo "no" >&6; }
6094fi
6095
6096
6097    test -n "$DUMPBIN" && break
6098  done
6099fi
6100if test -z "$DUMPBIN"; then
6101  ac_ct_DUMPBIN=$DUMPBIN
6102  for ac_prog in dumpbin "link -dump"
6103do
6104  # Extract the first word of "$ac_prog", so it can be a program name with args.
6105set dummy $ac_prog; ac_word=$2
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
6108if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6109  $as_echo_n "(cached) " >&6
6110else
6111  if test -n "$ac_ct_DUMPBIN"; then
6112  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117  IFS=$as_save_IFS
6118  test -z "$as_dir" && as_dir=.
6119    for ac_exec_ext in '' $ac_executable_extensions; do
6120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123    break 2
6124  fi
6125done
6126  done
6127IFS=$as_save_IFS
6128
6129fi
6130fi
6131ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6132if test -n "$ac_ct_DUMPBIN"; then
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6134$as_echo "$ac_ct_DUMPBIN" >&6; }
6135else
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137$as_echo "no" >&6; }
6138fi
6139
6140
6141  test -n "$ac_ct_DUMPBIN" && break
6142done
6143
6144  if test "x$ac_ct_DUMPBIN" = x; then
6145    DUMPBIN=":"
6146  else
6147    case $cross_compiling:$ac_tool_warned in
6148yes:)
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151ac_tool_warned=yes ;;
6152esac
6153    DUMPBIN=$ac_ct_DUMPBIN
6154  fi
6155fi
6156
6157    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6158    *COFF*)
6159      DUMPBIN="$DUMPBIN -symbols"
6160      ;;
6161    *)
6162      DUMPBIN=:
6163      ;;
6164    esac
6165  fi
6166
6167  if test "$DUMPBIN" != ":"; then
6168    NM="$DUMPBIN"
6169  fi
6170fi
6171test -z "$NM" && NM=nm
6172
6173
6174
6175
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6179$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6180if test "${lt_cv_nm_interface+set}" = set; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  lt_cv_nm_interface="BSD nm"
6184  echo "int some_variable = 0;" > conftest.$ac_ext
6185  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6186  (eval "$ac_compile" 2>conftest.err)
6187  cat conftest.err >&5
6188  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6189  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6190  cat conftest.err >&5
6191  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6192  cat conftest.out >&5
6193  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6194    lt_cv_nm_interface="MS dumpbin"
6195  fi
6196  rm -f conftest*
6197fi
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6199$as_echo "$lt_cv_nm_interface" >&6; }
6200
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6202$as_echo_n "checking whether ln -s works... " >&6; }
6203LN_S=$as_ln_s
6204if test "$LN_S" = "ln -s"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6206$as_echo "yes" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6209$as_echo "no, using $LN_S" >&6; }
6210fi
6211
6212# find the maximum length of command line arguments
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6214$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6215if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218    i=0
6219  teststring="ABCD"
6220
6221  case $build_os in
6222  msdosdjgpp*)
6223    # On DJGPP, this test can blow up pretty badly due to problems in libc
6224    # (any single argument exceeding 2000 bytes causes a buffer overrun
6225    # during glob expansion).  Even if it were fixed, the result of this
6226    # check would be larger than it should be.
6227    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6228    ;;
6229
6230  gnu*)
6231    # Under GNU Hurd, this test is not required because there is
6232    # no limit to the length of command line arguments.
6233    # Libtool will interpret -1 as no limit whatsoever
6234    lt_cv_sys_max_cmd_len=-1;
6235    ;;
6236
6237  cygwin* | mingw* | cegcc*)
6238    # On Win9x/ME, this test blows up -- it succeeds, but takes
6239    # about 5 minutes as the teststring grows exponentially.
6240    # Worse, since 9x/ME are not pre-emptively multitasking,
6241    # you end up with a "frozen" computer, even though with patience
6242    # the test eventually succeeds (with a max line length of 256k).
6243    # Instead, let's just punt: use the minimum linelength reported by
6244    # all of the supported platforms: 8192 (on NT/2K/XP).
6245    lt_cv_sys_max_cmd_len=8192;
6246    ;;
6247
6248  mint*)
6249    # On MiNT this can take a long time and run out of memory.
6250    lt_cv_sys_max_cmd_len=8192;
6251    ;;
6252
6253  amigaos*)
6254    # On AmigaOS with pdksh, this test takes hours, literally.
6255    # So we just punt and use a minimum line length of 8192.
6256    lt_cv_sys_max_cmd_len=8192;
6257    ;;
6258
6259  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6260    # This has been around since 386BSD, at least.  Likely further.
6261    if test -x /sbin/sysctl; then
6262      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6263    elif test -x /usr/sbin/sysctl; then
6264      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6265    else
6266      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6267    fi
6268    # And add a safety zone
6269    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6270    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6271    ;;
6272
6273  interix*)
6274    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6275    lt_cv_sys_max_cmd_len=196608
6276    ;;
6277
6278  osf*)
6279    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6280    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6281    # nice to cause kernel panics so lets avoid the loop below.
6282    # First set a reasonable default.
6283    lt_cv_sys_max_cmd_len=16384
6284    #
6285    if test -x /sbin/sysconfig; then
6286      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6287        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6288      esac
6289    fi
6290    ;;
6291  sco3.2v5*)
6292    lt_cv_sys_max_cmd_len=102400
6293    ;;
6294  sysv5* | sco5v6* | sysv4.2uw2*)
6295    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6296    if test -n "$kargmax"; then
6297      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6298    else
6299      lt_cv_sys_max_cmd_len=32768
6300    fi
6301    ;;
6302  *)
6303    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6304    if test -n "$lt_cv_sys_max_cmd_len"; then
6305      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6306      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6307    else
6308      # Make teststring a little bigger before we do anything with it.
6309      # a 1K string should be a reasonable start.
6310      for i in 1 2 3 4 5 6 7 8 ; do
6311        teststring=$teststring$teststring
6312      done
6313      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6314      # If test is not a shell built-in, we'll probably end up computing a
6315      # maximum length that is only half of the actual maximum length, but
6316      # we can't tell.
6317      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6318	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6319	      test $i != 17 # 1/2 MB should be enough
6320      do
6321        i=`expr $i + 1`
6322        teststring=$teststring$teststring
6323      done
6324      # Only check the string length outside the loop.
6325      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6326      teststring=
6327      # Add a significant safety factor because C++ compilers can tack on
6328      # massive amounts of additional arguments before passing them to the
6329      # linker.  It appears as though 1/2 is a usable value.
6330      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6331    fi
6332    ;;
6333  esac
6334
6335fi
6336
6337if test -n $lt_cv_sys_max_cmd_len ; then
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6339$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6340else
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6342$as_echo "none" >&6; }
6343fi
6344max_cmd_len=$lt_cv_sys_max_cmd_len
6345
6346
6347
6348
6349
6350
6351: ${CP="cp -f"}
6352: ${MV="mv -f"}
6353: ${RM="rm -f"}
6354
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6356$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6357# Try some XSI features
6358xsi_shell=no
6359( _lt_dummy="a/b/c"
6360  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6361      = c,a/b,, \
6362    && eval 'test $(( 1 + 1 )) -eq 2 \
6363    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6364  && xsi_shell=yes
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6366$as_echo "$xsi_shell" >&6; }
6367
6368
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6370$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6371lt_shell_append=no
6372( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6373    >/dev/null 2>&1 \
6374  && lt_shell_append=yes
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6376$as_echo "$lt_shell_append" >&6; }
6377
6378
6379if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6380  lt_unset=unset
6381else
6382  lt_unset=false
6383fi
6384
6385
6386
6387
6388
6389# test EBCDIC or ASCII
6390case `echo X|tr X '\101'` in
6391 A) # ASCII based system
6392    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6393  lt_SP2NL='tr \040 \012'
6394  lt_NL2SP='tr \015\012 \040\040'
6395  ;;
6396 *) # EBCDIC based system
6397  lt_SP2NL='tr \100 \n'
6398  lt_NL2SP='tr \r\n \100\100'
6399  ;;
6400esac
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6411$as_echo_n "checking for $LD option to reload object files... " >&6; }
6412if test "${lt_cv_ld_reload_flag+set}" = set; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  lt_cv_ld_reload_flag='-r'
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6418$as_echo "$lt_cv_ld_reload_flag" >&6; }
6419reload_flag=$lt_cv_ld_reload_flag
6420case $reload_flag in
6421"" | " "*) ;;
6422*) reload_flag=" $reload_flag" ;;
6423esac
6424reload_cmds='$LD$reload_flag -o $output$reload_objs'
6425case $host_os in
6426  darwin*)
6427    if test "$GCC" = yes; then
6428      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6429    else
6430      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6431    fi
6432    ;;
6433esac
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443if test -n "$ac_tool_prefix"; then
6444  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}objdump; ac_word=$2
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  if test -n "$OBJDUMP"; then
6452  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457  IFS=$as_save_IFS
6458  test -z "$as_dir" && as_dir=.
6459    for ac_exec_ext in '' $ac_executable_extensions; do
6460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463    break 2
6464  fi
6465done
6466  done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471OBJDUMP=$ac_cv_prog_OBJDUMP
6472if test -n "$OBJDUMP"; then
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6474$as_echo "$OBJDUMP" >&6; }
6475else
6476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481fi
6482if test -z "$ac_cv_prog_OBJDUMP"; then
6483  ac_ct_OBJDUMP=$OBJDUMP
6484  # Extract the first word of "objdump", so it can be a program name with args.
6485set dummy objdump; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$ac_ct_OBJDUMP"; then
6492  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6512if test -n "$ac_ct_OBJDUMP"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6514$as_echo "$ac_ct_OBJDUMP" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520  if test "x$ac_ct_OBJDUMP" = x; then
6521    OBJDUMP="false"
6522  else
6523    case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
6529    OBJDUMP=$ac_ct_OBJDUMP
6530  fi
6531else
6532  OBJDUMP="$ac_cv_prog_OBJDUMP"
6533fi
6534
6535test -z "$OBJDUMP" && OBJDUMP=objdump
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6546$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6547if test "${lt_cv_deplibs_check_method+set}" = set; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  lt_cv_file_magic_cmd='$MAGIC_CMD'
6551lt_cv_file_magic_test_file=
6552lt_cv_deplibs_check_method='unknown'
6553# Need to set the preceding variable on all platforms that support
6554# interlibrary dependencies.
6555# 'none' -- dependencies not supported.
6556# `unknown' -- same as none, but documents that we really don't know.
6557# 'pass_all' -- all dependencies passed with no checks.
6558# 'test_compile' -- check by making test program.
6559# 'file_magic [[regex]]' -- check by looking for files in library path
6560# which responds to the $file_magic_cmd with a given extended regex.
6561# If you have `file' or equivalent on your system and you're not sure
6562# whether `pass_all' will *always* work, you probably want this one.
6563
6564case $host_os in
6565aix[4-9]*)
6566  lt_cv_deplibs_check_method=pass_all
6567  ;;
6568
6569beos*)
6570  lt_cv_deplibs_check_method=pass_all
6571  ;;
6572
6573bsdi[45]*)
6574  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6575  lt_cv_file_magic_cmd='/usr/bin/file -L'
6576  lt_cv_file_magic_test_file=/shlib/libc.so
6577  ;;
6578
6579cygwin*)
6580  # func_win32_libid is a shell function defined in ltmain.sh
6581  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6582  lt_cv_file_magic_cmd='func_win32_libid'
6583  ;;
6584
6585mingw* | pw32*)
6586  # Base MSYS/MinGW do not provide the 'file' command needed by
6587  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6588  # unless we find 'file', for example because we are cross-compiling.
6589  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6590  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6591    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6592    lt_cv_file_magic_cmd='func_win32_libid'
6593  else
6594    # Keep this pattern in sync with the one in func_win32_libid.
6595    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6596    lt_cv_file_magic_cmd='$OBJDUMP -f'
6597  fi
6598  ;;
6599
6600cegcc*)
6601  # use the weaker test based on 'objdump'. See mingw*.
6602  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6603  lt_cv_file_magic_cmd='$OBJDUMP -f'
6604  ;;
6605
6606darwin* | rhapsody*)
6607  lt_cv_deplibs_check_method=pass_all
6608  ;;
6609
6610freebsd* | dragonfly*)
6611  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6612    case $host_cpu in
6613    i*86 )
6614      # Not sure whether the presence of OpenBSD here was a mistake.
6615      # Let's accept both of them until this is cleared up.
6616      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6617      lt_cv_file_magic_cmd=/usr/bin/file
6618      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6619      ;;
6620    esac
6621  else
6622    lt_cv_deplibs_check_method=pass_all
6623  fi
6624  ;;
6625
6626gnu*)
6627  lt_cv_deplibs_check_method=pass_all
6628  ;;
6629
6630haiku*)
6631  lt_cv_deplibs_check_method=pass_all
6632  ;;
6633
6634hpux10.20* | hpux11*)
6635  lt_cv_file_magic_cmd=/usr/bin/file
6636  case $host_cpu in
6637  ia64*)
6638    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6639    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6640    ;;
6641  hppa*64*)
6642    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]'
6643    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6644    ;;
6645  *)
6646    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6647    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6648    ;;
6649  esac
6650  ;;
6651
6652interix[3-9]*)
6653  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6654  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6655  ;;
6656
6657irix5* | irix6* | nonstopux*)
6658  case $LD in
6659  *-32|*"-32 ") libmagic=32-bit;;
6660  *-n32|*"-n32 ") libmagic=N32;;
6661  *-64|*"-64 ") libmagic=64-bit;;
6662  *) libmagic=never-match;;
6663  esac
6664  lt_cv_deplibs_check_method=pass_all
6665  ;;
6666
6667# This must be Linux ELF.
6668linux* | k*bsd*-gnu | kopensolaris*-gnu)
6669  lt_cv_deplibs_check_method=pass_all
6670  ;;
6671
6672netbsd*)
6673  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6674    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6675  else
6676    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6677  fi
6678  ;;
6679
6680newos6*)
6681  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6682  lt_cv_file_magic_cmd=/usr/bin/file
6683  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6684  ;;
6685
6686*nto* | *qnx*)
6687  lt_cv_deplibs_check_method=pass_all
6688  ;;
6689
6690openbsd*)
6691  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6692    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6693  else
6694    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6695  fi
6696  ;;
6697
6698osf3* | osf4* | osf5*)
6699  lt_cv_deplibs_check_method=pass_all
6700  ;;
6701
6702rdos*)
6703  lt_cv_deplibs_check_method=pass_all
6704  ;;
6705
6706solaris*)
6707  lt_cv_deplibs_check_method=pass_all
6708  ;;
6709
6710sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6711  lt_cv_deplibs_check_method=pass_all
6712  ;;
6713
6714sysv4 | sysv4.3*)
6715  case $host_vendor in
6716  motorola)
6717    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]'
6718    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6719    ;;
6720  ncr)
6721    lt_cv_deplibs_check_method=pass_all
6722    ;;
6723  sequent)
6724    lt_cv_file_magic_cmd='/bin/file'
6725    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6726    ;;
6727  sni)
6728    lt_cv_file_magic_cmd='/bin/file'
6729    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6730    lt_cv_file_magic_test_file=/lib/libc.so
6731    ;;
6732  siemens)
6733    lt_cv_deplibs_check_method=pass_all
6734    ;;
6735  pc)
6736    lt_cv_deplibs_check_method=pass_all
6737    ;;
6738  esac
6739  ;;
6740
6741tpf*)
6742  lt_cv_deplibs_check_method=pass_all
6743  ;;
6744esac
6745
6746fi
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6748$as_echo "$lt_cv_deplibs_check_method" >&6; }
6749file_magic_cmd=$lt_cv_file_magic_cmd
6750deplibs_check_method=$lt_cv_deplibs_check_method
6751test -z "$deplibs_check_method" && deplibs_check_method=unknown
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764if test -n "$ac_tool_prefix"; then
6765  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6766set dummy ${ac_tool_prefix}ar; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if test "${ac_cv_prog_AR+set}" = set; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  if test -n "$AR"; then
6773  ac_cv_prog_AR="$AR" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778  IFS=$as_save_IFS
6779  test -z "$as_dir" && as_dir=.
6780    for ac_exec_ext in '' $ac_executable_extensions; do
6781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782    ac_cv_prog_AR="${ac_tool_prefix}ar"
6783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784    break 2
6785  fi
6786done
6787  done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792AR=$ac_cv_prog_AR
6793if test -n "$AR"; then
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6795$as_echo "$AR" >&6; }
6796else
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801
6802fi
6803if test -z "$ac_cv_prog_AR"; then
6804  ac_ct_AR=$AR
6805  # Extract the first word of "ar", so it can be a program name with args.
6806set dummy ar; ac_word=$2
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808$as_echo_n "checking for $ac_word... " >&6; }
6809if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  if test -n "$ac_ct_AR"; then
6813  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818  IFS=$as_save_IFS
6819  test -z "$as_dir" && as_dir=.
6820    for ac_exec_ext in '' $ac_executable_extensions; do
6821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822    ac_cv_prog_ac_ct_AR="ar"
6823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824    break 2
6825  fi
6826done
6827  done
6828IFS=$as_save_IFS
6829
6830fi
6831fi
6832ac_ct_AR=$ac_cv_prog_ac_ct_AR
6833if test -n "$ac_ct_AR"; then
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6835$as_echo "$ac_ct_AR" >&6; }
6836else
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }
6839fi
6840
6841  if test "x$ac_ct_AR" = x; then
6842    AR="false"
6843  else
6844    case $cross_compiling:$ac_tool_warned in
6845yes:)
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848ac_tool_warned=yes ;;
6849esac
6850    AR=$ac_ct_AR
6851  fi
6852else
6853  AR="$ac_cv_prog_AR"
6854fi
6855
6856test -z "$AR" && AR=ar
6857test -z "$AR_FLAGS" && AR_FLAGS=cru
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869if test -n "$ac_tool_prefix"; then
6870  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6871set dummy ${ac_tool_prefix}strip; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
6874if test "${ac_cv_prog_STRIP+set}" = set; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  if test -n "$STRIP"; then
6878  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883  IFS=$as_save_IFS
6884  test -z "$as_dir" && as_dir=.
6885    for ac_exec_ext in '' $ac_executable_extensions; do
6886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889    break 2
6890  fi
6891done
6892  done
6893IFS=$as_save_IFS
6894
6895fi
6896fi
6897STRIP=$ac_cv_prog_STRIP
6898if test -n "$STRIP"; then
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6900$as_echo "$STRIP" >&6; }
6901else
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904fi
6905
6906
6907fi
6908if test -z "$ac_cv_prog_STRIP"; then
6909  ac_ct_STRIP=$STRIP
6910  # Extract the first word of "strip", so it can be a program name with args.
6911set dummy strip; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  if test -n "$ac_ct_STRIP"; then
6918  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927    ac_cv_prog_ac_ct_STRIP="strip"
6928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932  done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6938if test -n "$ac_ct_STRIP"; then
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6940$as_echo "$ac_ct_STRIP" >&6; }
6941else
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946  if test "x$ac_ct_STRIP" = x; then
6947    STRIP=":"
6948  else
6949    case $cross_compiling:$ac_tool_warned in
6950yes:)
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953ac_tool_warned=yes ;;
6954esac
6955    STRIP=$ac_ct_STRIP
6956  fi
6957else
6958  STRIP="$ac_cv_prog_STRIP"
6959fi
6960
6961test -z "$STRIP" && STRIP=:
6962
6963
6964
6965
6966
6967
6968if test -n "$ac_tool_prefix"; then
6969  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6970set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972$as_echo_n "checking for $ac_word... " >&6; }
6973if test "${ac_cv_prog_RANLIB+set}" = set; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  if test -n "$RANLIB"; then
6977  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6978else
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982  IFS=$as_save_IFS
6983  test -z "$as_dir" && as_dir=.
6984    for ac_exec_ext in '' $ac_executable_extensions; do
6985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6986    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988    break 2
6989  fi
6990done
6991  done
6992IFS=$as_save_IFS
6993
6994fi
6995fi
6996RANLIB=$ac_cv_prog_RANLIB
6997if test -n "$RANLIB"; then
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6999$as_echo "$RANLIB" >&6; }
7000else
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002$as_echo "no" >&6; }
7003fi
7004
7005
7006fi
7007if test -z "$ac_cv_prog_RANLIB"; then
7008  ac_ct_RANLIB=$RANLIB
7009  # Extract the first word of "ranlib", so it can be a program name with args.
7010set dummy ranlib; ac_word=$2
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012$as_echo_n "checking for $ac_word... " >&6; }
7013if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  if test -n "$ac_ct_RANLIB"; then
7017  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7018else
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022  IFS=$as_save_IFS
7023  test -z "$as_dir" && as_dir=.
7024    for ac_exec_ext in '' $ac_executable_extensions; do
7025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026    ac_cv_prog_ac_ct_RANLIB="ranlib"
7027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028    break 2
7029  fi
7030done
7031  done
7032IFS=$as_save_IFS
7033
7034fi
7035fi
7036ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7037if test -n "$ac_ct_RANLIB"; then
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7039$as_echo "$ac_ct_RANLIB" >&6; }
7040else
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042$as_echo "no" >&6; }
7043fi
7044
7045  if test "x$ac_ct_RANLIB" = x; then
7046    RANLIB=":"
7047  else
7048    case $cross_compiling:$ac_tool_warned in
7049yes:)
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7052ac_tool_warned=yes ;;
7053esac
7054    RANLIB=$ac_ct_RANLIB
7055  fi
7056else
7057  RANLIB="$ac_cv_prog_RANLIB"
7058fi
7059
7060test -z "$RANLIB" && RANLIB=:
7061
7062
7063
7064
7065
7066
7067# Determine commands to create old-style static archives.
7068old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7069old_postinstall_cmds='chmod 644 $oldlib'
7070old_postuninstall_cmds=
7071
7072if test -n "$RANLIB"; then
7073  case $host_os in
7074  openbsd*)
7075    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7076    ;;
7077  *)
7078    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7079    ;;
7080  esac
7081  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7082fi
7083
7084case $host_os in
7085  darwin*)
7086    lock_old_archive_extraction=yes ;;
7087  *)
7088    lock_old_archive_extraction=no ;;
7089esac
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129# If no C compiler was specified, use CC.
7130LTCC=${LTCC-"$CC"}
7131
7132# If no C compiler flags were specified, use CFLAGS.
7133LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7134
7135# Allow CC to be a program name with arguments.
7136compiler=$CC
7137
7138
7139# Check for command to grab the raw symbol name followed by C symbol from nm.
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7141$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7142if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7143  $as_echo_n "(cached) " >&6
7144else
7145
7146# These are sane defaults that work on at least a few old systems.
7147# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7148
7149# Character class describing NM global symbol codes.
7150symcode='[BCDEGRST]'
7151
7152# Regexp to match symbols that can be accessed directly from C.
7153sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7154
7155# Define system-specific variables.
7156case $host_os in
7157aix*)
7158  symcode='[BCDT]'
7159  ;;
7160cygwin* | mingw* | pw32* | cegcc*)
7161  symcode='[ABCDGISTW]'
7162  ;;
7163hpux*)
7164  if test "$host_cpu" = ia64; then
7165    symcode='[ABCDEGRST]'
7166  fi
7167  ;;
7168irix* | nonstopux*)
7169  symcode='[BCDEGRST]'
7170  ;;
7171osf*)
7172  symcode='[BCDEGQRST]'
7173  ;;
7174solaris*)
7175  symcode='[BDRT]'
7176  ;;
7177sco3.2v5*)
7178  symcode='[DT]'
7179  ;;
7180sysv4.2uw2*)
7181  symcode='[DT]'
7182  ;;
7183sysv5* | sco5v6* | unixware* | OpenUNIX*)
7184  symcode='[ABDT]'
7185  ;;
7186sysv4)
7187  symcode='[DFNSTU]'
7188  ;;
7189esac
7190
7191# If we're using GNU nm, then use its standard symbol codes.
7192case `$NM -V 2>&1` in
7193*GNU* | *'with BFD'*)
7194  symcode='[ABCDGIRSTW]' ;;
7195esac
7196
7197# Transform an extracted symbol line into a proper C declaration.
7198# Some systems (esp. on ia64) link data and code symbols differently,
7199# so use this general approach.
7200lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7201
7202# Transform an extracted symbol line into symbol name and symbol address
7203lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7204lt_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'"
7205
7206# Handle CRLF in mingw tool chain
7207opt_cr=
7208case $build_os in
7209mingw*)
7210  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7211  ;;
7212esac
7213
7214# Try without a prefix underscore, then with it.
7215for ac_symprfx in "" "_"; do
7216
7217  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7218  symxfrm="\\1 $ac_symprfx\\2 \\2"
7219
7220  # Write the raw and C identifiers.
7221  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7222    # Fake it for dumpbin and say T for any non-static function
7223    # and D for any global variable.
7224    # Also find C++ and __fastcall symbols from MSVC++,
7225    # which start with @ or ?.
7226    lt_cv_sys_global_symbol_pipe="$AWK '"\
7227"     {last_section=section; section=\$ 3};"\
7228"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7229"     \$ 0!~/External *\|/{next};"\
7230"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7231"     {if(hide[section]) next};"\
7232"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7233"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7234"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7235"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7236"     ' prfx=^$ac_symprfx"
7237  else
7238    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7239  fi
7240
7241  # Check to see that the pipe works correctly.
7242  pipe_works=no
7243
7244  rm -f conftest*
7245  cat > conftest.$ac_ext <<_LT_EOF
7246#ifdef __cplusplus
7247extern "C" {
7248#endif
7249char nm_test_var;
7250void nm_test_func(void);
7251void nm_test_func(void){}
7252#ifdef __cplusplus
7253}
7254#endif
7255int main(){nm_test_var='a';nm_test_func();return(0);}
7256_LT_EOF
7257
7258  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7259  (eval $ac_compile) 2>&5
7260  ac_status=$?
7261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262  test $ac_status = 0; }; then
7263    # Now try to grab the symbols.
7264    nlist=conftest.nm
7265    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7266  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7267  ac_status=$?
7268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269  test $ac_status = 0; } && test -s "$nlist"; then
7270      # Try sorting and uniquifying the output.
7271      if sort "$nlist" | uniq > "$nlist"T; then
7272	mv -f "$nlist"T "$nlist"
7273      else
7274	rm -f "$nlist"T
7275      fi
7276
7277      # Make sure that we snagged all the symbols we need.
7278      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7279	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7280	  cat <<_LT_EOF > conftest.$ac_ext
7281#ifdef __cplusplus
7282extern "C" {
7283#endif
7284
7285_LT_EOF
7286	  # Now generate the symbol file.
7287	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7288
7289	  cat <<_LT_EOF >> conftest.$ac_ext
7290
7291/* The mapping between symbol names and symbols.  */
7292const struct {
7293  const char *name;
7294  void       *address;
7295}
7296lt__PROGRAM__LTX_preloaded_symbols[] =
7297{
7298  { "@PROGRAM@", (void *) 0 },
7299_LT_EOF
7300	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7301	  cat <<\_LT_EOF >> conftest.$ac_ext
7302  {0, (void *) 0}
7303};
7304
7305/* This works around a problem in FreeBSD linker */
7306#ifdef FREEBSD_WORKAROUND
7307static const void *lt_preloaded_setup() {
7308  return lt__PROGRAM__LTX_preloaded_symbols;
7309}
7310#endif
7311
7312#ifdef __cplusplus
7313}
7314#endif
7315_LT_EOF
7316	  # Now try linking the two files.
7317	  mv conftest.$ac_objext conftstm.$ac_objext
7318	  lt_save_LIBS="$LIBS"
7319	  lt_save_CFLAGS="$CFLAGS"
7320	  LIBS="conftstm.$ac_objext"
7321	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7322	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7323  (eval $ac_link) 2>&5
7324  ac_status=$?
7325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7327	    pipe_works=yes
7328	  fi
7329	  LIBS="$lt_save_LIBS"
7330	  CFLAGS="$lt_save_CFLAGS"
7331	else
7332	  echo "cannot find nm_test_func in $nlist" >&5
7333	fi
7334      else
7335	echo "cannot find nm_test_var in $nlist" >&5
7336      fi
7337    else
7338      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7339    fi
7340  else
7341    echo "$progname: failed program was:" >&5
7342    cat conftest.$ac_ext >&5
7343  fi
7344  rm -rf conftest* conftst*
7345
7346  # Do not use the global_symbol_pipe unless it works.
7347  if test "$pipe_works" = yes; then
7348    break
7349  else
7350    lt_cv_sys_global_symbol_pipe=
7351  fi
7352done
7353
7354fi
7355
7356if test -z "$lt_cv_sys_global_symbol_pipe"; then
7357  lt_cv_sys_global_symbol_to_cdecl=
7358fi
7359if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7361$as_echo "failed" >&6; }
7362else
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7364$as_echo "ok" >&6; }
7365fi
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388# Check whether --enable-libtool-lock was given.
7389if test "${enable_libtool_lock+set}" = set; then :
7390  enableval=$enable_libtool_lock;
7391fi
7392
7393test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7394
7395# Some flags need to be propagated to the compiler or linker for good
7396# libtool support.
7397case $host in
7398ia64-*-hpux*)
7399  # Find out which ABI we are using.
7400  echo 'int i;' > conftest.$ac_ext
7401  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402  (eval $ac_compile) 2>&5
7403  ac_status=$?
7404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405  test $ac_status = 0; }; then
7406    case `/usr/bin/file conftest.$ac_objext` in
7407      *ELF-32*)
7408	HPUX_IA64_MODE="32"
7409	;;
7410      *ELF-64*)
7411	HPUX_IA64_MODE="64"
7412	;;
7413    esac
7414  fi
7415  rm -rf conftest*
7416  ;;
7417*-*-irix6*)
7418  # Find out which ABI we are using.
7419  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7420  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421  (eval $ac_compile) 2>&5
7422  ac_status=$?
7423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424  test $ac_status = 0; }; then
7425    if test "$lt_cv_prog_gnu_ld" = yes; then
7426      case `/usr/bin/file conftest.$ac_objext` in
7427	*32-bit*)
7428	  LD="${LD-ld} -melf32bsmip"
7429	  ;;
7430	*N32*)
7431	  LD="${LD-ld} -melf32bmipn32"
7432	  ;;
7433	*64-bit*)
7434	  LD="${LD-ld} -melf64bmip"
7435	;;
7436      esac
7437    else
7438      case `/usr/bin/file conftest.$ac_objext` in
7439	*32-bit*)
7440	  LD="${LD-ld} -32"
7441	  ;;
7442	*N32*)
7443	  LD="${LD-ld} -n32"
7444	  ;;
7445	*64-bit*)
7446	  LD="${LD-ld} -64"
7447	  ;;
7448      esac
7449    fi
7450  fi
7451  rm -rf conftest*
7452  ;;
7453
7454x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7455s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7456  # Find out which ABI we are using.
7457  echo 'int i;' > conftest.$ac_ext
7458  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7459  (eval $ac_compile) 2>&5
7460  ac_status=$?
7461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7462  test $ac_status = 0; }; then
7463    case `/usr/bin/file conftest.o` in
7464      *32-bit*)
7465	case $host in
7466	  x86_64-*kfreebsd*-gnu)
7467	    LD="${LD-ld} -m elf_i386_fbsd"
7468	    ;;
7469	  x86_64-*linux*)
7470	    LD="${LD-ld} -m elf_i386"
7471	    ;;
7472	  ppc64-*linux*|powerpc64-*linux*)
7473	    LD="${LD-ld} -m elf32ppclinux"
7474	    ;;
7475	  s390x-*linux*)
7476	    LD="${LD-ld} -m elf_s390"
7477	    ;;
7478	  sparc64-*linux*)
7479	    LD="${LD-ld} -m elf32_sparc"
7480	    ;;
7481	esac
7482	;;
7483      *64-bit*)
7484	case $host in
7485	  x86_64-*kfreebsd*-gnu)
7486	    LD="${LD-ld} -m elf_x86_64_fbsd"
7487	    ;;
7488	  x86_64-*linux*)
7489	    LD="${LD-ld} -m elf_x86_64"
7490	    ;;
7491	  ppc*-*linux*|powerpc*-*linux*)
7492	    LD="${LD-ld} -m elf64ppc"
7493	    ;;
7494	  s390*-*linux*|s390*-*tpf*)
7495	    LD="${LD-ld} -m elf64_s390"
7496	    ;;
7497	  sparc*-*linux*)
7498	    LD="${LD-ld} -m elf64_sparc"
7499	    ;;
7500	esac
7501	;;
7502    esac
7503  fi
7504  rm -rf conftest*
7505  ;;
7506
7507*-*-sco3.2v5*)
7508  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7509  SAVE_CFLAGS="$CFLAGS"
7510  CFLAGS="$CFLAGS -belf"
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7512$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7513if test "${lt_cv_cc_needs_belf+set}" = set; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  ac_ext=c
7517ac_cpp='$CPP $CPPFLAGS'
7518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521
7522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524
7525int
7526main ()
7527{
7528
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_link "$LINENO"; then :
7534  lt_cv_cc_needs_belf=yes
7535else
7536  lt_cv_cc_needs_belf=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext \
7539    conftest$ac_exeext conftest.$ac_ext
7540     ac_ext=c
7541ac_cpp='$CPP $CPPFLAGS'
7542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546fi
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7548$as_echo "$lt_cv_cc_needs_belf" >&6; }
7549  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7550    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7551    CFLAGS="$SAVE_CFLAGS"
7552  fi
7553  ;;
7554sparc*-*solaris*)
7555  # Find out which ABI we are using.
7556  echo 'int i;' > conftest.$ac_ext
7557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558  (eval $ac_compile) 2>&5
7559  ac_status=$?
7560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561  test $ac_status = 0; }; then
7562    case `/usr/bin/file conftest.o` in
7563    *64-bit*)
7564      case $lt_cv_prog_gnu_ld in
7565      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7566      *)
7567	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7568	  LD="${LD-ld} -64"
7569	fi
7570	;;
7571      esac
7572      ;;
7573    esac
7574  fi
7575  rm -rf conftest*
7576  ;;
7577esac
7578
7579need_locks="$enable_libtool_lock"
7580
7581
7582  case $host_os in
7583    rhapsody* | darwin*)
7584    if test -n "$ac_tool_prefix"; then
7585  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7586set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  if test -n "$DSYMUTIL"; then
7593  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598  IFS=$as_save_IFS
7599  test -z "$as_dir" && as_dir=.
7600    for ac_exec_ext in '' $ac_executable_extensions; do
7601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604    break 2
7605  fi
7606done
7607  done
7608IFS=$as_save_IFS
7609
7610fi
7611fi
7612DSYMUTIL=$ac_cv_prog_DSYMUTIL
7613if test -n "$DSYMUTIL"; then
7614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7615$as_echo "$DSYMUTIL" >&6; }
7616else
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620
7621
7622fi
7623if test -z "$ac_cv_prog_DSYMUTIL"; then
7624  ac_ct_DSYMUTIL=$DSYMUTIL
7625  # Extract the first word of "dsymutil", so it can be a program name with args.
7626set dummy dsymutil; ac_word=$2
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632  if test -n "$ac_ct_DSYMUTIL"; then
7633  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638  IFS=$as_save_IFS
7639  test -z "$as_dir" && as_dir=.
7640    for ac_exec_ext in '' $ac_executable_extensions; do
7641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644    break 2
7645  fi
7646done
7647  done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7653if test -n "$ac_ct_DSYMUTIL"; then
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7655$as_echo "$ac_ct_DSYMUTIL" >&6; }
7656else
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661  if test "x$ac_ct_DSYMUTIL" = x; then
7662    DSYMUTIL=":"
7663  else
7664    case $cross_compiling:$ac_tool_warned in
7665yes:)
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668ac_tool_warned=yes ;;
7669esac
7670    DSYMUTIL=$ac_ct_DSYMUTIL
7671  fi
7672else
7673  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7674fi
7675
7676    if test -n "$ac_tool_prefix"; then
7677  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7678set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
7681if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7682  $as_echo_n "(cached) " >&6
7683else
7684  if test -n "$NMEDIT"; then
7685  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7686else
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690  IFS=$as_save_IFS
7691  test -z "$as_dir" && as_dir=.
7692    for ac_exec_ext in '' $ac_executable_extensions; do
7693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696    break 2
7697  fi
7698done
7699  done
7700IFS=$as_save_IFS
7701
7702fi
7703fi
7704NMEDIT=$ac_cv_prog_NMEDIT
7705if test -n "$NMEDIT"; then
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7707$as_echo "$NMEDIT" >&6; }
7708else
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
7711fi
7712
7713
7714fi
7715if test -z "$ac_cv_prog_NMEDIT"; then
7716  ac_ct_NMEDIT=$NMEDIT
7717  # Extract the first word of "nmedit", so it can be a program name with args.
7718set dummy nmedit; ac_word=$2
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  if test -n "$ac_ct_NMEDIT"; then
7725  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730  IFS=$as_save_IFS
7731  test -z "$as_dir" && as_dir=.
7732    for ac_exec_ext in '' $ac_executable_extensions; do
7733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736    break 2
7737  fi
7738done
7739  done
7740IFS=$as_save_IFS
7741
7742fi
7743fi
7744ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7745if test -n "$ac_ct_NMEDIT"; then
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7747$as_echo "$ac_ct_NMEDIT" >&6; }
7748else
7749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
7751fi
7752
7753  if test "x$ac_ct_NMEDIT" = x; then
7754    NMEDIT=":"
7755  else
7756    case $cross_compiling:$ac_tool_warned in
7757yes:)
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760ac_tool_warned=yes ;;
7761esac
7762    NMEDIT=$ac_ct_NMEDIT
7763  fi
7764else
7765  NMEDIT="$ac_cv_prog_NMEDIT"
7766fi
7767
7768    if test -n "$ac_tool_prefix"; then
7769  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7770set dummy ${ac_tool_prefix}lipo; ac_word=$2
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
7773if test "${ac_cv_prog_LIPO+set}" = set; then :
7774  $as_echo_n "(cached) " >&6
7775else
7776  if test -n "$LIPO"; then
7777  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782  IFS=$as_save_IFS
7783  test -z "$as_dir" && as_dir=.
7784    for ac_exec_ext in '' $ac_executable_extensions; do
7785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788    break 2
7789  fi
7790done
7791  done
7792IFS=$as_save_IFS
7793
7794fi
7795fi
7796LIPO=$ac_cv_prog_LIPO
7797if test -n "$LIPO"; then
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7799$as_echo "$LIPO" >&6; }
7800else
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
7803fi
7804
7805
7806fi
7807if test -z "$ac_cv_prog_LIPO"; then
7808  ac_ct_LIPO=$LIPO
7809  # Extract the first word of "lipo", so it can be a program name with args.
7810set dummy lipo; ac_word=$2
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812$as_echo_n "checking for $ac_word... " >&6; }
7813if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7814  $as_echo_n "(cached) " >&6
7815else
7816  if test -n "$ac_ct_LIPO"; then
7817  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7818else
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822  IFS=$as_save_IFS
7823  test -z "$as_dir" && as_dir=.
7824    for ac_exec_ext in '' $ac_executable_extensions; do
7825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826    ac_cv_prog_ac_ct_LIPO="lipo"
7827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828    break 2
7829  fi
7830done
7831  done
7832IFS=$as_save_IFS
7833
7834fi
7835fi
7836ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7837if test -n "$ac_ct_LIPO"; then
7838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7839$as_echo "$ac_ct_LIPO" >&6; }
7840else
7841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
7843fi
7844
7845  if test "x$ac_ct_LIPO" = x; then
7846    LIPO=":"
7847  else
7848    case $cross_compiling:$ac_tool_warned in
7849yes:)
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852ac_tool_warned=yes ;;
7853esac
7854    LIPO=$ac_ct_LIPO
7855  fi
7856else
7857  LIPO="$ac_cv_prog_LIPO"
7858fi
7859
7860    if test -n "$ac_tool_prefix"; then
7861  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7862set dummy ${ac_tool_prefix}otool; ac_word=$2
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if test "${ac_cv_prog_OTOOL+set}" = set; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  if test -n "$OTOOL"; then
7869  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874  IFS=$as_save_IFS
7875  test -z "$as_dir" && as_dir=.
7876    for ac_exec_ext in '' $ac_executable_extensions; do
7877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880    break 2
7881  fi
7882done
7883  done
7884IFS=$as_save_IFS
7885
7886fi
7887fi
7888OTOOL=$ac_cv_prog_OTOOL
7889if test -n "$OTOOL"; then
7890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7891$as_echo "$OTOOL" >&6; }
7892else
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
7895fi
7896
7897
7898fi
7899if test -z "$ac_cv_prog_OTOOL"; then
7900  ac_ct_OTOOL=$OTOOL
7901  # Extract the first word of "otool", so it can be a program name with args.
7902set dummy otool; ac_word=$2
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904$as_echo_n "checking for $ac_word... " >&6; }
7905if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7906  $as_echo_n "(cached) " >&6
7907else
7908  if test -n "$ac_ct_OTOOL"; then
7909  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7910else
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914  IFS=$as_save_IFS
7915  test -z "$as_dir" && as_dir=.
7916    for ac_exec_ext in '' $ac_executable_extensions; do
7917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918    ac_cv_prog_ac_ct_OTOOL="otool"
7919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920    break 2
7921  fi
7922done
7923  done
7924IFS=$as_save_IFS
7925
7926fi
7927fi
7928ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7929if test -n "$ac_ct_OTOOL"; then
7930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7931$as_echo "$ac_ct_OTOOL" >&6; }
7932else
7933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934$as_echo "no" >&6; }
7935fi
7936
7937  if test "x$ac_ct_OTOOL" = x; then
7938    OTOOL=":"
7939  else
7940    case $cross_compiling:$ac_tool_warned in
7941yes:)
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944ac_tool_warned=yes ;;
7945esac
7946    OTOOL=$ac_ct_OTOOL
7947  fi
7948else
7949  OTOOL="$ac_cv_prog_OTOOL"
7950fi
7951
7952    if test -n "$ac_tool_prefix"; then
7953  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7954set dummy ${ac_tool_prefix}otool64; ac_word=$2
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
7957if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7958  $as_echo_n "(cached) " >&6
7959else
7960  if test -n "$OTOOL64"; then
7961  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7962else
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966  IFS=$as_save_IFS
7967  test -z "$as_dir" && as_dir=.
7968    for ac_exec_ext in '' $ac_executable_extensions; do
7969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972    break 2
7973  fi
7974done
7975  done
7976IFS=$as_save_IFS
7977
7978fi
7979fi
7980OTOOL64=$ac_cv_prog_OTOOL64
7981if test -n "$OTOOL64"; then
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7983$as_echo "$OTOOL64" >&6; }
7984else
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988
7989
7990fi
7991if test -z "$ac_cv_prog_OTOOL64"; then
7992  ac_ct_OTOOL64=$OTOOL64
7993  # Extract the first word of "otool64", so it can be a program name with args.
7994set dummy otool64; ac_word=$2
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996$as_echo_n "checking for $ac_word... " >&6; }
7997if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  if test -n "$ac_ct_OTOOL64"; then
8001  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006  IFS=$as_save_IFS
8007  test -z "$as_dir" && as_dir=.
8008    for ac_exec_ext in '' $ac_executable_extensions; do
8009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010    ac_cv_prog_ac_ct_OTOOL64="otool64"
8011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012    break 2
8013  fi
8014done
8015  done
8016IFS=$as_save_IFS
8017
8018fi
8019fi
8020ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8021if test -n "$ac_ct_OTOOL64"; then
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8023$as_echo "$ac_ct_OTOOL64" >&6; }
8024else
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
8028
8029  if test "x$ac_ct_OTOOL64" = x; then
8030    OTOOL64=":"
8031  else
8032    case $cross_compiling:$ac_tool_warned in
8033yes:)
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8036ac_tool_warned=yes ;;
8037esac
8038    OTOOL64=$ac_ct_OTOOL64
8039  fi
8040else
8041  OTOOL64="$ac_cv_prog_OTOOL64"
8042fi
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8071$as_echo_n "checking for -single_module linker flag... " >&6; }
8072if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  lt_cv_apple_cc_single_mod=no
8076      if test -z "${LT_MULTI_MODULE}"; then
8077	# By default we will add the -single_module flag. You can override
8078	# by either setting the environment variable LT_MULTI_MODULE
8079	# non-empty at configure time, or by adding -multi_module to the
8080	# link flags.
8081	rm -rf libconftest.dylib*
8082	echo "int foo(void){return 1;}" > conftest.c
8083	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8084-dynamiclib -Wl,-single_module conftest.c" >&5
8085	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8086	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8087        _lt_result=$?
8088	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8089	  lt_cv_apple_cc_single_mod=yes
8090	else
8091	  cat conftest.err >&5
8092	fi
8093	rm -rf libconftest.dylib*
8094	rm -f conftest.*
8095      fi
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8098$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8100$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8101if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  lt_cv_ld_exported_symbols_list=no
8105      save_LDFLAGS=$LDFLAGS
8106      echo "_main" > conftest.sym
8107      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8108      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110
8111int
8112main ()
8113{
8114
8115  ;
8116  return 0;
8117}
8118_ACEOF
8119if ac_fn_c_try_link "$LINENO"; then :
8120  lt_cv_ld_exported_symbols_list=yes
8121else
8122  lt_cv_ld_exported_symbols_list=no
8123fi
8124rm -f core conftest.err conftest.$ac_objext \
8125    conftest$ac_exeext conftest.$ac_ext
8126	LDFLAGS="$save_LDFLAGS"
8127
8128fi
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8130$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8132$as_echo_n "checking for -force_load linker flag... " >&6; }
8133if test "${lt_cv_ld_force_load+set}" = set; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  lt_cv_ld_force_load=no
8137      cat > conftest.c << _LT_EOF
8138int forced_loaded() { return 2;}
8139_LT_EOF
8140      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8141      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8142      echo "$AR cru libconftest.a conftest.o" >&5
8143      $AR cru libconftest.a conftest.o 2>&5
8144      echo "$RANLIB libconftest.a" >&5
8145      $RANLIB libconftest.a 2>&5
8146      cat > conftest.c << _LT_EOF
8147int main() { return 0;}
8148_LT_EOF
8149      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8150      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8151      _lt_result=$?
8152      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8153	lt_cv_ld_force_load=yes
8154      else
8155	cat conftest.err >&5
8156      fi
8157        rm -f conftest.err libconftest.a conftest conftest.c
8158        rm -rf conftest.dSYM
8159
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8162$as_echo "$lt_cv_ld_force_load" >&6; }
8163    case $host_os in
8164    rhapsody* | darwin1.[012])
8165      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8166    darwin1.*)
8167      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8168    darwin*) # darwin 5.x on
8169      # if running on 10.5 or later, the deployment target defaults
8170      # to the OS version, if on x86, and 10.4, the deployment
8171      # target defaults to 10.4. Don't you love it?
8172      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8173	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8174	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8175	10.[012]*)
8176	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8177	10.*)
8178	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8179      esac
8180    ;;
8181  esac
8182    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8183      _lt_dar_single_mod='$single_module'
8184    fi
8185    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8186      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8187    else
8188      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8189    fi
8190    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8191      _lt_dsymutil='~$DSYMUTIL $lib || :'
8192    else
8193      _lt_dsymutil=
8194    fi
8195    ;;
8196  esac
8197
8198for ac_header in dlfcn.h
8199do :
8200  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8201"
8202if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8203  cat >>confdefs.h <<_ACEOF
8204#define HAVE_DLFCN_H 1
8205_ACEOF
8206
8207fi
8208
8209done
8210
8211
8212
8213
8214
8215
8216# Set options
8217
8218
8219
8220        enable_dlopen=no
8221
8222
8223  enable_win32_dll=no
8224
8225
8226            # Check whether --enable-shared was given.
8227if test "${enable_shared+set}" = set; then :
8228  enableval=$enable_shared; p=${PACKAGE-default}
8229    case $enableval in
8230    yes) enable_shared=yes ;;
8231    no) enable_shared=no ;;
8232    *)
8233      enable_shared=no
8234      # Look at the argument we got.  We use all the common list separators.
8235      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8236      for pkg in $enableval; do
8237	IFS="$lt_save_ifs"
8238	if test "X$pkg" = "X$p"; then
8239	  enable_shared=yes
8240	fi
8241      done
8242      IFS="$lt_save_ifs"
8243      ;;
8244    esac
8245else
8246  enable_shared=yes
8247fi
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257  # Check whether --enable-static was given.
8258if test "${enable_static+set}" = set; then :
8259  enableval=$enable_static; p=${PACKAGE-default}
8260    case $enableval in
8261    yes) enable_static=yes ;;
8262    no) enable_static=no ;;
8263    *)
8264     enable_static=no
8265      # Look at the argument we got.  We use all the common list separators.
8266      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267      for pkg in $enableval; do
8268	IFS="$lt_save_ifs"
8269	if test "X$pkg" = "X$p"; then
8270	  enable_static=yes
8271	fi
8272      done
8273      IFS="$lt_save_ifs"
8274      ;;
8275    esac
8276else
8277  enable_static=yes
8278fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289# Check whether --with-pic was given.
8290if test "${with_pic+set}" = set; then :
8291  withval=$with_pic; pic_mode="$withval"
8292else
8293  pic_mode=default
8294fi
8295
8296
8297test -z "$pic_mode" && pic_mode=default
8298
8299
8300
8301
8302
8303
8304
8305  # Check whether --enable-fast-install was given.
8306if test "${enable_fast_install+set}" = set; then :
8307  enableval=$enable_fast_install; p=${PACKAGE-default}
8308    case $enableval in
8309    yes) enable_fast_install=yes ;;
8310    no) enable_fast_install=no ;;
8311    *)
8312      enable_fast_install=no
8313      # Look at the argument we got.  We use all the common list separators.
8314      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8315      for pkg in $enableval; do
8316	IFS="$lt_save_ifs"
8317	if test "X$pkg" = "X$p"; then
8318	  enable_fast_install=yes
8319	fi
8320      done
8321      IFS="$lt_save_ifs"
8322      ;;
8323    esac
8324else
8325  enable_fast_install=yes
8326fi
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338# This can be used to rebuild libtool when needed
8339LIBTOOL_DEPS="$ltmain"
8340
8341# Always use our own libtool.
8342LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369test -z "$LN_S" && LN_S="ln -s"
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384if test -n "${ZSH_VERSION+set}" ; then
8385   setopt NO_GLOB_SUBST
8386fi
8387
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8389$as_echo_n "checking for objdir... " >&6; }
8390if test "${lt_cv_objdir+set}" = set; then :
8391  $as_echo_n "(cached) " >&6
8392else
8393  rm -f .libs 2>/dev/null
8394mkdir .libs 2>/dev/null
8395if test -d .libs; then
8396  lt_cv_objdir=.libs
8397else
8398  # MS-DOS does not allow filenames that begin with a dot.
8399  lt_cv_objdir=_libs
8400fi
8401rmdir .libs 2>/dev/null
8402fi
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8404$as_echo "$lt_cv_objdir" >&6; }
8405objdir=$lt_cv_objdir
8406
8407
8408
8409
8410
8411cat >>confdefs.h <<_ACEOF
8412#define LT_OBJDIR "$lt_cv_objdir/"
8413_ACEOF
8414
8415
8416
8417
8418case $host_os in
8419aix3*)
8420  # AIX sometimes has problems with the GCC collect2 program.  For some
8421  # reason, if we set the COLLECT_NAMES environment variable, the problems
8422  # vanish in a puff of smoke.
8423  if test "X${COLLECT_NAMES+set}" != Xset; then
8424    COLLECT_NAMES=
8425    export COLLECT_NAMES
8426  fi
8427  ;;
8428esac
8429
8430# Global variables:
8431ofile=libtool
8432can_build_shared=yes
8433
8434# All known linkers require a `.a' archive for static linking (except MSVC,
8435# which needs '.lib').
8436libext=a
8437
8438with_gnu_ld="$lt_cv_prog_gnu_ld"
8439
8440old_CC="$CC"
8441old_CFLAGS="$CFLAGS"
8442
8443# Set sane defaults for various variables
8444test -z "$CC" && CC=cc
8445test -z "$LTCC" && LTCC=$CC
8446test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8447test -z "$LD" && LD=ld
8448test -z "$ac_objext" && ac_objext=o
8449
8450for cc_temp in $compiler""; do
8451  case $cc_temp in
8452    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8453    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8454    \-*) ;;
8455    *) break;;
8456  esac
8457done
8458cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8459
8460
8461# Only perform the check for file, if the check method requires it
8462test -z "$MAGIC_CMD" && MAGIC_CMD=file
8463case $deplibs_check_method in
8464file_magic*)
8465  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8467$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8468if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  case $MAGIC_CMD in
8472[\\/*] |  ?:[\\/]*)
8473  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8474  ;;
8475*)
8476  lt_save_MAGIC_CMD="$MAGIC_CMD"
8477  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8478  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8479  for ac_dir in $ac_dummy; do
8480    IFS="$lt_save_ifs"
8481    test -z "$ac_dir" && ac_dir=.
8482    if test -f $ac_dir/${ac_tool_prefix}file; then
8483      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8484      if test -n "$file_magic_test_file"; then
8485	case $deplibs_check_method in
8486	"file_magic "*)
8487	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8488	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8489	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8490	    $EGREP "$file_magic_regex" > /dev/null; then
8491	    :
8492	  else
8493	    cat <<_LT_EOF 1>&2
8494
8495*** Warning: the command libtool uses to detect shared libraries,
8496*** $file_magic_cmd, produces output that libtool cannot recognize.
8497*** The result is that libtool may fail to recognize shared libraries
8498*** as such.  This will affect the creation of libtool libraries that
8499*** depend on shared libraries, but programs linked with such libtool
8500*** libraries will work regardless of this problem.  Nevertheless, you
8501*** may want to report the problem to your system manager and/or to
8502*** bug-libtool@gnu.org
8503
8504_LT_EOF
8505	  fi ;;
8506	esac
8507      fi
8508      break
8509    fi
8510  done
8511  IFS="$lt_save_ifs"
8512  MAGIC_CMD="$lt_save_MAGIC_CMD"
8513  ;;
8514esac
8515fi
8516
8517MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8518if test -n "$MAGIC_CMD"; then
8519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8520$as_echo "$MAGIC_CMD" >&6; }
8521else
8522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523$as_echo "no" >&6; }
8524fi
8525
8526
8527
8528
8529
8530if test -z "$lt_cv_path_MAGIC_CMD"; then
8531  if test -n "$ac_tool_prefix"; then
8532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8533$as_echo_n "checking for file... " >&6; }
8534if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  case $MAGIC_CMD in
8538[\\/*] |  ?:[\\/]*)
8539  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8540  ;;
8541*)
8542  lt_save_MAGIC_CMD="$MAGIC_CMD"
8543  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8544  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8545  for ac_dir in $ac_dummy; do
8546    IFS="$lt_save_ifs"
8547    test -z "$ac_dir" && ac_dir=.
8548    if test -f $ac_dir/file; then
8549      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8550      if test -n "$file_magic_test_file"; then
8551	case $deplibs_check_method in
8552	"file_magic "*)
8553	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8554	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8555	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8556	    $EGREP "$file_magic_regex" > /dev/null; then
8557	    :
8558	  else
8559	    cat <<_LT_EOF 1>&2
8560
8561*** Warning: the command libtool uses to detect shared libraries,
8562*** $file_magic_cmd, produces output that libtool cannot recognize.
8563*** The result is that libtool may fail to recognize shared libraries
8564*** as such.  This will affect the creation of libtool libraries that
8565*** depend on shared libraries, but programs linked with such libtool
8566*** libraries will work regardless of this problem.  Nevertheless, you
8567*** may want to report the problem to your system manager and/or to
8568*** bug-libtool@gnu.org
8569
8570_LT_EOF
8571	  fi ;;
8572	esac
8573      fi
8574      break
8575    fi
8576  done
8577  IFS="$lt_save_ifs"
8578  MAGIC_CMD="$lt_save_MAGIC_CMD"
8579  ;;
8580esac
8581fi
8582
8583MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8584if test -n "$MAGIC_CMD"; then
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8586$as_echo "$MAGIC_CMD" >&6; }
8587else
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590fi
8591
8592
8593  else
8594    MAGIC_CMD=:
8595  fi
8596fi
8597
8598  fi
8599  ;;
8600esac
8601
8602# Use C for the default configuration in the libtool script
8603
8604lt_save_CC="$CC"
8605ac_ext=c
8606ac_cpp='$CPP $CPPFLAGS'
8607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609ac_compiler_gnu=$ac_cv_c_compiler_gnu
8610
8611
8612# Source file extension for C test sources.
8613ac_ext=c
8614
8615# Object file extension for compiled C test sources.
8616objext=o
8617objext=$objext
8618
8619# Code to be used in simple compile tests
8620lt_simple_compile_test_code="int some_variable = 0;"
8621
8622# Code to be used in simple link tests
8623lt_simple_link_test_code='int main(){return(0);}'
8624
8625
8626
8627
8628
8629
8630
8631# If no C compiler was specified, use CC.
8632LTCC=${LTCC-"$CC"}
8633
8634# If no C compiler flags were specified, use CFLAGS.
8635LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8636
8637# Allow CC to be a program name with arguments.
8638compiler=$CC
8639
8640# Save the default compiler, since it gets overwritten when the other
8641# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8642compiler_DEFAULT=$CC
8643
8644# save warnings/boilerplate of simple test code
8645ac_outfile=conftest.$ac_objext
8646echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8648_lt_compiler_boilerplate=`cat conftest.err`
8649$RM conftest*
8650
8651ac_outfile=conftest.$ac_objext
8652echo "$lt_simple_link_test_code" >conftest.$ac_ext
8653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8654_lt_linker_boilerplate=`cat conftest.err`
8655$RM -r conftest*
8656
8657
8658if test -n "$compiler"; then
8659
8660lt_prog_compiler_no_builtin_flag=
8661
8662if test "$GCC" = yes; then
8663  case $cc_basename in
8664  nvcc*)
8665    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8666  *)
8667    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8668  esac
8669
8670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8673  $as_echo_n "(cached) " >&6
8674else
8675  lt_cv_prog_compiler_rtti_exceptions=no
8676   ac_outfile=conftest.$ac_objext
8677   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678   lt_compiler_flag="-fno-rtti -fno-exceptions"
8679   # Insert the option either (1) after the last *FLAGS variable, or
8680   # (2) before a word containing "conftest.", or (3) at the end.
8681   # Note that $ac_compile itself does not contain backslashes and begins
8682   # with a dollar sign (not a hyphen), so the echo should work correctly.
8683   # The option is referenced via a variable to avoid confusing sed.
8684   lt_compile=`echo "$ac_compile" | $SED \
8685   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687   -e 's:$: $lt_compiler_flag:'`
8688   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689   (eval "$lt_compile" 2>conftest.err)
8690   ac_status=$?
8691   cat conftest.err >&5
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   if (exit $ac_status) && test -s "$ac_outfile"; then
8694     # The compiler can only warn and ignore the option if not recognized
8695     # So say no if there are warnings other than the usual output.
8696     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699       lt_cv_prog_compiler_rtti_exceptions=yes
8700     fi
8701   fi
8702   $RM conftest*
8703
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8707
8708if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8710else
8711    :
8712fi
8713
8714fi
8715
8716
8717
8718
8719
8720
8721  lt_prog_compiler_wl=
8722lt_prog_compiler_pic=
8723lt_prog_compiler_static=
8724
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8726$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8727
8728  if test "$GCC" = yes; then
8729    lt_prog_compiler_wl='-Wl,'
8730    lt_prog_compiler_static='-static'
8731
8732    case $host_os in
8733      aix*)
8734      # All AIX code is PIC.
8735      if test "$host_cpu" = ia64; then
8736	# AIX 5 now supports IA64 processor
8737	lt_prog_compiler_static='-Bstatic'
8738      fi
8739      ;;
8740
8741    amigaos*)
8742      case $host_cpu in
8743      powerpc)
8744            # see comment about AmigaOS4 .so support
8745            lt_prog_compiler_pic='-fPIC'
8746        ;;
8747      m68k)
8748            # FIXME: we need at least 68020 code to build shared libraries, but
8749            # adding the `-m68020' flag to GCC prevents building anything better,
8750            # like `-m68040'.
8751            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8752        ;;
8753      esac
8754      ;;
8755
8756    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8757      # PIC is the default for these OSes.
8758      ;;
8759
8760    mingw* | cygwin* | pw32* | os2* | cegcc*)
8761      # This hack is so that the source file can tell whether it is being
8762      # built for inclusion in a dll (and should export symbols for example).
8763      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8764      # (--disable-auto-import) libraries
8765      lt_prog_compiler_pic='-DDLL_EXPORT'
8766      ;;
8767
8768    darwin* | rhapsody*)
8769      # PIC is the default on this platform
8770      # Common symbols not allowed in MH_DYLIB files
8771      lt_prog_compiler_pic='-fno-common'
8772      ;;
8773
8774    haiku*)
8775      # PIC is the default for Haiku.
8776      # The "-static" flag exists, but is broken.
8777      lt_prog_compiler_static=
8778      ;;
8779
8780    hpux*)
8781      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8782      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8783      # sets the default TLS model and affects inlining.
8784      case $host_cpu in
8785      hppa*64*)
8786	# +Z the default
8787	;;
8788      *)
8789	lt_prog_compiler_pic='-fPIC'
8790	;;
8791      esac
8792      ;;
8793
8794    interix[3-9]*)
8795      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8796      # Instead, we relocate shared libraries at runtime.
8797      ;;
8798
8799    msdosdjgpp*)
8800      # Just because we use GCC doesn't mean we suddenly get shared libraries
8801      # on systems that don't support them.
8802      lt_prog_compiler_can_build_shared=no
8803      enable_shared=no
8804      ;;
8805
8806    *nto* | *qnx*)
8807      # QNX uses GNU C++, but need to define -shared option too, otherwise
8808      # it will coredump.
8809      lt_prog_compiler_pic='-fPIC -shared'
8810      ;;
8811
8812    sysv4*MP*)
8813      if test -d /usr/nec; then
8814	lt_prog_compiler_pic=-Kconform_pic
8815      fi
8816      ;;
8817
8818    *)
8819      lt_prog_compiler_pic='-fPIC'
8820      ;;
8821    esac
8822
8823    case $cc_basename in
8824    nvcc*) # Cuda Compiler Driver 2.2
8825      lt_prog_compiler_wl='-Xlinker '
8826      lt_prog_compiler_pic='-Xcompiler -fPIC'
8827      ;;
8828    esac
8829  else
8830    # PORTME Check for flag to pass linker flags through the system compiler.
8831    case $host_os in
8832    aix*)
8833      lt_prog_compiler_wl='-Wl,'
8834      if test "$host_cpu" = ia64; then
8835	# AIX 5 now supports IA64 processor
8836	lt_prog_compiler_static='-Bstatic'
8837      else
8838	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8839      fi
8840      ;;
8841
8842    mingw* | cygwin* | pw32* | os2* | cegcc*)
8843      # This hack is so that the source file can tell whether it is being
8844      # built for inclusion in a dll (and should export symbols for example).
8845      lt_prog_compiler_pic='-DDLL_EXPORT'
8846      ;;
8847
8848    hpux9* | hpux10* | hpux11*)
8849      lt_prog_compiler_wl='-Wl,'
8850      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8851      # not for PA HP-UX.
8852      case $host_cpu in
8853      hppa*64*|ia64*)
8854	# +Z the default
8855	;;
8856      *)
8857	lt_prog_compiler_pic='+Z'
8858	;;
8859      esac
8860      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8861      lt_prog_compiler_static='${wl}-a ${wl}archive'
8862      ;;
8863
8864    irix5* | irix6* | nonstopux*)
8865      lt_prog_compiler_wl='-Wl,'
8866      # PIC (with -KPIC) is the default.
8867      lt_prog_compiler_static='-non_shared'
8868      ;;
8869
8870    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8871      case $cc_basename in
8872      # old Intel for x86_64 which still supported -KPIC.
8873      ecc*)
8874	lt_prog_compiler_wl='-Wl,'
8875	lt_prog_compiler_pic='-KPIC'
8876	lt_prog_compiler_static='-static'
8877        ;;
8878      # icc used to be incompatible with GCC.
8879      # ICC 10 doesn't accept -KPIC any more.
8880      icc* | ifort*)
8881	lt_prog_compiler_wl='-Wl,'
8882	lt_prog_compiler_pic='-fPIC'
8883	lt_prog_compiler_static='-static'
8884        ;;
8885      # Lahey Fortran 8.1.
8886      lf95*)
8887	lt_prog_compiler_wl='-Wl,'
8888	lt_prog_compiler_pic='--shared'
8889	lt_prog_compiler_static='--static'
8890	;;
8891      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8892        # Portland Group compilers (*not* the Pentium gcc compiler,
8893	# which looks to be a dead project)
8894	lt_prog_compiler_wl='-Wl,'
8895	lt_prog_compiler_pic='-fpic'
8896	lt_prog_compiler_static='-Bstatic'
8897        ;;
8898      ccc*)
8899        lt_prog_compiler_wl='-Wl,'
8900        # All Alpha code is PIC.
8901        lt_prog_compiler_static='-non_shared'
8902        ;;
8903      xl* | bgxl* | bgf* | mpixl*)
8904	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8905	lt_prog_compiler_wl='-Wl,'
8906	lt_prog_compiler_pic='-qpic'
8907	lt_prog_compiler_static='-qstaticlink'
8908	;;
8909      *)
8910	case `$CC -V 2>&1 | sed 5q` in
8911	*Sun\ F* | *Sun*Fortran*)
8912	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8913	  lt_prog_compiler_pic='-KPIC'
8914	  lt_prog_compiler_static='-Bstatic'
8915	  lt_prog_compiler_wl=''
8916	  ;;
8917	*Sun\ C*)
8918	  # Sun C 5.9
8919	  lt_prog_compiler_pic='-KPIC'
8920	  lt_prog_compiler_static='-Bstatic'
8921	  lt_prog_compiler_wl='-Wl,'
8922	  ;;
8923	esac
8924	;;
8925      esac
8926      ;;
8927
8928    newsos6)
8929      lt_prog_compiler_pic='-KPIC'
8930      lt_prog_compiler_static='-Bstatic'
8931      ;;
8932
8933    *nto* | *qnx*)
8934      # QNX uses GNU C++, but need to define -shared option too, otherwise
8935      # it will coredump.
8936      lt_prog_compiler_pic='-fPIC -shared'
8937      ;;
8938
8939    osf3* | osf4* | osf5*)
8940      lt_prog_compiler_wl='-Wl,'
8941      # All OSF/1 code is PIC.
8942      lt_prog_compiler_static='-non_shared'
8943      ;;
8944
8945    rdos*)
8946      lt_prog_compiler_static='-non_shared'
8947      ;;
8948
8949    solaris*)
8950      lt_prog_compiler_pic='-KPIC'
8951      lt_prog_compiler_static='-Bstatic'
8952      case $cc_basename in
8953      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8954	lt_prog_compiler_wl='-Qoption ld ';;
8955      *)
8956	lt_prog_compiler_wl='-Wl,';;
8957      esac
8958      ;;
8959
8960    sunos4*)
8961      lt_prog_compiler_wl='-Qoption ld '
8962      lt_prog_compiler_pic='-PIC'
8963      lt_prog_compiler_static='-Bstatic'
8964      ;;
8965
8966    sysv4 | sysv4.2uw2* | sysv4.3*)
8967      lt_prog_compiler_wl='-Wl,'
8968      lt_prog_compiler_pic='-KPIC'
8969      lt_prog_compiler_static='-Bstatic'
8970      ;;
8971
8972    sysv4*MP*)
8973      if test -d /usr/nec ;then
8974	lt_prog_compiler_pic='-Kconform_pic'
8975	lt_prog_compiler_static='-Bstatic'
8976      fi
8977      ;;
8978
8979    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8980      lt_prog_compiler_wl='-Wl,'
8981      lt_prog_compiler_pic='-KPIC'
8982      lt_prog_compiler_static='-Bstatic'
8983      ;;
8984
8985    unicos*)
8986      lt_prog_compiler_wl='-Wl,'
8987      lt_prog_compiler_can_build_shared=no
8988      ;;
8989
8990    uts4*)
8991      lt_prog_compiler_pic='-pic'
8992      lt_prog_compiler_static='-Bstatic'
8993      ;;
8994
8995    *)
8996      lt_prog_compiler_can_build_shared=no
8997      ;;
8998    esac
8999  fi
9000
9001case $host_os in
9002  # For platforms which do not support PIC, -DPIC is meaningless:
9003  *djgpp*)
9004    lt_prog_compiler_pic=
9005    ;;
9006  *)
9007    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9008    ;;
9009esac
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9011$as_echo "$lt_prog_compiler_pic" >&6; }
9012
9013
9014
9015
9016
9017
9018#
9019# Check to make sure the PIC flag actually works.
9020#
9021if test -n "$lt_prog_compiler_pic"; then
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9023$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9024if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9025  $as_echo_n "(cached) " >&6
9026else
9027  lt_cv_prog_compiler_pic_works=no
9028   ac_outfile=conftest.$ac_objext
9029   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9031   # Insert the option either (1) after the last *FLAGS variable, or
9032   # (2) before a word containing "conftest.", or (3) at the end.
9033   # Note that $ac_compile itself does not contain backslashes and begins
9034   # with a dollar sign (not a hyphen), so the echo should work correctly.
9035   # The option is referenced via a variable to avoid confusing sed.
9036   lt_compile=`echo "$ac_compile" | $SED \
9037   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9038   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9039   -e 's:$: $lt_compiler_flag:'`
9040   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9041   (eval "$lt_compile" 2>conftest.err)
9042   ac_status=$?
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   if (exit $ac_status) && test -s "$ac_outfile"; then
9046     # The compiler can only warn and ignore the option if not recognized
9047     # So say no if there are warnings other than the usual output.
9048     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9049     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9051       lt_cv_prog_compiler_pic_works=yes
9052     fi
9053   fi
9054   $RM conftest*
9055
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9058$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9059
9060if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9061    case $lt_prog_compiler_pic in
9062     "" | " "*) ;;
9063     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9064     esac
9065else
9066    lt_prog_compiler_pic=
9067     lt_prog_compiler_can_build_shared=no
9068fi
9069
9070fi
9071
9072
9073
9074
9075
9076
9077#
9078# Check to make sure the static flag actually works.
9079#
9080wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9082$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9083if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  lt_cv_prog_compiler_static_works=no
9087   save_LDFLAGS="$LDFLAGS"
9088   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9089   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9090   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9091     # The linker can only warn and ignore the option if not recognized
9092     # So say no if there are warnings
9093     if test -s conftest.err; then
9094       # Append any errors to the config.log.
9095       cat conftest.err 1>&5
9096       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9097       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9098       if diff conftest.exp conftest.er2 >/dev/null; then
9099         lt_cv_prog_compiler_static_works=yes
9100       fi
9101     else
9102       lt_cv_prog_compiler_static_works=yes
9103     fi
9104   fi
9105   $RM -r conftest*
9106   LDFLAGS="$save_LDFLAGS"
9107
9108fi
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9110$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9111
9112if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9113    :
9114else
9115    lt_prog_compiler_static=
9116fi
9117
9118
9119
9120
9121
9122
9123
9124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9125$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9126if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  lt_cv_prog_compiler_c_o=no
9130   $RM -r conftest 2>/dev/null
9131   mkdir conftest
9132   cd conftest
9133   mkdir out
9134   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9135
9136   lt_compiler_flag="-o out/conftest2.$ac_objext"
9137   # Insert the option either (1) after the last *FLAGS variable, or
9138   # (2) before a word containing "conftest.", or (3) at the end.
9139   # Note that $ac_compile itself does not contain backslashes and begins
9140   # with a dollar sign (not a hyphen), so the echo should work correctly.
9141   lt_compile=`echo "$ac_compile" | $SED \
9142   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144   -e 's:$: $lt_compiler_flag:'`
9145   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9146   (eval "$lt_compile" 2>out/conftest.err)
9147   ac_status=$?
9148   cat out/conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9151   then
9152     # The compiler can only warn and ignore the option if not recognized
9153     # So say no if there are warnings
9154     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9155     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9156     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9157       lt_cv_prog_compiler_c_o=yes
9158     fi
9159   fi
9160   chmod u+w . 2>&5
9161   $RM conftest*
9162   # SGI C++ compiler will create directory out/ii_files/ for
9163   # template instantiation
9164   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9165   $RM out/* && rmdir out
9166   cd ..
9167   $RM -r conftest
9168   $RM conftest*
9169
9170fi
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9172$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9173
9174
9175
9176
9177
9178
9179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9180$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9181if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9182  $as_echo_n "(cached) " >&6
9183else
9184  lt_cv_prog_compiler_c_o=no
9185   $RM -r conftest 2>/dev/null
9186   mkdir conftest
9187   cd conftest
9188   mkdir out
9189   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9190
9191   lt_compiler_flag="-o out/conftest2.$ac_objext"
9192   # Insert the option either (1) after the last *FLAGS variable, or
9193   # (2) before a word containing "conftest.", or (3) at the end.
9194   # Note that $ac_compile itself does not contain backslashes and begins
9195   # with a dollar sign (not a hyphen), so the echo should work correctly.
9196   lt_compile=`echo "$ac_compile" | $SED \
9197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9199   -e 's:$: $lt_compiler_flag:'`
9200   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9201   (eval "$lt_compile" 2>out/conftest.err)
9202   ac_status=$?
9203   cat out/conftest.err >&5
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9206   then
9207     # The compiler can only warn and ignore the option if not recognized
9208     # So say no if there are warnings
9209     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9210     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9211     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9212       lt_cv_prog_compiler_c_o=yes
9213     fi
9214   fi
9215   chmod u+w . 2>&5
9216   $RM conftest*
9217   # SGI C++ compiler will create directory out/ii_files/ for
9218   # template instantiation
9219   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9220   $RM out/* && rmdir out
9221   cd ..
9222   $RM -r conftest
9223   $RM conftest*
9224
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9227$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9228
9229
9230
9231
9232hard_links="nottested"
9233if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9234  # do not overwrite the value of need_locks provided by the user
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9236$as_echo_n "checking if we can lock with hard links... " >&6; }
9237  hard_links=yes
9238  $RM conftest*
9239  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9240  touch conftest.a
9241  ln conftest.a conftest.b 2>&5 || hard_links=no
9242  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9244$as_echo "$hard_links" >&6; }
9245  if test "$hard_links" = no; then
9246    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9247$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9248    need_locks=warn
9249  fi
9250else
9251  need_locks=no
9252fi
9253
9254
9255
9256
9257
9258
9259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9260$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9261
9262  runpath_var=
9263  allow_undefined_flag=
9264  always_export_symbols=no
9265  archive_cmds=
9266  archive_expsym_cmds=
9267  compiler_needs_object=no
9268  enable_shared_with_static_runtimes=no
9269  export_dynamic_flag_spec=
9270  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9271  hardcode_automatic=no
9272  hardcode_direct=no
9273  hardcode_direct_absolute=no
9274  hardcode_libdir_flag_spec=
9275  hardcode_libdir_flag_spec_ld=
9276  hardcode_libdir_separator=
9277  hardcode_minus_L=no
9278  hardcode_shlibpath_var=unsupported
9279  inherit_rpath=no
9280  link_all_deplibs=unknown
9281  module_cmds=
9282  module_expsym_cmds=
9283  old_archive_from_new_cmds=
9284  old_archive_from_expsyms_cmds=
9285  thread_safe_flag_spec=
9286  whole_archive_flag_spec=
9287  # include_expsyms should be a list of space-separated symbols to be *always*
9288  # included in the symbol list
9289  include_expsyms=
9290  # exclude_expsyms can be an extended regexp of symbols to exclude
9291  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9292  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9293  # as well as any symbol that contains `d'.
9294  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9295  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9296  # platforms (ab)use it in PIC code, but their linkers get confused if
9297  # the symbol is explicitly referenced.  Since portable code cannot
9298  # rely on this symbol name, it's probably fine to never include it in
9299  # preloaded symbol tables.
9300  # Exclude shared library initialization/finalization symbols.
9301  extract_expsyms_cmds=
9302
9303  case $host_os in
9304  cygwin* | mingw* | pw32* | cegcc*)
9305    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9306    # When not using gcc, we currently assume that we are using
9307    # Microsoft Visual C++.
9308    if test "$GCC" != yes; then
9309      with_gnu_ld=no
9310    fi
9311    ;;
9312  interix*)
9313    # we just hope/assume this is gcc and not c89 (= MSVC++)
9314    with_gnu_ld=yes
9315    ;;
9316  openbsd*)
9317    with_gnu_ld=no
9318    ;;
9319  esac
9320
9321  ld_shlibs=yes
9322
9323  # On some targets, GNU ld is compatible enough with the native linker
9324  # that we're better off using the native interface for both.
9325  lt_use_gnu_ld_interface=no
9326  if test "$with_gnu_ld" = yes; then
9327    case $host_os in
9328      aix*)
9329	# The AIX port of GNU ld has always aspired to compatibility
9330	# with the native linker.  However, as the warning in the GNU ld
9331	# block says, versions before 2.19.5* couldn't really create working
9332	# shared libraries, regardless of the interface used.
9333	case `$LD -v 2>&1` in
9334	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9335	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9336	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9337	  *)
9338	    lt_use_gnu_ld_interface=yes
9339	    ;;
9340	esac
9341	;;
9342      *)
9343	lt_use_gnu_ld_interface=yes
9344	;;
9345    esac
9346  fi
9347
9348  if test "$lt_use_gnu_ld_interface" = yes; then
9349    # If archive_cmds runs LD, not CC, wlarc should be empty
9350    wlarc='${wl}'
9351
9352    # Set some defaults for GNU ld with shared library support. These
9353    # are reset later if shared libraries are not supported. Putting them
9354    # here allows them to be overridden if necessary.
9355    runpath_var=LD_RUN_PATH
9356    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357    export_dynamic_flag_spec='${wl}--export-dynamic'
9358    # ancient GNU ld didn't support --whole-archive et. al.
9359    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9360      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9361    else
9362      whole_archive_flag_spec=
9363    fi
9364    supports_anon_versioning=no
9365    case `$LD -v 2>&1` in
9366      *GNU\ gold*) supports_anon_versioning=yes ;;
9367      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9368      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9369      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9370      *\ 2.11.*) ;; # other 2.11 versions
9371      *) supports_anon_versioning=yes ;;
9372    esac
9373
9374    # See if GNU ld supports shared libraries.
9375    case $host_os in
9376    aix[3-9]*)
9377      # On AIX/PPC, the GNU linker is very broken
9378      if test "$host_cpu" != ia64; then
9379	ld_shlibs=no
9380	cat <<_LT_EOF 1>&2
9381
9382*** Warning: the GNU linker, at least up to release 2.19, is reported
9383*** to be unable to reliably create shared libraries on AIX.
9384*** Therefore, libtool is disabling shared libraries support.  If you
9385*** really care for shared libraries, you may want to install binutils
9386*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9387*** You will then need to restart the configuration process.
9388
9389_LT_EOF
9390      fi
9391      ;;
9392
9393    amigaos*)
9394      case $host_cpu in
9395      powerpc)
9396            # see comment about AmigaOS4 .so support
9397            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398            archive_expsym_cmds=''
9399        ;;
9400      m68k)
9401            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)'
9402            hardcode_libdir_flag_spec='-L$libdir'
9403            hardcode_minus_L=yes
9404        ;;
9405      esac
9406      ;;
9407
9408    beos*)
9409      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9410	allow_undefined_flag=unsupported
9411	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9412	# support --undefined.  This deserves some investigation.  FIXME
9413	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414      else
9415	ld_shlibs=no
9416      fi
9417      ;;
9418
9419    cygwin* | mingw* | pw32* | cegcc*)
9420      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9421      # as there is no search path for DLLs.
9422      hardcode_libdir_flag_spec='-L$libdir'
9423      export_dynamic_flag_spec='${wl}--export-all-symbols'
9424      allow_undefined_flag=unsupported
9425      always_export_symbols=no
9426      enable_shared_with_static_runtimes=yes
9427      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9428
9429      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9430        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9431	# If the export-symbols file already is a .def file (1st line
9432	# is EXPORTS), use it as is; otherwise, prepend...
9433	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9434	  cp $export_symbols $output_objdir/$soname.def;
9435	else
9436	  echo EXPORTS > $output_objdir/$soname.def;
9437	  cat $export_symbols >> $output_objdir/$soname.def;
9438	fi~
9439	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9440      else
9441	ld_shlibs=no
9442      fi
9443      ;;
9444
9445    haiku*)
9446      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447      link_all_deplibs=yes
9448      ;;
9449
9450    interix[3-9]*)
9451      hardcode_direct=no
9452      hardcode_shlibpath_var=no
9453      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9454      export_dynamic_flag_spec='${wl}-E'
9455      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9456      # Instead, shared libraries are loaded at an image base (0x10000000 by
9457      # default) and relocated if they conflict, which is a slow very memory
9458      # consuming and fragmenting process.  To avoid this, we pick a random,
9459      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9460      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9461      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9462      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'
9463      ;;
9464
9465    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9466      tmp_diet=no
9467      if test "$host_os" = linux-dietlibc; then
9468	case $cc_basename in
9469	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9470	esac
9471      fi
9472      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9473	 && test "$tmp_diet" = no
9474      then
9475	tmp_addflag=
9476	tmp_sharedflag='-shared'
9477	case $cc_basename,$host_cpu in
9478        pgcc*)				# Portland Group C compiler
9479	  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'
9480	  tmp_addflag=' $pic_flag'
9481	  ;;
9482	pgf77* | pgf90* | pgf95* | pgfortran*)
9483					# Portland Group f77 and f90 compilers
9484	  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'
9485	  tmp_addflag=' $pic_flag -Mnomain' ;;
9486	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9487	  tmp_addflag=' -i_dynamic' ;;
9488	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9489	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9490	ifc* | ifort*)			# Intel Fortran compiler
9491	  tmp_addflag=' -nofor_main' ;;
9492	lf95*)				# Lahey Fortran 8.1
9493	  whole_archive_flag_spec=
9494	  tmp_sharedflag='--shared' ;;
9495	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9496	  tmp_sharedflag='-qmkshrobj'
9497	  tmp_addflag= ;;
9498	nvcc*)	# Cuda Compiler Driver 2.2
9499	  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'
9500	  compiler_needs_object=yes
9501	  ;;
9502	esac
9503	case `$CC -V 2>&1 | sed 5q` in
9504	*Sun\ C*)			# Sun C 5.9
9505	  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'
9506	  compiler_needs_object=yes
9507	  tmp_sharedflag='-G' ;;
9508	*Sun\ F*)			# Sun Fortran 8.3
9509	  tmp_sharedflag='-G' ;;
9510	esac
9511	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512
9513        if test "x$supports_anon_versioning" = xyes; then
9514          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9515	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9516	    echo "local: *; };" >> $output_objdir/$libname.ver~
9517	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9518        fi
9519
9520	case $cc_basename in
9521	xlf* | bgf* | bgxlf* | mpixlf*)
9522	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9523	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9524	  hardcode_libdir_flag_spec=
9525	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9526	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9527	  if test "x$supports_anon_versioning" = xyes; then
9528	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9529	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9530	      echo "local: *; };" >> $output_objdir/$libname.ver~
9531	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9532	  fi
9533	  ;;
9534	esac
9535      else
9536        ld_shlibs=no
9537      fi
9538      ;;
9539
9540    netbsd*)
9541      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9542	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9543	wlarc=
9544      else
9545	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547      fi
9548      ;;
9549
9550    solaris*)
9551      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9552	ld_shlibs=no
9553	cat <<_LT_EOF 1>&2
9554
9555*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9556*** create shared libraries on Solaris systems.  Therefore, libtool
9557*** is disabling shared libraries support.  We urge you to upgrade GNU
9558*** binutils to release 2.9.1 or newer.  Another option is to modify
9559*** your PATH or compiler configuration so that the native linker is
9560*** used, and then restart.
9561
9562_LT_EOF
9563      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9566      else
9567	ld_shlibs=no
9568      fi
9569      ;;
9570
9571    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9572      case `$LD -v 2>&1` in
9573        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9574	ld_shlibs=no
9575	cat <<_LT_EOF 1>&2
9576
9577*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9578*** reliably create shared libraries on SCO systems.  Therefore, libtool
9579*** is disabling shared libraries support.  We urge you to upgrade GNU
9580*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9581*** your PATH or compiler configuration so that the native linker is
9582*** used, and then restart.
9583
9584_LT_EOF
9585	;;
9586	*)
9587	  # For security reasons, it is highly recommended that you always
9588	  # use absolute paths for naming shared libraries, and exclude the
9589	  # DT_RUNPATH tag from executables and libraries.  But doing so
9590	  # requires that you compile everything twice, which is a pain.
9591	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9592	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595	  else
9596	    ld_shlibs=no
9597	  fi
9598	;;
9599      esac
9600      ;;
9601
9602    sunos4*)
9603      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9604      wlarc=
9605      hardcode_direct=yes
9606      hardcode_shlibpath_var=no
9607      ;;
9608
9609    *)
9610      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9611	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9612	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9613      else
9614	ld_shlibs=no
9615      fi
9616      ;;
9617    esac
9618
9619    if test "$ld_shlibs" = no; then
9620      runpath_var=
9621      hardcode_libdir_flag_spec=
9622      export_dynamic_flag_spec=
9623      whole_archive_flag_spec=
9624    fi
9625  else
9626    # PORTME fill in a description of your system's linker (not GNU ld)
9627    case $host_os in
9628    aix3*)
9629      allow_undefined_flag=unsupported
9630      always_export_symbols=yes
9631      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'
9632      # Note: this linker hardcodes the directories in LIBPATH if there
9633      # are no directories specified by -L.
9634      hardcode_minus_L=yes
9635      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9636	# Neither direct hardcoding nor static linking is supported with a
9637	# broken collect2.
9638	hardcode_direct=unsupported
9639      fi
9640      ;;
9641
9642    aix[4-9]*)
9643      if test "$host_cpu" = ia64; then
9644	# On IA64, the linker does run time linking by default, so we don't
9645	# have to do anything special.
9646	aix_use_runtimelinking=no
9647	exp_sym_flag='-Bexport'
9648	no_entry_flag=""
9649      else
9650	# If we're using GNU nm, then we don't want the "-C" option.
9651	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9652	# Also, AIX nm treats weak defined symbols like other global
9653	# defined symbols, whereas GNU nm marks them as "W".
9654	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9655	  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'
9656	else
9657	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9658	fi
9659	aix_use_runtimelinking=no
9660
9661	# Test if we are trying to use run time linking or normal
9662	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9663	# need to do runtime linking.
9664	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9665	  for ld_flag in $LDFLAGS; do
9666	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9667	    aix_use_runtimelinking=yes
9668	    break
9669	  fi
9670	  done
9671	  ;;
9672	esac
9673
9674	exp_sym_flag='-bexport'
9675	no_entry_flag='-bnoentry'
9676      fi
9677
9678      # When large executables or shared objects are built, AIX ld can
9679      # have problems creating the table of contents.  If linking a library
9680      # or program results in "error TOC overflow" add -mminimal-toc to
9681      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9682      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9683
9684      archive_cmds=''
9685      hardcode_direct=yes
9686      hardcode_direct_absolute=yes
9687      hardcode_libdir_separator=':'
9688      link_all_deplibs=yes
9689      file_list_spec='${wl}-f,'
9690
9691      if test "$GCC" = yes; then
9692	case $host_os in aix4.[012]|aix4.[012].*)
9693	# We only want to do this on AIX 4.2 and lower, the check
9694	# below for broken collect2 doesn't work under 4.3+
9695	  collect2name=`${CC} -print-prog-name=collect2`
9696	  if test -f "$collect2name" &&
9697	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9698	  then
9699	  # We have reworked collect2
9700	  :
9701	  else
9702	  # We have old collect2
9703	  hardcode_direct=unsupported
9704	  # It fails to find uninstalled libraries when the uninstalled
9705	  # path is not listed in the libpath.  Setting hardcode_minus_L
9706	  # to unsupported forces relinking
9707	  hardcode_minus_L=yes
9708	  hardcode_libdir_flag_spec='-L$libdir'
9709	  hardcode_libdir_separator=
9710	  fi
9711	  ;;
9712	esac
9713	shared_flag='-shared'
9714	if test "$aix_use_runtimelinking" = yes; then
9715	  shared_flag="$shared_flag "'${wl}-G'
9716	fi
9717      else
9718	# not using gcc
9719	if test "$host_cpu" = ia64; then
9720	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9721	# chokes on -Wl,-G. The following line is correct:
9722	  shared_flag='-G'
9723	else
9724	  if test "$aix_use_runtimelinking" = yes; then
9725	    shared_flag='${wl}-G'
9726	  else
9727	    shared_flag='${wl}-bM:SRE'
9728	  fi
9729	fi
9730      fi
9731
9732      export_dynamic_flag_spec='${wl}-bexpall'
9733      # It seems that -bexpall does not export symbols beginning with
9734      # underscore (_), so it is better to generate a list of symbols to export.
9735      always_export_symbols=yes
9736      if test "$aix_use_runtimelinking" = yes; then
9737	# Warning - without using the other runtime loading flags (-brtl),
9738	# -berok will link without error, but may produce a broken library.
9739	allow_undefined_flag='-berok'
9740        # Determine the default libpath from the value encoded in an
9741        # empty executable.
9742        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h.  */
9744
9745int
9746main ()
9747{
9748
9749  ;
9750  return 0;
9751}
9752_ACEOF
9753if ac_fn_c_try_link "$LINENO"; then :
9754
9755lt_aix_libpath_sed='
9756    /Import File Strings/,/^$/ {
9757	/^0/ {
9758	    s/^0  *\(.*\)$/\1/
9759	    p
9760	}
9761    }'
9762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763# Check for a 64-bit object if we didn't find anything.
9764if test -z "$aix_libpath"; then
9765  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766fi
9767fi
9768rm -f core conftest.err conftest.$ac_objext \
9769    conftest$ac_exeext conftest.$ac_ext
9770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9771
9772        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9773        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"
9774      else
9775	if test "$host_cpu" = ia64; then
9776	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9777	  allow_undefined_flag="-z nodefs"
9778	  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"
9779	else
9780	 # Determine the default libpath from the value encoded in an
9781	 # empty executable.
9782	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783/* end confdefs.h.  */
9784
9785int
9786main ()
9787{
9788
9789  ;
9790  return 0;
9791}
9792_ACEOF
9793if ac_fn_c_try_link "$LINENO"; then :
9794
9795lt_aix_libpath_sed='
9796    /Import File Strings/,/^$/ {
9797	/^0/ {
9798	    s/^0  *\(.*\)$/\1/
9799	    p
9800	}
9801    }'
9802aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9803# Check for a 64-bit object if we didn't find anything.
9804if test -z "$aix_libpath"; then
9805  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806fi
9807fi
9808rm -f core conftest.err conftest.$ac_objext \
9809    conftest$ac_exeext conftest.$ac_ext
9810if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9811
9812	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9813	  # Warning - without using the other run time loading flags,
9814	  # -berok will link without error, but may produce a broken library.
9815	  no_undefined_flag=' ${wl}-bernotok'
9816	  allow_undefined_flag=' ${wl}-berok'
9817	  if test "$with_gnu_ld" = yes; then
9818	    # We only use this code for GNU lds that support --whole-archive.
9819	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9820	  else
9821	    # Exported symbols can be pulled into shared objects from archives
9822	    whole_archive_flag_spec='$convenience'
9823	  fi
9824	  archive_cmds_need_lc=yes
9825	  # This is similar to how AIX traditionally builds its shared libraries.
9826	  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'
9827	fi
9828      fi
9829      ;;
9830
9831    amigaos*)
9832      case $host_cpu in
9833      powerpc)
9834            # see comment about AmigaOS4 .so support
9835            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836            archive_expsym_cmds=''
9837        ;;
9838      m68k)
9839            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)'
9840            hardcode_libdir_flag_spec='-L$libdir'
9841            hardcode_minus_L=yes
9842        ;;
9843      esac
9844      ;;
9845
9846    bsdi[45]*)
9847      export_dynamic_flag_spec=-rdynamic
9848      ;;
9849
9850    cygwin* | mingw* | pw32* | cegcc*)
9851      # When not using gcc, we currently assume that we are using
9852      # Microsoft Visual C++.
9853      # hardcode_libdir_flag_spec is actually meaningless, as there is
9854      # no search path for DLLs.
9855      hardcode_libdir_flag_spec=' '
9856      allow_undefined_flag=unsupported
9857      # Tell ltmain to make .lib files, not .a files.
9858      libext=lib
9859      # Tell ltmain to make .dll files, not .so files.
9860      shrext_cmds=".dll"
9861      # FIXME: Setting linknames here is a bad hack.
9862      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9863      # The linker will automatically build a .lib file if we build a DLL.
9864      old_archive_from_new_cmds='true'
9865      # FIXME: Should let the user specify the lib program.
9866      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9867      fix_srcfile_path='`cygpath -w "$srcfile"`'
9868      enable_shared_with_static_runtimes=yes
9869      ;;
9870
9871    darwin* | rhapsody*)
9872
9873
9874  archive_cmds_need_lc=no
9875  hardcode_direct=no
9876  hardcode_automatic=yes
9877  hardcode_shlibpath_var=unsupported
9878  if test "$lt_cv_ld_force_load" = "yes"; then
9879    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\"`'
9880  else
9881    whole_archive_flag_spec=''
9882  fi
9883  link_all_deplibs=yes
9884  allow_undefined_flag="$_lt_dar_allow_undefined"
9885  case $cc_basename in
9886     ifort*) _lt_dar_can_shared=yes ;;
9887     *) _lt_dar_can_shared=$GCC ;;
9888  esac
9889  if test "$_lt_dar_can_shared" = "yes"; then
9890    output_verbose_link_cmd=func_echo_all
9891    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9892    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9893    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}"
9894    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}"
9895
9896  else
9897  ld_shlibs=no
9898  fi
9899
9900      ;;
9901
9902    dgux*)
9903      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904      hardcode_libdir_flag_spec='-L$libdir'
9905      hardcode_shlibpath_var=no
9906      ;;
9907
9908    freebsd1*)
9909      ld_shlibs=no
9910      ;;
9911
9912    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9913    # support.  Future versions do this automatically, but an explicit c++rt0.o
9914    # does not break anything, and helps significantly (at the cost of a little
9915    # extra space).
9916    freebsd2.2*)
9917      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9918      hardcode_libdir_flag_spec='-R$libdir'
9919      hardcode_direct=yes
9920      hardcode_shlibpath_var=no
9921      ;;
9922
9923    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9924    freebsd2*)
9925      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9926      hardcode_direct=yes
9927      hardcode_minus_L=yes
9928      hardcode_shlibpath_var=no
9929      ;;
9930
9931    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9932    freebsd* | dragonfly*)
9933      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9934      hardcode_libdir_flag_spec='-R$libdir'
9935      hardcode_direct=yes
9936      hardcode_shlibpath_var=no
9937      ;;
9938
9939    hpux9*)
9940      if test "$GCC" = yes; then
9941	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'
9942      else
9943	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'
9944      fi
9945      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9946      hardcode_libdir_separator=:
9947      hardcode_direct=yes
9948
9949      # hardcode_minus_L: Not really in the search PATH,
9950      # but as the default location of the library.
9951      hardcode_minus_L=yes
9952      export_dynamic_flag_spec='${wl}-E'
9953      ;;
9954
9955    hpux10*)
9956      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9957	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9958      else
9959	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9960      fi
9961      if test "$with_gnu_ld" = no; then
9962	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9963	hardcode_libdir_flag_spec_ld='+b $libdir'
9964	hardcode_libdir_separator=:
9965	hardcode_direct=yes
9966	hardcode_direct_absolute=yes
9967	export_dynamic_flag_spec='${wl}-E'
9968	# hardcode_minus_L: Not really in the search PATH,
9969	# but as the default location of the library.
9970	hardcode_minus_L=yes
9971      fi
9972      ;;
9973
9974    hpux11*)
9975      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9976	case $host_cpu in
9977	hppa*64*)
9978	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9979	  ;;
9980	ia64*)
9981	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9982	  ;;
9983	*)
9984	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9985	  ;;
9986	esac
9987      else
9988	case $host_cpu in
9989	hppa*64*)
9990	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9991	  ;;
9992	ia64*)
9993	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9994	  ;;
9995	*)
9996
9997	  # Older versions of the 11.00 compiler do not understand -b yet
9998	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9999	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10000$as_echo_n "checking if $CC understands -b... " >&6; }
10001if test "${lt_cv_prog_compiler__b+set}" = set; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  lt_cv_prog_compiler__b=no
10005   save_LDFLAGS="$LDFLAGS"
10006   LDFLAGS="$LDFLAGS -b"
10007   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10008   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10009     # The linker can only warn and ignore the option if not recognized
10010     # So say no if there are warnings
10011     if test -s conftest.err; then
10012       # Append any errors to the config.log.
10013       cat conftest.err 1>&5
10014       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10015       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10016       if diff conftest.exp conftest.er2 >/dev/null; then
10017         lt_cv_prog_compiler__b=yes
10018       fi
10019     else
10020       lt_cv_prog_compiler__b=yes
10021     fi
10022   fi
10023   $RM -r conftest*
10024   LDFLAGS="$save_LDFLAGS"
10025
10026fi
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10028$as_echo "$lt_cv_prog_compiler__b" >&6; }
10029
10030if test x"$lt_cv_prog_compiler__b" = xyes; then
10031    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10032else
10033    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10034fi
10035
10036	  ;;
10037	esac
10038      fi
10039      if test "$with_gnu_ld" = no; then
10040	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10041	hardcode_libdir_separator=:
10042
10043	case $host_cpu in
10044	hppa*64*|ia64*)
10045	  hardcode_direct=no
10046	  hardcode_shlibpath_var=no
10047	  ;;
10048	*)
10049	  hardcode_direct=yes
10050	  hardcode_direct_absolute=yes
10051	  export_dynamic_flag_spec='${wl}-E'
10052
10053	  # hardcode_minus_L: Not really in the search PATH,
10054	  # but as the default location of the library.
10055	  hardcode_minus_L=yes
10056	  ;;
10057	esac
10058      fi
10059      ;;
10060
10061    irix5* | irix6* | nonstopux*)
10062      if test "$GCC" = yes; then
10063	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'
10064	# Try to use the -exported_symbol ld option, if it does not
10065	# work, assume that -exports_file does not work either and
10066	# implicitly export all symbols.
10067        save_LDFLAGS="$LDFLAGS"
10068        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10069        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070/* end confdefs.h.  */
10071int foo(void) {}
10072_ACEOF
10073if ac_fn_c_try_link "$LINENO"; then :
10074  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'
10075
10076fi
10077rm -f core conftest.err conftest.$ac_objext \
10078    conftest$ac_exeext conftest.$ac_ext
10079        LDFLAGS="$save_LDFLAGS"
10080      else
10081	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'
10082	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'
10083      fi
10084      archive_cmds_need_lc='no'
10085      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10086      hardcode_libdir_separator=:
10087      inherit_rpath=yes
10088      link_all_deplibs=yes
10089      ;;
10090
10091    netbsd*)
10092      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10093	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10094      else
10095	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10096      fi
10097      hardcode_libdir_flag_spec='-R$libdir'
10098      hardcode_direct=yes
10099      hardcode_shlibpath_var=no
10100      ;;
10101
10102    newsos6)
10103      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104      hardcode_direct=yes
10105      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10106      hardcode_libdir_separator=:
10107      hardcode_shlibpath_var=no
10108      ;;
10109
10110    *nto* | *qnx*)
10111      ;;
10112
10113    openbsd*)
10114      if test -f /usr/libexec/ld.so; then
10115	hardcode_direct=yes
10116	hardcode_shlibpath_var=no
10117	hardcode_direct_absolute=yes
10118	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10119	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10120	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10121	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10122	  export_dynamic_flag_spec='${wl}-E'
10123	else
10124	  case $host_os in
10125	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10126	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10127	     hardcode_libdir_flag_spec='-R$libdir'
10128	     ;;
10129	   *)
10130	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10131	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10132	     ;;
10133	  esac
10134	fi
10135      else
10136	ld_shlibs=no
10137      fi
10138      ;;
10139
10140    os2*)
10141      hardcode_libdir_flag_spec='-L$libdir'
10142      hardcode_minus_L=yes
10143      allow_undefined_flag=unsupported
10144      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'
10145      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10146      ;;
10147
10148    osf3*)
10149      if test "$GCC" = yes; then
10150	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10151	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'
10152      else
10153	allow_undefined_flag=' -expect_unresolved \*'
10154	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'
10155      fi
10156      archive_cmds_need_lc='no'
10157      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10158      hardcode_libdir_separator=:
10159      ;;
10160
10161    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10162      if test "$GCC" = yes; then
10163	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10164	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'
10165	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10166      else
10167	allow_undefined_flag=' -expect_unresolved \*'
10168	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'
10169	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~
10170	$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'
10171
10172	# Both c and cxx compiler support -rpath directly
10173	hardcode_libdir_flag_spec='-rpath $libdir'
10174      fi
10175      archive_cmds_need_lc='no'
10176      hardcode_libdir_separator=:
10177      ;;
10178
10179    solaris*)
10180      no_undefined_flag=' -z defs'
10181      if test "$GCC" = yes; then
10182	wlarc='${wl}'
10183	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10184	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10185	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10186      else
10187	case `$CC -V 2>&1` in
10188	*"Compilers 5.0"*)
10189	  wlarc=''
10190	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10192	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10193	  ;;
10194	*)
10195	  wlarc='${wl}'
10196	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10197	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10198	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10199	  ;;
10200	esac
10201      fi
10202      hardcode_libdir_flag_spec='-R$libdir'
10203      hardcode_shlibpath_var=no
10204      case $host_os in
10205      solaris2.[0-5] | solaris2.[0-5].*) ;;
10206      *)
10207	# The compiler driver will combine and reorder linker options,
10208	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10209	# but is careful enough not to reorder.
10210	# Supported since Solaris 2.6 (maybe 2.5.1?)
10211	if test "$GCC" = yes; then
10212	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10213	else
10214	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10215	fi
10216	;;
10217      esac
10218      link_all_deplibs=yes
10219      ;;
10220
10221    sunos4*)
10222      if test "x$host_vendor" = xsequent; then
10223	# Use $CC to link under sequent, because it throws in some extra .o
10224	# files that make .init and .fini sections work.
10225	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10226      else
10227	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10228      fi
10229      hardcode_libdir_flag_spec='-L$libdir'
10230      hardcode_direct=yes
10231      hardcode_minus_L=yes
10232      hardcode_shlibpath_var=no
10233      ;;
10234
10235    sysv4)
10236      case $host_vendor in
10237	sni)
10238	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239	  hardcode_direct=yes # is this really true???
10240	;;
10241	siemens)
10242	  ## LD is ld it makes a PLAMLIB
10243	  ## CC just makes a GrossModule.
10244	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10245	  reload_cmds='$CC -r -o $output$reload_objs'
10246	  hardcode_direct=no
10247        ;;
10248	motorola)
10249	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10251	;;
10252      esac
10253      runpath_var='LD_RUN_PATH'
10254      hardcode_shlibpath_var=no
10255      ;;
10256
10257    sysv4.3*)
10258      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259      hardcode_shlibpath_var=no
10260      export_dynamic_flag_spec='-Bexport'
10261      ;;
10262
10263    sysv4*MP*)
10264      if test -d /usr/nec; then
10265	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266	hardcode_shlibpath_var=no
10267	runpath_var=LD_RUN_PATH
10268	hardcode_runpath_var=yes
10269	ld_shlibs=yes
10270      fi
10271      ;;
10272
10273    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10274      no_undefined_flag='${wl}-z,text'
10275      archive_cmds_need_lc=no
10276      hardcode_shlibpath_var=no
10277      runpath_var='LD_RUN_PATH'
10278
10279      if test "$GCC" = yes; then
10280	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282      else
10283	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285      fi
10286      ;;
10287
10288    sysv5* | sco3.2v5* | sco5v6*)
10289      # Note: We can NOT use -z defs as we might desire, because we do not
10290      # link with -lc, and that would cause any symbols used from libc to
10291      # always be unresolved, which means just about no library would
10292      # ever link correctly.  If we're not using GNU ld we use -z text
10293      # though, which does catch some bad symbols but isn't as heavy-handed
10294      # as -z defs.
10295      no_undefined_flag='${wl}-z,text'
10296      allow_undefined_flag='${wl}-z,nodefs'
10297      archive_cmds_need_lc=no
10298      hardcode_shlibpath_var=no
10299      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10300      hardcode_libdir_separator=':'
10301      link_all_deplibs=yes
10302      export_dynamic_flag_spec='${wl}-Bexport'
10303      runpath_var='LD_RUN_PATH'
10304
10305      if test "$GCC" = yes; then
10306	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308      else
10309	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311      fi
10312      ;;
10313
10314    uts4*)
10315      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10316      hardcode_libdir_flag_spec='-L$libdir'
10317      hardcode_shlibpath_var=no
10318      ;;
10319
10320    *)
10321      ld_shlibs=no
10322      ;;
10323    esac
10324
10325    if test x$host_vendor = xsni; then
10326      case $host in
10327      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10328	export_dynamic_flag_spec='${wl}-Blargedynsym'
10329	;;
10330      esac
10331    fi
10332  fi
10333
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10335$as_echo "$ld_shlibs" >&6; }
10336test "$ld_shlibs" = no && can_build_shared=no
10337
10338with_gnu_ld=$with_gnu_ld
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354#
10355# Do we need to explicitly link libc?
10356#
10357case "x$archive_cmds_need_lc" in
10358x|xyes)
10359  # Assume -lc should be added
10360  archive_cmds_need_lc=yes
10361
10362  if test "$enable_shared" = yes && test "$GCC" = yes; then
10363    case $archive_cmds in
10364    *'~'*)
10365      # FIXME: we may have to deal with multi-command sequences.
10366      ;;
10367    '$CC '*)
10368      # Test whether the compiler implicitly links with -lc since on some
10369      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10370      # to ld, don't add -lc before -lgcc.
10371      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10372$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10373if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10374  $as_echo_n "(cached) " >&6
10375else
10376  $RM conftest*
10377	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10378
10379	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10380  (eval $ac_compile) 2>&5
10381  ac_status=$?
10382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383  test $ac_status = 0; } 2>conftest.err; then
10384	  soname=conftest
10385	  lib=conftest
10386	  libobjs=conftest.$ac_objext
10387	  deplibs=
10388	  wl=$lt_prog_compiler_wl
10389	  pic_flag=$lt_prog_compiler_pic
10390	  compiler_flags=-v
10391	  linker_flags=-v
10392	  verstring=
10393	  output_objdir=.
10394	  libname=conftest
10395	  lt_save_allow_undefined_flag=$allow_undefined_flag
10396	  allow_undefined_flag=
10397	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10398  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10399  ac_status=$?
10400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10401  test $ac_status = 0; }
10402	  then
10403	    lt_cv_archive_cmds_need_lc=no
10404	  else
10405	    lt_cv_archive_cmds_need_lc=yes
10406	  fi
10407	  allow_undefined_flag=$lt_save_allow_undefined_flag
10408	else
10409	  cat conftest.err 1>&5
10410	fi
10411	$RM conftest*
10412
10413fi
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10415$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10416      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10417      ;;
10418    esac
10419  fi
10420  ;;
10421esac
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10580$as_echo_n "checking dynamic linker characteristics... " >&6; }
10581
10582if test "$GCC" = yes; then
10583  case $host_os in
10584    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10585    *) lt_awk_arg="/^libraries:/" ;;
10586  esac
10587  case $host_os in
10588    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10589    *) lt_sed_strip_eq="s,=/,/,g" ;;
10590  esac
10591  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10592  case $lt_search_path_spec in
10593  *\;*)
10594    # if the path contains ";" then we assume it to be the separator
10595    # otherwise default to the standard path separator (i.e. ":") - it is
10596    # assumed that no part of a normal pathname contains ";" but that should
10597    # okay in the real world where ";" in dirpaths is itself problematic.
10598    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10599    ;;
10600  *)
10601    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10602    ;;
10603  esac
10604  # Ok, now we have the path, separated by spaces, we can step through it
10605  # and add multilib dir if necessary.
10606  lt_tmp_lt_search_path_spec=
10607  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10608  for lt_sys_path in $lt_search_path_spec; do
10609    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10610      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10611    else
10612      test -d "$lt_sys_path" && \
10613	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10614    fi
10615  done
10616  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10617BEGIN {RS=" "; FS="/|\n";} {
10618  lt_foo="";
10619  lt_count=0;
10620  for (lt_i = NF; lt_i > 0; lt_i--) {
10621    if ($lt_i != "" && $lt_i != ".") {
10622      if ($lt_i == "..") {
10623        lt_count++;
10624      } else {
10625        if (lt_count == 0) {
10626          lt_foo="/" $lt_i lt_foo;
10627        } else {
10628          lt_count--;
10629        }
10630      }
10631    }
10632  }
10633  if (lt_foo != "") { lt_freq[lt_foo]++; }
10634  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10635}'`
10636  # AWK program above erroneously prepends '/' to C:/dos/paths
10637  # for these hosts.
10638  case $host_os in
10639    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10640      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10641  esac
10642  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10643else
10644  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10645fi
10646library_names_spec=
10647libname_spec='lib$name'
10648soname_spec=
10649shrext_cmds=".so"
10650postinstall_cmds=
10651postuninstall_cmds=
10652finish_cmds=
10653finish_eval=
10654shlibpath_var=
10655shlibpath_overrides_runpath=unknown
10656version_type=none
10657dynamic_linker="$host_os ld.so"
10658sys_lib_dlsearch_path_spec="/lib /usr/lib"
10659need_lib_prefix=unknown
10660hardcode_into_libs=no
10661
10662# when you set need_version to no, make sure it does not cause -set_version
10663# flags to be left without arguments
10664need_version=unknown
10665
10666case $host_os in
10667aix3*)
10668  version_type=linux
10669  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10670  shlibpath_var=LIBPATH
10671
10672  # AIX 3 has no versioning support, so we append a major version to the name.
10673  soname_spec='${libname}${release}${shared_ext}$major'
10674  ;;
10675
10676aix[4-9]*)
10677  version_type=linux
10678  need_lib_prefix=no
10679  need_version=no
10680  hardcode_into_libs=yes
10681  if test "$host_cpu" = ia64; then
10682    # AIX 5 supports IA64
10683    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10684    shlibpath_var=LD_LIBRARY_PATH
10685  else
10686    # With GCC up to 2.95.x, collect2 would create an import file
10687    # for dependence libraries.  The import file would start with
10688    # the line `#! .'.  This would cause the generated library to
10689    # depend on `.', always an invalid library.  This was fixed in
10690    # development snapshots of GCC prior to 3.0.
10691    case $host_os in
10692      aix4 | aix4.[01] | aix4.[01].*)
10693      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10694	   echo ' yes '
10695	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10696	:
10697      else
10698	can_build_shared=no
10699      fi
10700      ;;
10701    esac
10702    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10703    # soname into executable. Probably we can add versioning support to
10704    # collect2, so additional links can be useful in future.
10705    if test "$aix_use_runtimelinking" = yes; then
10706      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10707      # instead of lib<name>.a to let people know that these are not
10708      # typical AIX shared libraries.
10709      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710    else
10711      # We preserve .a as extension for shared libraries through AIX4.2
10712      # and later when we are not doing run time linking.
10713      library_names_spec='${libname}${release}.a $libname.a'
10714      soname_spec='${libname}${release}${shared_ext}$major'
10715    fi
10716    shlibpath_var=LIBPATH
10717  fi
10718  ;;
10719
10720amigaos*)
10721  case $host_cpu in
10722  powerpc)
10723    # Since July 2007 AmigaOS4 officially supports .so libraries.
10724    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10725    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726    ;;
10727  m68k)
10728    library_names_spec='$libname.ixlibrary $libname.a'
10729    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10730    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'
10731    ;;
10732  esac
10733  ;;
10734
10735beos*)
10736  library_names_spec='${libname}${shared_ext}'
10737  dynamic_linker="$host_os ld.so"
10738  shlibpath_var=LIBRARY_PATH
10739  ;;
10740
10741bsdi[45]*)
10742  version_type=linux
10743  need_version=no
10744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745  soname_spec='${libname}${release}${shared_ext}$major'
10746  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10747  shlibpath_var=LD_LIBRARY_PATH
10748  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10749  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10750  # the default ld.so.conf also contains /usr/contrib/lib and
10751  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10752  # libtool to hard-code these into programs
10753  ;;
10754
10755cygwin* | mingw* | pw32* | cegcc*)
10756  version_type=windows
10757  shrext_cmds=".dll"
10758  need_version=no
10759  need_lib_prefix=no
10760
10761  case $GCC,$host_os in
10762  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10763    library_names_spec='$libname.dll.a'
10764    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10765    postinstall_cmds='base_file=`basename \${file}`~
10766      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10767      dldir=$destdir/`dirname \$dlpath`~
10768      test -d \$dldir || mkdir -p \$dldir~
10769      $install_prog $dir/$dlname \$dldir/$dlname~
10770      chmod a+x \$dldir/$dlname~
10771      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10772        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10773      fi'
10774    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10775      dlpath=$dir/\$dldll~
10776       $RM \$dlpath'
10777    shlibpath_overrides_runpath=yes
10778
10779    case $host_os in
10780    cygwin*)
10781      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10782      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10783
10784      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10785      ;;
10786    mingw* | cegcc*)
10787      # MinGW DLLs use traditional 'lib' prefix
10788      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10789      ;;
10790    pw32*)
10791      # pw32 DLLs use 'pw' prefix rather than 'lib'
10792      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10793      ;;
10794    esac
10795    ;;
10796
10797  *)
10798    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10799    ;;
10800  esac
10801  dynamic_linker='Win32 ld.exe'
10802  # FIXME: first we should search . and the directory the executable is in
10803  shlibpath_var=PATH
10804  ;;
10805
10806darwin* | rhapsody*)
10807  dynamic_linker="$host_os dyld"
10808  version_type=darwin
10809  need_lib_prefix=no
10810  need_version=no
10811  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10812  soname_spec='${libname}${release}${major}$shared_ext'
10813  shlibpath_overrides_runpath=yes
10814  shlibpath_var=DYLD_LIBRARY_PATH
10815  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10816
10817  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10818  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10819  ;;
10820
10821dgux*)
10822  version_type=linux
10823  need_lib_prefix=no
10824  need_version=no
10825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10826  soname_spec='${libname}${release}${shared_ext}$major'
10827  shlibpath_var=LD_LIBRARY_PATH
10828  ;;
10829
10830freebsd1*)
10831  dynamic_linker=no
10832  ;;
10833
10834freebsd* | dragonfly*)
10835  # DragonFly does not have aout.  When/if they implement a new
10836  # versioning mechanism, adjust this.
10837  if test -x /usr/bin/objformat; then
10838    objformat=`/usr/bin/objformat`
10839  else
10840    case $host_os in
10841    freebsd[123]*) objformat=aout ;;
10842    *) objformat=elf ;;
10843    esac
10844  fi
10845  version_type=freebsd-$objformat
10846  case $version_type in
10847    freebsd-elf*)
10848      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10849      need_version=no
10850      need_lib_prefix=no
10851      ;;
10852    freebsd-*)
10853      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10854      need_version=yes
10855      ;;
10856  esac
10857  shlibpath_var=LD_LIBRARY_PATH
10858  case $host_os in
10859  freebsd2*)
10860    shlibpath_overrides_runpath=yes
10861    ;;
10862  freebsd3.[01]* | freebsdelf3.[01]*)
10863    shlibpath_overrides_runpath=yes
10864    hardcode_into_libs=yes
10865    ;;
10866  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10867  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10868    shlibpath_overrides_runpath=no
10869    hardcode_into_libs=yes
10870    ;;
10871  *) # from 4.6 on, and DragonFly
10872    shlibpath_overrides_runpath=yes
10873    hardcode_into_libs=yes
10874    ;;
10875  esac
10876  ;;
10877
10878gnu*)
10879  version_type=linux
10880  need_lib_prefix=no
10881  need_version=no
10882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10883  soname_spec='${libname}${release}${shared_ext}$major'
10884  shlibpath_var=LD_LIBRARY_PATH
10885  hardcode_into_libs=yes
10886  ;;
10887
10888haiku*)
10889  version_type=linux
10890  need_lib_prefix=no
10891  need_version=no
10892  dynamic_linker="$host_os runtime_loader"
10893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10894  soname_spec='${libname}${release}${shared_ext}$major'
10895  shlibpath_var=LIBRARY_PATH
10896  shlibpath_overrides_runpath=yes
10897  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10898  hardcode_into_libs=yes
10899  ;;
10900
10901hpux9* | hpux10* | hpux11*)
10902  # Give a soname corresponding to the major version so that dld.sl refuses to
10903  # link against other versions.
10904  version_type=sunos
10905  need_lib_prefix=no
10906  need_version=no
10907  case $host_cpu in
10908  ia64*)
10909    shrext_cmds='.so'
10910    hardcode_into_libs=yes
10911    dynamic_linker="$host_os dld.so"
10912    shlibpath_var=LD_LIBRARY_PATH
10913    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915    soname_spec='${libname}${release}${shared_ext}$major'
10916    if test "X$HPUX_IA64_MODE" = X32; then
10917      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10918    else
10919      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10920    fi
10921    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10922    ;;
10923  hppa*64*)
10924    shrext_cmds='.sl'
10925    hardcode_into_libs=yes
10926    dynamic_linker="$host_os dld.sl"
10927    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10928    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930    soname_spec='${libname}${release}${shared_ext}$major'
10931    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10932    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10933    ;;
10934  *)
10935    shrext_cmds='.sl'
10936    dynamic_linker="$host_os dld.sl"
10937    shlibpath_var=SHLIB_PATH
10938    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940    soname_spec='${libname}${release}${shared_ext}$major'
10941    ;;
10942  esac
10943  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10944  postinstall_cmds='chmod 555 $lib'
10945  # or fails outright, so override atomically:
10946  install_override_mode=555
10947  ;;
10948
10949interix[3-9]*)
10950  version_type=linux
10951  need_lib_prefix=no
10952  need_version=no
10953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10954  soname_spec='${libname}${release}${shared_ext}$major'
10955  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10956  shlibpath_var=LD_LIBRARY_PATH
10957  shlibpath_overrides_runpath=no
10958  hardcode_into_libs=yes
10959  ;;
10960
10961irix5* | irix6* | nonstopux*)
10962  case $host_os in
10963    nonstopux*) version_type=nonstopux ;;
10964    *)
10965	if test "$lt_cv_prog_gnu_ld" = yes; then
10966		version_type=linux
10967	else
10968		version_type=irix
10969	fi ;;
10970  esac
10971  need_lib_prefix=no
10972  need_version=no
10973  soname_spec='${libname}${release}${shared_ext}$major'
10974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10975  case $host_os in
10976  irix5* | nonstopux*)
10977    libsuff= shlibsuff=
10978    ;;
10979  *)
10980    case $LD in # libtool.m4 will add one of these switches to LD
10981    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10982      libsuff= shlibsuff= libmagic=32-bit;;
10983    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10984      libsuff=32 shlibsuff=N32 libmagic=N32;;
10985    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10986      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10987    *) libsuff= shlibsuff= libmagic=never-match;;
10988    esac
10989    ;;
10990  esac
10991  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10992  shlibpath_overrides_runpath=no
10993  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10994  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10995  hardcode_into_libs=yes
10996  ;;
10997
10998# No shared lib support for Linux oldld, aout, or coff.
10999linux*oldld* | linux*aout* | linux*coff*)
11000  dynamic_linker=no
11001  ;;
11002
11003# This must be Linux ELF.
11004linux* | k*bsd*-gnu | kopensolaris*-gnu)
11005  version_type=linux
11006  need_lib_prefix=no
11007  need_version=no
11008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009  soname_spec='${libname}${release}${shared_ext}$major'
11010  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11011  shlibpath_var=LD_LIBRARY_PATH
11012  shlibpath_overrides_runpath=no
11013
11014  # Some binutils ld are patched to set DT_RUNPATH
11015  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11016  $as_echo_n "(cached) " >&6
11017else
11018  lt_cv_shlibpath_overrides_runpath=no
11019    save_LDFLAGS=$LDFLAGS
11020    save_libdir=$libdir
11021    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11022	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h.  */
11025
11026int
11027main ()
11028{
11029
11030  ;
11031  return 0;
11032}
11033_ACEOF
11034if ac_fn_c_try_link "$LINENO"; then :
11035  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11036  lt_cv_shlibpath_overrides_runpath=yes
11037fi
11038fi
11039rm -f core conftest.err conftest.$ac_objext \
11040    conftest$ac_exeext conftest.$ac_ext
11041    LDFLAGS=$save_LDFLAGS
11042    libdir=$save_libdir
11043
11044fi
11045
11046  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11047
11048  # This implies no fast_install, which is unacceptable.
11049  # Some rework will be needed to allow for fast_install
11050  # before this can be enabled.
11051  hardcode_into_libs=yes
11052
11053  # Add ABI-specific directories to the system library path.
11054  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11055
11056  # Append ld.so.conf contents to the search path
11057  if test -f /etc/ld.so.conf; then
11058    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' ' '`
11059    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11060
11061  fi
11062
11063  # We used to test for /lib/ld.so.1 and disable shared libraries on
11064  # powerpc, because MkLinux only supported shared libraries with the
11065  # GNU dynamic linker.  Since this was broken with cross compilers,
11066  # most powerpc-linux boxes support dynamic linking these days and
11067  # people can always --disable-shared, the test was removed, and we
11068  # assume the GNU/Linux dynamic linker is in use.
11069  dynamic_linker='GNU/Linux ld.so'
11070  ;;
11071
11072netbsd*)
11073  version_type=sunos
11074  need_lib_prefix=no
11075  need_version=no
11076  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11077    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11078    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079    dynamic_linker='NetBSD (a.out) ld.so'
11080  else
11081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11082    soname_spec='${libname}${release}${shared_ext}$major'
11083    dynamic_linker='NetBSD ld.elf_so'
11084  fi
11085  shlibpath_var=LD_LIBRARY_PATH
11086  shlibpath_overrides_runpath=yes
11087  hardcode_into_libs=yes
11088  ;;
11089
11090newsos6)
11091  version_type=linux
11092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093  shlibpath_var=LD_LIBRARY_PATH
11094  shlibpath_overrides_runpath=yes
11095  ;;
11096
11097*nto* | *qnx*)
11098  version_type=qnx
11099  need_lib_prefix=no
11100  need_version=no
11101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102  soname_spec='${libname}${release}${shared_ext}$major'
11103  shlibpath_var=LD_LIBRARY_PATH
11104  shlibpath_overrides_runpath=no
11105  hardcode_into_libs=yes
11106  dynamic_linker='ldqnx.so'
11107  ;;
11108
11109openbsd*)
11110  version_type=sunos
11111  sys_lib_dlsearch_path_spec="/usr/lib"
11112  need_lib_prefix=no
11113  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11114  case $host_os in
11115    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11116    *)				need_version=no  ;;
11117  esac
11118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11119  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11120  shlibpath_var=LD_LIBRARY_PATH
11121  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11122    case $host_os in
11123      openbsd2.[89] | openbsd2.[89].*)
11124	shlibpath_overrides_runpath=no
11125	;;
11126      *)
11127	shlibpath_overrides_runpath=yes
11128	;;
11129      esac
11130  else
11131    shlibpath_overrides_runpath=yes
11132  fi
11133  ;;
11134
11135os2*)
11136  libname_spec='$name'
11137  shrext_cmds=".dll"
11138  need_lib_prefix=no
11139  library_names_spec='$libname${shared_ext} $libname.a'
11140  dynamic_linker='OS/2 ld.exe'
11141  shlibpath_var=LIBPATH
11142  ;;
11143
11144osf3* | osf4* | osf5*)
11145  version_type=osf
11146  need_lib_prefix=no
11147  need_version=no
11148  soname_spec='${libname}${release}${shared_ext}$major'
11149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150  shlibpath_var=LD_LIBRARY_PATH
11151  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11152  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11153  ;;
11154
11155rdos*)
11156  dynamic_linker=no
11157  ;;
11158
11159solaris*)
11160  version_type=linux
11161  need_lib_prefix=no
11162  need_version=no
11163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164  soname_spec='${libname}${release}${shared_ext}$major'
11165  shlibpath_var=LD_LIBRARY_PATH
11166  shlibpath_overrides_runpath=yes
11167  hardcode_into_libs=yes
11168  # ldd complains unless libraries are executable
11169  postinstall_cmds='chmod +x $lib'
11170  ;;
11171
11172sunos4*)
11173  version_type=sunos
11174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11175  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11176  shlibpath_var=LD_LIBRARY_PATH
11177  shlibpath_overrides_runpath=yes
11178  if test "$with_gnu_ld" = yes; then
11179    need_lib_prefix=no
11180  fi
11181  need_version=yes
11182  ;;
11183
11184sysv4 | sysv4.3*)
11185  version_type=linux
11186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187  soname_spec='${libname}${release}${shared_ext}$major'
11188  shlibpath_var=LD_LIBRARY_PATH
11189  case $host_vendor in
11190    sni)
11191      shlibpath_overrides_runpath=no
11192      need_lib_prefix=no
11193      runpath_var=LD_RUN_PATH
11194      ;;
11195    siemens)
11196      need_lib_prefix=no
11197      ;;
11198    motorola)
11199      need_lib_prefix=no
11200      need_version=no
11201      shlibpath_overrides_runpath=no
11202      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11203      ;;
11204  esac
11205  ;;
11206
11207sysv4*MP*)
11208  if test -d /usr/nec ;then
11209    version_type=linux
11210    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211    soname_spec='$libname${shared_ext}.$major'
11212    shlibpath_var=LD_LIBRARY_PATH
11213  fi
11214  ;;
11215
11216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11217  version_type=freebsd-elf
11218  need_lib_prefix=no
11219  need_version=no
11220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11221  soname_spec='${libname}${release}${shared_ext}$major'
11222  shlibpath_var=LD_LIBRARY_PATH
11223  shlibpath_overrides_runpath=yes
11224  hardcode_into_libs=yes
11225  if test "$with_gnu_ld" = yes; then
11226    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11227  else
11228    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11229    case $host_os in
11230      sco3.2v5*)
11231        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11232	;;
11233    esac
11234  fi
11235  sys_lib_dlsearch_path_spec='/usr/lib'
11236  ;;
11237
11238tpf*)
11239  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11240  version_type=linux
11241  need_lib_prefix=no
11242  need_version=no
11243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244  shlibpath_var=LD_LIBRARY_PATH
11245  shlibpath_overrides_runpath=no
11246  hardcode_into_libs=yes
11247  ;;
11248
11249uts4*)
11250  version_type=linux
11251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252  soname_spec='${libname}${release}${shared_ext}$major'
11253  shlibpath_var=LD_LIBRARY_PATH
11254  ;;
11255
11256*)
11257  dynamic_linker=no
11258  ;;
11259esac
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11261$as_echo "$dynamic_linker" >&6; }
11262test "$dynamic_linker" = no && can_build_shared=no
11263
11264variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11265if test "$GCC" = yes; then
11266  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11267fi
11268
11269if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11270  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11271fi
11272if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11273  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11274fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11368$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11369hardcode_action=
11370if test -n "$hardcode_libdir_flag_spec" ||
11371   test -n "$runpath_var" ||
11372   test "X$hardcode_automatic" = "Xyes" ; then
11373
11374  # We can hardcode non-existent directories.
11375  if test "$hardcode_direct" != no &&
11376     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11377     # have to relink, otherwise we might link with an installed library
11378     # when we should be linking with a yet-to-be-installed one
11379     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11380     test "$hardcode_minus_L" != no; then
11381    # Linking always hardcodes the temporary library directory.
11382    hardcode_action=relink
11383  else
11384    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11385    hardcode_action=immediate
11386  fi
11387else
11388  # We cannot hardcode anything, or else we can only hardcode existing
11389  # directories.
11390  hardcode_action=unsupported
11391fi
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11393$as_echo "$hardcode_action" >&6; }
11394
11395if test "$hardcode_action" = relink ||
11396   test "$inherit_rpath" = yes; then
11397  # Fast installation is not supported
11398  enable_fast_install=no
11399elif test "$shlibpath_overrides_runpath" = yes ||
11400     test "$enable_shared" = no; then
11401  # Fast installation is not necessary
11402  enable_fast_install=needless
11403fi
11404
11405
11406
11407
11408
11409
11410  if test "x$enable_dlopen" != xyes; then
11411  enable_dlopen=unknown
11412  enable_dlopen_self=unknown
11413  enable_dlopen_self_static=unknown
11414else
11415  lt_cv_dlopen=no
11416  lt_cv_dlopen_libs=
11417
11418  case $host_os in
11419  beos*)
11420    lt_cv_dlopen="load_add_on"
11421    lt_cv_dlopen_libs=
11422    lt_cv_dlopen_self=yes
11423    ;;
11424
11425  mingw* | pw32* | cegcc*)
11426    lt_cv_dlopen="LoadLibrary"
11427    lt_cv_dlopen_libs=
11428    ;;
11429
11430  cygwin*)
11431    lt_cv_dlopen="dlopen"
11432    lt_cv_dlopen_libs=
11433    ;;
11434
11435  darwin*)
11436  # if libdl is installed we need to link against it
11437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11438$as_echo_n "checking for dlopen in -ldl... " >&6; }
11439if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11440  $as_echo_n "(cached) " >&6
11441else
11442  ac_check_lib_save_LIBS=$LIBS
11443LIBS="-ldl  $LIBS"
11444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445/* end confdefs.h.  */
11446
11447/* Override any GCC internal prototype to avoid an error.
11448   Use char because int might match the return type of a GCC
11449   builtin and then its argument prototype would still apply.  */
11450#ifdef __cplusplus
11451extern "C"
11452#endif
11453char dlopen ();
11454int
11455main ()
11456{
11457return dlopen ();
11458  ;
11459  return 0;
11460}
11461_ACEOF
11462if ac_fn_c_try_link "$LINENO"; then :
11463  ac_cv_lib_dl_dlopen=yes
11464else
11465  ac_cv_lib_dl_dlopen=no
11466fi
11467rm -f core conftest.err conftest.$ac_objext \
11468    conftest$ac_exeext conftest.$ac_ext
11469LIBS=$ac_check_lib_save_LIBS
11470fi
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11472$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11473if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11474  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11475else
11476
11477    lt_cv_dlopen="dyld"
11478    lt_cv_dlopen_libs=
11479    lt_cv_dlopen_self=yes
11480
11481fi
11482
11483    ;;
11484
11485  *)
11486    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11487if test "x$ac_cv_func_shl_load" = x""yes; then :
11488  lt_cv_dlopen="shl_load"
11489else
11490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11491$as_echo_n "checking for shl_load in -ldld... " >&6; }
11492if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11493  $as_echo_n "(cached) " >&6
11494else
11495  ac_check_lib_save_LIBS=$LIBS
11496LIBS="-ldld  $LIBS"
11497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498/* end confdefs.h.  */
11499
11500/* Override any GCC internal prototype to avoid an error.
11501   Use char because int might match the return type of a GCC
11502   builtin and then its argument prototype would still apply.  */
11503#ifdef __cplusplus
11504extern "C"
11505#endif
11506char shl_load ();
11507int
11508main ()
11509{
11510return shl_load ();
11511  ;
11512  return 0;
11513}
11514_ACEOF
11515if ac_fn_c_try_link "$LINENO"; then :
11516  ac_cv_lib_dld_shl_load=yes
11517else
11518  ac_cv_lib_dld_shl_load=no
11519fi
11520rm -f core conftest.err conftest.$ac_objext \
11521    conftest$ac_exeext conftest.$ac_ext
11522LIBS=$ac_check_lib_save_LIBS
11523fi
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11525$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11526if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11527  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11528else
11529  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11530if test "x$ac_cv_func_dlopen" = x""yes; then :
11531  lt_cv_dlopen="dlopen"
11532else
11533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11534$as_echo_n "checking for dlopen in -ldl... " >&6; }
11535if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11536  $as_echo_n "(cached) " >&6
11537else
11538  ac_check_lib_save_LIBS=$LIBS
11539LIBS="-ldl  $LIBS"
11540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541/* end confdefs.h.  */
11542
11543/* Override any GCC internal prototype to avoid an error.
11544   Use char because int might match the return type of a GCC
11545   builtin and then its argument prototype would still apply.  */
11546#ifdef __cplusplus
11547extern "C"
11548#endif
11549char dlopen ();
11550int
11551main ()
11552{
11553return dlopen ();
11554  ;
11555  return 0;
11556}
11557_ACEOF
11558if ac_fn_c_try_link "$LINENO"; then :
11559  ac_cv_lib_dl_dlopen=yes
11560else
11561  ac_cv_lib_dl_dlopen=no
11562fi
11563rm -f core conftest.err conftest.$ac_objext \
11564    conftest$ac_exeext conftest.$ac_ext
11565LIBS=$ac_check_lib_save_LIBS
11566fi
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11568$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11569if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11570  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11571else
11572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11573$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11574if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11575  $as_echo_n "(cached) " >&6
11576else
11577  ac_check_lib_save_LIBS=$LIBS
11578LIBS="-lsvld  $LIBS"
11579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580/* end confdefs.h.  */
11581
11582/* Override any GCC internal prototype to avoid an error.
11583   Use char because int might match the return type of a GCC
11584   builtin and then its argument prototype would still apply.  */
11585#ifdef __cplusplus
11586extern "C"
11587#endif
11588char dlopen ();
11589int
11590main ()
11591{
11592return dlopen ();
11593  ;
11594  return 0;
11595}
11596_ACEOF
11597if ac_fn_c_try_link "$LINENO"; then :
11598  ac_cv_lib_svld_dlopen=yes
11599else
11600  ac_cv_lib_svld_dlopen=no
11601fi
11602rm -f core conftest.err conftest.$ac_objext \
11603    conftest$ac_exeext conftest.$ac_ext
11604LIBS=$ac_check_lib_save_LIBS
11605fi
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11607$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11608if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11609  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11610else
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11612$as_echo_n "checking for dld_link in -ldld... " >&6; }
11613if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11614  $as_echo_n "(cached) " >&6
11615else
11616  ac_check_lib_save_LIBS=$LIBS
11617LIBS="-ldld  $LIBS"
11618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h.  */
11620
11621/* Override any GCC internal prototype to avoid an error.
11622   Use char because int might match the return type of a GCC
11623   builtin and then its argument prototype would still apply.  */
11624#ifdef __cplusplus
11625extern "C"
11626#endif
11627char dld_link ();
11628int
11629main ()
11630{
11631return dld_link ();
11632  ;
11633  return 0;
11634}
11635_ACEOF
11636if ac_fn_c_try_link "$LINENO"; then :
11637  ac_cv_lib_dld_dld_link=yes
11638else
11639  ac_cv_lib_dld_dld_link=no
11640fi
11641rm -f core conftest.err conftest.$ac_objext \
11642    conftest$ac_exeext conftest.$ac_ext
11643LIBS=$ac_check_lib_save_LIBS
11644fi
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11646$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11647if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11648  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11649fi
11650
11651
11652fi
11653
11654
11655fi
11656
11657
11658fi
11659
11660
11661fi
11662
11663
11664fi
11665
11666    ;;
11667  esac
11668
11669  if test "x$lt_cv_dlopen" != xno; then
11670    enable_dlopen=yes
11671  else
11672    enable_dlopen=no
11673  fi
11674
11675  case $lt_cv_dlopen in
11676  dlopen)
11677    save_CPPFLAGS="$CPPFLAGS"
11678    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11679
11680    save_LDFLAGS="$LDFLAGS"
11681    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11682
11683    save_LIBS="$LIBS"
11684    LIBS="$lt_cv_dlopen_libs $LIBS"
11685
11686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11687$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11688if test "${lt_cv_dlopen_self+set}" = set; then :
11689  $as_echo_n "(cached) " >&6
11690else
11691  	  if test "$cross_compiling" = yes; then :
11692  lt_cv_dlopen_self=cross
11693else
11694  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11695  lt_status=$lt_dlunknown
11696  cat > conftest.$ac_ext <<_LT_EOF
11697#line $LINENO "configure"
11698#include "confdefs.h"
11699
11700#if HAVE_DLFCN_H
11701#include <dlfcn.h>
11702#endif
11703
11704#include <stdio.h>
11705
11706#ifdef RTLD_GLOBAL
11707#  define LT_DLGLOBAL		RTLD_GLOBAL
11708#else
11709#  ifdef DL_GLOBAL
11710#    define LT_DLGLOBAL		DL_GLOBAL
11711#  else
11712#    define LT_DLGLOBAL		0
11713#  endif
11714#endif
11715
11716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11717   find out it does not work in some platform. */
11718#ifndef LT_DLLAZY_OR_NOW
11719#  ifdef RTLD_LAZY
11720#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11721#  else
11722#    ifdef DL_LAZY
11723#      define LT_DLLAZY_OR_NOW		DL_LAZY
11724#    else
11725#      ifdef RTLD_NOW
11726#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11727#      else
11728#        ifdef DL_NOW
11729#          define LT_DLLAZY_OR_NOW	DL_NOW
11730#        else
11731#          define LT_DLLAZY_OR_NOW	0
11732#        endif
11733#      endif
11734#    endif
11735#  endif
11736#endif
11737
11738/* When -fvisbility=hidden is used, assume the code has been annotated
11739   correspondingly for the symbols needed.  */
11740#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11741void fnord () __attribute__((visibility("default")));
11742#endif
11743
11744void fnord () { int i=42; }
11745int main ()
11746{
11747  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11748  int status = $lt_dlunknown;
11749
11750  if (self)
11751    {
11752      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11753      else
11754        {
11755	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11756          else puts (dlerror ());
11757	}
11758      /* dlclose (self); */
11759    }
11760  else
11761    puts (dlerror ());
11762
11763  return status;
11764}
11765_LT_EOF
11766  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11767  (eval $ac_link) 2>&5
11768  ac_status=$?
11769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11770  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11771    (./conftest; exit; ) >&5 2>/dev/null
11772    lt_status=$?
11773    case x$lt_status in
11774      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11775      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11776      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11777    esac
11778  else :
11779    # compilation failed
11780    lt_cv_dlopen_self=no
11781  fi
11782fi
11783rm -fr conftest*
11784
11785
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11788$as_echo "$lt_cv_dlopen_self" >&6; }
11789
11790    if test "x$lt_cv_dlopen_self" = xyes; then
11791      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11792      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11793$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11794if test "${lt_cv_dlopen_self_static+set}" = set; then :
11795  $as_echo_n "(cached) " >&6
11796else
11797  	  if test "$cross_compiling" = yes; then :
11798  lt_cv_dlopen_self_static=cross
11799else
11800  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11801  lt_status=$lt_dlunknown
11802  cat > conftest.$ac_ext <<_LT_EOF
11803#line $LINENO "configure"
11804#include "confdefs.h"
11805
11806#if HAVE_DLFCN_H
11807#include <dlfcn.h>
11808#endif
11809
11810#include <stdio.h>
11811
11812#ifdef RTLD_GLOBAL
11813#  define LT_DLGLOBAL		RTLD_GLOBAL
11814#else
11815#  ifdef DL_GLOBAL
11816#    define LT_DLGLOBAL		DL_GLOBAL
11817#  else
11818#    define LT_DLGLOBAL		0
11819#  endif
11820#endif
11821
11822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11823   find out it does not work in some platform. */
11824#ifndef LT_DLLAZY_OR_NOW
11825#  ifdef RTLD_LAZY
11826#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11827#  else
11828#    ifdef DL_LAZY
11829#      define LT_DLLAZY_OR_NOW		DL_LAZY
11830#    else
11831#      ifdef RTLD_NOW
11832#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11833#      else
11834#        ifdef DL_NOW
11835#          define LT_DLLAZY_OR_NOW	DL_NOW
11836#        else
11837#          define LT_DLLAZY_OR_NOW	0
11838#        endif
11839#      endif
11840#    endif
11841#  endif
11842#endif
11843
11844/* When -fvisbility=hidden is used, assume the code has been annotated
11845   correspondingly for the symbols needed.  */
11846#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11847void fnord () __attribute__((visibility("default")));
11848#endif
11849
11850void fnord () { int i=42; }
11851int main ()
11852{
11853  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11854  int status = $lt_dlunknown;
11855
11856  if (self)
11857    {
11858      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11859      else
11860        {
11861	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11862          else puts (dlerror ());
11863	}
11864      /* dlclose (self); */
11865    }
11866  else
11867    puts (dlerror ());
11868
11869  return status;
11870}
11871_LT_EOF
11872  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11873  (eval $ac_link) 2>&5
11874  ac_status=$?
11875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11876  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11877    (./conftest; exit; ) >&5 2>/dev/null
11878    lt_status=$?
11879    case x$lt_status in
11880      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11881      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11882      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11883    esac
11884  else :
11885    # compilation failed
11886    lt_cv_dlopen_self_static=no
11887  fi
11888fi
11889rm -fr conftest*
11890
11891
11892fi
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11894$as_echo "$lt_cv_dlopen_self_static" >&6; }
11895    fi
11896
11897    CPPFLAGS="$save_CPPFLAGS"
11898    LDFLAGS="$save_LDFLAGS"
11899    LIBS="$save_LIBS"
11900    ;;
11901  esac
11902
11903  case $lt_cv_dlopen_self in
11904  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11905  *) enable_dlopen_self=unknown ;;
11906  esac
11907
11908  case $lt_cv_dlopen_self_static in
11909  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11910  *) enable_dlopen_self_static=unknown ;;
11911  esac
11912fi
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930striplib=
11931old_striplib=
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11933$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11934if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11935  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11936  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938$as_echo "yes" >&6; }
11939else
11940# FIXME - insert some real tests, host_os isn't really good enough
11941  case $host_os in
11942  darwin*)
11943    if test -n "$STRIP" ; then
11944      striplib="$STRIP -x"
11945      old_striplib="$STRIP -S"
11946      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947$as_echo "yes" >&6; }
11948    else
11949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950$as_echo "no" >&6; }
11951    fi
11952    ;;
11953  *)
11954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
11956    ;;
11957  esac
11958fi
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971  # Report which library types will actually be built
11972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11973$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11975$as_echo "$can_build_shared" >&6; }
11976
11977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11978$as_echo_n "checking whether to build shared libraries... " >&6; }
11979  test "$can_build_shared" = "no" && enable_shared=no
11980
11981  # On AIX, shared libraries and static libraries use the same namespace, and
11982  # are all built from PIC.
11983  case $host_os in
11984  aix3*)
11985    test "$enable_shared" = yes && enable_static=no
11986    if test -n "$RANLIB"; then
11987      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11988      postinstall_cmds='$RANLIB $lib'
11989    fi
11990    ;;
11991
11992  aix[4-9]*)
11993    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11994      test "$enable_shared" = yes && enable_static=no
11995    fi
11996    ;;
11997  esac
11998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11999$as_echo "$enable_shared" >&6; }
12000
12001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12002$as_echo_n "checking whether to build static libraries... " >&6; }
12003  # Make sure either enable_shared or enable_static is yes.
12004  test "$enable_shared" = yes || enable_static=yes
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12006$as_echo "$enable_static" >&6; }
12007
12008
12009
12010
12011fi
12012ac_ext=c
12013ac_cpp='$CPP $CPPFLAGS'
12014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017
12018CC="$lt_save_CC"
12019
12020      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12021    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12022    (test "X$CXX" != "Xg++"))) ; then
12023  ac_ext=cpp
12024ac_cpp='$CXXCPP $CPPFLAGS'
12025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12029$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12030if test -z "$CXXCPP"; then
12031  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034      # Double quotes because CXXCPP needs to be expanded
12035    for CXXCPP in "$CXX -E" "/lib/cpp"
12036    do
12037      ac_preproc_ok=false
12038for ac_cxx_preproc_warn_flag in '' yes
12039do
12040  # Use a header file that comes with gcc, so configuring glibc
12041  # with a fresh cross-compiler works.
12042  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043  # <limits.h> exists even on freestanding compilers.
12044  # On the NeXT, cc -E runs the code through the compiler's parser,
12045  # not just through cpp. "Syntax error" is here to catch this case.
12046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047/* end confdefs.h.  */
12048#ifdef __STDC__
12049# include <limits.h>
12050#else
12051# include <assert.h>
12052#endif
12053		     Syntax error
12054_ACEOF
12055if ac_fn_cxx_try_cpp "$LINENO"; then :
12056
12057else
12058  # Broken: fails on valid input.
12059continue
12060fi
12061rm -f conftest.err conftest.$ac_ext
12062
12063  # OK, works on sane cases.  Now check whether nonexistent headers
12064  # can be detected and how.
12065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h.  */
12067#include <ac_nonexistent.h>
12068_ACEOF
12069if ac_fn_cxx_try_cpp "$LINENO"; then :
12070  # Broken: success on invalid input.
12071continue
12072else
12073  # Passes both tests.
12074ac_preproc_ok=:
12075break
12076fi
12077rm -f conftest.err conftest.$ac_ext
12078
12079done
12080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12081rm -f conftest.err conftest.$ac_ext
12082if $ac_preproc_ok; then :
12083  break
12084fi
12085
12086    done
12087    ac_cv_prog_CXXCPP=$CXXCPP
12088
12089fi
12090  CXXCPP=$ac_cv_prog_CXXCPP
12091else
12092  ac_cv_prog_CXXCPP=$CXXCPP
12093fi
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12095$as_echo "$CXXCPP" >&6; }
12096ac_preproc_ok=false
12097for ac_cxx_preproc_warn_flag in '' yes
12098do
12099  # Use a header file that comes with gcc, so configuring glibc
12100  # with a fresh cross-compiler works.
12101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102  # <limits.h> exists even on freestanding compilers.
12103  # On the NeXT, cc -E runs the code through the compiler's parser,
12104  # not just through cpp. "Syntax error" is here to catch this case.
12105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106/* end confdefs.h.  */
12107#ifdef __STDC__
12108# include <limits.h>
12109#else
12110# include <assert.h>
12111#endif
12112		     Syntax error
12113_ACEOF
12114if ac_fn_cxx_try_cpp "$LINENO"; then :
12115
12116else
12117  # Broken: fails on valid input.
12118continue
12119fi
12120rm -f conftest.err conftest.$ac_ext
12121
12122  # OK, works on sane cases.  Now check whether nonexistent headers
12123  # can be detected and how.
12124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125/* end confdefs.h.  */
12126#include <ac_nonexistent.h>
12127_ACEOF
12128if ac_fn_cxx_try_cpp "$LINENO"; then :
12129  # Broken: success on invalid input.
12130continue
12131else
12132  # Passes both tests.
12133ac_preproc_ok=:
12134break
12135fi
12136rm -f conftest.err conftest.$ac_ext
12137
12138done
12139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12140rm -f conftest.err conftest.$ac_ext
12141if $ac_preproc_ok; then :
12142
12143else
12144  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12146as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12147See \`config.log' for more details" "$LINENO" 5; }
12148fi
12149
12150ac_ext=c
12151ac_cpp='$CPP $CPPFLAGS'
12152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156else
12157  _lt_caught_CXX_error=yes
12158fi
12159
12160ac_ext=cpp
12161ac_cpp='$CXXCPP $CPPFLAGS'
12162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12165
12166archive_cmds_need_lc_CXX=no
12167allow_undefined_flag_CXX=
12168always_export_symbols_CXX=no
12169archive_expsym_cmds_CXX=
12170compiler_needs_object_CXX=no
12171export_dynamic_flag_spec_CXX=
12172hardcode_direct_CXX=no
12173hardcode_direct_absolute_CXX=no
12174hardcode_libdir_flag_spec_CXX=
12175hardcode_libdir_flag_spec_ld_CXX=
12176hardcode_libdir_separator_CXX=
12177hardcode_minus_L_CXX=no
12178hardcode_shlibpath_var_CXX=unsupported
12179hardcode_automatic_CXX=no
12180inherit_rpath_CXX=no
12181module_cmds_CXX=
12182module_expsym_cmds_CXX=
12183link_all_deplibs_CXX=unknown
12184old_archive_cmds_CXX=$old_archive_cmds
12185reload_flag_CXX=$reload_flag
12186reload_cmds_CXX=$reload_cmds
12187no_undefined_flag_CXX=
12188whole_archive_flag_spec_CXX=
12189enable_shared_with_static_runtimes_CXX=no
12190
12191# Source file extension for C++ test sources.
12192ac_ext=cpp
12193
12194# Object file extension for compiled C++ test sources.
12195objext=o
12196objext_CXX=$objext
12197
12198# No sense in running all these tests if we already determined that
12199# the CXX compiler isn't working.  Some variables (like enable_shared)
12200# are currently assumed to apply to all compilers on this platform,
12201# and will be corrupted by setting them based on a non-working compiler.
12202if test "$_lt_caught_CXX_error" != yes; then
12203  # Code to be used in simple compile tests
12204  lt_simple_compile_test_code="int some_variable = 0;"
12205
12206  # Code to be used in simple link tests
12207  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12208
12209  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12210
12211
12212
12213
12214
12215
12216# If no C compiler was specified, use CC.
12217LTCC=${LTCC-"$CC"}
12218
12219# If no C compiler flags were specified, use CFLAGS.
12220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12221
12222# Allow CC to be a program name with arguments.
12223compiler=$CC
12224
12225
12226  # save warnings/boilerplate of simple test code
12227  ac_outfile=conftest.$ac_objext
12228echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12230_lt_compiler_boilerplate=`cat conftest.err`
12231$RM conftest*
12232
12233  ac_outfile=conftest.$ac_objext
12234echo "$lt_simple_link_test_code" >conftest.$ac_ext
12235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12236_lt_linker_boilerplate=`cat conftest.err`
12237$RM -r conftest*
12238
12239
12240  # Allow CC to be a program name with arguments.
12241  lt_save_CC=$CC
12242  lt_save_LD=$LD
12243  lt_save_GCC=$GCC
12244  GCC=$GXX
12245  lt_save_with_gnu_ld=$with_gnu_ld
12246  lt_save_path_LD=$lt_cv_path_LD
12247  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12248    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12249  else
12250    $as_unset lt_cv_prog_gnu_ld
12251  fi
12252  if test -n "${lt_cv_path_LDCXX+set}"; then
12253    lt_cv_path_LD=$lt_cv_path_LDCXX
12254  else
12255    $as_unset lt_cv_path_LD
12256  fi
12257  test -z "${LDCXX+set}" || LD=$LDCXX
12258  CC=${CXX-"c++"}
12259  compiler=$CC
12260  compiler_CXX=$CC
12261  for cc_temp in $compiler""; do
12262  case $cc_temp in
12263    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12264    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12265    \-*) ;;
12266    *) break;;
12267  esac
12268done
12269cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12270
12271
12272  if test -n "$compiler"; then
12273    # We don't want -fno-exception when compiling C++ code, so set the
12274    # no_builtin_flag separately
12275    if test "$GXX" = yes; then
12276      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12277    else
12278      lt_prog_compiler_no_builtin_flag_CXX=
12279    fi
12280
12281    if test "$GXX" = yes; then
12282      # Set up default GNU C++ configuration
12283
12284
12285
12286# Check whether --with-gnu-ld was given.
12287if test "${with_gnu_ld+set}" = set; then :
12288  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12289else
12290  with_gnu_ld=no
12291fi
12292
12293ac_prog=ld
12294if test "$GCC" = yes; then
12295  # Check if gcc -print-prog-name=ld gives a path.
12296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12297$as_echo_n "checking for ld used by $CC... " >&6; }
12298  case $host in
12299  *-*-mingw*)
12300    # gcc leaves a trailing carriage return which upsets mingw
12301    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12302  *)
12303    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12304  esac
12305  case $ac_prog in
12306    # Accept absolute paths.
12307    [\\/]* | ?:[\\/]*)
12308      re_direlt='/[^/][^/]*/\.\./'
12309      # Canonicalize the pathname of ld
12310      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12311      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12312	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12313      done
12314      test -z "$LD" && LD="$ac_prog"
12315      ;;
12316  "")
12317    # If it fails, then pretend we aren't using GCC.
12318    ac_prog=ld
12319    ;;
12320  *)
12321    # If it is relative, then search for the first ld in PATH.
12322    with_gnu_ld=unknown
12323    ;;
12324  esac
12325elif test "$with_gnu_ld" = yes; then
12326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12327$as_echo_n "checking for GNU ld... " >&6; }
12328else
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12330$as_echo_n "checking for non-GNU ld... " >&6; }
12331fi
12332if test "${lt_cv_path_LD+set}" = set; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  if test -z "$LD"; then
12336  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12337  for ac_dir in $PATH; do
12338    IFS="$lt_save_ifs"
12339    test -z "$ac_dir" && ac_dir=.
12340    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12341      lt_cv_path_LD="$ac_dir/$ac_prog"
12342      # Check to see if the program is GNU ld.  I'd rather use --version,
12343      # but apparently some variants of GNU ld only accept -v.
12344      # Break only if it was the GNU/non-GNU ld that we prefer.
12345      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12346      *GNU* | *'with BFD'*)
12347	test "$with_gnu_ld" != no && break
12348	;;
12349      *)
12350	test "$with_gnu_ld" != yes && break
12351	;;
12352      esac
12353    fi
12354  done
12355  IFS="$lt_save_ifs"
12356else
12357  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12358fi
12359fi
12360
12361LD="$lt_cv_path_LD"
12362if test -n "$LD"; then
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12364$as_echo "$LD" >&6; }
12365else
12366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367$as_echo "no" >&6; }
12368fi
12369test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12371$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12372if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12373  $as_echo_n "(cached) " >&6
12374else
12375  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12376case `$LD -v 2>&1 </dev/null` in
12377*GNU* | *'with BFD'*)
12378  lt_cv_prog_gnu_ld=yes
12379  ;;
12380*)
12381  lt_cv_prog_gnu_ld=no
12382  ;;
12383esac
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12386$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12387with_gnu_ld=$lt_cv_prog_gnu_ld
12388
12389
12390
12391
12392
12393
12394
12395      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12396      # archiving commands below assume that GNU ld is being used.
12397      if test "$with_gnu_ld" = yes; then
12398        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12400
12401        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12402        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12403
12404        # If archive_cmds runs LD, not CC, wlarc should be empty
12405        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12406        #     investigate it a little bit more. (MM)
12407        wlarc='${wl}'
12408
12409        # ancient GNU ld didn't support --whole-archive et. al.
12410        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12411	  $GREP 'no-whole-archive' > /dev/null; then
12412          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12413        else
12414          whole_archive_flag_spec_CXX=
12415        fi
12416      else
12417        with_gnu_ld=no
12418        wlarc=
12419
12420        # A generic and very simple default shared library creation
12421        # command for GNU C++ for the case where it uses the native
12422        # linker, instead of GNU ld.  If possible, this setting should
12423        # overridden to take advantage of the native linker features on
12424        # the platform it is being used on.
12425        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12426      fi
12427
12428      # Commands to make compiler produce verbose output that lists
12429      # what "hidden" libraries, object files and flags are used when
12430      # linking a shared library.
12431      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12432
12433    else
12434      GXX=no
12435      with_gnu_ld=no
12436      wlarc=
12437    fi
12438
12439    # PORTME: fill in a description of your system's C++ link characteristics
12440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12441$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12442    ld_shlibs_CXX=yes
12443    case $host_os in
12444      aix3*)
12445        # FIXME: insert proper C++ library support
12446        ld_shlibs_CXX=no
12447        ;;
12448      aix[4-9]*)
12449        if test "$host_cpu" = ia64; then
12450          # On IA64, the linker does run time linking by default, so we don't
12451          # have to do anything special.
12452          aix_use_runtimelinking=no
12453          exp_sym_flag='-Bexport'
12454          no_entry_flag=""
12455        else
12456          aix_use_runtimelinking=no
12457
12458          # Test if we are trying to use run time linking or normal
12459          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12460          # need to do runtime linking.
12461          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12462	    for ld_flag in $LDFLAGS; do
12463	      case $ld_flag in
12464	      *-brtl*)
12465	        aix_use_runtimelinking=yes
12466	        break
12467	        ;;
12468	      esac
12469	    done
12470	    ;;
12471          esac
12472
12473          exp_sym_flag='-bexport'
12474          no_entry_flag='-bnoentry'
12475        fi
12476
12477        # When large executables or shared objects are built, AIX ld can
12478        # have problems creating the table of contents.  If linking a library
12479        # or program results in "error TOC overflow" add -mminimal-toc to
12480        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12481        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12482
12483        archive_cmds_CXX=''
12484        hardcode_direct_CXX=yes
12485        hardcode_direct_absolute_CXX=yes
12486        hardcode_libdir_separator_CXX=':'
12487        link_all_deplibs_CXX=yes
12488        file_list_spec_CXX='${wl}-f,'
12489
12490        if test "$GXX" = yes; then
12491          case $host_os in aix4.[012]|aix4.[012].*)
12492          # We only want to do this on AIX 4.2 and lower, the check
12493          # below for broken collect2 doesn't work under 4.3+
12494	  collect2name=`${CC} -print-prog-name=collect2`
12495	  if test -f "$collect2name" &&
12496	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12497	  then
12498	    # We have reworked collect2
12499	    :
12500	  else
12501	    # We have old collect2
12502	    hardcode_direct_CXX=unsupported
12503	    # It fails to find uninstalled libraries when the uninstalled
12504	    # path is not listed in the libpath.  Setting hardcode_minus_L
12505	    # to unsupported forces relinking
12506	    hardcode_minus_L_CXX=yes
12507	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12508	    hardcode_libdir_separator_CXX=
12509	  fi
12510          esac
12511          shared_flag='-shared'
12512	  if test "$aix_use_runtimelinking" = yes; then
12513	    shared_flag="$shared_flag "'${wl}-G'
12514	  fi
12515        else
12516          # not using gcc
12517          if test "$host_cpu" = ia64; then
12518	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12519	  # chokes on -Wl,-G. The following line is correct:
12520	  shared_flag='-G'
12521          else
12522	    if test "$aix_use_runtimelinking" = yes; then
12523	      shared_flag='${wl}-G'
12524	    else
12525	      shared_flag='${wl}-bM:SRE'
12526	    fi
12527          fi
12528        fi
12529
12530        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12531        # It seems that -bexpall does not export symbols beginning with
12532        # underscore (_), so it is better to generate a list of symbols to
12533	# export.
12534        always_export_symbols_CXX=yes
12535        if test "$aix_use_runtimelinking" = yes; then
12536          # Warning - without using the other runtime loading flags (-brtl),
12537          # -berok will link without error, but may produce a broken library.
12538          allow_undefined_flag_CXX='-berok'
12539          # Determine the default libpath from the value encoded in an empty
12540          # executable.
12541          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542/* end confdefs.h.  */
12543
12544int
12545main ()
12546{
12547
12548  ;
12549  return 0;
12550}
12551_ACEOF
12552if ac_fn_cxx_try_link "$LINENO"; then :
12553
12554lt_aix_libpath_sed='
12555    /Import File Strings/,/^$/ {
12556	/^0/ {
12557	    s/^0  *\(.*\)$/\1/
12558	    p
12559	}
12560    }'
12561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12562# Check for a 64-bit object if we didn't find anything.
12563if test -z "$aix_libpath"; then
12564  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12565fi
12566fi
12567rm -f core conftest.err conftest.$ac_objext \
12568    conftest$ac_exeext conftest.$ac_ext
12569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12570
12571          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12572
12573          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"
12574        else
12575          if test "$host_cpu" = ia64; then
12576	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12577	    allow_undefined_flag_CXX="-z nodefs"
12578	    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"
12579          else
12580	    # Determine the default libpath from the value encoded in an
12581	    # empty executable.
12582	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583/* end confdefs.h.  */
12584
12585int
12586main ()
12587{
12588
12589  ;
12590  return 0;
12591}
12592_ACEOF
12593if ac_fn_cxx_try_link "$LINENO"; then :
12594
12595lt_aix_libpath_sed='
12596    /Import File Strings/,/^$/ {
12597	/^0/ {
12598	    s/^0  *\(.*\)$/\1/
12599	    p
12600	}
12601    }'
12602aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12603# Check for a 64-bit object if we didn't find anything.
12604if test -z "$aix_libpath"; then
12605  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12606fi
12607fi
12608rm -f core conftest.err conftest.$ac_objext \
12609    conftest$ac_exeext conftest.$ac_ext
12610if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12611
12612	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12613	    # Warning - without using the other run time loading flags,
12614	    # -berok will link without error, but may produce a broken library.
12615	    no_undefined_flag_CXX=' ${wl}-bernotok'
12616	    allow_undefined_flag_CXX=' ${wl}-berok'
12617	    if test "$with_gnu_ld" = yes; then
12618	      # We only use this code for GNU lds that support --whole-archive.
12619	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12620	    else
12621	      # Exported symbols can be pulled into shared objects from archives
12622	      whole_archive_flag_spec_CXX='$convenience'
12623	    fi
12624	    archive_cmds_need_lc_CXX=yes
12625	    # This is similar to how AIX traditionally builds its shared
12626	    # libraries.
12627	    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'
12628          fi
12629        fi
12630        ;;
12631
12632      beos*)
12633	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12634	  allow_undefined_flag_CXX=unsupported
12635	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12636	  # support --undefined.  This deserves some investigation.  FIXME
12637	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12638	else
12639	  ld_shlibs_CXX=no
12640	fi
12641	;;
12642
12643      chorus*)
12644        case $cc_basename in
12645          *)
12646	  # FIXME: insert proper C++ library support
12647	  ld_shlibs_CXX=no
12648	  ;;
12649        esac
12650        ;;
12651
12652      cygwin* | mingw* | pw32* | cegcc*)
12653        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12654        # as there is no search path for DLLs.
12655        hardcode_libdir_flag_spec_CXX='-L$libdir'
12656        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12657        allow_undefined_flag_CXX=unsupported
12658        always_export_symbols_CXX=no
12659        enable_shared_with_static_runtimes_CXX=yes
12660
12661        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12662          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'
12663          # If the export-symbols file already is a .def file (1st line
12664          # is EXPORTS), use it as is; otherwise, prepend...
12665          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12666	    cp $export_symbols $output_objdir/$soname.def;
12667          else
12668	    echo EXPORTS > $output_objdir/$soname.def;
12669	    cat $export_symbols >> $output_objdir/$soname.def;
12670          fi~
12671          $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'
12672        else
12673          ld_shlibs_CXX=no
12674        fi
12675        ;;
12676      darwin* | rhapsody*)
12677
12678
12679  archive_cmds_need_lc_CXX=no
12680  hardcode_direct_CXX=no
12681  hardcode_automatic_CXX=yes
12682  hardcode_shlibpath_var_CXX=unsupported
12683  if test "$lt_cv_ld_force_load" = "yes"; then
12684    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\"`'
12685  else
12686    whole_archive_flag_spec_CXX=''
12687  fi
12688  link_all_deplibs_CXX=yes
12689  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12690  case $cc_basename in
12691     ifort*) _lt_dar_can_shared=yes ;;
12692     *) _lt_dar_can_shared=$GCC ;;
12693  esac
12694  if test "$_lt_dar_can_shared" = "yes"; then
12695    output_verbose_link_cmd=func_echo_all
12696    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}"
12697    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12698    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}"
12699    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}"
12700       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12701      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}"
12702      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}"
12703    fi
12704
12705  else
12706  ld_shlibs_CXX=no
12707  fi
12708
12709	;;
12710
12711      dgux*)
12712        case $cc_basename in
12713          ec++*)
12714	    # FIXME: insert proper C++ library support
12715	    ld_shlibs_CXX=no
12716	    ;;
12717          ghcx*)
12718	    # Green Hills C++ Compiler
12719	    # FIXME: insert proper C++ library support
12720	    ld_shlibs_CXX=no
12721	    ;;
12722          *)
12723	    # FIXME: insert proper C++ library support
12724	    ld_shlibs_CXX=no
12725	    ;;
12726        esac
12727        ;;
12728
12729      freebsd[12]*)
12730        # C++ shared libraries reported to be fairly broken before
12731	# switch to ELF
12732        ld_shlibs_CXX=no
12733        ;;
12734
12735      freebsd-elf*)
12736        archive_cmds_need_lc_CXX=no
12737        ;;
12738
12739      freebsd* | dragonfly*)
12740        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12741        # conventions
12742        ld_shlibs_CXX=yes
12743        ;;
12744
12745      gnu*)
12746        ;;
12747
12748      haiku*)
12749        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750        link_all_deplibs_CXX=yes
12751        ;;
12752
12753      hpux9*)
12754        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12755        hardcode_libdir_separator_CXX=:
12756        export_dynamic_flag_spec_CXX='${wl}-E'
12757        hardcode_direct_CXX=yes
12758        hardcode_minus_L_CXX=yes # Not in the search PATH,
12759				             # but as the default
12760				             # location of the library.
12761
12762        case $cc_basename in
12763          CC*)
12764            # FIXME: insert proper C++ library support
12765            ld_shlibs_CXX=no
12766            ;;
12767          aCC*)
12768            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'
12769            # Commands to make compiler produce verbose output that lists
12770            # what "hidden" libraries, object files and flags are used when
12771            # linking a shared library.
12772            #
12773            # There doesn't appear to be a way to prevent this compiler from
12774            # explicitly linking system object files so we need to strip them
12775            # from the output so that they don't get included in the library
12776            # dependencies.
12777            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"'
12778            ;;
12779          *)
12780            if test "$GXX" = yes; then
12781              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'
12782            else
12783              # FIXME: insert proper C++ library support
12784              ld_shlibs_CXX=no
12785            fi
12786            ;;
12787        esac
12788        ;;
12789
12790      hpux10*|hpux11*)
12791        if test $with_gnu_ld = no; then
12792	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12793	  hardcode_libdir_separator_CXX=:
12794
12795          case $host_cpu in
12796            hppa*64*|ia64*)
12797              ;;
12798            *)
12799	      export_dynamic_flag_spec_CXX='${wl}-E'
12800              ;;
12801          esac
12802        fi
12803        case $host_cpu in
12804          hppa*64*|ia64*)
12805            hardcode_direct_CXX=no
12806            hardcode_shlibpath_var_CXX=no
12807            ;;
12808          *)
12809            hardcode_direct_CXX=yes
12810            hardcode_direct_absolute_CXX=yes
12811            hardcode_minus_L_CXX=yes # Not in the search PATH,
12812					         # but as the default
12813					         # location of the library.
12814            ;;
12815        esac
12816
12817        case $cc_basename in
12818          CC*)
12819	    # FIXME: insert proper C++ library support
12820	    ld_shlibs_CXX=no
12821	    ;;
12822          aCC*)
12823	    case $host_cpu in
12824	      hppa*64*)
12825	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826	        ;;
12827	      ia64*)
12828	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12829	        ;;
12830	      *)
12831	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12832	        ;;
12833	    esac
12834	    # Commands to make compiler produce verbose output that lists
12835	    # what "hidden" libraries, object files and flags are used when
12836	    # linking a shared library.
12837	    #
12838	    # There doesn't appear to be a way to prevent this compiler from
12839	    # explicitly linking system object files so we need to strip them
12840	    # from the output so that they don't get included in the library
12841	    # dependencies.
12842	    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"'
12843	    ;;
12844          *)
12845	    if test "$GXX" = yes; then
12846	      if test $with_gnu_ld = no; then
12847	        case $host_cpu in
12848	          hppa*64*)
12849	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850	            ;;
12851	          ia64*)
12852	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853	            ;;
12854	          *)
12855	            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'
12856	            ;;
12857	        esac
12858	      fi
12859	    else
12860	      # FIXME: insert proper C++ library support
12861	      ld_shlibs_CXX=no
12862	    fi
12863	    ;;
12864        esac
12865        ;;
12866
12867      interix[3-9]*)
12868	hardcode_direct_CXX=no
12869	hardcode_shlibpath_var_CXX=no
12870	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12871	export_dynamic_flag_spec_CXX='${wl}-E'
12872	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12873	# Instead, shared libraries are loaded at an image base (0x10000000 by
12874	# default) and relocated if they conflict, which is a slow very memory
12875	# consuming and fragmenting process.  To avoid this, we pick a random,
12876	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12877	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12878	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'
12879	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'
12880	;;
12881      irix5* | irix6*)
12882        case $cc_basename in
12883          CC*)
12884	    # SGI C++
12885	    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'
12886
12887	    # Archives containing C++ object files must be created using
12888	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12889	    # necessary to make sure instantiated templates are included
12890	    # in the archive.
12891	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12892	    ;;
12893          *)
12894	    if test "$GXX" = yes; then
12895	      if test "$with_gnu_ld" = no; then
12896	        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'
12897	      else
12898	        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'
12899	      fi
12900	    fi
12901	    link_all_deplibs_CXX=yes
12902	    ;;
12903        esac
12904        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12905        hardcode_libdir_separator_CXX=:
12906        inherit_rpath_CXX=yes
12907        ;;
12908
12909      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12910        case $cc_basename in
12911          KCC*)
12912	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12913
12914	    # KCC will only create a shared library if the output file
12915	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12916	    # to its proper name (with version) after linking.
12917	    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'
12918	    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'
12919	    # Commands to make compiler produce verbose output that lists
12920	    # what "hidden" libraries, object files and flags are used when
12921	    # linking a shared library.
12922	    #
12923	    # There doesn't appear to be a way to prevent this compiler from
12924	    # explicitly linking system object files so we need to strip them
12925	    # from the output so that they don't get included in the library
12926	    # dependencies.
12927	    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"'
12928
12929	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12930	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12931
12932	    # Archives containing C++ object files must be created using
12933	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12934	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12935	    ;;
12936	  icpc* | ecpc* )
12937	    # Intel C++
12938	    with_gnu_ld=yes
12939	    # version 8.0 and above of icpc choke on multiply defined symbols
12940	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12941	    # earlier do not add the objects themselves.
12942	    case `$CC -V 2>&1` in
12943	      *"Version 7."*)
12944	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945		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'
12946		;;
12947	      *)  # Version 8.0 or newer
12948	        tmp_idyn=
12949	        case $host_cpu in
12950		  ia64*) tmp_idyn=' -i_dynamic';;
12951		esac
12952	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12953		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'
12954		;;
12955	    esac
12956	    archive_cmds_need_lc_CXX=no
12957	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12958	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12959	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12960	    ;;
12961          pgCC* | pgcpp*)
12962            # Portland Group C++ compiler
12963	    case `$CC -V` in
12964	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12965	      prelink_cmds_CXX='tpldir=Template.dir~
12966		rm -rf $tpldir~
12967		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12968		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12969	      old_archive_cmds_CXX='tpldir=Template.dir~
12970		rm -rf $tpldir~
12971		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12972		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12973		$RANLIB $oldlib'
12974	      archive_cmds_CXX='tpldir=Template.dir~
12975		rm -rf $tpldir~
12976		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12977		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12978	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12979		rm -rf $tpldir~
12980		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12981		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12982	      ;;
12983	    *) # Version 6 and above use weak symbols
12984	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12985	      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'
12986	      ;;
12987	    esac
12988
12989	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12990	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12991	    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'
12992            ;;
12993	  cxx*)
12994	    # Compaq C++
12995	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996	    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'
12997
12998	    runpath_var=LD_RUN_PATH
12999	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13000	    hardcode_libdir_separator_CXX=:
13001
13002	    # Commands to make compiler produce verbose output that lists
13003	    # what "hidden" libraries, object files and flags are used when
13004	    # linking a shared library.
13005	    #
13006	    # There doesn't appear to be a way to prevent this compiler from
13007	    # explicitly linking system object files so we need to strip them
13008	    # from the output so that they don't get included in the library
13009	    # dependencies.
13010	    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'
13011	    ;;
13012	  xl* | mpixl* | bgxl*)
13013	    # IBM XL 8.0 on PPC, with GNU ld
13014	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13015	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13016	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13017	    if test "x$supports_anon_versioning" = xyes; then
13018	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13019		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13020		echo "local: *; };" >> $output_objdir/$libname.ver~
13021		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13022	    fi
13023	    ;;
13024	  *)
13025	    case `$CC -V 2>&1 | sed 5q` in
13026	    *Sun\ C*)
13027	      # Sun C++ 5.9
13028	      no_undefined_flag_CXX=' -zdefs'
13029	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030	      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'
13031	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13032	      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'
13033	      compiler_needs_object_CXX=yes
13034
13035	      # Not sure whether something based on
13036	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13037	      # would be better.
13038	      output_verbose_link_cmd='func_echo_all'
13039
13040	      # Archives containing C++ object files must be created using
13041	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13042	      # necessary to make sure instantiated templates are included
13043	      # in the archive.
13044	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13045	      ;;
13046	    esac
13047	    ;;
13048	esac
13049	;;
13050
13051      lynxos*)
13052        # FIXME: insert proper C++ library support
13053	ld_shlibs_CXX=no
13054	;;
13055
13056      m88k*)
13057        # FIXME: insert proper C++ library support
13058        ld_shlibs_CXX=no
13059	;;
13060
13061      mvs*)
13062        case $cc_basename in
13063          cxx*)
13064	    # FIXME: insert proper C++ library support
13065	    ld_shlibs_CXX=no
13066	    ;;
13067	  *)
13068	    # FIXME: insert proper C++ library support
13069	    ld_shlibs_CXX=no
13070	    ;;
13071	esac
13072	;;
13073
13074      netbsd*)
13075        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13076	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13077	  wlarc=
13078	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13079	  hardcode_direct_CXX=yes
13080	  hardcode_shlibpath_var_CXX=no
13081	fi
13082	# Workaround some broken pre-1.5 toolchains
13083	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13084	;;
13085
13086      *nto* | *qnx*)
13087        ld_shlibs_CXX=yes
13088	;;
13089
13090      openbsd2*)
13091        # C++ shared libraries are fairly broken
13092	ld_shlibs_CXX=no
13093	;;
13094
13095      openbsd*)
13096	if test -f /usr/libexec/ld.so; then
13097	  hardcode_direct_CXX=yes
13098	  hardcode_shlibpath_var_CXX=no
13099	  hardcode_direct_absolute_CXX=yes
13100	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13101	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13102	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13103	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13104	    export_dynamic_flag_spec_CXX='${wl}-E'
13105	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13106	  fi
13107	  output_verbose_link_cmd=func_echo_all
13108	else
13109	  ld_shlibs_CXX=no
13110	fi
13111	;;
13112
13113      osf3* | osf4* | osf5*)
13114        case $cc_basename in
13115          KCC*)
13116	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13117
13118	    # KCC will only create a shared library if the output file
13119	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13120	    # to its proper name (with version) after linking.
13121	    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'
13122
13123	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124	    hardcode_libdir_separator_CXX=:
13125
13126	    # Archives containing C++ object files must be created using
13127	    # the KAI C++ compiler.
13128	    case $host in
13129	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13130	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13131	    esac
13132	    ;;
13133          RCC*)
13134	    # Rational C++ 2.4.1
13135	    # FIXME: insert proper C++ library support
13136	    ld_shlibs_CXX=no
13137	    ;;
13138          cxx*)
13139	    case $host in
13140	      osf3*)
13141	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13142	        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'
13143	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13144		;;
13145	      *)
13146	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13147	        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'
13148	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13149	          echo "-hidden">> $lib.exp~
13150	          $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~
13151	          $RM $lib.exp'
13152	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13153		;;
13154	    esac
13155
13156	    hardcode_libdir_separator_CXX=:
13157
13158	    # Commands to make compiler produce verbose output that lists
13159	    # what "hidden" libraries, object files and flags are used when
13160	    # linking a shared library.
13161	    #
13162	    # There doesn't appear to be a way to prevent this compiler from
13163	    # explicitly linking system object files so we need to strip them
13164	    # from the output so that they don't get included in the library
13165	    # dependencies.
13166	    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"'
13167	    ;;
13168	  *)
13169	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13170	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13171	      case $host in
13172	        osf3*)
13173	          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'
13174		  ;;
13175	        *)
13176	          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'
13177		  ;;
13178	      esac
13179
13180	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13181	      hardcode_libdir_separator_CXX=:
13182
13183	      # Commands to make compiler produce verbose output that lists
13184	      # what "hidden" libraries, object files and flags are used when
13185	      # linking a shared library.
13186	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13187
13188	    else
13189	      # FIXME: insert proper C++ library support
13190	      ld_shlibs_CXX=no
13191	    fi
13192	    ;;
13193        esac
13194        ;;
13195
13196      psos*)
13197        # FIXME: insert proper C++ library support
13198        ld_shlibs_CXX=no
13199        ;;
13200
13201      sunos4*)
13202        case $cc_basename in
13203          CC*)
13204	    # Sun C++ 4.x
13205	    # FIXME: insert proper C++ library support
13206	    ld_shlibs_CXX=no
13207	    ;;
13208          lcc*)
13209	    # Lucid
13210	    # FIXME: insert proper C++ library support
13211	    ld_shlibs_CXX=no
13212	    ;;
13213          *)
13214	    # FIXME: insert proper C++ library support
13215	    ld_shlibs_CXX=no
13216	    ;;
13217        esac
13218        ;;
13219
13220      solaris*)
13221        case $cc_basename in
13222          CC* | sunCC*)
13223	    # Sun C++ 4.2, 5.x and Centerline C++
13224            archive_cmds_need_lc_CXX=yes
13225	    no_undefined_flag_CXX=' -zdefs'
13226	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13227	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13228	      $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'
13229
13230	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13231	    hardcode_shlibpath_var_CXX=no
13232	    case $host_os in
13233	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13234	      *)
13235		# The compiler driver will combine and reorder linker options,
13236		# but understands `-z linker_flag'.
13237	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13238		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13239	        ;;
13240	    esac
13241	    link_all_deplibs_CXX=yes
13242
13243	    output_verbose_link_cmd='func_echo_all'
13244
13245	    # Archives containing C++ object files must be created using
13246	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13247	    # necessary to make sure instantiated templates are included
13248	    # in the archive.
13249	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13250	    ;;
13251          gcx*)
13252	    # Green Hills C++ Compiler
13253	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13254
13255	    # The C++ compiler must be used to create the archive.
13256	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13257	    ;;
13258          *)
13259	    # GNU C++ compiler with Solaris linker
13260	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13261	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13262	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13263	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13264	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13265		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13266
13267	        # Commands to make compiler produce verbose output that lists
13268	        # what "hidden" libraries, object files and flags are used when
13269	        # linking a shared library.
13270	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13271	      else
13272	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13273	        # platform.
13274	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13275	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13276		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13277
13278	        # Commands to make compiler produce verbose output that lists
13279	        # what "hidden" libraries, object files and flags are used when
13280	        # linking a shared library.
13281	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13282	      fi
13283
13284	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13285	      case $host_os in
13286		solaris2.[0-5] | solaris2.[0-5].*) ;;
13287		*)
13288		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13289		  ;;
13290	      esac
13291	    fi
13292	    ;;
13293        esac
13294        ;;
13295
13296    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13297      no_undefined_flag_CXX='${wl}-z,text'
13298      archive_cmds_need_lc_CXX=no
13299      hardcode_shlibpath_var_CXX=no
13300      runpath_var='LD_RUN_PATH'
13301
13302      case $cc_basename in
13303        CC*)
13304	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306	  ;;
13307	*)
13308	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13310	  ;;
13311      esac
13312      ;;
13313
13314      sysv5* | sco3.2v5* | sco5v6*)
13315	# Note: We can NOT use -z defs as we might desire, because we do not
13316	# link with -lc, and that would cause any symbols used from libc to
13317	# always be unresolved, which means just about no library would
13318	# ever link correctly.  If we're not using GNU ld we use -z text
13319	# though, which does catch some bad symbols but isn't as heavy-handed
13320	# as -z defs.
13321	no_undefined_flag_CXX='${wl}-z,text'
13322	allow_undefined_flag_CXX='${wl}-z,nodefs'
13323	archive_cmds_need_lc_CXX=no
13324	hardcode_shlibpath_var_CXX=no
13325	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13326	hardcode_libdir_separator_CXX=':'
13327	link_all_deplibs_CXX=yes
13328	export_dynamic_flag_spec_CXX='${wl}-Bexport'
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	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13336	      '"$old_archive_cmds_CXX"
13337	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13338	      '"$reload_cmds_CXX"
13339	    ;;
13340	  *)
13341	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13342	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343	    ;;
13344	esac
13345      ;;
13346
13347      tandem*)
13348        case $cc_basename in
13349          NCC*)
13350	    # NonStop-UX NCC 3.20
13351	    # FIXME: insert proper C++ library support
13352	    ld_shlibs_CXX=no
13353	    ;;
13354          *)
13355	    # FIXME: insert proper C++ library support
13356	    ld_shlibs_CXX=no
13357	    ;;
13358        esac
13359        ;;
13360
13361      vxworks*)
13362        # FIXME: insert proper C++ library support
13363        ld_shlibs_CXX=no
13364        ;;
13365
13366      *)
13367        # FIXME: insert proper C++ library support
13368        ld_shlibs_CXX=no
13369        ;;
13370    esac
13371
13372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13373$as_echo "$ld_shlibs_CXX" >&6; }
13374    test "$ld_shlibs_CXX" = no && can_build_shared=no
13375
13376    GCC_CXX="$GXX"
13377    LD_CXX="$LD"
13378
13379    ## CAVEAT EMPTOR:
13380    ## There is no encapsulation within the following macros, do not change
13381    ## the running order or otherwise move them around unless you know exactly
13382    ## what you are doing...
13383    # Dependencies to place before and after the object being linked:
13384predep_objects_CXX=
13385postdep_objects_CXX=
13386predeps_CXX=
13387postdeps_CXX=
13388compiler_lib_search_path_CXX=
13389
13390cat > conftest.$ac_ext <<_LT_EOF
13391class Foo
13392{
13393public:
13394  Foo (void) { a = 0; }
13395private:
13396  int a;
13397};
13398_LT_EOF
13399
13400if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13401  (eval $ac_compile) 2>&5
13402  ac_status=$?
13403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13404  test $ac_status = 0; }; then
13405  # Parse the compiler output and extract the necessary
13406  # objects, libraries and library flags.
13407
13408  # Sentinel used to keep track of whether or not we are before
13409  # the conftest object file.
13410  pre_test_object_deps_done=no
13411
13412  for p in `eval "$output_verbose_link_cmd"`; do
13413    case $p in
13414
13415    -L* | -R* | -l*)
13416       # Some compilers place space between "-{L,R}" and the path.
13417       # Remove the space.
13418       if test $p = "-L" ||
13419          test $p = "-R"; then
13420	 prev=$p
13421	 continue
13422       else
13423	 prev=
13424       fi
13425
13426       if test "$pre_test_object_deps_done" = no; then
13427	 case $p in
13428	 -L* | -R*)
13429	   # Internal compiler library paths should come after those
13430	   # provided the user.  The postdeps already come after the
13431	   # user supplied libs so there is no need to process them.
13432	   if test -z "$compiler_lib_search_path_CXX"; then
13433	     compiler_lib_search_path_CXX="${prev}${p}"
13434	   else
13435	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13436	   fi
13437	   ;;
13438	 # The "-l" case would never come before the object being
13439	 # linked, so don't bother handling this case.
13440	 esac
13441       else
13442	 if test -z "$postdeps_CXX"; then
13443	   postdeps_CXX="${prev}${p}"
13444	 else
13445	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13446	 fi
13447       fi
13448       ;;
13449
13450    *.$objext)
13451       # This assumes that the test object file only shows up
13452       # once in the compiler output.
13453       if test "$p" = "conftest.$objext"; then
13454	 pre_test_object_deps_done=yes
13455	 continue
13456       fi
13457
13458       if test "$pre_test_object_deps_done" = no; then
13459	 if test -z "$predep_objects_CXX"; then
13460	   predep_objects_CXX="$p"
13461	 else
13462	   predep_objects_CXX="$predep_objects_CXX $p"
13463	 fi
13464       else
13465	 if test -z "$postdep_objects_CXX"; then
13466	   postdep_objects_CXX="$p"
13467	 else
13468	   postdep_objects_CXX="$postdep_objects_CXX $p"
13469	 fi
13470       fi
13471       ;;
13472
13473    *) ;; # Ignore the rest.
13474
13475    esac
13476  done
13477
13478  # Clean up.
13479  rm -f a.out a.exe
13480else
13481  echo "libtool.m4: error: problem compiling CXX test program"
13482fi
13483
13484$RM -f confest.$objext
13485
13486# PORTME: override above test on systems where it is broken
13487case $host_os in
13488interix[3-9]*)
13489  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13490  # hack all around it, let's just trust "g++" to DTRT.
13491  predep_objects_CXX=
13492  postdep_objects_CXX=
13493  postdeps_CXX=
13494  ;;
13495
13496linux*)
13497  case `$CC -V 2>&1 | sed 5q` in
13498  *Sun\ C*)
13499    # Sun C++ 5.9
13500
13501    # The more standards-conforming stlport4 library is
13502    # incompatible with the Cstd library. Avoid specifying
13503    # it if it's in CXXFLAGS. Ignore libCrun as
13504    # -library=stlport4 depends on it.
13505    case " $CXX $CXXFLAGS " in
13506    *" -library=stlport4 "*)
13507      solaris_use_stlport4=yes
13508      ;;
13509    esac
13510
13511    if test "$solaris_use_stlport4" != yes; then
13512      postdeps_CXX='-library=Cstd -library=Crun'
13513    fi
13514    ;;
13515  esac
13516  ;;
13517
13518solaris*)
13519  case $cc_basename in
13520  CC* | sunCC*)
13521    # The more standards-conforming stlport4 library is
13522    # incompatible with the Cstd library. Avoid specifying
13523    # it if it's in CXXFLAGS. Ignore libCrun as
13524    # -library=stlport4 depends on it.
13525    case " $CXX $CXXFLAGS " in
13526    *" -library=stlport4 "*)
13527      solaris_use_stlport4=yes
13528      ;;
13529    esac
13530
13531    # Adding this requires a known-good setup of shared libraries for
13532    # Sun compiler versions before 5.6, else PIC objects from an old
13533    # archive will be linked into the output, leading to subtle bugs.
13534    if test "$solaris_use_stlport4" != yes; then
13535      postdeps_CXX='-library=Cstd -library=Crun'
13536    fi
13537    ;;
13538  esac
13539  ;;
13540esac
13541
13542
13543case " $postdeps_CXX " in
13544*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13545esac
13546 compiler_lib_search_dirs_CXX=
13547if test -n "${compiler_lib_search_path_CXX}"; then
13548 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13549fi
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581    lt_prog_compiler_wl_CXX=
13582lt_prog_compiler_pic_CXX=
13583lt_prog_compiler_static_CXX=
13584
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13586$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13587
13588  # C++ specific cases for pic, static, wl, etc.
13589  if test "$GXX" = yes; then
13590    lt_prog_compiler_wl_CXX='-Wl,'
13591    lt_prog_compiler_static_CXX='-static'
13592
13593    case $host_os in
13594    aix*)
13595      # All AIX code is PIC.
13596      if test "$host_cpu" = ia64; then
13597	# AIX 5 now supports IA64 processor
13598	lt_prog_compiler_static_CXX='-Bstatic'
13599      fi
13600      ;;
13601
13602    amigaos*)
13603      case $host_cpu in
13604      powerpc)
13605            # see comment about AmigaOS4 .so support
13606            lt_prog_compiler_pic_CXX='-fPIC'
13607        ;;
13608      m68k)
13609            # FIXME: we need at least 68020 code to build shared libraries, but
13610            # adding the `-m68020' flag to GCC prevents building anything better,
13611            # like `-m68040'.
13612            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13613        ;;
13614      esac
13615      ;;
13616
13617    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13618      # PIC is the default for these OSes.
13619      ;;
13620    mingw* | cygwin* | os2* | pw32* | cegcc*)
13621      # This hack is so that the source file can tell whether it is being
13622      # built for inclusion in a dll (and should export symbols for example).
13623      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13624      # (--disable-auto-import) libraries
13625      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13626      ;;
13627    darwin* | rhapsody*)
13628      # PIC is the default on this platform
13629      # Common symbols not allowed in MH_DYLIB files
13630      lt_prog_compiler_pic_CXX='-fno-common'
13631      ;;
13632    *djgpp*)
13633      # DJGPP does not support shared libraries at all
13634      lt_prog_compiler_pic_CXX=
13635      ;;
13636    haiku*)
13637      # PIC is the default for Haiku.
13638      # The "-static" flag exists, but is broken.
13639      lt_prog_compiler_static_CXX=
13640      ;;
13641    interix[3-9]*)
13642      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13643      # Instead, we relocate shared libraries at runtime.
13644      ;;
13645    sysv4*MP*)
13646      if test -d /usr/nec; then
13647	lt_prog_compiler_pic_CXX=-Kconform_pic
13648      fi
13649      ;;
13650    hpux*)
13651      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13652      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13653      # sets the default TLS model and affects inlining.
13654      case $host_cpu in
13655      hppa*64*)
13656	;;
13657      *)
13658	lt_prog_compiler_pic_CXX='-fPIC'
13659	;;
13660      esac
13661      ;;
13662    *qnx* | *nto*)
13663      # QNX uses GNU C++, but need to define -shared option too, otherwise
13664      # it will coredump.
13665      lt_prog_compiler_pic_CXX='-fPIC -shared'
13666      ;;
13667    *)
13668      lt_prog_compiler_pic_CXX='-fPIC'
13669      ;;
13670    esac
13671  else
13672    case $host_os in
13673      aix[4-9]*)
13674	# All AIX code is PIC.
13675	if test "$host_cpu" = ia64; then
13676	  # AIX 5 now supports IA64 processor
13677	  lt_prog_compiler_static_CXX='-Bstatic'
13678	else
13679	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13680	fi
13681	;;
13682      chorus*)
13683	case $cc_basename in
13684	cxch68*)
13685	  # Green Hills C++ Compiler
13686	  # _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"
13687	  ;;
13688	esac
13689	;;
13690      dgux*)
13691	case $cc_basename in
13692	  ec++*)
13693	    lt_prog_compiler_pic_CXX='-KPIC'
13694	    ;;
13695	  ghcx*)
13696	    # Green Hills C++ Compiler
13697	    lt_prog_compiler_pic_CXX='-pic'
13698	    ;;
13699	  *)
13700	    ;;
13701	esac
13702	;;
13703      freebsd* | dragonfly*)
13704	# FreeBSD uses GNU C++
13705	;;
13706      hpux9* | hpux10* | hpux11*)
13707	case $cc_basename in
13708	  CC*)
13709	    lt_prog_compiler_wl_CXX='-Wl,'
13710	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13711	    if test "$host_cpu" != ia64; then
13712	      lt_prog_compiler_pic_CXX='+Z'
13713	    fi
13714	    ;;
13715	  aCC*)
13716	    lt_prog_compiler_wl_CXX='-Wl,'
13717	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13718	    case $host_cpu in
13719	    hppa*64*|ia64*)
13720	      # +Z the default
13721	      ;;
13722	    *)
13723	      lt_prog_compiler_pic_CXX='+Z'
13724	      ;;
13725	    esac
13726	    ;;
13727	  *)
13728	    ;;
13729	esac
13730	;;
13731      interix*)
13732	# This is c89, which is MS Visual C++ (no shared libs)
13733	# Anyone wants to do a port?
13734	;;
13735      irix5* | irix6* | nonstopux*)
13736	case $cc_basename in
13737	  CC*)
13738	    lt_prog_compiler_wl_CXX='-Wl,'
13739	    lt_prog_compiler_static_CXX='-non_shared'
13740	    # CC pic flag -KPIC is the default.
13741	    ;;
13742	  *)
13743	    ;;
13744	esac
13745	;;
13746      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13747	case $cc_basename in
13748	  KCC*)
13749	    # KAI C++ Compiler
13750	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13751	    lt_prog_compiler_pic_CXX='-fPIC'
13752	    ;;
13753	  ecpc* )
13754	    # old Intel C++ for x86_64 which still supported -KPIC.
13755	    lt_prog_compiler_wl_CXX='-Wl,'
13756	    lt_prog_compiler_pic_CXX='-KPIC'
13757	    lt_prog_compiler_static_CXX='-static'
13758	    ;;
13759	  icpc* )
13760	    # Intel C++, used to be incompatible with GCC.
13761	    # ICC 10 doesn't accept -KPIC any more.
13762	    lt_prog_compiler_wl_CXX='-Wl,'
13763	    lt_prog_compiler_pic_CXX='-fPIC'
13764	    lt_prog_compiler_static_CXX='-static'
13765	    ;;
13766	  pgCC* | pgcpp*)
13767	    # Portland Group C++ compiler
13768	    lt_prog_compiler_wl_CXX='-Wl,'
13769	    lt_prog_compiler_pic_CXX='-fpic'
13770	    lt_prog_compiler_static_CXX='-Bstatic'
13771	    ;;
13772	  cxx*)
13773	    # Compaq C++
13774	    # Make sure the PIC flag is empty.  It appears that all Alpha
13775	    # Linux and Compaq Tru64 Unix objects are PIC.
13776	    lt_prog_compiler_pic_CXX=
13777	    lt_prog_compiler_static_CXX='-non_shared'
13778	    ;;
13779	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13780	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13781	    lt_prog_compiler_wl_CXX='-Wl,'
13782	    lt_prog_compiler_pic_CXX='-qpic'
13783	    lt_prog_compiler_static_CXX='-qstaticlink'
13784	    ;;
13785	  *)
13786	    case `$CC -V 2>&1 | sed 5q` in
13787	    *Sun\ C*)
13788	      # Sun C++ 5.9
13789	      lt_prog_compiler_pic_CXX='-KPIC'
13790	      lt_prog_compiler_static_CXX='-Bstatic'
13791	      lt_prog_compiler_wl_CXX='-Qoption ld '
13792	      ;;
13793	    esac
13794	    ;;
13795	esac
13796	;;
13797      lynxos*)
13798	;;
13799      m88k*)
13800	;;
13801      mvs*)
13802	case $cc_basename in
13803	  cxx*)
13804	    lt_prog_compiler_pic_CXX='-W c,exportall'
13805	    ;;
13806	  *)
13807	    ;;
13808	esac
13809	;;
13810      netbsd*)
13811	;;
13812      *qnx* | *nto*)
13813        # QNX uses GNU C++, but need to define -shared option too, otherwise
13814        # it will coredump.
13815        lt_prog_compiler_pic_CXX='-fPIC -shared'
13816        ;;
13817      osf3* | osf4* | osf5*)
13818	case $cc_basename in
13819	  KCC*)
13820	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13821	    ;;
13822	  RCC*)
13823	    # Rational C++ 2.4.1
13824	    lt_prog_compiler_pic_CXX='-pic'
13825	    ;;
13826	  cxx*)
13827	    # Digital/Compaq C++
13828	    lt_prog_compiler_wl_CXX='-Wl,'
13829	    # Make sure the PIC flag is empty.  It appears that all Alpha
13830	    # Linux and Compaq Tru64 Unix objects are PIC.
13831	    lt_prog_compiler_pic_CXX=
13832	    lt_prog_compiler_static_CXX='-non_shared'
13833	    ;;
13834	  *)
13835	    ;;
13836	esac
13837	;;
13838      psos*)
13839	;;
13840      solaris*)
13841	case $cc_basename in
13842	  CC* | sunCC*)
13843	    # Sun C++ 4.2, 5.x and Centerline C++
13844	    lt_prog_compiler_pic_CXX='-KPIC'
13845	    lt_prog_compiler_static_CXX='-Bstatic'
13846	    lt_prog_compiler_wl_CXX='-Qoption ld '
13847	    ;;
13848	  gcx*)
13849	    # Green Hills C++ Compiler
13850	    lt_prog_compiler_pic_CXX='-PIC'
13851	    ;;
13852	  *)
13853	    ;;
13854	esac
13855	;;
13856      sunos4*)
13857	case $cc_basename in
13858	  CC*)
13859	    # Sun C++ 4.x
13860	    lt_prog_compiler_pic_CXX='-pic'
13861	    lt_prog_compiler_static_CXX='-Bstatic'
13862	    ;;
13863	  lcc*)
13864	    # Lucid
13865	    lt_prog_compiler_pic_CXX='-pic'
13866	    ;;
13867	  *)
13868	    ;;
13869	esac
13870	;;
13871      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13872	case $cc_basename in
13873	  CC*)
13874	    lt_prog_compiler_wl_CXX='-Wl,'
13875	    lt_prog_compiler_pic_CXX='-KPIC'
13876	    lt_prog_compiler_static_CXX='-Bstatic'
13877	    ;;
13878	esac
13879	;;
13880      tandem*)
13881	case $cc_basename in
13882	  NCC*)
13883	    # NonStop-UX NCC 3.20
13884	    lt_prog_compiler_pic_CXX='-KPIC'
13885	    ;;
13886	  *)
13887	    ;;
13888	esac
13889	;;
13890      vxworks*)
13891	;;
13892      *)
13893	lt_prog_compiler_can_build_shared_CXX=no
13894	;;
13895    esac
13896  fi
13897
13898case $host_os in
13899  # For platforms which do not support PIC, -DPIC is meaningless:
13900  *djgpp*)
13901    lt_prog_compiler_pic_CXX=
13902    ;;
13903  *)
13904    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13905    ;;
13906esac
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13908$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13909
13910
13911
13912#
13913# Check to make sure the PIC flag actually works.
13914#
13915if test -n "$lt_prog_compiler_pic_CXX"; then
13916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13917$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13918if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13919  $as_echo_n "(cached) " >&6
13920else
13921  lt_cv_prog_compiler_pic_works_CXX=no
13922   ac_outfile=conftest.$ac_objext
13923   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13924   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13925   # Insert the option either (1) after the last *FLAGS variable, or
13926   # (2) before a word containing "conftest.", or (3) at the end.
13927   # Note that $ac_compile itself does not contain backslashes and begins
13928   # with a dollar sign (not a hyphen), so the echo should work correctly.
13929   # The option is referenced via a variable to avoid confusing sed.
13930   lt_compile=`echo "$ac_compile" | $SED \
13931   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13932   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13933   -e 's:$: $lt_compiler_flag:'`
13934   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13935   (eval "$lt_compile" 2>conftest.err)
13936   ac_status=$?
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   if (exit $ac_status) && test -s "$ac_outfile"; then
13940     # The compiler can only warn and ignore the option if not recognized
13941     # So say no if there are warnings other than the usual output.
13942     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13943     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13944     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13945       lt_cv_prog_compiler_pic_works_CXX=yes
13946     fi
13947   fi
13948   $RM conftest*
13949
13950fi
13951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13952$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13953
13954if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13955    case $lt_prog_compiler_pic_CXX in
13956     "" | " "*) ;;
13957     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13958     esac
13959else
13960    lt_prog_compiler_pic_CXX=
13961     lt_prog_compiler_can_build_shared_CXX=no
13962fi
13963
13964fi
13965
13966
13967
13968#
13969# Check to make sure the static flag actually works.
13970#
13971wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13973$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13974if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13975  $as_echo_n "(cached) " >&6
13976else
13977  lt_cv_prog_compiler_static_works_CXX=no
13978   save_LDFLAGS="$LDFLAGS"
13979   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13980   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13981   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13982     # The linker can only warn and ignore the option if not recognized
13983     # So say no if there are warnings
13984     if test -s conftest.err; then
13985       # Append any errors to the config.log.
13986       cat conftest.err 1>&5
13987       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13988       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13989       if diff conftest.exp conftest.er2 >/dev/null; then
13990         lt_cv_prog_compiler_static_works_CXX=yes
13991       fi
13992     else
13993       lt_cv_prog_compiler_static_works_CXX=yes
13994     fi
13995   fi
13996   $RM -r conftest*
13997   LDFLAGS="$save_LDFLAGS"
13998
13999fi
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14001$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14002
14003if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14004    :
14005else
14006    lt_prog_compiler_static_CXX=
14007fi
14008
14009
14010
14011
14012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14014if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14015  $as_echo_n "(cached) " >&6
14016else
14017  lt_cv_prog_compiler_c_o_CXX=no
14018   $RM -r conftest 2>/dev/null
14019   mkdir conftest
14020   cd conftest
14021   mkdir out
14022   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14023
14024   lt_compiler_flag="-o out/conftest2.$ac_objext"
14025   # Insert the option either (1) after the last *FLAGS variable, or
14026   # (2) before a word containing "conftest.", or (3) at the end.
14027   # Note that $ac_compile itself does not contain backslashes and begins
14028   # with a dollar sign (not a hyphen), so the echo should work correctly.
14029   lt_compile=`echo "$ac_compile" | $SED \
14030   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14031   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14032   -e 's:$: $lt_compiler_flag:'`
14033   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14034   (eval "$lt_compile" 2>out/conftest.err)
14035   ac_status=$?
14036   cat out/conftest.err >&5
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14039   then
14040     # The compiler can only warn and ignore the option if not recognized
14041     # So say no if there are warnings
14042     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14043     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14044     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14045       lt_cv_prog_compiler_c_o_CXX=yes
14046     fi
14047   fi
14048   chmod u+w . 2>&5
14049   $RM conftest*
14050   # SGI C++ compiler will create directory out/ii_files/ for
14051   # template instantiation
14052   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14053   $RM out/* && rmdir out
14054   cd ..
14055   $RM -r conftest
14056   $RM conftest*
14057
14058fi
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14060$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14061
14062
14063
14064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14065$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14066if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14067  $as_echo_n "(cached) " >&6
14068else
14069  lt_cv_prog_compiler_c_o_CXX=no
14070   $RM -r conftest 2>/dev/null
14071   mkdir conftest
14072   cd conftest
14073   mkdir out
14074   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14075
14076   lt_compiler_flag="-o out/conftest2.$ac_objext"
14077   # Insert the option either (1) after the last *FLAGS variable, or
14078   # (2) before a word containing "conftest.", or (3) at the end.
14079   # Note that $ac_compile itself does not contain backslashes and begins
14080   # with a dollar sign (not a hyphen), so the echo should work correctly.
14081   lt_compile=`echo "$ac_compile" | $SED \
14082   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14083   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14084   -e 's:$: $lt_compiler_flag:'`
14085   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14086   (eval "$lt_compile" 2>out/conftest.err)
14087   ac_status=$?
14088   cat out/conftest.err >&5
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14091   then
14092     # The compiler can only warn and ignore the option if not recognized
14093     # So say no if there are warnings
14094     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14095     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14096     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14097       lt_cv_prog_compiler_c_o_CXX=yes
14098     fi
14099   fi
14100   chmod u+w . 2>&5
14101   $RM conftest*
14102   # SGI C++ compiler will create directory out/ii_files/ for
14103   # template instantiation
14104   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14105   $RM out/* && rmdir out
14106   cd ..
14107   $RM -r conftest
14108   $RM conftest*
14109
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14112$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14113
14114
14115
14116
14117hard_links="nottested"
14118if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14119  # do not overwrite the value of need_locks provided by the user
14120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14121$as_echo_n "checking if we can lock with hard links... " >&6; }
14122  hard_links=yes
14123  $RM conftest*
14124  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125  touch conftest.a
14126  ln conftest.a conftest.b 2>&5 || hard_links=no
14127  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14129$as_echo "$hard_links" >&6; }
14130  if test "$hard_links" = no; then
14131    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14132$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14133    need_locks=warn
14134  fi
14135else
14136  need_locks=no
14137fi
14138
14139
14140
14141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14142$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14143
14144  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14145  case $host_os in
14146  aix[4-9]*)
14147    # If we're using GNU nm, then we don't want the "-C" option.
14148    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14149    # Also, AIX nm treats weak defined symbols like other global defined
14150    # symbols, whereas GNU nm marks them as "W".
14151    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14152      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'
14153    else
14154      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14155    fi
14156    ;;
14157  pw32*)
14158    export_symbols_cmds_CXX="$ltdll_cmds"
14159  ;;
14160  cygwin* | mingw* | cegcc*)
14161    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'
14162  ;;
14163  *)
14164    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14165  ;;
14166  esac
14167  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14168
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14170$as_echo "$ld_shlibs_CXX" >&6; }
14171test "$ld_shlibs_CXX" = no && can_build_shared=no
14172
14173with_gnu_ld_CXX=$with_gnu_ld
14174
14175
14176
14177
14178
14179
14180#
14181# Do we need to explicitly link libc?
14182#
14183case "x$archive_cmds_need_lc_CXX" in
14184x|xyes)
14185  # Assume -lc should be added
14186  archive_cmds_need_lc_CXX=yes
14187
14188  if test "$enable_shared" = yes && test "$GCC" = yes; then
14189    case $archive_cmds_CXX in
14190    *'~'*)
14191      # FIXME: we may have to deal with multi-command sequences.
14192      ;;
14193    '$CC '*)
14194      # Test whether the compiler implicitly links with -lc since on some
14195      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14196      # to ld, don't add -lc before -lgcc.
14197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14198$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14199if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14200  $as_echo_n "(cached) " >&6
14201else
14202  $RM conftest*
14203	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14204
14205	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14206  (eval $ac_compile) 2>&5
14207  ac_status=$?
14208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14209  test $ac_status = 0; } 2>conftest.err; then
14210	  soname=conftest
14211	  lib=conftest
14212	  libobjs=conftest.$ac_objext
14213	  deplibs=
14214	  wl=$lt_prog_compiler_wl_CXX
14215	  pic_flag=$lt_prog_compiler_pic_CXX
14216	  compiler_flags=-v
14217	  linker_flags=-v
14218	  verstring=
14219	  output_objdir=.
14220	  libname=conftest
14221	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14222	  allow_undefined_flag_CXX=
14223	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14224  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14225  ac_status=$?
14226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227  test $ac_status = 0; }
14228	  then
14229	    lt_cv_archive_cmds_need_lc_CXX=no
14230	  else
14231	    lt_cv_archive_cmds_need_lc_CXX=yes
14232	  fi
14233	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14234	else
14235	  cat conftest.err 1>&5
14236	fi
14237	$RM conftest*
14238
14239fi
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14241$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14242      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14243      ;;
14244    esac
14245  fi
14246  ;;
14247esac
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14313$as_echo_n "checking dynamic linker characteristics... " >&6; }
14314
14315library_names_spec=
14316libname_spec='lib$name'
14317soname_spec=
14318shrext_cmds=".so"
14319postinstall_cmds=
14320postuninstall_cmds=
14321finish_cmds=
14322finish_eval=
14323shlibpath_var=
14324shlibpath_overrides_runpath=unknown
14325version_type=none
14326dynamic_linker="$host_os ld.so"
14327sys_lib_dlsearch_path_spec="/lib /usr/lib"
14328need_lib_prefix=unknown
14329hardcode_into_libs=no
14330
14331# when you set need_version to no, make sure it does not cause -set_version
14332# flags to be left without arguments
14333need_version=unknown
14334
14335case $host_os in
14336aix3*)
14337  version_type=linux
14338  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14339  shlibpath_var=LIBPATH
14340
14341  # AIX 3 has no versioning support, so we append a major version to the name.
14342  soname_spec='${libname}${release}${shared_ext}$major'
14343  ;;
14344
14345aix[4-9]*)
14346  version_type=linux
14347  need_lib_prefix=no
14348  need_version=no
14349  hardcode_into_libs=yes
14350  if test "$host_cpu" = ia64; then
14351    # AIX 5 supports IA64
14352    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14353    shlibpath_var=LD_LIBRARY_PATH
14354  else
14355    # With GCC up to 2.95.x, collect2 would create an import file
14356    # for dependence libraries.  The import file would start with
14357    # the line `#! .'.  This would cause the generated library to
14358    # depend on `.', always an invalid library.  This was fixed in
14359    # development snapshots of GCC prior to 3.0.
14360    case $host_os in
14361      aix4 | aix4.[01] | aix4.[01].*)
14362      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14363	   echo ' yes '
14364	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14365	:
14366      else
14367	can_build_shared=no
14368      fi
14369      ;;
14370    esac
14371    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14372    # soname into executable. Probably we can add versioning support to
14373    # collect2, so additional links can be useful in future.
14374    if test "$aix_use_runtimelinking" = yes; then
14375      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14376      # instead of lib<name>.a to let people know that these are not
14377      # typical AIX shared libraries.
14378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379    else
14380      # We preserve .a as extension for shared libraries through AIX4.2
14381      # and later when we are not doing run time linking.
14382      library_names_spec='${libname}${release}.a $libname.a'
14383      soname_spec='${libname}${release}${shared_ext}$major'
14384    fi
14385    shlibpath_var=LIBPATH
14386  fi
14387  ;;
14388
14389amigaos*)
14390  case $host_cpu in
14391  powerpc)
14392    # Since July 2007 AmigaOS4 officially supports .so libraries.
14393    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14394    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395    ;;
14396  m68k)
14397    library_names_spec='$libname.ixlibrary $libname.a'
14398    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14399    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'
14400    ;;
14401  esac
14402  ;;
14403
14404beos*)
14405  library_names_spec='${libname}${shared_ext}'
14406  dynamic_linker="$host_os ld.so"
14407  shlibpath_var=LIBRARY_PATH
14408  ;;
14409
14410bsdi[45]*)
14411  version_type=linux
14412  need_version=no
14413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414  soname_spec='${libname}${release}${shared_ext}$major'
14415  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14416  shlibpath_var=LD_LIBRARY_PATH
14417  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14418  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14419  # the default ld.so.conf also contains /usr/contrib/lib and
14420  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14421  # libtool to hard-code these into programs
14422  ;;
14423
14424cygwin* | mingw* | pw32* | cegcc*)
14425  version_type=windows
14426  shrext_cmds=".dll"
14427  need_version=no
14428  need_lib_prefix=no
14429
14430  case $GCC,$host_os in
14431  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14432    library_names_spec='$libname.dll.a'
14433    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14434    postinstall_cmds='base_file=`basename \${file}`~
14435      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14436      dldir=$destdir/`dirname \$dlpath`~
14437      test -d \$dldir || mkdir -p \$dldir~
14438      $install_prog $dir/$dlname \$dldir/$dlname~
14439      chmod a+x \$dldir/$dlname~
14440      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14441        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14442      fi'
14443    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14444      dlpath=$dir/\$dldll~
14445       $RM \$dlpath'
14446    shlibpath_overrides_runpath=yes
14447
14448    case $host_os in
14449    cygwin*)
14450      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14451      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14452
14453      ;;
14454    mingw* | cegcc*)
14455      # MinGW DLLs use traditional 'lib' prefix
14456      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14457      ;;
14458    pw32*)
14459      # pw32 DLLs use 'pw' prefix rather than 'lib'
14460      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14461      ;;
14462    esac
14463    ;;
14464
14465  *)
14466    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14467    ;;
14468  esac
14469  dynamic_linker='Win32 ld.exe'
14470  # FIXME: first we should search . and the directory the executable is in
14471  shlibpath_var=PATH
14472  ;;
14473
14474darwin* | rhapsody*)
14475  dynamic_linker="$host_os dyld"
14476  version_type=darwin
14477  need_lib_prefix=no
14478  need_version=no
14479  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14480  soname_spec='${libname}${release}${major}$shared_ext'
14481  shlibpath_overrides_runpath=yes
14482  shlibpath_var=DYLD_LIBRARY_PATH
14483  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14484
14485  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14486  ;;
14487
14488dgux*)
14489  version_type=linux
14490  need_lib_prefix=no
14491  need_version=no
14492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14493  soname_spec='${libname}${release}${shared_ext}$major'
14494  shlibpath_var=LD_LIBRARY_PATH
14495  ;;
14496
14497freebsd1*)
14498  dynamic_linker=no
14499  ;;
14500
14501freebsd* | dragonfly*)
14502  # DragonFly does not have aout.  When/if they implement a new
14503  # versioning mechanism, adjust this.
14504  if test -x /usr/bin/objformat; then
14505    objformat=`/usr/bin/objformat`
14506  else
14507    case $host_os in
14508    freebsd[123]*) objformat=aout ;;
14509    *) objformat=elf ;;
14510    esac
14511  fi
14512  version_type=freebsd-$objformat
14513  case $version_type in
14514    freebsd-elf*)
14515      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14516      need_version=no
14517      need_lib_prefix=no
14518      ;;
14519    freebsd-*)
14520      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14521      need_version=yes
14522      ;;
14523  esac
14524  shlibpath_var=LD_LIBRARY_PATH
14525  case $host_os in
14526  freebsd2*)
14527    shlibpath_overrides_runpath=yes
14528    ;;
14529  freebsd3.[01]* | freebsdelf3.[01]*)
14530    shlibpath_overrides_runpath=yes
14531    hardcode_into_libs=yes
14532    ;;
14533  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14534  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14535    shlibpath_overrides_runpath=no
14536    hardcode_into_libs=yes
14537    ;;
14538  *) # from 4.6 on, and DragonFly
14539    shlibpath_overrides_runpath=yes
14540    hardcode_into_libs=yes
14541    ;;
14542  esac
14543  ;;
14544
14545gnu*)
14546  version_type=linux
14547  need_lib_prefix=no
14548  need_version=no
14549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14550  soname_spec='${libname}${release}${shared_ext}$major'
14551  shlibpath_var=LD_LIBRARY_PATH
14552  hardcode_into_libs=yes
14553  ;;
14554
14555haiku*)
14556  version_type=linux
14557  need_lib_prefix=no
14558  need_version=no
14559  dynamic_linker="$host_os runtime_loader"
14560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14561  soname_spec='${libname}${release}${shared_ext}$major'
14562  shlibpath_var=LIBRARY_PATH
14563  shlibpath_overrides_runpath=yes
14564  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14565  hardcode_into_libs=yes
14566  ;;
14567
14568hpux9* | hpux10* | hpux11*)
14569  # Give a soname corresponding to the major version so that dld.sl refuses to
14570  # link against other versions.
14571  version_type=sunos
14572  need_lib_prefix=no
14573  need_version=no
14574  case $host_cpu in
14575  ia64*)
14576    shrext_cmds='.so'
14577    hardcode_into_libs=yes
14578    dynamic_linker="$host_os dld.so"
14579    shlibpath_var=LD_LIBRARY_PATH
14580    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14581    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582    soname_spec='${libname}${release}${shared_ext}$major'
14583    if test "X$HPUX_IA64_MODE" = X32; then
14584      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14585    else
14586      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14587    fi
14588    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14589    ;;
14590  hppa*64*)
14591    shrext_cmds='.sl'
14592    hardcode_into_libs=yes
14593    dynamic_linker="$host_os dld.sl"
14594    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14595    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597    soname_spec='${libname}${release}${shared_ext}$major'
14598    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14599    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14600    ;;
14601  *)
14602    shrext_cmds='.sl'
14603    dynamic_linker="$host_os dld.sl"
14604    shlibpath_var=SHLIB_PATH
14605    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607    soname_spec='${libname}${release}${shared_ext}$major'
14608    ;;
14609  esac
14610  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14611  postinstall_cmds='chmod 555 $lib'
14612  # or fails outright, so override atomically:
14613  install_override_mode=555
14614  ;;
14615
14616interix[3-9]*)
14617  version_type=linux
14618  need_lib_prefix=no
14619  need_version=no
14620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14621  soname_spec='${libname}${release}${shared_ext}$major'
14622  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14623  shlibpath_var=LD_LIBRARY_PATH
14624  shlibpath_overrides_runpath=no
14625  hardcode_into_libs=yes
14626  ;;
14627
14628irix5* | irix6* | nonstopux*)
14629  case $host_os in
14630    nonstopux*) version_type=nonstopux ;;
14631    *)
14632	if test "$lt_cv_prog_gnu_ld" = yes; then
14633		version_type=linux
14634	else
14635		version_type=irix
14636	fi ;;
14637  esac
14638  need_lib_prefix=no
14639  need_version=no
14640  soname_spec='${libname}${release}${shared_ext}$major'
14641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14642  case $host_os in
14643  irix5* | nonstopux*)
14644    libsuff= shlibsuff=
14645    ;;
14646  *)
14647    case $LD in # libtool.m4 will add one of these switches to LD
14648    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14649      libsuff= shlibsuff= libmagic=32-bit;;
14650    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14651      libsuff=32 shlibsuff=N32 libmagic=N32;;
14652    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14653      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14654    *) libsuff= shlibsuff= libmagic=never-match;;
14655    esac
14656    ;;
14657  esac
14658  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14659  shlibpath_overrides_runpath=no
14660  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14661  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14662  hardcode_into_libs=yes
14663  ;;
14664
14665# No shared lib support for Linux oldld, aout, or coff.
14666linux*oldld* | linux*aout* | linux*coff*)
14667  dynamic_linker=no
14668  ;;
14669
14670# This must be Linux ELF.
14671linux* | k*bsd*-gnu | kopensolaris*-gnu)
14672  version_type=linux
14673  need_lib_prefix=no
14674  need_version=no
14675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676  soname_spec='${libname}${release}${shared_ext}$major'
14677  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14678  shlibpath_var=LD_LIBRARY_PATH
14679  shlibpath_overrides_runpath=no
14680
14681  # Some binutils ld are patched to set DT_RUNPATH
14682  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14683  $as_echo_n "(cached) " >&6
14684else
14685  lt_cv_shlibpath_overrides_runpath=no
14686    save_LDFLAGS=$LDFLAGS
14687    save_libdir=$libdir
14688    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14689	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691/* end confdefs.h.  */
14692
14693int
14694main ()
14695{
14696
14697  ;
14698  return 0;
14699}
14700_ACEOF
14701if ac_fn_cxx_try_link "$LINENO"; then :
14702  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14703  lt_cv_shlibpath_overrides_runpath=yes
14704fi
14705fi
14706rm -f core conftest.err conftest.$ac_objext \
14707    conftest$ac_exeext conftest.$ac_ext
14708    LDFLAGS=$save_LDFLAGS
14709    libdir=$save_libdir
14710
14711fi
14712
14713  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14714
14715  # This implies no fast_install, which is unacceptable.
14716  # Some rework will be needed to allow for fast_install
14717  # before this can be enabled.
14718  hardcode_into_libs=yes
14719
14720  # Add ABI-specific directories to the system library path.
14721  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14722
14723  # Append ld.so.conf contents to the search path
14724  if test -f /etc/ld.so.conf; then
14725    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' ' '`
14726    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14727
14728  fi
14729
14730  # We used to test for /lib/ld.so.1 and disable shared libraries on
14731  # powerpc, because MkLinux only supported shared libraries with the
14732  # GNU dynamic linker.  Since this was broken with cross compilers,
14733  # most powerpc-linux boxes support dynamic linking these days and
14734  # people can always --disable-shared, the test was removed, and we
14735  # assume the GNU/Linux dynamic linker is in use.
14736  dynamic_linker='GNU/Linux ld.so'
14737  ;;
14738
14739netbsd*)
14740  version_type=sunos
14741  need_lib_prefix=no
14742  need_version=no
14743  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14744    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14745    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14746    dynamic_linker='NetBSD (a.out) ld.so'
14747  else
14748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14749    soname_spec='${libname}${release}${shared_ext}$major'
14750    dynamic_linker='NetBSD ld.elf_so'
14751  fi
14752  shlibpath_var=LD_LIBRARY_PATH
14753  shlibpath_overrides_runpath=yes
14754  hardcode_into_libs=yes
14755  ;;
14756
14757newsos6)
14758  version_type=linux
14759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760  shlibpath_var=LD_LIBRARY_PATH
14761  shlibpath_overrides_runpath=yes
14762  ;;
14763
14764*nto* | *qnx*)
14765  version_type=qnx
14766  need_lib_prefix=no
14767  need_version=no
14768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769  soname_spec='${libname}${release}${shared_ext}$major'
14770  shlibpath_var=LD_LIBRARY_PATH
14771  shlibpath_overrides_runpath=no
14772  hardcode_into_libs=yes
14773  dynamic_linker='ldqnx.so'
14774  ;;
14775
14776openbsd*)
14777  version_type=sunos
14778  sys_lib_dlsearch_path_spec="/usr/lib"
14779  need_lib_prefix=no
14780  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14781  case $host_os in
14782    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14783    *)				need_version=no  ;;
14784  esac
14785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14786  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14787  shlibpath_var=LD_LIBRARY_PATH
14788  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14789    case $host_os in
14790      openbsd2.[89] | openbsd2.[89].*)
14791	shlibpath_overrides_runpath=no
14792	;;
14793      *)
14794	shlibpath_overrides_runpath=yes
14795	;;
14796      esac
14797  else
14798    shlibpath_overrides_runpath=yes
14799  fi
14800  ;;
14801
14802os2*)
14803  libname_spec='$name'
14804  shrext_cmds=".dll"
14805  need_lib_prefix=no
14806  library_names_spec='$libname${shared_ext} $libname.a'
14807  dynamic_linker='OS/2 ld.exe'
14808  shlibpath_var=LIBPATH
14809  ;;
14810
14811osf3* | osf4* | osf5*)
14812  version_type=osf
14813  need_lib_prefix=no
14814  need_version=no
14815  soname_spec='${libname}${release}${shared_ext}$major'
14816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14817  shlibpath_var=LD_LIBRARY_PATH
14818  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14819  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14820  ;;
14821
14822rdos*)
14823  dynamic_linker=no
14824  ;;
14825
14826solaris*)
14827  version_type=linux
14828  need_lib_prefix=no
14829  need_version=no
14830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831  soname_spec='${libname}${release}${shared_ext}$major'
14832  shlibpath_var=LD_LIBRARY_PATH
14833  shlibpath_overrides_runpath=yes
14834  hardcode_into_libs=yes
14835  # ldd complains unless libraries are executable
14836  postinstall_cmds='chmod +x $lib'
14837  ;;
14838
14839sunos4*)
14840  version_type=sunos
14841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14842  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14843  shlibpath_var=LD_LIBRARY_PATH
14844  shlibpath_overrides_runpath=yes
14845  if test "$with_gnu_ld" = yes; then
14846    need_lib_prefix=no
14847  fi
14848  need_version=yes
14849  ;;
14850
14851sysv4 | sysv4.3*)
14852  version_type=linux
14853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854  soname_spec='${libname}${release}${shared_ext}$major'
14855  shlibpath_var=LD_LIBRARY_PATH
14856  case $host_vendor in
14857    sni)
14858      shlibpath_overrides_runpath=no
14859      need_lib_prefix=no
14860      runpath_var=LD_RUN_PATH
14861      ;;
14862    siemens)
14863      need_lib_prefix=no
14864      ;;
14865    motorola)
14866      need_lib_prefix=no
14867      need_version=no
14868      shlibpath_overrides_runpath=no
14869      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14870      ;;
14871  esac
14872  ;;
14873
14874sysv4*MP*)
14875  if test -d /usr/nec ;then
14876    version_type=linux
14877    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14878    soname_spec='$libname${shared_ext}.$major'
14879    shlibpath_var=LD_LIBRARY_PATH
14880  fi
14881  ;;
14882
14883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14884  version_type=freebsd-elf
14885  need_lib_prefix=no
14886  need_version=no
14887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14888  soname_spec='${libname}${release}${shared_ext}$major'
14889  shlibpath_var=LD_LIBRARY_PATH
14890  shlibpath_overrides_runpath=yes
14891  hardcode_into_libs=yes
14892  if test "$with_gnu_ld" = yes; then
14893    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14894  else
14895    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14896    case $host_os in
14897      sco3.2v5*)
14898        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14899	;;
14900    esac
14901  fi
14902  sys_lib_dlsearch_path_spec='/usr/lib'
14903  ;;
14904
14905tpf*)
14906  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14907  version_type=linux
14908  need_lib_prefix=no
14909  need_version=no
14910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911  shlibpath_var=LD_LIBRARY_PATH
14912  shlibpath_overrides_runpath=no
14913  hardcode_into_libs=yes
14914  ;;
14915
14916uts4*)
14917  version_type=linux
14918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919  soname_spec='${libname}${release}${shared_ext}$major'
14920  shlibpath_var=LD_LIBRARY_PATH
14921  ;;
14922
14923*)
14924  dynamic_linker=no
14925  ;;
14926esac
14927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14928$as_echo "$dynamic_linker" >&6; }
14929test "$dynamic_linker" = no && can_build_shared=no
14930
14931variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14932if test "$GCC" = yes; then
14933  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14934fi
14935
14936if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14937  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14938fi
14939if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14940  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14941fi
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14981$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14982hardcode_action_CXX=
14983if test -n "$hardcode_libdir_flag_spec_CXX" ||
14984   test -n "$runpath_var_CXX" ||
14985   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14986
14987  # We can hardcode non-existent directories.
14988  if test "$hardcode_direct_CXX" != no &&
14989     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14990     # have to relink, otherwise we might link with an installed library
14991     # when we should be linking with a yet-to-be-installed one
14992     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14993     test "$hardcode_minus_L_CXX" != no; then
14994    # Linking always hardcodes the temporary library directory.
14995    hardcode_action_CXX=relink
14996  else
14997    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14998    hardcode_action_CXX=immediate
14999  fi
15000else
15001  # We cannot hardcode anything, or else we can only hardcode existing
15002  # directories.
15003  hardcode_action_CXX=unsupported
15004fi
15005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15006$as_echo "$hardcode_action_CXX" >&6; }
15007
15008if test "$hardcode_action_CXX" = relink ||
15009   test "$inherit_rpath_CXX" = yes; then
15010  # Fast installation is not supported
15011  enable_fast_install=no
15012elif test "$shlibpath_overrides_runpath" = yes ||
15013     test "$enable_shared" = no; then
15014  # Fast installation is not necessary
15015  enable_fast_install=needless
15016fi
15017
15018
15019
15020
15021
15022
15023
15024  fi # test -n "$compiler"
15025
15026  CC=$lt_save_CC
15027  LDCXX=$LD
15028  LD=$lt_save_LD
15029  GCC=$lt_save_GCC
15030  with_gnu_ld=$lt_save_with_gnu_ld
15031  lt_cv_path_LDCXX=$lt_cv_path_LD
15032  lt_cv_path_LD=$lt_save_path_LD
15033  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15034  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15035fi # test "$_lt_caught_CXX_error" != yes
15036
15037ac_ext=c
15038ac_cpp='$CPP $CPPFLAGS'
15039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15041ac_compiler_gnu=$ac_cv_c_compiler_gnu
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055        ac_config_commands="$ac_config_commands libtool"
15056
15057
15058
15059
15060# Only expand once:
15061
15062
15063
15064
15065# Check whether --enable-largefile was given.
15066if test "${enable_largefile+set}" = set; then :
15067  enableval=$enable_largefile;
15068fi
15069
15070if test "$enable_largefile" != no; then
15071
15072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15073$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15074if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15075  $as_echo_n "(cached) " >&6
15076else
15077  ac_cv_sys_largefile_CC=no
15078     if test "$GCC" != yes; then
15079       ac_save_CC=$CC
15080       while :; do
15081	 # IRIX 6.2 and later do not support large files by default,
15082	 # so use the C compiler's -n32 option if that helps.
15083	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084/* end confdefs.h.  */
15085#include <sys/types.h>
15086 /* Check that off_t can represent 2**63 - 1 correctly.
15087    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15088    since some C++ compilers masquerading as C compilers
15089    incorrectly reject 9223372036854775807.  */
15090#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15091  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15092		       && LARGE_OFF_T % 2147483647 == 1)
15093		      ? 1 : -1];
15094int
15095main ()
15096{
15097
15098  ;
15099  return 0;
15100}
15101_ACEOF
15102	 if ac_fn_c_try_compile "$LINENO"; then :
15103  break
15104fi
15105rm -f core conftest.err conftest.$ac_objext
15106	 CC="$CC -n32"
15107	 if ac_fn_c_try_compile "$LINENO"; then :
15108  ac_cv_sys_largefile_CC=' -n32'; break
15109fi
15110rm -f core conftest.err conftest.$ac_objext
15111	 break
15112       done
15113       CC=$ac_save_CC
15114       rm -f conftest.$ac_ext
15115    fi
15116fi
15117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15118$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15119  if test "$ac_cv_sys_largefile_CC" != no; then
15120    CC=$CC$ac_cv_sys_largefile_CC
15121  fi
15122
15123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15124$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15125if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15126  $as_echo_n "(cached) " >&6
15127else
15128  while :; do
15129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130/* end confdefs.h.  */
15131#include <sys/types.h>
15132 /* Check that off_t can represent 2**63 - 1 correctly.
15133    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15134    since some C++ compilers masquerading as C compilers
15135    incorrectly reject 9223372036854775807.  */
15136#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15137  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15138		       && LARGE_OFF_T % 2147483647 == 1)
15139		      ? 1 : -1];
15140int
15141main ()
15142{
15143
15144  ;
15145  return 0;
15146}
15147_ACEOF
15148if ac_fn_c_try_compile "$LINENO"; then :
15149  ac_cv_sys_file_offset_bits=no; break
15150fi
15151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153/* end confdefs.h.  */
15154#define _FILE_OFFSET_BITS 64
15155#include <sys/types.h>
15156 /* Check that off_t can represent 2**63 - 1 correctly.
15157    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15158    since some C++ compilers masquerading as C compilers
15159    incorrectly reject 9223372036854775807.  */
15160#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15161  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15162		       && LARGE_OFF_T % 2147483647 == 1)
15163		      ? 1 : -1];
15164int
15165main ()
15166{
15167
15168  ;
15169  return 0;
15170}
15171_ACEOF
15172if ac_fn_c_try_compile "$LINENO"; then :
15173  ac_cv_sys_file_offset_bits=64; break
15174fi
15175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176  ac_cv_sys_file_offset_bits=unknown
15177  break
15178done
15179fi
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15181$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15182case $ac_cv_sys_file_offset_bits in #(
15183  no | unknown) ;;
15184  *)
15185cat >>confdefs.h <<_ACEOF
15186#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15187_ACEOF
15188;;
15189esac
15190rm -rf conftest*
15191  if test $ac_cv_sys_file_offset_bits = unknown; then
15192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15193$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15194if test "${ac_cv_sys_large_files+set}" = set; then :
15195  $as_echo_n "(cached) " >&6
15196else
15197  while :; do
15198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199/* end confdefs.h.  */
15200#include <sys/types.h>
15201 /* Check that off_t can represent 2**63 - 1 correctly.
15202    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15203    since some C++ compilers masquerading as C compilers
15204    incorrectly reject 9223372036854775807.  */
15205#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15206  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15207		       && LARGE_OFF_T % 2147483647 == 1)
15208		      ? 1 : -1];
15209int
15210main ()
15211{
15212
15213  ;
15214  return 0;
15215}
15216_ACEOF
15217if ac_fn_c_try_compile "$LINENO"; then :
15218  ac_cv_sys_large_files=no; break
15219fi
15220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222/* end confdefs.h.  */
15223#define _LARGE_FILES 1
15224#include <sys/types.h>
15225 /* Check that off_t can represent 2**63 - 1 correctly.
15226    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15227    since some C++ compilers masquerading as C compilers
15228    incorrectly reject 9223372036854775807.  */
15229#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15230  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15231		       && LARGE_OFF_T % 2147483647 == 1)
15232		      ? 1 : -1];
15233int
15234main ()
15235{
15236
15237  ;
15238  return 0;
15239}
15240_ACEOF
15241if ac_fn_c_try_compile "$LINENO"; then :
15242  ac_cv_sys_large_files=1; break
15243fi
15244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15245  ac_cv_sys_large_files=unknown
15246  break
15247done
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15250$as_echo "$ac_cv_sys_large_files" >&6; }
15251case $ac_cv_sys_large_files in #(
15252  no | unknown) ;;
15253  *)
15254cat >>confdefs.h <<_ACEOF
15255#define _LARGE_FILES $ac_cv_sys_large_files
15256_ACEOF
15257;;
15258esac
15259rm -rf conftest*
15260  fi
15261fi
15262
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15264$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15265if test "${ac_cv_c_bigendian+set}" = set; then :
15266  $as_echo_n "(cached) " >&6
15267else
15268  ac_cv_c_bigendian=unknown
15269    # See if we're dealing with a universal compiler.
15270    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271/* end confdefs.h.  */
15272#ifndef __APPLE_CC__
15273	       not a universal capable compiler
15274	     #endif
15275	     typedef int dummy;
15276
15277_ACEOF
15278if ac_fn_c_try_compile "$LINENO"; then :
15279
15280	# Check for potential -arch flags.  It is not universal unless
15281	# there are at least two -arch flags with different values.
15282	ac_arch=
15283	ac_prev=
15284	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15285	 if test -n "$ac_prev"; then
15286	   case $ac_word in
15287	     i?86 | x86_64 | ppc | ppc64)
15288	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15289		 ac_arch=$ac_word
15290	       else
15291		 ac_cv_c_bigendian=universal
15292		 break
15293	       fi
15294	       ;;
15295	   esac
15296	   ac_prev=
15297	 elif test "x$ac_word" = "x-arch"; then
15298	   ac_prev=arch
15299	 fi
15300       done
15301fi
15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303    if test $ac_cv_c_bigendian = unknown; then
15304      # See if sys/param.h defines the BYTE_ORDER macro.
15305      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h.  */
15307#include <sys/types.h>
15308	     #include <sys/param.h>
15309
15310int
15311main ()
15312{
15313#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15314		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15315		     && LITTLE_ENDIAN)
15316	      bogus endian macros
15317	     #endif
15318
15319  ;
15320  return 0;
15321}
15322_ACEOF
15323if ac_fn_c_try_compile "$LINENO"; then :
15324  # It does; now see whether it defined to BIG_ENDIAN or not.
15325	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h.  */
15327#include <sys/types.h>
15328		#include <sys/param.h>
15329
15330int
15331main ()
15332{
15333#if BYTE_ORDER != BIG_ENDIAN
15334		 not big endian
15335		#endif
15336
15337  ;
15338  return 0;
15339}
15340_ACEOF
15341if ac_fn_c_try_compile "$LINENO"; then :
15342  ac_cv_c_bigendian=yes
15343else
15344  ac_cv_c_bigendian=no
15345fi
15346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347fi
15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349    fi
15350    if test $ac_cv_c_bigendian = unknown; then
15351      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15352      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15353/* end confdefs.h.  */
15354#include <limits.h>
15355
15356int
15357main ()
15358{
15359#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15360	      bogus endian macros
15361	     #endif
15362
15363  ;
15364  return 0;
15365}
15366_ACEOF
15367if ac_fn_c_try_compile "$LINENO"; then :
15368  # It does; now see whether it defined to _BIG_ENDIAN or not.
15369	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371#include <limits.h>
15372
15373int
15374main ()
15375{
15376#ifndef _BIG_ENDIAN
15377		 not big endian
15378		#endif
15379
15380  ;
15381  return 0;
15382}
15383_ACEOF
15384if ac_fn_c_try_compile "$LINENO"; then :
15385  ac_cv_c_bigendian=yes
15386else
15387  ac_cv_c_bigendian=no
15388fi
15389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390fi
15391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392    fi
15393    if test $ac_cv_c_bigendian = unknown; then
15394      # Compile a test program.
15395      if test "$cross_compiling" = yes; then :
15396  # Try to guess by grepping values from an object file.
15397	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398/* end confdefs.h.  */
15399short int ascii_mm[] =
15400		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15401		short int ascii_ii[] =
15402		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15403		int use_ascii (int i) {
15404		  return ascii_mm[i] + ascii_ii[i];
15405		}
15406		short int ebcdic_ii[] =
15407		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15408		short int ebcdic_mm[] =
15409		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15410		int use_ebcdic (int i) {
15411		  return ebcdic_mm[i] + ebcdic_ii[i];
15412		}
15413		extern int foo;
15414
15415int
15416main ()
15417{
15418return use_ascii (foo) == use_ebcdic (foo);
15419  ;
15420  return 0;
15421}
15422_ACEOF
15423if ac_fn_c_try_compile "$LINENO"; then :
15424  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15425	      ac_cv_c_bigendian=yes
15426	    fi
15427	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15428	      if test "$ac_cv_c_bigendian" = unknown; then
15429		ac_cv_c_bigendian=no
15430	      else
15431		# finding both strings is unlikely to happen, but who knows?
15432		ac_cv_c_bigendian=unknown
15433	      fi
15434	    fi
15435fi
15436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437else
15438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439/* end confdefs.h.  */
15440$ac_includes_default
15441int
15442main ()
15443{
15444
15445	     /* Are we little or big endian?  From Harbison&Steele.  */
15446	     union
15447	     {
15448	       long int l;
15449	       char c[sizeof (long int)];
15450	     } u;
15451	     u.l = 1;
15452	     return u.c[sizeof (long int) - 1] == 1;
15453
15454  ;
15455  return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_run "$LINENO"; then :
15459  ac_cv_c_bigendian=no
15460else
15461  ac_cv_c_bigendian=yes
15462fi
15463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15464  conftest.$ac_objext conftest.beam conftest.$ac_ext
15465fi
15466
15467    fi
15468fi
15469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15470$as_echo "$ac_cv_c_bigendian" >&6; }
15471 case $ac_cv_c_bigendian in #(
15472   yes)
15473     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15474;; #(
15475   no)
15476      ;; #(
15477   universal)
15478
15479$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15480
15481     ;; #(
15482   *)
15483     as_fn_error $? "unknown endianness
15484 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15485 esac
15486
15487
15488HAVE_MODPLUG=no
15489# Extract the first word of "pkg-config", so it can be a program name with args.
15490set dummy pkg-config; ac_word=$2
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15492$as_echo_n "checking for $ac_word... " >&6; }
15493if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then :
15494  $as_echo_n "(cached) " >&6
15495else
15496  if test -n "$HAVE_PKG_CONFIG"; then
15497  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
15498else
15499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15500for as_dir in $PATH
15501do
15502  IFS=$as_save_IFS
15503  test -z "$as_dir" && as_dir=.
15504    for ac_exec_ext in '' $ac_executable_extensions; do
15505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15506    ac_cv_prog_HAVE_PKG_CONFIG="yes"
15507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15508    break 2
15509  fi
15510done
15511  done
15512IFS=$as_save_IFS
15513
15514fi
15515fi
15516HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
15517if test -n "$HAVE_PKG_CONFIG"; then
15518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
15519$as_echo "$HAVE_PKG_CONFIG" >&6; }
15520else
15521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15522$as_echo "no" >&6; }
15523fi
15524
15525
15526if test "x$HAVE_PKG_CONFIG" = "xyes"
15527then
15528
15529
15530
15531
15532
15533
15534if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15535	if test -n "$ac_tool_prefix"; then
15536  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15537set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15539$as_echo_n "checking for $ac_word... " >&6; }
15540if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15541  $as_echo_n "(cached) " >&6
15542else
15543  case $PKG_CONFIG in
15544  [\\/]* | ?:[\\/]*)
15545  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15546  ;;
15547  *)
15548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549for as_dir in $PATH
15550do
15551  IFS=$as_save_IFS
15552  test -z "$as_dir" && as_dir=.
15553    for ac_exec_ext in '' $ac_executable_extensions; do
15554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15555    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15557    break 2
15558  fi
15559done
15560  done
15561IFS=$as_save_IFS
15562
15563  ;;
15564esac
15565fi
15566PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15567if test -n "$PKG_CONFIG"; then
15568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15569$as_echo "$PKG_CONFIG" >&6; }
15570else
15571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15572$as_echo "no" >&6; }
15573fi
15574
15575
15576fi
15577if test -z "$ac_cv_path_PKG_CONFIG"; then
15578  ac_pt_PKG_CONFIG=$PKG_CONFIG
15579  # Extract the first word of "pkg-config", so it can be a program name with args.
15580set dummy pkg-config; ac_word=$2
15581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15582$as_echo_n "checking for $ac_word... " >&6; }
15583if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15584  $as_echo_n "(cached) " >&6
15585else
15586  case $ac_pt_PKG_CONFIG in
15587  [\\/]* | ?:[\\/]*)
15588  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15589  ;;
15590  *)
15591  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592for as_dir in $PATH
15593do
15594  IFS=$as_save_IFS
15595  test -z "$as_dir" && as_dir=.
15596    for ac_exec_ext in '' $ac_executable_extensions; do
15597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15598    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15600    break 2
15601  fi
15602done
15603  done
15604IFS=$as_save_IFS
15605
15606  ;;
15607esac
15608fi
15609ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15610if test -n "$ac_pt_PKG_CONFIG"; then
15611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15612$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15613else
15614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615$as_echo "no" >&6; }
15616fi
15617
15618  if test "x$ac_pt_PKG_CONFIG" = x; then
15619    PKG_CONFIG=""
15620  else
15621    case $cross_compiling:$ac_tool_warned in
15622yes:)
15623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15625ac_tool_warned=yes ;;
15626esac
15627    PKG_CONFIG=$ac_pt_PKG_CONFIG
15628  fi
15629else
15630  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15631fi
15632
15633fi
15634if test -n "$PKG_CONFIG"; then
15635	_pkg_min_version=0.9.0
15636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15637$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15638	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15640$as_echo "yes" >&6; }
15641	else
15642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15643$as_echo "no" >&6; }
15644		PKG_CONFIG=""
15645	fi
15646fi
15647
15648pkg_failed=no
15649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMODPLUG" >&5
15650$as_echo_n "checking for LIBMODPLUG... " >&6; }
15651
15652if test -n "$LIBMODPLUG_CFLAGS"; then
15653    pkg_cv_LIBMODPLUG_CFLAGS="$LIBMODPLUG_CFLAGS"
15654 elif test -n "$PKG_CONFIG"; then
15655    if test -n "$PKG_CONFIG" && \
15656    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.8\""; } >&5
15657  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.8") 2>&5
15658  ac_status=$?
15659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15660  test $ac_status = 0; }; then
15661  pkg_cv_LIBMODPLUG_CFLAGS=`$PKG_CONFIG --cflags "libmodplug >= 0.8.8" 2>/dev/null`
15662else
15663  pkg_failed=yes
15664fi
15665 else
15666    pkg_failed=untried
15667fi
15668if test -n "$LIBMODPLUG_LIBS"; then
15669    pkg_cv_LIBMODPLUG_LIBS="$LIBMODPLUG_LIBS"
15670 elif test -n "$PKG_CONFIG"; then
15671    if test -n "$PKG_CONFIG" && \
15672    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.8\""; } >&5
15673  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.8") 2>&5
15674  ac_status=$?
15675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15676  test $ac_status = 0; }; then
15677  pkg_cv_LIBMODPLUG_LIBS=`$PKG_CONFIG --libs "libmodplug >= 0.8.8" 2>/dev/null`
15678else
15679  pkg_failed=yes
15680fi
15681 else
15682    pkg_failed=untried
15683fi
15684
15685
15686
15687if test $pkg_failed = yes; then
15688   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689$as_echo "no" >&6; }
15690
15691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15692        _pkg_short_errors_supported=yes
15693else
15694        _pkg_short_errors_supported=no
15695fi
15696        if test $_pkg_short_errors_supported = yes; then
15697	        LIBMODPLUG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmodplug >= 0.8.8" 2>&1`
15698        else
15699	        LIBMODPLUG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmodplug >= 0.8.8" 2>&1`
15700        fi
15701	# Put the nasty error message in config.log where it belongs
15702	echo "$LIBMODPLUG_PKG_ERRORS" >&5
15703
15704	HAVE_MODPLUG=no
15705elif test $pkg_failed = untried; then
15706     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707$as_echo "no" >&6; }
15708	HAVE_MODPLUG=no
15709else
15710	LIBMODPLUG_CFLAGS=$pkg_cv_LIBMODPLUG_CFLAGS
15711	LIBMODPLUG_LIBS=$pkg_cv_LIBMODPLUG_LIBS
15712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15713$as_echo "yes" >&6; }
15714	HAVE_MODPLUG=yes
15715fi
15716
15717
15718fi
15719
15720if test "x$HAVE_MODPLUG" = "xno"
15721then
15722	as_fn_error $? "libmodplug >= 0.8.8 required !" "$LINENO" 5
15723fi
15724
15725
15726pkg_failed=no
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AO" >&5
15728$as_echo_n "checking for AO... " >&6; }
15729
15730if test -n "$AO_CFLAGS"; then
15731    pkg_cv_AO_CFLAGS="$AO_CFLAGS"
15732 elif test -n "$PKG_CONFIG"; then
15733    if test -n "$PKG_CONFIG" && \
15734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 0.8.0\""; } >&5
15735  ($PKG_CONFIG --exists --print-errors "ao >= 0.8.0") 2>&5
15736  ac_status=$?
15737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15738  test $ac_status = 0; }; then
15739  pkg_cv_AO_CFLAGS=`$PKG_CONFIG --cflags "ao >= 0.8.0" 2>/dev/null`
15740else
15741  pkg_failed=yes
15742fi
15743 else
15744    pkg_failed=untried
15745fi
15746if test -n "$AO_LIBS"; then
15747    pkg_cv_AO_LIBS="$AO_LIBS"
15748 elif test -n "$PKG_CONFIG"; then
15749    if test -n "$PKG_CONFIG" && \
15750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 0.8.0\""; } >&5
15751  ($PKG_CONFIG --exists --print-errors "ao >= 0.8.0") 2>&5
15752  ac_status=$?
15753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15754  test $ac_status = 0; }; then
15755  pkg_cv_AO_LIBS=`$PKG_CONFIG --libs "ao >= 0.8.0" 2>/dev/null`
15756else
15757  pkg_failed=yes
15758fi
15759 else
15760    pkg_failed=untried
15761fi
15762
15763
15764
15765if test $pkg_failed = yes; then
15766   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15767$as_echo "no" >&6; }
15768
15769if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15770        _pkg_short_errors_supported=yes
15771else
15772        _pkg_short_errors_supported=no
15773fi
15774        if test $_pkg_short_errors_supported = yes; then
15775	        AO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ao >= 0.8.0" 2>&1`
15776        else
15777	        AO_PKG_ERRORS=`$PKG_CONFIG --print-errors "ao >= 0.8.0" 2>&1`
15778        fi
15779	# Put the nasty error message in config.log where it belongs
15780	echo "$AO_PKG_ERRORS" >&5
15781
15782	build_modplug123=no; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libao too old; >= 0.8.0 required" >&5
15783$as_echo "$as_me: WARNING: libao too old; >= 0.8.0 required" >&2;}
15784elif test $pkg_failed = untried; then
15785     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786$as_echo "no" >&6; }
15787	build_modplug123=no; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libao too old; >= 0.8.0 required" >&5
15788$as_echo "$as_me: WARNING: libao too old; >= 0.8.0 required" >&2;}
15789else
15790	AO_CFLAGS=$pkg_cv_AO_CFLAGS
15791	AO_LIBS=$pkg_cv_AO_LIBS
15792        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15793$as_echo "yes" >&6; }
15794
15795fi
15796#ACX_PTHREAD(,build_modplug123=no; AC_MSG_WARN(POSIX threads missing))
15797
15798
15799ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
15800case $ac_cv_c_int8_t in #(
15801  no|yes) ;; #(
15802  *)
15803
15804cat >>confdefs.h <<_ACEOF
15805#define int8_t $ac_cv_c_int8_t
15806_ACEOF
15807;;
15808esac
15809
15810ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
15811case $ac_cv_c_uint8_t in #(
15812  no|yes) ;; #(
15813  *)
15814
15815$as_echo "#define _UINT8_T 1" >>confdefs.h
15816
15817
15818cat >>confdefs.h <<_ACEOF
15819#define uint8_t $ac_cv_c_uint8_t
15820_ACEOF
15821;;
15822  esac
15823
15824ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
15825case $ac_cv_c_int16_t in #(
15826  no|yes) ;; #(
15827  *)
15828
15829cat >>confdefs.h <<_ACEOF
15830#define int16_t $ac_cv_c_int16_t
15831_ACEOF
15832;;
15833esac
15834
15835ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
15836case $ac_cv_c_uint16_t in #(
15837  no|yes) ;; #(
15838  *)
15839
15840
15841cat >>confdefs.h <<_ACEOF
15842#define uint16_t $ac_cv_c_uint16_t
15843_ACEOF
15844;;
15845  esac
15846
15847ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
15848case $ac_cv_c_int32_t in #(
15849  no|yes) ;; #(
15850  *)
15851
15852cat >>confdefs.h <<_ACEOF
15853#define int32_t $ac_cv_c_int32_t
15854_ACEOF
15855;;
15856esac
15857
15858ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15859case $ac_cv_c_uint32_t in #(
15860  no|yes) ;; #(
15861  *)
15862
15863$as_echo "#define _UINT32_T 1" >>confdefs.h
15864
15865
15866cat >>confdefs.h <<_ACEOF
15867#define uint32_t $ac_cv_c_uint32_t
15868_ACEOF
15869;;
15870  esac
15871
15872ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15873case $ac_cv_c_int64_t in #(
15874  no|yes) ;; #(
15875  *)
15876
15877cat >>confdefs.h <<_ACEOF
15878#define int64_t $ac_cv_c_int64_t
15879_ACEOF
15880;;
15881esac
15882
15883ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15884case $ac_cv_c_uint64_t in #(
15885  no|yes) ;; #(
15886  *)
15887
15888$as_echo "#define _UINT64_T 1" >>confdefs.h
15889
15890
15891cat >>confdefs.h <<_ACEOF
15892#define uint64_t $ac_cv_c_uint64_t
15893_ACEOF
15894;;
15895  esac
15896
15897
15898for ac_header in fcntl.h sys/ioctl.h sys/time.h
15899do :
15900  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15902if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15903  cat >>confdefs.h <<_ACEOF
15904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15905_ACEOF
15906
15907fi
15908
15909done
15910
15911
15912
15913ac_config_files="$ac_config_files Makefile mpplay/Makefile mp123/Makefile"
15914
15915cat >confcache <<\_ACEOF
15916# This file is a shell script that caches the results of configure
15917# tests run on this system so they can be shared between configure
15918# scripts and configure runs, see configure's option --config-cache.
15919# It is not useful on other systems.  If it contains results you don't
15920# want to keep, you may remove or edit it.
15921#
15922# config.status only pays attention to the cache file if you give it
15923# the --recheck option to rerun configure.
15924#
15925# `ac_cv_env_foo' variables (set or unset) will be overridden when
15926# loading this file, other *unset* `ac_cv_foo' will be assigned the
15927# following values.
15928
15929_ACEOF
15930
15931# The following way of writing the cache mishandles newlines in values,
15932# but we know of no workaround that is simple, portable, and efficient.
15933# So, we kill variables containing newlines.
15934# Ultrix sh set writes to stderr and can't be redirected directly,
15935# and sets the high bit in the cache file unless we assign to the vars.
15936(
15937  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15938    eval ac_val=\$$ac_var
15939    case $ac_val in #(
15940    *${as_nl}*)
15941      case $ac_var in #(
15942      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15943$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15944      esac
15945      case $ac_var in #(
15946      _ | IFS | as_nl) ;; #(
15947      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15948      *) { eval $ac_var=; unset $ac_var;} ;;
15949      esac ;;
15950    esac
15951  done
15952
15953  (set) 2>&1 |
15954    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15955    *${as_nl}ac_space=\ *)
15956      # `set' does not quote correctly, so add quotes: double-quote
15957      # substitution turns \\\\ into \\, and sed turns \\ into \.
15958      sed -n \
15959	"s/'/'\\\\''/g;
15960	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15961      ;; #(
15962    *)
15963      # `set' quotes correctly as required by POSIX, so do not add quotes.
15964      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15965      ;;
15966    esac |
15967    sort
15968) |
15969  sed '
15970     /^ac_cv_env_/b end
15971     t clear
15972     :clear
15973     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15974     t end
15975     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15976     :end' >>confcache
15977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15978  if test -w "$cache_file"; then
15979    test "x$cache_file" != "x/dev/null" &&
15980      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15981$as_echo "$as_me: updating cache $cache_file" >&6;}
15982    cat confcache >$cache_file
15983  else
15984    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15985$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15986  fi
15987fi
15988rm -f confcache
15989
15990test "x$prefix" = xNONE && prefix=$ac_default_prefix
15991# Let make expand exec_prefix.
15992test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15993
15994DEFS=-DHAVE_CONFIG_H
15995
15996ac_libobjs=
15997ac_ltlibobjs=
15998U=
15999for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16000  # 1. Remove the extension, and $U if already installed.
16001  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16002  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16003  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16004  #    will be set to the directory where LIBOBJS objects are built.
16005  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16006  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16007done
16008LIBOBJS=$ac_libobjs
16009
16010LTLIBOBJS=$ac_ltlibobjs
16011
16012
16013 if test -n "$EXEEXT"; then
16014  am__EXEEXT_TRUE=
16015  am__EXEEXT_FALSE='#'
16016else
16017  am__EXEEXT_TRUE='#'
16018  am__EXEEXT_FALSE=
16019fi
16020
16021if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16022  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16023Usually this means the macro was only invoked conditionally." "$LINENO" 5
16024fi
16025if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16026  as_fn_error $? "conditional \"AMDEP\" was never defined.
16027Usually this means the macro was only invoked conditionally." "$LINENO" 5
16028fi
16029if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16030  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16031Usually this means the macro was only invoked conditionally." "$LINENO" 5
16032fi
16033if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16034  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16035Usually this means the macro was only invoked conditionally." "$LINENO" 5
16036fi
16037if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16038  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16039Usually this means the macro was only invoked conditionally." "$LINENO" 5
16040fi
16041
16042
16043: ${CONFIG_STATUS=./config.status}
16044ac_write_fail=0
16045ac_clean_files_save=$ac_clean_files
16046ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16047{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16048$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16049as_write_fail=0
16050cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16051#! $SHELL
16052# Generated by $as_me.
16053# Run this file to recreate the current configuration.
16054# Compiler output produced by configure, useful for debugging
16055# configure, is in config.log if it exists.
16056
16057debug=false
16058ac_cs_recheck=false
16059ac_cs_silent=false
16060
16061SHELL=\${CONFIG_SHELL-$SHELL}
16062export SHELL
16063_ASEOF
16064cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16065## -------------------- ##
16066## M4sh Initialization. ##
16067## -------------------- ##
16068
16069# Be more Bourne compatible
16070DUALCASE=1; export DUALCASE # for MKS sh
16071if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16072  emulate sh
16073  NULLCMD=:
16074  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16075  # is contrary to our usage.  Disable this feature.
16076  alias -g '${1+"$@"}'='"$@"'
16077  setopt NO_GLOB_SUBST
16078else
16079  case `(set -o) 2>/dev/null` in #(
16080  *posix*) :
16081    set -o posix ;; #(
16082  *) :
16083     ;;
16084esac
16085fi
16086
16087
16088as_nl='
16089'
16090export as_nl
16091# Printing a long string crashes Solaris 7 /usr/bin/printf.
16092as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16093as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16094as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16095# Prefer a ksh shell builtin over an external printf program on Solaris,
16096# but without wasting forks for bash or zsh.
16097if test -z "$BASH_VERSION$ZSH_VERSION" \
16098    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16099  as_echo='print -r --'
16100  as_echo_n='print -rn --'
16101elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16102  as_echo='printf %s\n'
16103  as_echo_n='printf %s'
16104else
16105  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16106    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16107    as_echo_n='/usr/ucb/echo -n'
16108  else
16109    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16110    as_echo_n_body='eval
16111      arg=$1;
16112      case $arg in #(
16113      *"$as_nl"*)
16114	expr "X$arg" : "X\\(.*\\)$as_nl";
16115	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16116      esac;
16117      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16118    '
16119    export as_echo_n_body
16120    as_echo_n='sh -c $as_echo_n_body as_echo'
16121  fi
16122  export as_echo_body
16123  as_echo='sh -c $as_echo_body as_echo'
16124fi
16125
16126# The user is always right.
16127if test "${PATH_SEPARATOR+set}" != set; then
16128  PATH_SEPARATOR=:
16129  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16130    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16131      PATH_SEPARATOR=';'
16132  }
16133fi
16134
16135
16136# IFS
16137# We need space, tab and new line, in precisely that order.  Quoting is
16138# there to prevent editors from complaining about space-tab.
16139# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16140# splitting by setting IFS to empty value.)
16141IFS=" ""	$as_nl"
16142
16143# Find who we are.  Look in the path if we contain no directory separator.
16144case $0 in #((
16145  *[\\/]* ) as_myself=$0 ;;
16146  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16147for as_dir in $PATH
16148do
16149  IFS=$as_save_IFS
16150  test -z "$as_dir" && as_dir=.
16151    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16152  done
16153IFS=$as_save_IFS
16154
16155     ;;
16156esac
16157# We did not find ourselves, most probably we were run as `sh COMMAND'
16158# in which case we are not to be found in the path.
16159if test "x$as_myself" = x; then
16160  as_myself=$0
16161fi
16162if test ! -f "$as_myself"; then
16163  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16164  exit 1
16165fi
16166
16167# Unset variables that we do not need and which cause bugs (e.g. in
16168# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16169# suppresses any "Segmentation fault" message there.  '((' could
16170# trigger a bug in pdksh 5.2.14.
16171for as_var in BASH_ENV ENV MAIL MAILPATH
16172do eval test x\${$as_var+set} = xset \
16173  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16174done
16175PS1='$ '
16176PS2='> '
16177PS4='+ '
16178
16179# NLS nuisances.
16180LC_ALL=C
16181export LC_ALL
16182LANGUAGE=C
16183export LANGUAGE
16184
16185# CDPATH.
16186(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16187
16188
16189# as_fn_error STATUS ERROR [LINENO LOG_FD]
16190# ----------------------------------------
16191# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16192# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16193# script with STATUS, using 1 if that was 0.
16194as_fn_error ()
16195{
16196  as_status=$1; test $as_status -eq 0 && as_status=1
16197  if test "$4"; then
16198    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16199    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16200  fi
16201  $as_echo "$as_me: error: $2" >&2
16202  as_fn_exit $as_status
16203} # as_fn_error
16204
16205
16206# as_fn_set_status STATUS
16207# -----------------------
16208# Set $? to STATUS, without forking.
16209as_fn_set_status ()
16210{
16211  return $1
16212} # as_fn_set_status
16213
16214# as_fn_exit STATUS
16215# -----------------
16216# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16217as_fn_exit ()
16218{
16219  set +e
16220  as_fn_set_status $1
16221  exit $1
16222} # as_fn_exit
16223
16224# as_fn_unset VAR
16225# ---------------
16226# Portably unset VAR.
16227as_fn_unset ()
16228{
16229  { eval $1=; unset $1;}
16230}
16231as_unset=as_fn_unset
16232# as_fn_append VAR VALUE
16233# ----------------------
16234# Append the text in VALUE to the end of the definition contained in VAR. Take
16235# advantage of any shell optimizations that allow amortized linear growth over
16236# repeated appends, instead of the typical quadratic growth present in naive
16237# implementations.
16238if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16239  eval 'as_fn_append ()
16240  {
16241    eval $1+=\$2
16242  }'
16243else
16244  as_fn_append ()
16245  {
16246    eval $1=\$$1\$2
16247  }
16248fi # as_fn_append
16249
16250# as_fn_arith ARG...
16251# ------------------
16252# Perform arithmetic evaluation on the ARGs, and store the result in the
16253# global $as_val. Take advantage of shells that can avoid forks. The arguments
16254# must be portable across $(()) and expr.
16255if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16256  eval 'as_fn_arith ()
16257  {
16258    as_val=$(( $* ))
16259  }'
16260else
16261  as_fn_arith ()
16262  {
16263    as_val=`expr "$@" || test $? -eq 1`
16264  }
16265fi # as_fn_arith
16266
16267
16268if expr a : '\(a\)' >/dev/null 2>&1 &&
16269   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16270  as_expr=expr
16271else
16272  as_expr=false
16273fi
16274
16275if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16276  as_basename=basename
16277else
16278  as_basename=false
16279fi
16280
16281if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16282  as_dirname=dirname
16283else
16284  as_dirname=false
16285fi
16286
16287as_me=`$as_basename -- "$0" ||
16288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16289	 X"$0" : 'X\(//\)$' \| \
16290	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16291$as_echo X/"$0" |
16292    sed '/^.*\/\([^/][^/]*\)\/*$/{
16293	    s//\1/
16294	    q
16295	  }
16296	  /^X\/\(\/\/\)$/{
16297	    s//\1/
16298	    q
16299	  }
16300	  /^X\/\(\/\).*/{
16301	    s//\1/
16302	    q
16303	  }
16304	  s/.*/./; q'`
16305
16306# Avoid depending upon Character Ranges.
16307as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16308as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16309as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16310as_cr_digits='0123456789'
16311as_cr_alnum=$as_cr_Letters$as_cr_digits
16312
16313ECHO_C= ECHO_N= ECHO_T=
16314case `echo -n x` in #(((((
16315-n*)
16316  case `echo 'xy\c'` in
16317  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16318  xy)  ECHO_C='\c';;
16319  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16320       ECHO_T='	';;
16321  esac;;
16322*)
16323  ECHO_N='-n';;
16324esac
16325
16326rm -f conf$$ conf$$.exe conf$$.file
16327if test -d conf$$.dir; then
16328  rm -f conf$$.dir/conf$$.file
16329else
16330  rm -f conf$$.dir
16331  mkdir conf$$.dir 2>/dev/null
16332fi
16333if (echo >conf$$.file) 2>/dev/null; then
16334  if ln -s conf$$.file conf$$ 2>/dev/null; then
16335    as_ln_s='ln -s'
16336    # ... but there are two gotchas:
16337    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16338    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16339    # In both cases, we have to default to `cp -p'.
16340    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16341      as_ln_s='cp -p'
16342  elif ln conf$$.file conf$$ 2>/dev/null; then
16343    as_ln_s=ln
16344  else
16345    as_ln_s='cp -p'
16346  fi
16347else
16348  as_ln_s='cp -p'
16349fi
16350rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16351rmdir conf$$.dir 2>/dev/null
16352
16353
16354# as_fn_mkdir_p
16355# -------------
16356# Create "$as_dir" as a directory, including parents if necessary.
16357as_fn_mkdir_p ()
16358{
16359
16360  case $as_dir in #(
16361  -*) as_dir=./$as_dir;;
16362  esac
16363  test -d "$as_dir" || eval $as_mkdir_p || {
16364    as_dirs=
16365    while :; do
16366      case $as_dir in #(
16367      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16368      *) as_qdir=$as_dir;;
16369      esac
16370      as_dirs="'$as_qdir' $as_dirs"
16371      as_dir=`$as_dirname -- "$as_dir" ||
16372$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16373	 X"$as_dir" : 'X\(//\)[^/]' \| \
16374	 X"$as_dir" : 'X\(//\)$' \| \
16375	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16376$as_echo X"$as_dir" |
16377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16378	    s//\1/
16379	    q
16380	  }
16381	  /^X\(\/\/\)[^/].*/{
16382	    s//\1/
16383	    q
16384	  }
16385	  /^X\(\/\/\)$/{
16386	    s//\1/
16387	    q
16388	  }
16389	  /^X\(\/\).*/{
16390	    s//\1/
16391	    q
16392	  }
16393	  s/.*/./; q'`
16394      test -d "$as_dir" && break
16395    done
16396    test -z "$as_dirs" || eval "mkdir $as_dirs"
16397  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16398
16399
16400} # as_fn_mkdir_p
16401if mkdir -p . 2>/dev/null; then
16402  as_mkdir_p='mkdir -p "$as_dir"'
16403else
16404  test -d ./-p && rmdir ./-p
16405  as_mkdir_p=false
16406fi
16407
16408if test -x / >/dev/null 2>&1; then
16409  as_test_x='test -x'
16410else
16411  if ls -dL / >/dev/null 2>&1; then
16412    as_ls_L_option=L
16413  else
16414    as_ls_L_option=
16415  fi
16416  as_test_x='
16417    eval sh -c '\''
16418      if test -d "$1"; then
16419	test -d "$1/.";
16420      else
16421	case $1 in #(
16422	-*)set "./$1";;
16423	esac;
16424	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16425	???[sx]*):;;*)false;;esac;fi
16426    '\'' sh
16427  '
16428fi
16429as_executable_p=$as_test_x
16430
16431# Sed expression to map a string onto a valid CPP name.
16432as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16433
16434# Sed expression to map a string onto a valid variable name.
16435as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16436
16437
16438exec 6>&1
16439## ----------------------------------- ##
16440## Main body of $CONFIG_STATUS script. ##
16441## ----------------------------------- ##
16442_ASEOF
16443test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16444
16445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16446# Save the log message, to keep $0 and so on meaningful, and to
16447# report actual input values of CONFIG_FILES etc. instead of their
16448# values after options handling.
16449ac_log="
16450This file was extended by $as_me, which was
16451generated by GNU Autoconf 2.66.  Invocation command line was
16452
16453  CONFIG_FILES    = $CONFIG_FILES
16454  CONFIG_HEADERS  = $CONFIG_HEADERS
16455  CONFIG_LINKS    = $CONFIG_LINKS
16456  CONFIG_COMMANDS = $CONFIG_COMMANDS
16457  $ $0 $@
16458
16459on `(hostname || uname -n) 2>/dev/null | sed 1q`
16460"
16461
16462_ACEOF
16463
16464case $ac_config_files in *"
16465"*) set x $ac_config_files; shift; ac_config_files=$*;;
16466esac
16467
16468case $ac_config_headers in *"
16469"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16470esac
16471
16472
16473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16474# Files that config.status was made for.
16475config_files="$ac_config_files"
16476config_headers="$ac_config_headers"
16477config_commands="$ac_config_commands"
16478
16479_ACEOF
16480
16481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16482ac_cs_usage="\
16483\`$as_me' instantiates files and other configuration actions
16484from templates according to the current configuration.  Unless the files
16485and actions are specified as TAGs, all are instantiated by default.
16486
16487Usage: $0 [OPTION]... [TAG]...
16488
16489  -h, --help       print this help, then exit
16490  -V, --version    print version number and configuration settings, then exit
16491      --config     print configuration, then exit
16492  -q, --quiet, --silent
16493                   do not print progress messages
16494  -d, --debug      don't remove temporary files
16495      --recheck    update $as_me by reconfiguring in the same conditions
16496      --file=FILE[:TEMPLATE]
16497                   instantiate the configuration file FILE
16498      --header=FILE[:TEMPLATE]
16499                   instantiate the configuration header FILE
16500
16501Configuration files:
16502$config_files
16503
16504Configuration headers:
16505$config_headers
16506
16507Configuration commands:
16508$config_commands
16509
16510Report bugs to the package provider."
16511
16512_ACEOF
16513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16515ac_cs_version="\\
16516config.status
16517configured by $0, generated by GNU Autoconf 2.66,
16518  with options \\"\$ac_cs_config\\"
16519
16520Copyright (C) 2010 Free Software Foundation, Inc.
16521This config.status script is free software; the Free Software Foundation
16522gives unlimited permission to copy, distribute and modify it."
16523
16524ac_pwd='$ac_pwd'
16525srcdir='$srcdir'
16526INSTALL='$INSTALL'
16527MKDIR_P='$MKDIR_P'
16528AWK='$AWK'
16529test -n "\$AWK" || AWK=awk
16530_ACEOF
16531
16532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16533# The default lists apply if the user does not specify any file.
16534ac_need_defaults=:
16535while test $# != 0
16536do
16537  case $1 in
16538  --*=*)
16539    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16540    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16541    ac_shift=:
16542    ;;
16543  *)
16544    ac_option=$1
16545    ac_optarg=$2
16546    ac_shift=shift
16547    ;;
16548  esac
16549
16550  case $ac_option in
16551  # Handling of the options.
16552  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16553    ac_cs_recheck=: ;;
16554  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16555    $as_echo "$ac_cs_version"; exit ;;
16556  --config | --confi | --conf | --con | --co | --c )
16557    $as_echo "$ac_cs_config"; exit ;;
16558  --debug | --debu | --deb | --de | --d | -d )
16559    debug=: ;;
16560  --file | --fil | --fi | --f )
16561    $ac_shift
16562    case $ac_optarg in
16563    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16564    esac
16565    as_fn_append CONFIG_FILES " '$ac_optarg'"
16566    ac_need_defaults=false;;
16567  --header | --heade | --head | --hea )
16568    $ac_shift
16569    case $ac_optarg in
16570    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16571    esac
16572    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16573    ac_need_defaults=false;;
16574  --he | --h)
16575    # Conflict between --help and --header
16576    as_fn_error $? "ambiguous option: \`$1'
16577Try \`$0 --help' for more information.";;
16578  --help | --hel | -h )
16579    $as_echo "$ac_cs_usage"; exit ;;
16580  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16581  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16582    ac_cs_silent=: ;;
16583
16584  # This is an error.
16585  -*) as_fn_error $? "unrecognized option: \`$1'
16586Try \`$0 --help' for more information." ;;
16587
16588  *) as_fn_append ac_config_targets " $1"
16589     ac_need_defaults=false ;;
16590
16591  esac
16592  shift
16593done
16594
16595ac_configure_extra_args=
16596
16597if $ac_cs_silent; then
16598  exec 6>/dev/null
16599  ac_configure_extra_args="$ac_configure_extra_args --silent"
16600fi
16601
16602_ACEOF
16603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16604if \$ac_cs_recheck; then
16605  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16606  shift
16607  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16608  CONFIG_SHELL='$SHELL'
16609  export CONFIG_SHELL
16610  exec "\$@"
16611fi
16612
16613_ACEOF
16614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615exec 5>>config.log
16616{
16617  echo
16618  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16619## Running $as_me. ##
16620_ASBOX
16621  $as_echo "$ac_log"
16622} >&5
16623
16624_ACEOF
16625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16626#
16627# INIT-COMMANDS
16628#
16629AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16630
16631
16632# The HP-UX ksh and POSIX shell print the target directory to stdout
16633# if CDPATH is set.
16634(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16635
16636sed_quote_subst='$sed_quote_subst'
16637double_quote_subst='$double_quote_subst'
16638delay_variable_subst='$delay_variable_subst'
16639macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16640macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16641enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16642enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16643pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16644enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16645SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16646ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16647host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16648host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16649host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16650build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16651build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16652build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16653SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16654Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16655GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16656EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16657FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16658LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16659NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16660LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16661max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16662ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16663exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16664lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16665lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16666lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16667reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16668reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16669OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16670deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16671file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16672AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16673AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16674STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16675RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16676old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16677old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16678old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16679lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16680CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16681CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16682compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16683GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16684lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16685lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16686lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16687lt_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"`'
16688objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16689MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16690lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16691lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16692lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16693lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16694lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16695need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16696DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16697NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16698LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16699OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16700OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16701libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16702shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16703extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16704archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16705enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16706export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16707whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16708compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16709old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16710old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16711archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16712archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16713module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16714module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16715with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16716allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16717no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16718hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16719hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16720hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16721hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16722hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16723hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16724hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16725hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16726inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16727link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16728fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16729always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16730export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16731exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16732include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16733prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16734file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16735variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16736need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16737need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16738version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16739runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16740shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16741shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16742libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16743library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16744soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16745install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16746postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16747postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16748finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16749finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16750hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16751sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16752sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16753hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16754enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16755enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16756enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16757old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16758striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16759compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16760predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16761postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16762predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16763postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16764compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16765LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16766reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16767reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16768old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16769compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16770GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16771lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16772lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16773lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16774lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16775lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16776archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16777enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16778export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16779whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16780compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16781old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16782old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16783archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16784archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16785module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16786module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16787with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16788allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16789no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16790hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16791hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16792hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16793hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16794hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16795hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16796hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16797hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16798inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16799link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16800fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16801always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16802export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16803exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16804include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16805prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16806file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16807hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16808compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16809predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16810postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16811predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16812postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16813compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16814
16815LTCC='$LTCC'
16816LTCFLAGS='$LTCFLAGS'
16817compiler='$compiler_DEFAULT'
16818
16819# A function that is used when there is no print builtin or printf.
16820func_fallback_echo ()
16821{
16822  eval 'cat <<_LTECHO_EOF
16823\$1
16824_LTECHO_EOF'
16825}
16826
16827# Quote evaled strings.
16828for var in SHELL \
16829ECHO \
16830SED \
16831GREP \
16832EGREP \
16833FGREP \
16834LD \
16835NM \
16836LN_S \
16837lt_SP2NL \
16838lt_NL2SP \
16839reload_flag \
16840OBJDUMP \
16841deplibs_check_method \
16842file_magic_cmd \
16843AR \
16844AR_FLAGS \
16845STRIP \
16846RANLIB \
16847CC \
16848CFLAGS \
16849compiler \
16850lt_cv_sys_global_symbol_pipe \
16851lt_cv_sys_global_symbol_to_cdecl \
16852lt_cv_sys_global_symbol_to_c_name_address \
16853lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16854lt_prog_compiler_no_builtin_flag \
16855lt_prog_compiler_wl \
16856lt_prog_compiler_pic \
16857lt_prog_compiler_static \
16858lt_cv_prog_compiler_c_o \
16859need_locks \
16860DSYMUTIL \
16861NMEDIT \
16862LIPO \
16863OTOOL \
16864OTOOL64 \
16865shrext_cmds \
16866export_dynamic_flag_spec \
16867whole_archive_flag_spec \
16868compiler_needs_object \
16869with_gnu_ld \
16870allow_undefined_flag \
16871no_undefined_flag \
16872hardcode_libdir_flag_spec \
16873hardcode_libdir_flag_spec_ld \
16874hardcode_libdir_separator \
16875fix_srcfile_path \
16876exclude_expsyms \
16877include_expsyms \
16878file_list_spec \
16879variables_saved_for_relink \
16880libname_spec \
16881library_names_spec \
16882soname_spec \
16883install_override_mode \
16884finish_eval \
16885old_striplib \
16886striplib \
16887compiler_lib_search_dirs \
16888predep_objects \
16889postdep_objects \
16890predeps \
16891postdeps \
16892compiler_lib_search_path \
16893LD_CXX \
16894reload_flag_CXX \
16895compiler_CXX \
16896lt_prog_compiler_no_builtin_flag_CXX \
16897lt_prog_compiler_wl_CXX \
16898lt_prog_compiler_pic_CXX \
16899lt_prog_compiler_static_CXX \
16900lt_cv_prog_compiler_c_o_CXX \
16901export_dynamic_flag_spec_CXX \
16902whole_archive_flag_spec_CXX \
16903compiler_needs_object_CXX \
16904with_gnu_ld_CXX \
16905allow_undefined_flag_CXX \
16906no_undefined_flag_CXX \
16907hardcode_libdir_flag_spec_CXX \
16908hardcode_libdir_flag_spec_ld_CXX \
16909hardcode_libdir_separator_CXX \
16910fix_srcfile_path_CXX \
16911exclude_expsyms_CXX \
16912include_expsyms_CXX \
16913file_list_spec_CXX \
16914compiler_lib_search_dirs_CXX \
16915predep_objects_CXX \
16916postdep_objects_CXX \
16917predeps_CXX \
16918postdeps_CXX \
16919compiler_lib_search_path_CXX; do
16920    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16921    *[\\\\\\\`\\"\\\$]*)
16922      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16923      ;;
16924    *)
16925      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16926      ;;
16927    esac
16928done
16929
16930# Double-quote double-evaled strings.
16931for var in reload_cmds \
16932old_postinstall_cmds \
16933old_postuninstall_cmds \
16934old_archive_cmds \
16935extract_expsyms_cmds \
16936old_archive_from_new_cmds \
16937old_archive_from_expsyms_cmds \
16938archive_cmds \
16939archive_expsym_cmds \
16940module_cmds \
16941module_expsym_cmds \
16942export_symbols_cmds \
16943prelink_cmds \
16944postinstall_cmds \
16945postuninstall_cmds \
16946finish_cmds \
16947sys_lib_search_path_spec \
16948sys_lib_dlsearch_path_spec \
16949reload_cmds_CXX \
16950old_archive_cmds_CXX \
16951old_archive_from_new_cmds_CXX \
16952old_archive_from_expsyms_cmds_CXX \
16953archive_cmds_CXX \
16954archive_expsym_cmds_CXX \
16955module_cmds_CXX \
16956module_expsym_cmds_CXX \
16957export_symbols_cmds_CXX \
16958prelink_cmds_CXX; do
16959    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16960    *[\\\\\\\`\\"\\\$]*)
16961      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16962      ;;
16963    *)
16964      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16965      ;;
16966    esac
16967done
16968
16969ac_aux_dir='$ac_aux_dir'
16970xsi_shell='$xsi_shell'
16971lt_shell_append='$lt_shell_append'
16972
16973# See if we are running on zsh, and set the options which allow our
16974# commands through without removal of \ escapes INIT.
16975if test -n "\${ZSH_VERSION+set}" ; then
16976   setopt NO_GLOB_SUBST
16977fi
16978
16979
16980    PACKAGE='$PACKAGE'
16981    VERSION='$VERSION'
16982    TIMESTAMP='$TIMESTAMP'
16983    RM='$RM'
16984    ofile='$ofile'
16985
16986
16987
16988
16989
16990
16991_ACEOF
16992
16993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16994
16995# Handling of arguments.
16996for ac_config_target in $ac_config_targets
16997do
16998  case $ac_config_target in
16999    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17000    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17001    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17002    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17003    "mpplay/Makefile") CONFIG_FILES="$CONFIG_FILES mpplay/Makefile" ;;
17004    "mp123/Makefile") CONFIG_FILES="$CONFIG_FILES mp123/Makefile" ;;
17005
17006  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17007  esac
17008done
17009
17010
17011# If the user did not use the arguments to specify the items to instantiate,
17012# then the envvar interface is used.  Set only those that are not.
17013# We use the long form for the default assignment because of an extremely
17014# bizarre bug on SunOS 4.1.3.
17015if $ac_need_defaults; then
17016  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17017  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17018  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17019fi
17020
17021# Have a temporary directory for convenience.  Make it in the build tree
17022# simply because there is no reason against having it here, and in addition,
17023# creating and moving files from /tmp can sometimes cause problems.
17024# Hook for its removal unless debugging.
17025# Note that there is a small window in which the directory will not be cleaned:
17026# after its creation but before its name has been assigned to `$tmp'.
17027$debug ||
17028{
17029  tmp=
17030  trap 'exit_status=$?
17031  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17032' 0
17033  trap 'as_fn_exit 1' 1 2 13 15
17034}
17035# Create a (secure) tmp directory for tmp files.
17036
17037{
17038  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17039  test -n "$tmp" && test -d "$tmp"
17040}  ||
17041{
17042  tmp=./conf$$-$RANDOM
17043  (umask 077 && mkdir "$tmp")
17044} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17045
17046# Set up the scripts for CONFIG_FILES section.
17047# No need to generate them if there are no CONFIG_FILES.
17048# This happens for instance with `./config.status config.h'.
17049if test -n "$CONFIG_FILES"; then
17050
17051
17052ac_cr=`echo X | tr X '\015'`
17053# On cygwin, bash can eat \r inside `` if the user requested igncr.
17054# But we know of no other shell where ac_cr would be empty at this
17055# point, so we can use a bashism as a fallback.
17056if test "x$ac_cr" = x; then
17057  eval ac_cr=\$\'\\r\'
17058fi
17059ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17060if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17061  ac_cs_awk_cr='\\r'
17062else
17063  ac_cs_awk_cr=$ac_cr
17064fi
17065
17066echo 'BEGIN {' >"$tmp/subs1.awk" &&
17067_ACEOF
17068
17069
17070{
17071  echo "cat >conf$$subs.awk <<_ACEOF" &&
17072  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17073  echo "_ACEOF"
17074} >conf$$subs.sh ||
17075  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17076ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17077ac_delim='%!_!# '
17078for ac_last_try in false false false false false :; do
17079  . ./conf$$subs.sh ||
17080    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17081
17082  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17083  if test $ac_delim_n = $ac_delim_num; then
17084    break
17085  elif $ac_last_try; then
17086    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17087  else
17088    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17089  fi
17090done
17091rm -f conf$$subs.sh
17092
17093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17095_ACEOF
17096sed -n '
17097h
17098s/^/S["/; s/!.*/"]=/
17099p
17100g
17101s/^[^!]*!//
17102:repl
17103t repl
17104s/'"$ac_delim"'$//
17105t delim
17106:nl
17107h
17108s/\(.\{148\}\)..*/\1/
17109t more1
17110s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17111p
17112n
17113b repl
17114:more1
17115s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17116p
17117g
17118s/.\{148\}//
17119t nl
17120:delim
17121h
17122s/\(.\{148\}\)..*/\1/
17123t more2
17124s/["\\]/\\&/g; s/^/"/; s/$/"/
17125p
17126b
17127:more2
17128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17129p
17130g
17131s/.\{148\}//
17132t delim
17133' <conf$$subs.awk | sed '
17134/^[^""]/{
17135  N
17136  s/\n//
17137}
17138' >>$CONFIG_STATUS || ac_write_fail=1
17139rm -f conf$$subs.awk
17140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17141_ACAWK
17142cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17143  for (key in S) S_is_set[key] = 1
17144  FS = ""
17145
17146}
17147{
17148  line = $ 0
17149  nfields = split(line, field, "@")
17150  substed = 0
17151  len = length(field[1])
17152  for (i = 2; i < nfields; i++) {
17153    key = field[i]
17154    keylen = length(key)
17155    if (S_is_set[key]) {
17156      value = S[key]
17157      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17158      len += length(value) + length(field[++i])
17159      substed = 1
17160    } else
17161      len += 1 + keylen
17162  }
17163
17164  print line
17165}
17166
17167_ACAWK
17168_ACEOF
17169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17170if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17171  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17172else
17173  cat
17174fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17175  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17176_ACEOF
17177
17178# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17179# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17180# trailing colons and then remove the whole line if VPATH becomes empty
17181# (actually we leave an empty line to preserve line numbers).
17182if test "x$srcdir" = x.; then
17183  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17184h
17185s///
17186s/^/:/
17187s/[	 ]*$/:/
17188s/:\$(srcdir):/:/g
17189s/:\${srcdir}:/:/g
17190s/:@srcdir@:/:/g
17191s/^:*//
17192s/:*$//
17193x
17194s/\(=[	 ]*\).*/\1/
17195G
17196s/\n//
17197s/^[^=]*=[	 ]*$//
17198}'
17199fi
17200
17201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17202fi # test -n "$CONFIG_FILES"
17203
17204# Set up the scripts for CONFIG_HEADERS section.
17205# No need to generate them if there are no CONFIG_HEADERS.
17206# This happens for instance with `./config.status Makefile'.
17207if test -n "$CONFIG_HEADERS"; then
17208cat >"$tmp/defines.awk" <<\_ACAWK ||
17209BEGIN {
17210_ACEOF
17211
17212# Transform confdefs.h into an awk script `defines.awk', embedded as
17213# here-document in config.status, that substitutes the proper values into
17214# config.h.in to produce config.h.
17215
17216# Create a delimiter string that does not exist in confdefs.h, to ease
17217# handling of long lines.
17218ac_delim='%!_!# '
17219for ac_last_try in false false :; do
17220  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17221  if test -z "$ac_t"; then
17222    break
17223  elif $ac_last_try; then
17224    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17225  else
17226    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17227  fi
17228done
17229
17230# For the awk script, D is an array of macro values keyed by name,
17231# likewise P contains macro parameters if any.  Preserve backslash
17232# newline sequences.
17233
17234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17235sed -n '
17236s/.\{148\}/&'"$ac_delim"'/g
17237t rset
17238:rset
17239s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17240t def
17241d
17242:def
17243s/\\$//
17244t bsnl
17245s/["\\]/\\&/g
17246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17247D["\1"]=" \3"/p
17248s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17249d
17250:bsnl
17251s/["\\]/\\&/g
17252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17253D["\1"]=" \3\\\\\\n"\\/p
17254t cont
17255s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17256t cont
17257d
17258:cont
17259n
17260s/.\{148\}/&'"$ac_delim"'/g
17261t clear
17262:clear
17263s/\\$//
17264t bsnlc
17265s/["\\]/\\&/g; s/^/"/; s/$/"/p
17266d
17267:bsnlc
17268s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17269b cont
17270' <confdefs.h | sed '
17271s/'"$ac_delim"'/"\\\
17272"/g' >>$CONFIG_STATUS || ac_write_fail=1
17273
17274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17275  for (key in D) D_is_set[key] = 1
17276  FS = ""
17277}
17278/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17279  line = \$ 0
17280  split(line, arg, " ")
17281  if (arg[1] == "#") {
17282    defundef = arg[2]
17283    mac1 = arg[3]
17284  } else {
17285    defundef = substr(arg[1], 2)
17286    mac1 = arg[2]
17287  }
17288  split(mac1, mac2, "(") #)
17289  macro = mac2[1]
17290  prefix = substr(line, 1, index(line, defundef) - 1)
17291  if (D_is_set[macro]) {
17292    # Preserve the white space surrounding the "#".
17293    print prefix "define", macro P[macro] D[macro]
17294    next
17295  } else {
17296    # Replace #undef with comments.  This is necessary, for example,
17297    # in the case of _POSIX_SOURCE, which is predefined and required
17298    # on some systems where configure will not decide to define it.
17299    if (defundef == "undef") {
17300      print "/*", prefix defundef, macro, "*/"
17301      next
17302    }
17303  }
17304}
17305{ print }
17306_ACAWK
17307_ACEOF
17308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17310fi # test -n "$CONFIG_HEADERS"
17311
17312
17313eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17314shift
17315for ac_tag
17316do
17317  case $ac_tag in
17318  :[FHLC]) ac_mode=$ac_tag; continue;;
17319  esac
17320  case $ac_mode$ac_tag in
17321  :[FHL]*:*);;
17322  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17323  :[FH]-) ac_tag=-:-;;
17324  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17325  esac
17326  ac_save_IFS=$IFS
17327  IFS=:
17328  set x $ac_tag
17329  IFS=$ac_save_IFS
17330  shift
17331  ac_file=$1
17332  shift
17333
17334  case $ac_mode in
17335  :L) ac_source=$1;;
17336  :[FH])
17337    ac_file_inputs=
17338    for ac_f
17339    do
17340      case $ac_f in
17341      -) ac_f="$tmp/stdin";;
17342      *) # Look for the file first in the build tree, then in the source tree
17343	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17344	 # because $ac_f cannot contain `:'.
17345	 test -f "$ac_f" ||
17346	   case $ac_f in
17347	   [\\/$]*) false;;
17348	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17349	   esac ||
17350	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17351      esac
17352      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17353      as_fn_append ac_file_inputs " '$ac_f'"
17354    done
17355
17356    # Let's still pretend it is `configure' which instantiates (i.e., don't
17357    # use $as_me), people would be surprised to read:
17358    #    /* config.h.  Generated by config.status.  */
17359    configure_input='Generated from '`
17360	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17361	`' by configure.'
17362    if test x"$ac_file" != x-; then
17363      configure_input="$ac_file.  $configure_input"
17364      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17365$as_echo "$as_me: creating $ac_file" >&6;}
17366    fi
17367    # Neutralize special characters interpreted by sed in replacement strings.
17368    case $configure_input in #(
17369    *\&* | *\|* | *\\* )
17370       ac_sed_conf_input=`$as_echo "$configure_input" |
17371       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17372    *) ac_sed_conf_input=$configure_input;;
17373    esac
17374
17375    case $ac_tag in
17376    *:-:* | *:-) cat >"$tmp/stdin" \
17377      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17378    esac
17379    ;;
17380  esac
17381
17382  ac_dir=`$as_dirname -- "$ac_file" ||
17383$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17384	 X"$ac_file" : 'X\(//\)[^/]' \| \
17385	 X"$ac_file" : 'X\(//\)$' \| \
17386	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17387$as_echo X"$ac_file" |
17388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17389	    s//\1/
17390	    q
17391	  }
17392	  /^X\(\/\/\)[^/].*/{
17393	    s//\1/
17394	    q
17395	  }
17396	  /^X\(\/\/\)$/{
17397	    s//\1/
17398	    q
17399	  }
17400	  /^X\(\/\).*/{
17401	    s//\1/
17402	    q
17403	  }
17404	  s/.*/./; q'`
17405  as_dir="$ac_dir"; as_fn_mkdir_p
17406  ac_builddir=.
17407
17408case "$ac_dir" in
17409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17410*)
17411  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17412  # A ".." for each directory in $ac_dir_suffix.
17413  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17414  case $ac_top_builddir_sub in
17415  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17416  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17417  esac ;;
17418esac
17419ac_abs_top_builddir=$ac_pwd
17420ac_abs_builddir=$ac_pwd$ac_dir_suffix
17421# for backward compatibility:
17422ac_top_builddir=$ac_top_build_prefix
17423
17424case $srcdir in
17425  .)  # We are building in place.
17426    ac_srcdir=.
17427    ac_top_srcdir=$ac_top_builddir_sub
17428    ac_abs_top_srcdir=$ac_pwd ;;
17429  [\\/]* | ?:[\\/]* )  # Absolute name.
17430    ac_srcdir=$srcdir$ac_dir_suffix;
17431    ac_top_srcdir=$srcdir
17432    ac_abs_top_srcdir=$srcdir ;;
17433  *) # Relative name.
17434    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17435    ac_top_srcdir=$ac_top_build_prefix$srcdir
17436    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17437esac
17438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17439
17440
17441  case $ac_mode in
17442  :F)
17443  #
17444  # CONFIG_FILE
17445  #
17446
17447  case $INSTALL in
17448  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17449  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17450  esac
17451  ac_MKDIR_P=$MKDIR_P
17452  case $MKDIR_P in
17453  [\\/$]* | ?:[\\/]* ) ;;
17454  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17455  esac
17456_ACEOF
17457
17458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17459# If the template does not know about datarootdir, expand it.
17460# FIXME: This hack should be removed a few years after 2.60.
17461ac_datarootdir_hack=; ac_datarootdir_seen=
17462ac_sed_dataroot='
17463/datarootdir/ {
17464  p
17465  q
17466}
17467/@datadir@/p
17468/@docdir@/p
17469/@infodir@/p
17470/@localedir@/p
17471/@mandir@/p'
17472case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17473*datarootdir*) ac_datarootdir_seen=yes;;
17474*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17476$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17477_ACEOF
17478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17479  ac_datarootdir_hack='
17480  s&@datadir@&$datadir&g
17481  s&@docdir@&$docdir&g
17482  s&@infodir@&$infodir&g
17483  s&@localedir@&$localedir&g
17484  s&@mandir@&$mandir&g
17485  s&\\\${datarootdir}&$datarootdir&g' ;;
17486esac
17487_ACEOF
17488
17489# Neutralize VPATH when `$srcdir' = `.'.
17490# Shell code in configure.ac might set extrasub.
17491# FIXME: do we really want to maintain this feature?
17492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17493ac_sed_extra="$ac_vpsub
17494$extrasub
17495_ACEOF
17496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17497:t
17498/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17499s|@configure_input@|$ac_sed_conf_input|;t t
17500s&@top_builddir@&$ac_top_builddir_sub&;t t
17501s&@top_build_prefix@&$ac_top_build_prefix&;t t
17502s&@srcdir@&$ac_srcdir&;t t
17503s&@abs_srcdir@&$ac_abs_srcdir&;t t
17504s&@top_srcdir@&$ac_top_srcdir&;t t
17505s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17506s&@builddir@&$ac_builddir&;t t
17507s&@abs_builddir@&$ac_abs_builddir&;t t
17508s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17509s&@INSTALL@&$ac_INSTALL&;t t
17510s&@MKDIR_P@&$ac_MKDIR_P&;t t
17511$ac_datarootdir_hack
17512"
17513eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17514  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17515
17516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17517  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17518  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17519  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17520which seems to be undefined.  Please make sure it is defined" >&5
17521$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17522which seems to be undefined.  Please make sure it is defined" >&2;}
17523
17524  rm -f "$tmp/stdin"
17525  case $ac_file in
17526  -) cat "$tmp/out" && rm -f "$tmp/out";;
17527  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17528  esac \
17529  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17530 ;;
17531  :H)
17532  #
17533  # CONFIG_HEADER
17534  #
17535  if test x"$ac_file" != x-; then
17536    {
17537      $as_echo "/* $configure_input  */" \
17538      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17539    } >"$tmp/config.h" \
17540      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17541    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17542      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17543$as_echo "$as_me: $ac_file is unchanged" >&6;}
17544    else
17545      rm -f "$ac_file"
17546      mv "$tmp/config.h" "$ac_file" \
17547	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17548    fi
17549  else
17550    $as_echo "/* $configure_input  */" \
17551      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17552      || as_fn_error $? "could not create -" "$LINENO" 5
17553  fi
17554# Compute "$ac_file"'s index in $config_headers.
17555_am_arg="$ac_file"
17556_am_stamp_count=1
17557for _am_header in $config_headers :; do
17558  case $_am_header in
17559    $_am_arg | $_am_arg:* )
17560      break ;;
17561    * )
17562      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17563  esac
17564done
17565echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17566$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17567	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17568	 X"$_am_arg" : 'X\(//\)$' \| \
17569	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17570$as_echo X"$_am_arg" |
17571    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17572	    s//\1/
17573	    q
17574	  }
17575	  /^X\(\/\/\)[^/].*/{
17576	    s//\1/
17577	    q
17578	  }
17579	  /^X\(\/\/\)$/{
17580	    s//\1/
17581	    q
17582	  }
17583	  /^X\(\/\).*/{
17584	    s//\1/
17585	    q
17586	  }
17587	  s/.*/./; q'`/stamp-h$_am_stamp_count
17588 ;;
17589
17590  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17591$as_echo "$as_me: executing $ac_file commands" >&6;}
17592 ;;
17593  esac
17594
17595
17596  case $ac_file$ac_mode in
17597    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17598  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17599  # are listed without --file.  Let's play safe and only enable the eval
17600  # if we detect the quoting.
17601  case $CONFIG_FILES in
17602  *\'*) eval set x "$CONFIG_FILES" ;;
17603  *)   set x $CONFIG_FILES ;;
17604  esac
17605  shift
17606  for mf
17607  do
17608    # Strip MF so we end up with the name of the file.
17609    mf=`echo "$mf" | sed -e 's/:.*$//'`
17610    # Check whether this is an Automake generated Makefile or not.
17611    # We used to match only the files named `Makefile.in', but
17612    # some people rename them; so instead we look at the file content.
17613    # Grep'ing the first line is not enough: some people post-process
17614    # each Makefile.in and add a new line on top of each file to say so.
17615    # Grep'ing the whole file is not good either: AIX grep has a line
17616    # limit of 2048, but all sed's we know have understand at least 4000.
17617    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17618      dirpart=`$as_dirname -- "$mf" ||
17619$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17620	 X"$mf" : 'X\(//\)[^/]' \| \
17621	 X"$mf" : 'X\(//\)$' \| \
17622	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17623$as_echo X"$mf" |
17624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17625	    s//\1/
17626	    q
17627	  }
17628	  /^X\(\/\/\)[^/].*/{
17629	    s//\1/
17630	    q
17631	  }
17632	  /^X\(\/\/\)$/{
17633	    s//\1/
17634	    q
17635	  }
17636	  /^X\(\/\).*/{
17637	    s//\1/
17638	    q
17639	  }
17640	  s/.*/./; q'`
17641    else
17642      continue
17643    fi
17644    # Extract the definition of DEPDIR, am__include, and am__quote
17645    # from the Makefile without running `make'.
17646    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17647    test -z "$DEPDIR" && continue
17648    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17649    test -z "am__include" && continue
17650    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17651    # When using ansi2knr, U may be empty or an underscore; expand it
17652    U=`sed -n 's/^U = //p' < "$mf"`
17653    # Find all dependency output files, they are included files with
17654    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17655    # simplest approach to changing $(DEPDIR) to its actual value in the
17656    # expansion.
17657    for file in `sed -n "
17658      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17659	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17660      # Make sure the directory exists.
17661      test -f "$dirpart/$file" && continue
17662      fdir=`$as_dirname -- "$file" ||
17663$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17664	 X"$file" : 'X\(//\)[^/]' \| \
17665	 X"$file" : 'X\(//\)$' \| \
17666	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17667$as_echo X"$file" |
17668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17669	    s//\1/
17670	    q
17671	  }
17672	  /^X\(\/\/\)[^/].*/{
17673	    s//\1/
17674	    q
17675	  }
17676	  /^X\(\/\/\)$/{
17677	    s//\1/
17678	    q
17679	  }
17680	  /^X\(\/\).*/{
17681	    s//\1/
17682	    q
17683	  }
17684	  s/.*/./; q'`
17685      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17686      # echo "creating $dirpart/$file"
17687      echo '# dummy' > "$dirpart/$file"
17688    done
17689  done
17690}
17691 ;;
17692    "libtool":C)
17693
17694    # See if we are running on zsh, and set the options which allow our
17695    # commands through without removal of \ escapes.
17696    if test -n "${ZSH_VERSION+set}" ; then
17697      setopt NO_GLOB_SUBST
17698    fi
17699
17700    cfgfile="${ofile}T"
17701    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17702    $RM "$cfgfile"
17703
17704    cat <<_LT_EOF >> "$cfgfile"
17705#! $SHELL
17706
17707# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17708# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17709# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17710# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17711#
17712#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17713#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17714#                 Inc.
17715#   Written by Gordon Matzigkeit, 1996
17716#
17717#   This file is part of GNU Libtool.
17718#
17719# GNU Libtool is free software; you can redistribute it and/or
17720# modify it under the terms of the GNU General Public License as
17721# published by the Free Software Foundation; either version 2 of
17722# the License, or (at your option) any later version.
17723#
17724# As a special exception to the GNU General Public License,
17725# if you distribute this file as part of a program or library that
17726# is built using GNU Libtool, you may include this file under the
17727# same distribution terms that you use for the rest of that program.
17728#
17729# GNU Libtool is distributed in the hope that it will be useful,
17730# but WITHOUT ANY WARRANTY; without even the implied warranty of
17731# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17732# GNU General Public License for more details.
17733#
17734# You should have received a copy of the GNU General Public License
17735# along with GNU Libtool; see the file COPYING.  If not, a copy
17736# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17737# obtained by writing to the Free Software Foundation, Inc.,
17738# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17739
17740
17741# The names of the tagged configurations supported by this script.
17742available_tags="CXX "
17743
17744# ### BEGIN LIBTOOL CONFIG
17745
17746# Which release of libtool.m4 was used?
17747macro_version=$macro_version
17748macro_revision=$macro_revision
17749
17750# Whether or not to build shared libraries.
17751build_libtool_libs=$enable_shared
17752
17753# Whether or not to build static libraries.
17754build_old_libs=$enable_static
17755
17756# What type of objects to build.
17757pic_mode=$pic_mode
17758
17759# Whether or not to optimize for fast installation.
17760fast_install=$enable_fast_install
17761
17762# Shell to use when invoking shell scripts.
17763SHELL=$lt_SHELL
17764
17765# An echo program that protects backslashes.
17766ECHO=$lt_ECHO
17767
17768# The host system.
17769host_alias=$host_alias
17770host=$host
17771host_os=$host_os
17772
17773# The build system.
17774build_alias=$build_alias
17775build=$build
17776build_os=$build_os
17777
17778# A sed program that does not truncate output.
17779SED=$lt_SED
17780
17781# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17782Xsed="\$SED -e 1s/^X//"
17783
17784# A grep program that handles long lines.
17785GREP=$lt_GREP
17786
17787# An ERE matcher.
17788EGREP=$lt_EGREP
17789
17790# A literal string matcher.
17791FGREP=$lt_FGREP
17792
17793# A BSD- or MS-compatible name lister.
17794NM=$lt_NM
17795
17796# Whether we need soft or hard links.
17797LN_S=$lt_LN_S
17798
17799# What is the maximum length of a command?
17800max_cmd_len=$max_cmd_len
17801
17802# Object file suffix (normally "o").
17803objext=$ac_objext
17804
17805# Executable file suffix (normally "").
17806exeext=$exeext
17807
17808# whether the shell understands "unset".
17809lt_unset=$lt_unset
17810
17811# turn spaces into newlines.
17812SP2NL=$lt_lt_SP2NL
17813
17814# turn newlines into spaces.
17815NL2SP=$lt_lt_NL2SP
17816
17817# An object symbol dumper.
17818OBJDUMP=$lt_OBJDUMP
17819
17820# Method to check whether dependent libraries are shared objects.
17821deplibs_check_method=$lt_deplibs_check_method
17822
17823# Command to use when deplibs_check_method == "file_magic".
17824file_magic_cmd=$lt_file_magic_cmd
17825
17826# The archiver.
17827AR=$lt_AR
17828AR_FLAGS=$lt_AR_FLAGS
17829
17830# A symbol stripping program.
17831STRIP=$lt_STRIP
17832
17833# Commands used to install an old-style archive.
17834RANLIB=$lt_RANLIB
17835old_postinstall_cmds=$lt_old_postinstall_cmds
17836old_postuninstall_cmds=$lt_old_postuninstall_cmds
17837
17838# Whether to use a lock for old archive extraction.
17839lock_old_archive_extraction=$lock_old_archive_extraction
17840
17841# A C compiler.
17842LTCC=$lt_CC
17843
17844# LTCC compiler flags.
17845LTCFLAGS=$lt_CFLAGS
17846
17847# Take the output of nm and produce a listing of raw symbols and C names.
17848global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17849
17850# Transform the output of nm in a proper C declaration.
17851global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17852
17853# Transform the output of nm in a C name address pair.
17854global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17855
17856# Transform the output of nm in a C name address pair when lib prefix is needed.
17857global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17858
17859# The name of the directory that contains temporary libtool files.
17860objdir=$objdir
17861
17862# Used to examine libraries when file_magic_cmd begins with "file".
17863MAGIC_CMD=$MAGIC_CMD
17864
17865# Must we lock files when doing compilation?
17866need_locks=$lt_need_locks
17867
17868# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17869DSYMUTIL=$lt_DSYMUTIL
17870
17871# Tool to change global to local symbols on Mac OS X.
17872NMEDIT=$lt_NMEDIT
17873
17874# Tool to manipulate fat objects and archives on Mac OS X.
17875LIPO=$lt_LIPO
17876
17877# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17878OTOOL=$lt_OTOOL
17879
17880# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17881OTOOL64=$lt_OTOOL64
17882
17883# Old archive suffix (normally "a").
17884libext=$libext
17885
17886# Shared library suffix (normally ".so").
17887shrext_cmds=$lt_shrext_cmds
17888
17889# The commands to extract the exported symbol list from a shared archive.
17890extract_expsyms_cmds=$lt_extract_expsyms_cmds
17891
17892# Variables whose values should be saved in libtool wrapper scripts and
17893# restored at link time.
17894variables_saved_for_relink=$lt_variables_saved_for_relink
17895
17896# Do we need the "lib" prefix for modules?
17897need_lib_prefix=$need_lib_prefix
17898
17899# Do we need a version for libraries?
17900need_version=$need_version
17901
17902# Library versioning type.
17903version_type=$version_type
17904
17905# Shared library runtime path variable.
17906runpath_var=$runpath_var
17907
17908# Shared library path variable.
17909shlibpath_var=$shlibpath_var
17910
17911# Is shlibpath searched before the hard-coded library search path?
17912shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17913
17914# Format of library name prefix.
17915libname_spec=$lt_libname_spec
17916
17917# List of archive names.  First name is the real one, the rest are links.
17918# The last name is the one that the linker finds with -lNAME
17919library_names_spec=$lt_library_names_spec
17920
17921# The coded name of the library, if different from the real name.
17922soname_spec=$lt_soname_spec
17923
17924# Permission mode override for installation of shared libraries.
17925install_override_mode=$lt_install_override_mode
17926
17927# Command to use after installation of a shared archive.
17928postinstall_cmds=$lt_postinstall_cmds
17929
17930# Command to use after uninstallation of a shared archive.
17931postuninstall_cmds=$lt_postuninstall_cmds
17932
17933# Commands used to finish a libtool library installation in a directory.
17934finish_cmds=$lt_finish_cmds
17935
17936# As "finish_cmds", except a single script fragment to be evaled but
17937# not shown.
17938finish_eval=$lt_finish_eval
17939
17940# Whether we should hardcode library paths into libraries.
17941hardcode_into_libs=$hardcode_into_libs
17942
17943# Compile-time system search path for libraries.
17944sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17945
17946# Run-time system search path for libraries.
17947sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17948
17949# Whether dlopen is supported.
17950dlopen_support=$enable_dlopen
17951
17952# Whether dlopen of programs is supported.
17953dlopen_self=$enable_dlopen_self
17954
17955# Whether dlopen of statically linked programs is supported.
17956dlopen_self_static=$enable_dlopen_self_static
17957
17958# Commands to strip libraries.
17959old_striplib=$lt_old_striplib
17960striplib=$lt_striplib
17961
17962
17963# The linker used to build libraries.
17964LD=$lt_LD
17965
17966# How to create reloadable object files.
17967reload_flag=$lt_reload_flag
17968reload_cmds=$lt_reload_cmds
17969
17970# Commands used to build an old-style archive.
17971old_archive_cmds=$lt_old_archive_cmds
17972
17973# A language specific compiler.
17974CC=$lt_compiler
17975
17976# Is the compiler the GNU compiler?
17977with_gcc=$GCC
17978
17979# Compiler flag to turn off builtin functions.
17980no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17981
17982# How to pass a linker flag through the compiler.
17983wl=$lt_lt_prog_compiler_wl
17984
17985# Additional compiler flags for building library objects.
17986pic_flag=$lt_lt_prog_compiler_pic
17987
17988# Compiler flag to prevent dynamic linking.
17989link_static_flag=$lt_lt_prog_compiler_static
17990
17991# Does compiler simultaneously support -c and -o options?
17992compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17993
17994# Whether or not to add -lc for building shared libraries.
17995build_libtool_need_lc=$archive_cmds_need_lc
17996
17997# Whether or not to disallow shared libs when runtime libs are static.
17998allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17999
18000# Compiler flag to allow reflexive dlopens.
18001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18002
18003# Compiler flag to generate shared objects directly from archives.
18004whole_archive_flag_spec=$lt_whole_archive_flag_spec
18005
18006# Whether the compiler copes with passing no objects directly.
18007compiler_needs_object=$lt_compiler_needs_object
18008
18009# Create an old-style archive from a shared archive.
18010old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18011
18012# Create a temporary old-style archive to link instead of a shared archive.
18013old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18014
18015# Commands used to build a shared archive.
18016archive_cmds=$lt_archive_cmds
18017archive_expsym_cmds=$lt_archive_expsym_cmds
18018
18019# Commands used to build a loadable module if different from building
18020# a shared archive.
18021module_cmds=$lt_module_cmds
18022module_expsym_cmds=$lt_module_expsym_cmds
18023
18024# Whether we are building with GNU ld or not.
18025with_gnu_ld=$lt_with_gnu_ld
18026
18027# Flag that allows shared libraries with undefined symbols to be built.
18028allow_undefined_flag=$lt_allow_undefined_flag
18029
18030# Flag that enforces no undefined symbols.
18031no_undefined_flag=$lt_no_undefined_flag
18032
18033# Flag to hardcode \$libdir into a binary during linking.
18034# This must work even if \$libdir does not exist
18035hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18036
18037# If ld is used when linking, flag to hardcode \$libdir into a binary
18038# during linking.  This must work even if \$libdir does not exist.
18039hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18040
18041# Whether we need a single "-rpath" flag with a separated argument.
18042hardcode_libdir_separator=$lt_hardcode_libdir_separator
18043
18044# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18045# DIR into the resulting binary.
18046hardcode_direct=$hardcode_direct
18047
18048# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18049# DIR into the resulting binary and the resulting library dependency is
18050# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18051# library is relocated.
18052hardcode_direct_absolute=$hardcode_direct_absolute
18053
18054# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18055# into the resulting binary.
18056hardcode_minus_L=$hardcode_minus_L
18057
18058# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18059# into the resulting binary.
18060hardcode_shlibpath_var=$hardcode_shlibpath_var
18061
18062# Set to "yes" if building a shared library automatically hardcodes DIR
18063# into the library and all subsequent libraries and executables linked
18064# against it.
18065hardcode_automatic=$hardcode_automatic
18066
18067# Set to yes if linker adds runtime paths of dependent libraries
18068# to runtime path list.
18069inherit_rpath=$inherit_rpath
18070
18071# Whether libtool must link a program against all its dependency libraries.
18072link_all_deplibs=$link_all_deplibs
18073
18074# Fix the shell variable \$srcfile for the compiler.
18075fix_srcfile_path=$lt_fix_srcfile_path
18076
18077# Set to "yes" if exported symbols are required.
18078always_export_symbols=$always_export_symbols
18079
18080# The commands to list exported symbols.
18081export_symbols_cmds=$lt_export_symbols_cmds
18082
18083# Symbols that should not be listed in the preloaded symbols.
18084exclude_expsyms=$lt_exclude_expsyms
18085
18086# Symbols that must always be exported.
18087include_expsyms=$lt_include_expsyms
18088
18089# Commands necessary for linking programs (against libraries) with templates.
18090prelink_cmds=$lt_prelink_cmds
18091
18092# Specify filename containing input files.
18093file_list_spec=$lt_file_list_spec
18094
18095# How to hardcode a shared library path into an executable.
18096hardcode_action=$hardcode_action
18097
18098# The directories searched by this compiler when creating a shared library.
18099compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18100
18101# Dependencies to place before and after the objects being linked to
18102# create a shared library.
18103predep_objects=$lt_predep_objects
18104postdep_objects=$lt_postdep_objects
18105predeps=$lt_predeps
18106postdeps=$lt_postdeps
18107
18108# The library search path used internally by the compiler when linking
18109# a shared library.
18110compiler_lib_search_path=$lt_compiler_lib_search_path
18111
18112# ### END LIBTOOL CONFIG
18113
18114_LT_EOF
18115
18116  case $host_os in
18117  aix3*)
18118    cat <<\_LT_EOF >> "$cfgfile"
18119# AIX sometimes has problems with the GCC collect2 program.  For some
18120# reason, if we set the COLLECT_NAMES environment variable, the problems
18121# vanish in a puff of smoke.
18122if test "X${COLLECT_NAMES+set}" != Xset; then
18123  COLLECT_NAMES=
18124  export COLLECT_NAMES
18125fi
18126_LT_EOF
18127    ;;
18128  esac
18129
18130
18131ltmain="$ac_aux_dir/ltmain.sh"
18132
18133
18134  # We use sed instead of cat because bash on DJGPP gets confused if
18135  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18136  # text mode, it properly converts lines to CR/LF.  This bash problem
18137  # is reportedly fixed, but why not run on old versions too?
18138  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18139    || (rm -f "$cfgfile"; exit 1)
18140
18141  case $xsi_shell in
18142  yes)
18143    cat << \_LT_EOF >> "$cfgfile"
18144
18145# func_dirname file append nondir_replacement
18146# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18147# otherwise set result to NONDIR_REPLACEMENT.
18148func_dirname ()
18149{
18150  case ${1} in
18151    */*) func_dirname_result="${1%/*}${2}" ;;
18152    *  ) func_dirname_result="${3}" ;;
18153  esac
18154}
18155
18156# func_basename file
18157func_basename ()
18158{
18159  func_basename_result="${1##*/}"
18160}
18161
18162# func_dirname_and_basename file append nondir_replacement
18163# perform func_basename and func_dirname in a single function
18164# call:
18165#   dirname:  Compute the dirname of FILE.  If nonempty,
18166#             add APPEND to the result, otherwise set result
18167#             to NONDIR_REPLACEMENT.
18168#             value returned in "$func_dirname_result"
18169#   basename: Compute filename of FILE.
18170#             value retuned in "$func_basename_result"
18171# Implementation must be kept synchronized with func_dirname
18172# and func_basename. For efficiency, we do not delegate to
18173# those functions but instead duplicate the functionality here.
18174func_dirname_and_basename ()
18175{
18176  case ${1} in
18177    */*) func_dirname_result="${1%/*}${2}" ;;
18178    *  ) func_dirname_result="${3}" ;;
18179  esac
18180  func_basename_result="${1##*/}"
18181}
18182
18183# func_stripname prefix suffix name
18184# strip PREFIX and SUFFIX off of NAME.
18185# PREFIX and SUFFIX must not contain globbing or regex special
18186# characters, hashes, percent signs, but SUFFIX may contain a leading
18187# dot (in which case that matches only a dot).
18188func_stripname ()
18189{
18190  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18191  # positional parameters, so assign one to ordinary parameter first.
18192  func_stripname_result=${3}
18193  func_stripname_result=${func_stripname_result#"${1}"}
18194  func_stripname_result=${func_stripname_result%"${2}"}
18195}
18196
18197# func_opt_split
18198func_opt_split ()
18199{
18200  func_opt_split_opt=${1%%=*}
18201  func_opt_split_arg=${1#*=}
18202}
18203
18204# func_lo2o object
18205func_lo2o ()
18206{
18207  case ${1} in
18208    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18209    *)    func_lo2o_result=${1} ;;
18210  esac
18211}
18212
18213# func_xform libobj-or-source
18214func_xform ()
18215{
18216  func_xform_result=${1%.*}.lo
18217}
18218
18219# func_arith arithmetic-term...
18220func_arith ()
18221{
18222  func_arith_result=$(( $* ))
18223}
18224
18225# func_len string
18226# STRING may not start with a hyphen.
18227func_len ()
18228{
18229  func_len_result=${#1}
18230}
18231
18232_LT_EOF
18233    ;;
18234  *) # Bourne compatible functions.
18235    cat << \_LT_EOF >> "$cfgfile"
18236
18237# func_dirname file append nondir_replacement
18238# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18239# otherwise set result to NONDIR_REPLACEMENT.
18240func_dirname ()
18241{
18242  # Extract subdirectory from the argument.
18243  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18244  if test "X$func_dirname_result" = "X${1}"; then
18245    func_dirname_result="${3}"
18246  else
18247    func_dirname_result="$func_dirname_result${2}"
18248  fi
18249}
18250
18251# func_basename file
18252func_basename ()
18253{
18254  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18255}
18256
18257
18258# func_stripname prefix suffix name
18259# strip PREFIX and SUFFIX off of NAME.
18260# PREFIX and SUFFIX must not contain globbing or regex special
18261# characters, hashes, percent signs, but SUFFIX may contain a leading
18262# dot (in which case that matches only a dot).
18263# func_strip_suffix prefix name
18264func_stripname ()
18265{
18266  case ${2} in
18267    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18268    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18269  esac
18270}
18271
18272# sed scripts:
18273my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18274my_sed_long_arg='1s/^-[^=]*=//'
18275
18276# func_opt_split
18277func_opt_split ()
18278{
18279  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18280  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18281}
18282
18283# func_lo2o object
18284func_lo2o ()
18285{
18286  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18287}
18288
18289# func_xform libobj-or-source
18290func_xform ()
18291{
18292  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18293}
18294
18295# func_arith arithmetic-term...
18296func_arith ()
18297{
18298  func_arith_result=`expr "$@"`
18299}
18300
18301# func_len string
18302# STRING may not start with a hyphen.
18303func_len ()
18304{
18305  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18306}
18307
18308_LT_EOF
18309esac
18310
18311case $lt_shell_append in
18312  yes)
18313    cat << \_LT_EOF >> "$cfgfile"
18314
18315# func_append var value
18316# Append VALUE to the end of shell variable VAR.
18317func_append ()
18318{
18319  eval "$1+=\$2"
18320}
18321_LT_EOF
18322    ;;
18323  *)
18324    cat << \_LT_EOF >> "$cfgfile"
18325
18326# func_append var value
18327# Append VALUE to the end of shell variable VAR.
18328func_append ()
18329{
18330  eval "$1=\$$1\$2"
18331}
18332
18333_LT_EOF
18334    ;;
18335  esac
18336
18337
18338  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18339    || (rm -f "$cfgfile"; exit 1)
18340
18341  mv -f "$cfgfile" "$ofile" ||
18342    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18343  chmod +x "$ofile"
18344
18345
18346    cat <<_LT_EOF >> "$ofile"
18347
18348# ### BEGIN LIBTOOL TAG CONFIG: CXX
18349
18350# The linker used to build libraries.
18351LD=$lt_LD_CXX
18352
18353# How to create reloadable object files.
18354reload_flag=$lt_reload_flag_CXX
18355reload_cmds=$lt_reload_cmds_CXX
18356
18357# Commands used to build an old-style archive.
18358old_archive_cmds=$lt_old_archive_cmds_CXX
18359
18360# A language specific compiler.
18361CC=$lt_compiler_CXX
18362
18363# Is the compiler the GNU compiler?
18364with_gcc=$GCC_CXX
18365
18366# Compiler flag to turn off builtin functions.
18367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18368
18369# How to pass a linker flag through the compiler.
18370wl=$lt_lt_prog_compiler_wl_CXX
18371
18372# Additional compiler flags for building library objects.
18373pic_flag=$lt_lt_prog_compiler_pic_CXX
18374
18375# Compiler flag to prevent dynamic linking.
18376link_static_flag=$lt_lt_prog_compiler_static_CXX
18377
18378# Does compiler simultaneously support -c and -o options?
18379compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18380
18381# Whether or not to add -lc for building shared libraries.
18382build_libtool_need_lc=$archive_cmds_need_lc_CXX
18383
18384# Whether or not to disallow shared libs when runtime libs are static.
18385allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18386
18387# Compiler flag to allow reflexive dlopens.
18388export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18389
18390# Compiler flag to generate shared objects directly from archives.
18391whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18392
18393# Whether the compiler copes with passing no objects directly.
18394compiler_needs_object=$lt_compiler_needs_object_CXX
18395
18396# Create an old-style archive from a shared archive.
18397old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18398
18399# Create a temporary old-style archive to link instead of a shared archive.
18400old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18401
18402# Commands used to build a shared archive.
18403archive_cmds=$lt_archive_cmds_CXX
18404archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18405
18406# Commands used to build a loadable module if different from building
18407# a shared archive.
18408module_cmds=$lt_module_cmds_CXX
18409module_expsym_cmds=$lt_module_expsym_cmds_CXX
18410
18411# Whether we are building with GNU ld or not.
18412with_gnu_ld=$lt_with_gnu_ld_CXX
18413
18414# Flag that allows shared libraries with undefined symbols to be built.
18415allow_undefined_flag=$lt_allow_undefined_flag_CXX
18416
18417# Flag that enforces no undefined symbols.
18418no_undefined_flag=$lt_no_undefined_flag_CXX
18419
18420# Flag to hardcode \$libdir into a binary during linking.
18421# This must work even if \$libdir does not exist
18422hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18423
18424# If ld is used when linking, flag to hardcode \$libdir into a binary
18425# during linking.  This must work even if \$libdir does not exist.
18426hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18427
18428# Whether we need a single "-rpath" flag with a separated argument.
18429hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18430
18431# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18432# DIR into the resulting binary.
18433hardcode_direct=$hardcode_direct_CXX
18434
18435# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18436# DIR into the resulting binary and the resulting library dependency is
18437# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18438# library is relocated.
18439hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18440
18441# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18442# into the resulting binary.
18443hardcode_minus_L=$hardcode_minus_L_CXX
18444
18445# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18446# into the resulting binary.
18447hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18448
18449# Set to "yes" if building a shared library automatically hardcodes DIR
18450# into the library and all subsequent libraries and executables linked
18451# against it.
18452hardcode_automatic=$hardcode_automatic_CXX
18453
18454# Set to yes if linker adds runtime paths of dependent libraries
18455# to runtime path list.
18456inherit_rpath=$inherit_rpath_CXX
18457
18458# Whether libtool must link a program against all its dependency libraries.
18459link_all_deplibs=$link_all_deplibs_CXX
18460
18461# Fix the shell variable \$srcfile for the compiler.
18462fix_srcfile_path=$lt_fix_srcfile_path_CXX
18463
18464# Set to "yes" if exported symbols are required.
18465always_export_symbols=$always_export_symbols_CXX
18466
18467# The commands to list exported symbols.
18468export_symbols_cmds=$lt_export_symbols_cmds_CXX
18469
18470# Symbols that should not be listed in the preloaded symbols.
18471exclude_expsyms=$lt_exclude_expsyms_CXX
18472
18473# Symbols that must always be exported.
18474include_expsyms=$lt_include_expsyms_CXX
18475
18476# Commands necessary for linking programs (against libraries) with templates.
18477prelink_cmds=$lt_prelink_cmds_CXX
18478
18479# Specify filename containing input files.
18480file_list_spec=$lt_file_list_spec_CXX
18481
18482# How to hardcode a shared library path into an executable.
18483hardcode_action=$hardcode_action_CXX
18484
18485# The directories searched by this compiler when creating a shared library.
18486compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18487
18488# Dependencies to place before and after the objects being linked to
18489# create a shared library.
18490predep_objects=$lt_predep_objects_CXX
18491postdep_objects=$lt_postdep_objects_CXX
18492predeps=$lt_predeps_CXX
18493postdeps=$lt_postdeps_CXX
18494
18495# The library search path used internally by the compiler when linking
18496# a shared library.
18497compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18498
18499# ### END LIBTOOL TAG CONFIG: CXX
18500_LT_EOF
18501
18502 ;;
18503
18504  esac
18505done # for ac_tag
18506
18507
18508as_fn_exit 0
18509_ACEOF
18510ac_clean_files=$ac_clean_files_save
18511
18512test $ac_write_fail = 0 ||
18513  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18514
18515
18516# configure is writing to config.log, and then calls config.status.
18517# config.status does its own redirection, appending to config.log.
18518# Unfortunately, on DOS this fails, as config.log is still kept open
18519# by configure, so config.status won't be able to write to it; its
18520# output is simply discarded.  So we exec the FD to /dev/null,
18521# effectively closing config.log, so it can be properly (re)opened and
18522# appended to by config.status.  When coming back to configure, we
18523# need to make the FD available again.
18524if test "$no_create" != yes; then
18525  ac_cs_success=:
18526  ac_config_status_args=
18527  test "$silent" = yes &&
18528    ac_config_status_args="$ac_config_status_args --quiet"
18529  exec 5>/dev/null
18530  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18531  exec 5>>config.log
18532  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18533  # would make configure fail if this is the last instruction.
18534  $ac_cs_success || as_fn_exit 1
18535fi
18536if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18537  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18538$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18539fi
18540
18541
18542
18543