1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Atlas-C++ 0.6.4.
4#
5# Report bugs to <erik@ogenvik.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and erik@ogenvik.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='Atlas-C++'
592PACKAGE_TARNAME='Atlas-C++'
593PACKAGE_VERSION='0.6.4'
594PACKAGE_STRING='Atlas-C++ 0.6.4'
595PACKAGE_BUGREPORT='erik@ogenvik.org'
596PACKAGE_URL=''
597
598ac_unique_file="Atlas/Bridge.cpp"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639OTHER_LIBS
640SYSTEM_LIBS
641ATLAS_LIBS
642ATLAS_LIB_SUFFIX
643ATLAS_CFLAGS
644CXXCPP
645am__fastdepCXX_FALSE
646am__fastdepCXX_TRUE
647CXXDEPMODE
648ac_ct_CXX
649CXXFLAGS
650CXX
651CPP
652LT_SYS_LIBRARY_PATH
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
658MANIFEST_TOOL
659RANLIB
660ac_ct_AR
661AR
662DLLTOOL
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670EGREP
671GREP
672SED
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690LIBTOOL
691INTERFACE_VERSION
692ATLAS_CURRENT
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
769enable_silent_rules
770enable_static
771enable_shared
772with_pic
773enable_fast_install
774with_aix_soname
775enable_dependency_tracking
776with_gnu_ld
777with_sysroot
778enable_libtool_lock
779enable_debug
780with_zlib
781with_bzlib
782'
783      ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791LT_SYS_LIBRARY_PATH
792CPP
793CXX
794CXXFLAGS
795CCC
796CXXCPP'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
846
847ac_prev=
848ac_dashdash=
849for ac_option
850do
851  # If the previous option needs an argument, assign it.
852  if test -n "$ac_prev"; then
853    eval $ac_prev=\$ac_option
854    ac_prev=
855    continue
856  fi
857
858  case $ac_option in
859  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860  *=)   ac_optarg= ;;
861  *)    ac_optarg=yes ;;
862  esac
863
864  # Accept the important Cygnus configure options, so we can diagnose typos.
865
866  case $ac_dashdash$ac_option in
867  --)
868    ac_dashdash=yes ;;
869
870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
871    ac_prev=bindir ;;
872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873    bindir=$ac_optarg ;;
874
875  -build | --build | --buil | --bui | --bu)
876    ac_prev=build_alias ;;
877  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878    build_alias=$ac_optarg ;;
879
880  -cache-file | --cache-file | --cache-fil | --cache-fi \
881  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882    ac_prev=cache_file ;;
883  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885    cache_file=$ac_optarg ;;
886
887  --config-cache | -C)
888    cache_file=config.cache ;;
889
890  -datadir | --datadir | --datadi | --datad)
891    ac_prev=datadir ;;
892  -datadir=* | --datadir=* | --datadi=* | --datad=*)
893    datadir=$ac_optarg ;;
894
895  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896  | --dataroo | --dataro | --datar)
897    ac_prev=datarootdir ;;
898  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900    datarootdir=$ac_optarg ;;
901
902  -disable-* | --disable-*)
903    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904    # Reject names that are not valid shell variable names.
905    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906      as_fn_error $? "invalid feature name: $ac_useropt"
907    ac_useropt_orig=$ac_useropt
908    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909    case $ac_user_opts in
910      *"
911"enable_$ac_useropt"
912"*) ;;
913      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914	 ac_unrecognized_sep=', ';;
915    esac
916    eval enable_$ac_useropt=no ;;
917
918  -docdir | --docdir | --docdi | --doc | --do)
919    ac_prev=docdir ;;
920  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921    docdir=$ac_optarg ;;
922
923  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924    ac_prev=dvidir ;;
925  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926    dvidir=$ac_optarg ;;
927
928  -enable-* | --enable-*)
929    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932      as_fn_error $? "invalid feature name: $ac_useropt"
933    ac_useropt_orig=$ac_useropt
934    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935    case $ac_user_opts in
936      *"
937"enable_$ac_useropt"
938"*) ;;
939      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940	 ac_unrecognized_sep=', ';;
941    esac
942    eval enable_$ac_useropt=\$ac_optarg ;;
943
944  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946  | --exec | --exe | --ex)
947    ac_prev=exec_prefix ;;
948  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950  | --exec=* | --exe=* | --ex=*)
951    exec_prefix=$ac_optarg ;;
952
953  -gas | --gas | --ga | --g)
954    # Obsolete; use --with-gas.
955    with_gas=yes ;;
956
957  -help | --help | --hel | --he | -h)
958    ac_init_help=long ;;
959  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960    ac_init_help=recursive ;;
961  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962    ac_init_help=short ;;
963
964  -host | --host | --hos | --ho)
965    ac_prev=host_alias ;;
966  -host=* | --host=* | --hos=* | --ho=*)
967    host_alias=$ac_optarg ;;
968
969  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970    ac_prev=htmldir ;;
971  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972  | --ht=*)
973    htmldir=$ac_optarg ;;
974
975  -includedir | --includedir | --includedi | --included | --include \
976  | --includ | --inclu | --incl | --inc)
977    ac_prev=includedir ;;
978  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979  | --includ=* | --inclu=* | --incl=* | --inc=*)
980    includedir=$ac_optarg ;;
981
982  -infodir | --infodir | --infodi | --infod | --info | --inf)
983    ac_prev=infodir ;;
984  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985    infodir=$ac_optarg ;;
986
987  -libdir | --libdir | --libdi | --libd)
988    ac_prev=libdir ;;
989  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990    libdir=$ac_optarg ;;
991
992  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993  | --libexe | --libex | --libe)
994    ac_prev=libexecdir ;;
995  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996  | --libexe=* | --libex=* | --libe=*)
997    libexecdir=$ac_optarg ;;
998
999  -localedir | --localedir | --localedi | --localed | --locale)
1000    ac_prev=localedir ;;
1001  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002    localedir=$ac_optarg ;;
1003
1004  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005  | --localstate | --localstat | --localsta | --localst | --locals)
1006    ac_prev=localstatedir ;;
1007  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009    localstatedir=$ac_optarg ;;
1010
1011  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012    ac_prev=mandir ;;
1013  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014    mandir=$ac_optarg ;;
1015
1016  -nfp | --nfp | --nf)
1017    # Obsolete; use --without-fp.
1018    with_fp=no ;;
1019
1020  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021  | --no-cr | --no-c | -n)
1022    no_create=yes ;;
1023
1024  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026    no_recursion=yes ;;
1027
1028  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030  | --oldin | --oldi | --old | --ol | --o)
1031    ac_prev=oldincludedir ;;
1032  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035    oldincludedir=$ac_optarg ;;
1036
1037  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038    ac_prev=prefix ;;
1039  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040    prefix=$ac_optarg ;;
1041
1042  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043  | --program-pre | --program-pr | --program-p)
1044    ac_prev=program_prefix ;;
1045  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047    program_prefix=$ac_optarg ;;
1048
1049  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050  | --program-suf | --program-su | --program-s)
1051    ac_prev=program_suffix ;;
1052  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054    program_suffix=$ac_optarg ;;
1055
1056  -program-transform-name | --program-transform-name \
1057  | --program-transform-nam | --program-transform-na \
1058  | --program-transform-n | --program-transform- \
1059  | --program-transform | --program-transfor \
1060  | --program-transfo | --program-transf \
1061  | --program-trans | --program-tran \
1062  | --progr-tra | --program-tr | --program-t)
1063    ac_prev=program_transform_name ;;
1064  -program-transform-name=* | --program-transform-name=* \
1065  | --program-transform-nam=* | --program-transform-na=* \
1066  | --program-transform-n=* | --program-transform-=* \
1067  | --program-transform=* | --program-transfor=* \
1068  | --program-transfo=* | --program-transf=* \
1069  | --program-trans=* | --program-tran=* \
1070  | --progr-tra=* | --program-tr=* | --program-t=*)
1071    program_transform_name=$ac_optarg ;;
1072
1073  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074    ac_prev=pdfdir ;;
1075  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076    pdfdir=$ac_optarg ;;
1077
1078  -psdir | --psdir | --psdi | --psd | --ps)
1079    ac_prev=psdir ;;
1080  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081    psdir=$ac_optarg ;;
1082
1083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084  | -silent | --silent | --silen | --sile | --sil)
1085    silent=yes ;;
1086
1087  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088    ac_prev=sbindir ;;
1089  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090  | --sbi=* | --sb=*)
1091    sbindir=$ac_optarg ;;
1092
1093  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095  | --sharedst | --shareds | --shared | --share | --shar \
1096  | --sha | --sh)
1097    ac_prev=sharedstatedir ;;
1098  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101  | --sha=* | --sh=*)
1102    sharedstatedir=$ac_optarg ;;
1103
1104  -site | --site | --sit)
1105    ac_prev=site ;;
1106  -site=* | --site=* | --sit=*)
1107    site=$ac_optarg ;;
1108
1109  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110    ac_prev=srcdir ;;
1111  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112    srcdir=$ac_optarg ;;
1113
1114  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115  | --syscon | --sysco | --sysc | --sys | --sy)
1116    ac_prev=sysconfdir ;;
1117  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119    sysconfdir=$ac_optarg ;;
1120
1121  -target | --target | --targe | --targ | --tar | --ta | --t)
1122    ac_prev=target_alias ;;
1123  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124    target_alias=$ac_optarg ;;
1125
1126  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127    verbose=yes ;;
1128
1129  -version | --version | --versio | --versi | --vers | -V)
1130    ac_init_version=: ;;
1131
1132  -with-* | --with-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=\$ac_optarg ;;
1147
1148  -without-* | --without-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=no ;;
1163
1164  --x)
1165    # Obsolete; use --with-x.
1166    with_x=yes ;;
1167
1168  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169  | --x-incl | --x-inc | --x-in | --x-i)
1170    ac_prev=x_includes ;;
1171  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173    x_includes=$ac_optarg ;;
1174
1175  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177    ac_prev=x_libraries ;;
1178  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180    x_libraries=$ac_optarg ;;
1181
1182  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
1184    ;;
1185
1186  *=*)
1187    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188    # Reject names that are not valid shell variable names.
1189    case $ac_envvar in #(
1190      '' | [0-9]* | *[!_$as_cr_alnum]* )
1191      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192    esac
1193    eval $ac_envvar=\$ac_optarg
1194    export $ac_envvar ;;
1195
1196  *)
1197    # FIXME: should be removed in autoconf 3.0.
1198    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202    ;;
1203
1204  esac
1205done
1206
1207if test -n "$ac_prev"; then
1208  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209  as_fn_error $? "missing argument to $ac_option"
1210fi
1211
1212if test -n "$ac_unrecognized_opts"; then
1213  case $enable_option_checking in
1214    no) ;;
1215    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217  esac
1218fi
1219
1220# Check all directory arguments for consistency.
1221for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222		datadir sysconfdir sharedstatedir localstatedir includedir \
1223		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224		libdir localedir mandir
1225do
1226  eval ac_val=\$$ac_var
1227  # Remove trailing slashes.
1228  case $ac_val in
1229    */ )
1230      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231      eval $ac_var=\$ac_val;;
1232  esac
1233  # Be sure to have absolute directory names.
1234  case $ac_val in
1235    [\\/$]* | ?:[\\/]* )  continue;;
1236    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237  esac
1238  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250  if test "x$build_alias" = x; then
1251    cross_compiling=maybe
1252  elif test "x$build_alias" != "x$host_alias"; then
1253    cross_compiling=yes
1254  fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266  as_fn_error $? "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268  as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273  ac_srcdir_defaulted=yes
1274  # Try the directory containing this script, then the parent directory.
1275  ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277	 X"$as_myself" : 'X\(//\)[^/]' \| \
1278	 X"$as_myself" : 'X\(//\)$' \| \
1279	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)[^/].*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\/\)$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\).*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  s/.*/./; q'`
1298  srcdir=$ac_confdir
1299  if test ! -r "$srcdir/$ac_unique_file"; then
1300    srcdir=..
1301  fi
1302else
1303  ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312	pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315  srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_env_${ac_var}_value=\$${ac_var}
1326  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334  # Omit some internal or obsolete options to make the list less imposing.
1335  # This message is too long to be a string in the A/UX 3.1 sh.
1336  cat <<_ACEOF
1337\`configure' configures Atlas-C++ 0.6.4 to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347  -h, --help              display this help and exit
1348      --help=short        display options specific to this package
1349      --help=recursive    display the short help of all the included packages
1350  -V, --version           display version information and exit
1351  -q, --quiet, --silent   do not print \`checking ...' messages
1352      --cache-file=FILE   cache test results in FILE [disabled]
1353  -C, --config-cache      alias for \`--cache-file=config.cache'
1354  -n, --no-create         do not create output files
1355      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358  --prefix=PREFIX         install architecture-independent files in PREFIX
1359                          [$ac_default_prefix]
1360  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                          [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371  --bindir=DIR            user executables [EPREFIX/bin]
1372  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1373  --libexecdir=DIR        program executables [EPREFIX/libexec]
1374  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1375  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1376  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1377  --libdir=DIR            object code libraries [EPREFIX/lib]
1378  --includedir=DIR        C header files [PREFIX/include]
1379  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382  --infodir=DIR           info documentation [DATAROOTDIR/info]
1383  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384  --mandir=DIR            man documentation [DATAROOTDIR/man]
1385  --docdir=DIR            documentation root [DATAROOTDIR/doc/Atlas-C++]
1386  --htmldir=DIR           html documentation [DOCDIR]
1387  --dvidir=DIR            dvi documentation [DOCDIR]
1388  --pdfdir=DIR            pdf documentation [DOCDIR]
1389  --psdir=DIR             ps documentation [DOCDIR]
1390_ACEOF
1391
1392  cat <<\_ACEOF
1393
1394Program names:
1395  --program-prefix=PREFIX            prepend PREFIX to installed program names
1396  --program-suffix=SUFFIX            append SUFFIX to installed program names
1397  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399System types:
1400  --build=BUILD     configure for building on BUILD [guessed]
1401  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402_ACEOF
1403fi
1404
1405if test -n "$ac_init_help"; then
1406  case $ac_init_help in
1407     short | recursive ) echo "Configuration of Atlas-C++ 0.6.4:";;
1408   esac
1409  cat <<\_ACEOF
1410
1411Optional Features:
1412  --disable-option-checking  ignore unrecognized --enable/--with options
1413  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415  --enable-silent-rules   less verbose build output (undo: "make V=1")
1416  --disable-silent-rules  verbose build output (undo: "make V=0")
1417  --enable-static[=PKGS]  build static libraries [default=no]
1418  --enable-shared[=PKGS]  build shared libraries [default=yes]
1419  --enable-fast-install[=PKGS]
1420                          optimize for fast installation [default=yes]
1421  --enable-dependency-tracking
1422                          do not reject slow dependency extractors
1423  --disable-dependency-tracking
1424                          speeds up one-time build
1425  --disable-libtool-lock  avoid locking (might break parallel builds)
1426  --enable-debug          enable debug information default=no
1427
1428Optional Packages:
1429  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1432                          both]
1433  --with-aix-soname=aix|svr4|both
1434                          shared library versioning (aka "SONAME") variant to
1435                          provide on AIX, [default=aix].
1436  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1437  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1438                          compiler's sysroot if not specified).
1439  --with-zlib=DIR         gzip compression library (optional)
1440  --with-bzlib=DIR        bzip2 compression library (optional)
1441
1442Some influential environment variables:
1443  CC          C compiler command
1444  CFLAGS      C compiler flags
1445  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1446              nonstandard directory <lib dir>
1447  LIBS        libraries to pass to the linker, e.g. -l<library>
1448  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449              you have headers in a nonstandard directory <include dir>
1450  LT_SYS_LIBRARY_PATH
1451              User-defined run-time library search path.
1452  CPP         C preprocessor
1453  CXX         C++ compiler command
1454  CXXFLAGS    C++ compiler flags
1455  CXXCPP      C++ preprocessor
1456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
1460Report bugs to <erik@ogenvik.org>.
1461_ACEOF
1462ac_status=$?
1463fi
1464
1465if test "$ac_init_help" = "recursive"; then
1466  # If there are subdirs, report their specific --help.
1467  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468    test -d "$ac_dir" ||
1469      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470      continue
1471    ac_builddir=.
1472
1473case "$ac_dir" in
1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475*)
1476  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477  # A ".." for each directory in $ac_dir_suffix.
1478  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479  case $ac_top_builddir_sub in
1480  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482  esac ;;
1483esac
1484ac_abs_top_builddir=$ac_pwd
1485ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486# for backward compatibility:
1487ac_top_builddir=$ac_top_build_prefix
1488
1489case $srcdir in
1490  .)  # We are building in place.
1491    ac_srcdir=.
1492    ac_top_srcdir=$ac_top_builddir_sub
1493    ac_abs_top_srcdir=$ac_pwd ;;
1494  [\\/]* | ?:[\\/]* )  # Absolute name.
1495    ac_srcdir=$srcdir$ac_dir_suffix;
1496    ac_top_srcdir=$srcdir
1497    ac_abs_top_srcdir=$srcdir ;;
1498  *) # Relative name.
1499    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500    ac_top_srcdir=$ac_top_build_prefix$srcdir
1501    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502esac
1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505    cd "$ac_dir" || { ac_status=$?; continue; }
1506    # Check for guested configure.
1507    if test -f "$ac_srcdir/configure.gnu"; then
1508      echo &&
1509      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510    elif test -f "$ac_srcdir/configure"; then
1511      echo &&
1512      $SHELL "$ac_srcdir/configure" --help=recursive
1513    else
1514      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515    fi || ac_status=$?
1516    cd "$ac_pwd" || { ac_status=$?; break; }
1517  done
1518fi
1519
1520test -n "$ac_init_help" && exit $ac_status
1521if $ac_init_version; then
1522  cat <<\_ACEOF
1523Atlas-C++ configure 0.6.4
1524generated by GNU Autoconf 2.69
1525
1526Copyright (C) 2012 Free Software Foundation, Inc.
1527This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it.
1529_ACEOF
1530  exit
1531fi
1532
1533## ------------------------ ##
1534## Autoconf initialization. ##
1535## ------------------------ ##
1536
1537# ac_fn_c_try_compile LINENO
1538# --------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_compile ()
1541{
1542  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543  rm -f conftest.$ac_objext
1544  if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547  *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551  (eval "$ac_compile") 2>conftest.err
1552  ac_status=$?
1553  if test -s conftest.err; then
1554    grep -v '^ *+' conftest.err >conftest.er1
1555    cat conftest.er1 >&5
1556    mv -f conftest.er1 conftest.err
1557  fi
1558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559  test $ac_status = 0; } && {
1560	 test -z "$ac_c_werror_flag" ||
1561	 test ! -s conftest.err
1562       } && test -s conftest.$ac_objext; then :
1563  ac_retval=0
1564else
1565  $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568	ac_retval=1
1569fi
1570  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571  as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_c_try_link LINENO
1576# -----------------------
1577# Try to link conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_link ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  rm -f conftest.$ac_objext conftest$ac_exeext
1582  if { { ac_try="$ac_link"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_link") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } && {
1598	 test -z "$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       } && test -s conftest$ac_exeext && {
1601	 test "$cross_compiling" = yes ||
1602	 test -x conftest$ac_exeext
1603       }; then :
1604  ac_retval=0
1605else
1606  $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609	ac_retval=1
1610fi
1611  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613  # interfere with the next link command; also delete a directory that is
1614  # left behind by Apple's compiler.  We do this before executing the actions.
1615  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_link
1620
1621# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622# -------------------------------------------------------
1623# Tests whether HEADER exists and can be compiled using the include files in
1624# INCLUDES, setting the cache variable VAR accordingly.
1625ac_fn_c_check_header_compile ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629$as_echo_n "checking for $2... " >&6; }
1630if eval \${$3+:} false; then :
1631  $as_echo_n "(cached) " >&6
1632else
1633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634/* end confdefs.h.  */
1635$4
1636#include <$2>
1637_ACEOF
1638if ac_fn_c_try_compile "$LINENO"; then :
1639  eval "$3=yes"
1640else
1641  eval "$3=no"
1642fi
1643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644fi
1645eval ac_res=\$$3
1646	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647$as_echo "$ac_res" >&6; }
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650} # ac_fn_c_check_header_compile
1651
1652# ac_fn_c_try_cpp LINENO
1653# ----------------------
1654# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_cpp ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  if { { ac_try="$ac_cpp conftest.$ac_ext"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } > conftest.i && {
1674	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       }; then :
1677  ac_retval=0
1678else
1679  $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682    ac_retval=1
1683fi
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685  as_fn_set_status $ac_retval
1686
1687} # ac_fn_c_try_cpp
1688
1689# ac_fn_c_try_run LINENO
1690# ----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692# that executables *can* be run.
1693ac_fn_c_try_run ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_link") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707  { { case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_try") 2>&5
1714  ac_status=$?
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; }; }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: program exited with status $ac_status" >&5
1720       $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723       ac_retval=$ac_status
1724fi
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_run
1730
1731# ac_fn_c_check_func LINENO FUNC VAR
1732# ----------------------------------
1733# Tests whether FUNC exists, setting the cache variable VAR accordingly
1734ac_fn_c_check_func ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if eval \${$3+:} false; then :
1740  $as_echo_n "(cached) " >&6
1741else
1742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1746#define $2 innocuous_$2
1747
1748/* System header to define __stub macros and hopefully few prototypes,
1749    which can conflict with char $2 (); below.
1750    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1751    <limits.h> exists even on freestanding compilers.  */
1752
1753#ifdef __STDC__
1754# include <limits.h>
1755#else
1756# include <assert.h>
1757#endif
1758
1759#undef $2
1760
1761/* Override any GCC internal prototype to avoid an error.
1762   Use char because int might match the return type of a GCC
1763   builtin and then its argument prototype would still apply.  */
1764#ifdef __cplusplus
1765extern "C"
1766#endif
1767char $2 ();
1768/* The GNU C library defines this for functions which it implements
1769    to always fail with ENOSYS.  Some functions are actually named
1770    something starting with __ and the normal name is an alias.  */
1771#if defined __stub_$2 || defined __stub___$2
1772choke me
1773#endif
1774
1775int
1776main ()
1777{
1778return $2 ();
1779  ;
1780  return 0;
1781}
1782_ACEOF
1783if ac_fn_c_try_link "$LINENO"; then :
1784  eval "$3=yes"
1785else
1786  eval "$3=no"
1787fi
1788rm -f core conftest.err conftest.$ac_objext \
1789    conftest$ac_exeext conftest.$ac_ext
1790fi
1791eval ac_res=\$$3
1792	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796} # ac_fn_c_check_func
1797
1798# ac_fn_cxx_try_compile LINENO
1799# ----------------------------
1800# Try to compile conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_cxx_try_compile ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  rm -f conftest.$ac_objext
1805  if { { ac_try="$ac_compile"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_compile") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && {
1821	 test -z "$ac_cxx_werror_flag" ||
1822	 test ! -s conftest.err
1823       } && test -s conftest.$ac_objext; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829	ac_retval=1
1830fi
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832  as_fn_set_status $ac_retval
1833
1834} # ac_fn_cxx_try_compile
1835
1836# ac_fn_cxx_try_cpp LINENO
1837# ------------------------
1838# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_cxx_try_cpp ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  if { { ac_try="$ac_cpp conftest.$ac_ext"
1843case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850  ac_status=$?
1851  if test -s conftest.err; then
1852    grep -v '^ *+' conftest.err >conftest.er1
1853    cat conftest.er1 >&5
1854    mv -f conftest.er1 conftest.err
1855  fi
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; } > conftest.i && {
1858	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1859	 test ! -s conftest.err
1860       }; then :
1861  ac_retval=0
1862else
1863  $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866    ac_retval=1
1867fi
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_cxx_try_cpp
1872
1873# ac_fn_cxx_try_link LINENO
1874# -------------------------
1875# Try to link conftest.$ac_ext, and return whether this succeeded.
1876ac_fn_cxx_try_link ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  rm -f conftest.$ac_objext conftest$ac_exeext
1880  if { { ac_try="$ac_link"
1881case "(($ac_try" in
1882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883  *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886$as_echo "$ac_try_echo"; } >&5
1887  (eval "$ac_link") 2>conftest.err
1888  ac_status=$?
1889  if test -s conftest.err; then
1890    grep -v '^ *+' conftest.err >conftest.er1
1891    cat conftest.er1 >&5
1892    mv -f conftest.er1 conftest.err
1893  fi
1894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895  test $ac_status = 0; } && {
1896	 test -z "$ac_cxx_werror_flag" ||
1897	 test ! -s conftest.err
1898       } && test -s conftest$ac_exeext && {
1899	 test "$cross_compiling" = yes ||
1900	 test -x conftest$ac_exeext
1901       }; then :
1902  ac_retval=0
1903else
1904  $as_echo "$as_me: failed program was:" >&5
1905sed 's/^/| /' conftest.$ac_ext >&5
1906
1907	ac_retval=1
1908fi
1909  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911  # interfere with the next link command; also delete a directory that is
1912  # left behind by Apple's compiler.  We do this before executing the actions.
1913  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915  as_fn_set_status $ac_retval
1916
1917} # ac_fn_cxx_try_link
1918
1919# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1920# ---------------------------------------------------------
1921# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922# the include files in INCLUDES and setting the cache variable VAR
1923# accordingly.
1924ac_fn_cxx_check_header_mongrel ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  if eval \${$3+:} false; then :
1928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931  $as_echo_n "(cached) " >&6
1932fi
1933eval ac_res=\$$3
1934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936else
1937  # Is the header compilable?
1938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939$as_echo_n "checking $2 usability... " >&6; }
1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943#include <$2>
1944_ACEOF
1945if ac_fn_cxx_try_compile "$LINENO"; then :
1946  ac_header_compiler=yes
1947else
1948  ac_header_compiler=no
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952$as_echo "$ac_header_compiler" >&6; }
1953
1954# Is the header present?
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956$as_echo_n "checking $2 presence... " >&6; }
1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959#include <$2>
1960_ACEOF
1961if ac_fn_cxx_try_cpp "$LINENO"; then :
1962  ac_header_preproc=yes
1963else
1964  ac_header_preproc=no
1965fi
1966rm -f conftest.err conftest.i conftest.$ac_ext
1967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968$as_echo "$ac_header_preproc" >&6; }
1969
1970# So?  What about this header?
1971case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1972  yes:no: )
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977    ;;
1978  no:yes:* )
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1982$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1986$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989( $as_echo "## ------------------------------- ##
1990## Report this to erik@ogenvik.org ##
1991## ------------------------------- ##"
1992     ) | sed "s/^/$as_me: WARNING:     /" >&2
1993    ;;
1994esac
1995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996$as_echo_n "checking for $2... " >&6; }
1997if eval \${$3+:} false; then :
1998  $as_echo_n "(cached) " >&6
1999else
2000  eval "$3=\$ac_header_compiler"
2001fi
2002eval ac_res=\$$3
2003	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004$as_echo "$ac_res" >&6; }
2005fi
2006  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007
2008} # ac_fn_cxx_check_header_mongrel
2009cat >config.log <<_ACEOF
2010This file contains any messages produced by compilers while
2011running configure, to aid debugging if configure makes a mistake.
2012
2013It was created by Atlas-C++ $as_me 0.6.4, which was
2014generated by GNU Autoconf 2.69.  Invocation command line was
2015
2016  $ $0 $@
2017
2018_ACEOF
2019exec 5>>config.log
2020{
2021cat <<_ASUNAME
2022## --------- ##
2023## Platform. ##
2024## --------- ##
2025
2026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2027uname -m = `(uname -m) 2>/dev/null || echo unknown`
2028uname -r = `(uname -r) 2>/dev/null || echo unknown`
2029uname -s = `(uname -s) 2>/dev/null || echo unknown`
2030uname -v = `(uname -v) 2>/dev/null || echo unknown`
2031
2032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2033/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2034
2035/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2036/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2038/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2039/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2040/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2041/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2042
2043_ASUNAME
2044
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048  IFS=$as_save_IFS
2049  test -z "$as_dir" && as_dir=.
2050    $as_echo "PATH: $as_dir"
2051  done
2052IFS=$as_save_IFS
2053
2054} >&5
2055
2056cat >&5 <<_ACEOF
2057
2058
2059## ----------- ##
2060## Core tests. ##
2061## ----------- ##
2062
2063_ACEOF
2064
2065
2066# Keep a trace of the command line.
2067# Strip out --no-create and --no-recursion so they do not pile up.
2068# Strip out --silent because we don't want to record it for future runs.
2069# Also quote any args containing shell meta-characters.
2070# Make two passes to allow for proper duplicate-argument suppression.
2071ac_configure_args=
2072ac_configure_args0=
2073ac_configure_args1=
2074ac_must_keep_next=false
2075for ac_pass in 1 2
2076do
2077  for ac_arg
2078  do
2079    case $ac_arg in
2080    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2081    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2082    | -silent | --silent | --silen | --sile | --sil)
2083      continue ;;
2084    *\'*)
2085      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2086    esac
2087    case $ac_pass in
2088    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2089    2)
2090      as_fn_append ac_configure_args1 " '$ac_arg'"
2091      if test $ac_must_keep_next = true; then
2092	ac_must_keep_next=false # Got value, back to normal.
2093      else
2094	case $ac_arg in
2095	  *=* | --config-cache | -C | -disable-* | --disable-* \
2096	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2097	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2098	  | -with-* | --with-* | -without-* | --without-* | --x)
2099	    case "$ac_configure_args0 " in
2100	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2101	    esac
2102	    ;;
2103	  -* ) ac_must_keep_next=true ;;
2104	esac
2105      fi
2106      as_fn_append ac_configure_args " '$ac_arg'"
2107      ;;
2108    esac
2109  done
2110done
2111{ ac_configure_args0=; unset ac_configure_args0;}
2112{ ac_configure_args1=; unset ac_configure_args1;}
2113
2114# When interrupted or exit'd, cleanup temporary files, and complete
2115# config.log.  We remove comments because anyway the quotes in there
2116# would cause problems or look ugly.
2117# WARNING: Use '\'' to represent an apostrophe within the trap.
2118# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2119trap 'exit_status=$?
2120  # Save into config.log some information that might help in debugging.
2121  {
2122    echo
2123
2124    $as_echo "## ---------------- ##
2125## Cache variables. ##
2126## ---------------- ##"
2127    echo
2128    # The following way of writing the cache mishandles newlines in values,
2129(
2130  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2131    eval ac_val=\$$ac_var
2132    case $ac_val in #(
2133    *${as_nl}*)
2134      case $ac_var in #(
2135      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2136$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2137      esac
2138      case $ac_var in #(
2139      _ | IFS | as_nl) ;; #(
2140      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2141      *) { eval $ac_var=; unset $ac_var;} ;;
2142      esac ;;
2143    esac
2144  done
2145  (set) 2>&1 |
2146    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2147    *${as_nl}ac_space=\ *)
2148      sed -n \
2149	"s/'\''/'\''\\\\'\'''\''/g;
2150	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2151      ;; #(
2152    *)
2153      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2154      ;;
2155    esac |
2156    sort
2157)
2158    echo
2159
2160    $as_echo "## ----------------- ##
2161## Output variables. ##
2162## ----------------- ##"
2163    echo
2164    for ac_var in $ac_subst_vars
2165    do
2166      eval ac_val=\$$ac_var
2167      case $ac_val in
2168      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169      esac
2170      $as_echo "$ac_var='\''$ac_val'\''"
2171    done | sort
2172    echo
2173
2174    if test -n "$ac_subst_files"; then
2175      $as_echo "## ------------------- ##
2176## File substitutions. ##
2177## ------------------- ##"
2178      echo
2179      for ac_var in $ac_subst_files
2180      do
2181	eval ac_val=\$$ac_var
2182	case $ac_val in
2183	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184	esac
2185	$as_echo "$ac_var='\''$ac_val'\''"
2186      done | sort
2187      echo
2188    fi
2189
2190    if test -s confdefs.h; then
2191      $as_echo "## ----------- ##
2192## confdefs.h. ##
2193## ----------- ##"
2194      echo
2195      cat confdefs.h
2196      echo
2197    fi
2198    test "$ac_signal" != 0 &&
2199      $as_echo "$as_me: caught signal $ac_signal"
2200    $as_echo "$as_me: exit $exit_status"
2201  } >&5
2202  rm -f core *.core core.conftest.* &&
2203    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2204    exit $exit_status
2205' 0
2206for ac_signal in 1 2 13 15; do
2207  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2208done
2209ac_signal=0
2210
2211# confdefs.h avoids OS command line length limits that DEFS can exceed.
2212rm -f -r conftest* confdefs.h
2213
2214$as_echo "/* confdefs.h */" > confdefs.h
2215
2216# Predefined preprocessor variables.
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_NAME "$PACKAGE_NAME"
2220_ACEOF
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2224_ACEOF
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_VERSION "$PACKAGE_VERSION"
2228_ACEOF
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_STRING "$PACKAGE_STRING"
2232_ACEOF
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_URL "$PACKAGE_URL"
2240_ACEOF
2241
2242
2243# Let the site file select an alternate cache file if it wants to.
2244# Prefer an explicitly selected file to automatically selected ones.
2245ac_site_file1=NONE
2246ac_site_file2=NONE
2247if test -n "$CONFIG_SITE"; then
2248  # We do not want a PATH search for config.site.
2249  case $CONFIG_SITE in #((
2250    -*)  ac_site_file1=./$CONFIG_SITE;;
2251    */*) ac_site_file1=$CONFIG_SITE;;
2252    *)   ac_site_file1=./$CONFIG_SITE;;
2253  esac
2254elif test "x$prefix" != xNONE; then
2255  ac_site_file1=$prefix/share/config.site
2256  ac_site_file2=$prefix/etc/config.site
2257else
2258  ac_site_file1=$ac_default_prefix/share/config.site
2259  ac_site_file2=$ac_default_prefix/etc/config.site
2260fi
2261for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262do
2263  test "x$ac_site_file" = xNONE && continue
2264  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2265    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2267    sed 's/^/| /' "$ac_site_file" >&5
2268    . "$ac_site_file" \
2269      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271as_fn_error $? "failed to load site script $ac_site_file
2272See \`config.log' for more details" "$LINENO" 5; }
2273  fi
2274done
2275
2276if test -r "$cache_file"; then
2277  # Some versions of bash will fail to source /dev/null (special files
2278  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2279  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2280    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2281$as_echo "$as_me: loading cache $cache_file" >&6;}
2282    case $cache_file in
2283      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2284      *)                      . "./$cache_file";;
2285    esac
2286  fi
2287else
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2289$as_echo "$as_me: creating cache $cache_file" >&6;}
2290  >$cache_file
2291fi
2292
2293# Check that the precious variables saved in the cache have kept the same
2294# value.
2295ac_cache_corrupted=false
2296for ac_var in $ac_precious_vars; do
2297  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298  eval ac_new_set=\$ac_env_${ac_var}_set
2299  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300  eval ac_new_val=\$ac_env_${ac_var}_value
2301  case $ac_old_set,$ac_new_set in
2302    set,)
2303      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2305      ac_cache_corrupted=: ;;
2306    ,set)
2307      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2308$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2309      ac_cache_corrupted=: ;;
2310    ,);;
2311    *)
2312      if test "x$ac_old_val" != "x$ac_new_val"; then
2313	# differences in whitespace do not lead to failure.
2314	ac_old_val_w=`echo x $ac_old_val`
2315	ac_new_val_w=`echo x $ac_new_val`
2316	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2318$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319	  ac_cache_corrupted=:
2320	else
2321	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323	  eval $ac_var=\$ac_old_val
2324	fi
2325	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2326$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2327	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2328$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2329      fi;;
2330  esac
2331  # Pass precious variables to config.status.
2332  if test "$ac_new_set" = set; then
2333    case $ac_new_val in
2334    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2335    *) ac_arg=$ac_var=$ac_new_val ;;
2336    esac
2337    case " $ac_configure_args " in
2338      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2339      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2340    esac
2341  fi
2342done
2343if $ac_cache_corrupted; then
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2347$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2349fi
2350## -------------------- ##
2351## Main body of script. ##
2352## -------------------- ##
2353
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
2361
2362ac_config_headers="$ac_config_headers config.h"
2363
2364
2365
2366
2367
2368ac_aux_dir=
2369for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370  if test -f "$ac_dir/install-sh"; then
2371    ac_aux_dir=$ac_dir
2372    ac_install_sh="$ac_aux_dir/install-sh -c"
2373    break
2374  elif test -f "$ac_dir/install.sh"; then
2375    ac_aux_dir=$ac_dir
2376    ac_install_sh="$ac_aux_dir/install.sh -c"
2377    break
2378  elif test -f "$ac_dir/shtool"; then
2379    ac_aux_dir=$ac_dir
2380    ac_install_sh="$ac_aux_dir/shtool install -c"
2381    break
2382  fi
2383done
2384if test -z "$ac_aux_dir"; then
2385  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386fi
2387
2388# These three variables are undocumented and unsupported,
2389# and are intended to be withdrawn in a future Autoconf release.
2390# They can cause serious problems if a builder's source tree is in a directory
2391# whose full name contains unusual characters.
2392ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2393ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2394ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2395
2396
2397# Make sure we can run config.sub.
2398$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402$as_echo_n "checking build system type... " >&6; }
2403if ${ac_cv_build+:} false; then :
2404  $as_echo_n "(cached) " >&6
2405else
2406  ac_build_alias=$build_alias
2407test "x$ac_build_alias" = x &&
2408  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409test "x$ac_build_alias" = x &&
2410  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2411ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413
2414fi
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416$as_echo "$ac_cv_build" >&6; }
2417case $ac_cv_build in
2418*-*-*) ;;
2419*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2420esac
2421build=$ac_cv_build
2422ac_save_IFS=$IFS; IFS='-'
2423set x $ac_cv_build
2424shift
2425build_cpu=$1
2426build_vendor=$2
2427shift; shift
2428# Remember, the first character of IFS is used to create $*,
2429# except with old shells:
2430build_os=$*
2431IFS=$ac_save_IFS
2432case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433
2434
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436$as_echo_n "checking host system type... " >&6; }
2437if ${ac_cv_host+:} false; then :
2438  $as_echo_n "(cached) " >&6
2439else
2440  if test "x$host_alias" = x; then
2441  ac_cv_host=$ac_cv_build
2442else
2443  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445fi
2446
2447fi
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449$as_echo "$ac_cv_host" >&6; }
2450case $ac_cv_host in
2451*-*-*) ;;
2452*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2453esac
2454host=$ac_cv_host
2455ac_save_IFS=$IFS; IFS='-'
2456set x $ac_cv_host
2457shift
2458host_cpu=$1
2459host_vendor=$2
2460shift; shift
2461# Remember, the first character of IFS is used to create $*,
2462# except with old shells:
2463host_os=$*
2464IFS=$ac_save_IFS
2465case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468
2469
2470am__api_version='1.15'
2471
2472# Find a good install program.  We prefer a C program (faster),
2473# so one script is as good as another.  But avoid the broken or
2474# incompatible versions:
2475# SysV /etc/install, /usr/sbin/install
2476# SunOS /usr/etc/install
2477# IRIX /sbin/install
2478# AIX /bin/install
2479# AmigaOS /C/install, which installs bootblocks on floppy discs
2480# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483# OS/2's system install, which has a completely different semantic
2484# ./install, which can be erroneously created by make from ./install.sh.
2485# Reject install programs that cannot install multiple files.
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487$as_echo_n "checking for a BSD-compatible install... " >&6; }
2488if test -z "$INSTALL"; then
2489if ${ac_cv_path_install+:} false; then :
2490  $as_echo_n "(cached) " >&6
2491else
2492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    # Account for people who put trailing slashes in PATH elements.
2498case $as_dir/ in #((
2499  ./ | .// | /[cC]/* | \
2500  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502  /usr/ucb/* ) ;;
2503  *)
2504    # OSF1 and SCO ODT 3.0 have their own names for install.
2505    # Don't use installbsd from OSF since it installs stuff as root
2506    # by default.
2507    for ac_prog in ginstall scoinst install; do
2508      for ac_exec_ext in '' $ac_executable_extensions; do
2509	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2510	  if test $ac_prog = install &&
2511	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512	    # AIX install.  It has an incompatible calling convention.
2513	    :
2514	  elif test $ac_prog = install &&
2515	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516	    # program-specific install script used by HP pwplus--don't use.
2517	    :
2518	  else
2519	    rm -rf conftest.one conftest.two conftest.dir
2520	    echo one > conftest.one
2521	    echo two > conftest.two
2522	    mkdir conftest.dir
2523	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524	      test -s conftest.one && test -s conftest.two &&
2525	      test -s conftest.dir/conftest.one &&
2526	      test -s conftest.dir/conftest.two
2527	    then
2528	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2529	      break 3
2530	    fi
2531	  fi
2532	fi
2533      done
2534    done
2535    ;;
2536esac
2537
2538  done
2539IFS=$as_save_IFS
2540
2541rm -rf conftest.one conftest.two conftest.dir
2542
2543fi
2544  if test "${ac_cv_path_install+set}" = set; then
2545    INSTALL=$ac_cv_path_install
2546  else
2547    # As a last resort, use the slow shell script.  Don't cache a
2548    # value for INSTALL within a source directory, because that will
2549    # break other packages using the cache if that directory is
2550    # removed, or if the value is a relative name.
2551    INSTALL=$ac_install_sh
2552  fi
2553fi
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555$as_echo "$INSTALL" >&6; }
2556
2557# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558# It thinks the first close brace ends the variable substitution.
2559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560
2561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562
2563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566$as_echo_n "checking whether build environment is sane... " >&6; }
2567# Reject unsafe characters in $srcdir or the absolute working directory
2568# name.  Accept space and tab only in the latter.
2569am_lf='
2570'
2571case `pwd` in
2572  *[\\\"\#\$\&\'\`$am_lf]*)
2573    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2574esac
2575case $srcdir in
2576  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2577    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2578esac
2579
2580# Do 'set' in a subshell so we don't clobber the current shell's
2581# arguments.  Must try -L first in case configure is actually a
2582# symlink; some systems play weird games with the mod time of symlinks
2583# (eg FreeBSD returns the mod time of the symlink's containing
2584# directory).
2585if (
2586   am_has_slept=no
2587   for am_try in 1 2; do
2588     echo "timestamp, slept: $am_has_slept" > conftest.file
2589     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590     if test "$*" = "X"; then
2591	# -L didn't work.
2592	set X `ls -t "$srcdir/configure" conftest.file`
2593     fi
2594     if test "$*" != "X $srcdir/configure conftest.file" \
2595	&& test "$*" != "X conftest.file $srcdir/configure"; then
2596
2597	# If neither matched, then we have a broken ls.  This can happen
2598	# if, for instance, CONFIG_SHELL is bash and it inherits a
2599	# broken ls alias from the environment.  This has actually
2600	# happened.  Such a system could not be considered "sane".
2601	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2602  alias in your environment" "$LINENO" 5
2603     fi
2604     if test "$2" = conftest.file || test $am_try -eq 2; then
2605       break
2606     fi
2607     # Just in case.
2608     sleep 1
2609     am_has_slept=yes
2610   done
2611   test "$2" = conftest.file
2612   )
2613then
2614   # Ok.
2615   :
2616else
2617   as_fn_error $? "newly created file is older than distributed files!
2618Check your system clock" "$LINENO" 5
2619fi
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621$as_echo "yes" >&6; }
2622# If we didn't sleep, we still need to ensure time stamps of config.status and
2623# generated files are strictly newer.
2624am_sleep_pid=
2625if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2626  ( sleep 1 ) &
2627  am_sleep_pid=$!
2628fi
2629
2630rm -f conftest.file
2631
2632test "$program_prefix" != NONE &&
2633  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2634# Use a double $ so make ignores it.
2635test "$program_suffix" != NONE &&
2636  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2637# Double any \ or $.
2638# By default was `s,x,x', remove it if useless.
2639ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2640program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2641
2642# Expand $ac_aux_dir to an absolute path.
2643am_aux_dir=`cd "$ac_aux_dir" && pwd`
2644
2645if test x"${MISSING+set}" != xset; then
2646  case $am_aux_dir in
2647  *\ * | *\	*)
2648    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2649  *)
2650    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2651  esac
2652fi
2653# Use eval to expand $SHELL
2654if eval "$MISSING --is-lightweight"; then
2655  am_missing_run="$MISSING "
2656else
2657  am_missing_run=
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2659$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2660fi
2661
2662if test x"${install_sh+set}" != xset; then
2663  case $am_aux_dir in
2664  *\ * | *\	*)
2665    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2666  *)
2667    install_sh="\${SHELL} $am_aux_dir/install-sh"
2668  esac
2669fi
2670
2671# Installed binaries are usually stripped using 'strip' when the user
2672# run "make install-strip".  However 'strip' might not be the right
2673# tool to use in cross-compilation environments, therefore Automake
2674# will honor the 'STRIP' environment variable to overrule this program.
2675if test "$cross_compiling" != no; then
2676  if test -n "$ac_tool_prefix"; then
2677  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2678set dummy ${ac_tool_prefix}strip; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if ${ac_cv_prog_STRIP+:} false; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  if test -n "$STRIP"; then
2685  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692    for ac_exec_ext in '' $ac_executable_extensions; do
2693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704STRIP=$ac_cv_prog_STRIP
2705if test -n "$STRIP"; then
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2707$as_echo "$STRIP" >&6; }
2708else
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714fi
2715if test -z "$ac_cv_prog_STRIP"; then
2716  ac_ct_STRIP=$STRIP
2717  # Extract the first word of "strip", so it can be a program name with args.
2718set dummy strip; ac_word=$2
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2722  $as_echo_n "(cached) " >&6
2723else
2724  if test -n "$ac_ct_STRIP"; then
2725  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_exec_ext in '' $ac_executable_extensions; do
2733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_STRIP="strip"
2735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2745if test -n "$ac_ct_STRIP"; then
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2747$as_echo "$ac_ct_STRIP" >&6; }
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753  if test "x$ac_ct_STRIP" = x; then
2754    STRIP=":"
2755  else
2756    case $cross_compiling:$ac_tool_warned in
2757yes:)
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760ac_tool_warned=yes ;;
2761esac
2762    STRIP=$ac_ct_STRIP
2763  fi
2764else
2765  STRIP="$ac_cv_prog_STRIP"
2766fi
2767
2768fi
2769INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2770
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2772$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2773if test -z "$MKDIR_P"; then
2774  if ${ac_cv_path_mkdir+:} false; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782    for ac_prog in mkdir gmkdir; do
2783	 for ac_exec_ext in '' $ac_executable_extensions; do
2784	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2785	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2786	     'mkdir (GNU coreutils) '* | \
2787	     'mkdir (coreutils) '* | \
2788	     'mkdir (fileutils) '4.1*)
2789	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2790	       break 3;;
2791	   esac
2792	 done
2793       done
2794  done
2795IFS=$as_save_IFS
2796
2797fi
2798
2799  test -d ./--version && rmdir ./--version
2800  if test "${ac_cv_path_mkdir+set}" = set; then
2801    MKDIR_P="$ac_cv_path_mkdir -p"
2802  else
2803    # As a last resort, use the slow shell script.  Don't cache a
2804    # value for MKDIR_P within a source directory, because that will
2805    # break other packages using the cache if that directory is
2806    # removed, or if the value is a relative name.
2807    MKDIR_P="$ac_install_sh -d"
2808  fi
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2811$as_echo "$MKDIR_P" >&6; }
2812
2813for ac_prog in gawk mawk nawk awk
2814do
2815  # Extract the first word of "$ac_prog", so it can be a program name with args.
2816set dummy $ac_prog; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if ${ac_cv_prog_AWK+:} false; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  if test -n "$AWK"; then
2823  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828  IFS=$as_save_IFS
2829  test -z "$as_dir" && as_dir=.
2830    for ac_exec_ext in '' $ac_executable_extensions; do
2831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832    ac_cv_prog_AWK="$ac_prog"
2833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834    break 2
2835  fi
2836done
2837  done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842AWK=$ac_cv_prog_AWK
2843if test -n "$AWK"; then
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2845$as_echo "$AWK" >&6; }
2846else
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852  test -n "$AWK" && break
2853done
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2857set x ${MAKE-make}
2858ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2859if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  cat >conftest.make <<\_ACEOF
2863SHELL = /bin/sh
2864all:
2865	@echo '@@@%%%=$(MAKE)=@@@%%%'
2866_ACEOF
2867# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2868case `${MAKE-make} -f conftest.make 2>/dev/null` in
2869  *@@@%%%=?*=@@@%%%*)
2870    eval ac_cv_prog_make_${ac_make}_set=yes;;
2871  *)
2872    eval ac_cv_prog_make_${ac_make}_set=no;;
2873esac
2874rm -f conftest.make
2875fi
2876if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878$as_echo "yes" >&6; }
2879  SET_MAKE=
2880else
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
2883  SET_MAKE="MAKE=${MAKE-make}"
2884fi
2885
2886rm -rf .tst 2>/dev/null
2887mkdir .tst 2>/dev/null
2888if test -d .tst; then
2889  am__leading_dot=.
2890else
2891  am__leading_dot=_
2892fi
2893rmdir .tst 2>/dev/null
2894
2895# Check whether --enable-silent-rules was given.
2896if test "${enable_silent_rules+set}" = set; then :
2897  enableval=$enable_silent_rules;
2898fi
2899
2900case $enable_silent_rules in # (((
2901  yes) AM_DEFAULT_VERBOSITY=0;;
2902   no) AM_DEFAULT_VERBOSITY=1;;
2903    *) AM_DEFAULT_VERBOSITY=1;;
2904esac
2905am_make=${MAKE-make}
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2907$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2908if ${am_cv_make_support_nested_variables+:} false; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  if $as_echo 'TRUE=$(BAR$(V))
2912BAR0=false
2913BAR1=true
2914V=1
2915am__doit:
2916	@$(TRUE)
2917.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2918  am_cv_make_support_nested_variables=yes
2919else
2920  am_cv_make_support_nested_variables=no
2921fi
2922fi
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2924$as_echo "$am_cv_make_support_nested_variables" >&6; }
2925if test $am_cv_make_support_nested_variables = yes; then
2926    AM_V='$(V)'
2927  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2928else
2929  AM_V=$AM_DEFAULT_VERBOSITY
2930  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2931fi
2932AM_BACKSLASH='\'
2933
2934if test "`cd $srcdir && pwd`" != "`pwd`"; then
2935  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2936  # is not polluted with repeated "-I."
2937  am__isrc=' -I$(srcdir)'
2938  # test to see if srcdir already configured
2939  if test -f $srcdir/config.status; then
2940    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2941  fi
2942fi
2943
2944# test whether we have cygpath
2945if test -z "$CYGPATH_W"; then
2946  if (cygpath --version) >/dev/null 2>/dev/null; then
2947    CYGPATH_W='cygpath -w'
2948  else
2949    CYGPATH_W=echo
2950  fi
2951fi
2952
2953
2954# Define the identity of the package.
2955 PACKAGE='Atlas-C++'
2956 VERSION='0.6.4'
2957
2958
2959cat >>confdefs.h <<_ACEOF
2960#define PACKAGE "$PACKAGE"
2961_ACEOF
2962
2963
2964cat >>confdefs.h <<_ACEOF
2965#define VERSION "$VERSION"
2966_ACEOF
2967
2968# Some tools Automake needs.
2969
2970ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2971
2972
2973AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2974
2975
2976AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2977
2978
2979AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2980
2981
2982MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2983
2984# For better backward compatibility.  To be removed once Automake 1.9.x
2985# dies out for good.  For more background, see:
2986# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2987# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2988mkdir_p='$(MKDIR_P)'
2989
2990# We need awk for the "check" target (and possibly the TAP driver).  The
2991# system "awk" is bad on some platforms.
2992# Always define AMTAR for backward compatibility.  Yes, it's still used
2993# in the wild :-(  We should find a proper way to deprecate it ...
2994AMTAR='$${TAR-tar}'
2995
2996
2997# We'll loop over all known methods to create a tar archive until one works.
2998_am_tools='gnutar  pax cpio none'
2999
3000am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3001
3002
3003
3004
3005
3006
3007# POSIX will say in a future version that running "rm -f" with no argument
3008# is OK; and we want to be able to make that assumption in our Makefile
3009# recipes.  So use an aggressive probe to check that the usage we want is
3010# actually supported "in the wild" to an acceptable degree.
3011# See automake bug#10828.
3012# To make any issue more visible, cause the running configure to be aborted
3013# by default if the 'rm' program in use doesn't match our expectations; the
3014# user can still override this though.
3015if rm -f && rm -fr && rm -rf; then : OK; else
3016  cat >&2 <<'END'
3017Oops!
3018
3019Your 'rm' program seems unable to run without file operands specified
3020on the command line, even when the '-f' option is present.  This is contrary
3021to the behaviour of most rm programs out there, and not conforming with
3022the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3023
3024Please tell bug-automake@gnu.org about your system, including the value
3025of your $PATH and any error possibly output before this message.  This
3026can help us improve future automake versions.
3027
3028END
3029  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3030    echo 'Configuration will proceed anyway, since you have set the' >&2
3031    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3032    echo >&2
3033  else
3034    cat >&2 <<'END'
3035Aborting the configuration process, to ensure you take notice of the issue.
3036
3037You can download and install GNU coreutils to get an 'rm' implementation
3038that behaves properly: <http://www.gnu.org/software/coreutils/>.
3039
3040If you want to complete the configuration process using your problematic
3041'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3042to "yes", and re-run configure.
3043
3044END
3045    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3046  fi
3047fi
3048
3049
3050
3051ATLAS_CURRENT=3
3052INTERFACE_VERSION="-version-info $ATLAS_CURRENT:0:0"
3053
3054
3055
3056
3057
3058# Check whether --enable-static was given.
3059if test "${enable_static+set}" = set; then :
3060  enableval=$enable_static; p=${PACKAGE-default}
3061    case $enableval in
3062    yes) enable_static=yes ;;
3063    no) enable_static=no ;;
3064    *)
3065     enable_static=no
3066      # Look at the argument we got.  We use all the common list separators.
3067      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3068      for pkg in $enableval; do
3069	IFS=$lt_save_ifs
3070	if test "X$pkg" = "X$p"; then
3071	  enable_static=yes
3072	fi
3073      done
3074      IFS=$lt_save_ifs
3075      ;;
3076    esac
3077else
3078  enable_static=no
3079fi
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089case `pwd` in
3090  *\ * | *\	*)
3091    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3092$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3093esac
3094
3095
3096
3097macro_version='2.4.6'
3098macro_revision='2.4.6'
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112ltmain=$ac_aux_dir/ltmain.sh
3113
3114# Backslashify metacharacters that are still active within
3115# double-quoted strings.
3116sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3117
3118# Same as above, but do not quote variable references.
3119double_quote_subst='s/\(["`\\]\)/\\\1/g'
3120
3121# Sed substitution to delay expansion of an escaped shell variable in a
3122# double_quote_subst'ed string.
3123delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3124
3125# Sed substitution to delay expansion of an escaped single quote.
3126delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3127
3128# Sed substitution to avoid accidental globbing in evaled expressions
3129no_glob_subst='s/\*/\\\*/g'
3130
3131ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3132ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3133ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3134
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3136$as_echo_n "checking how to print strings... " >&6; }
3137# Test print first, because it will be a builtin if present.
3138if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3139   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3140  ECHO='print -r --'
3141elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3142  ECHO='printf %s\n'
3143else
3144  # Use this function as a fallback that always works.
3145  func_fallback_echo ()
3146  {
3147    eval 'cat <<_LTECHO_EOF
3148$1
3149_LTECHO_EOF'
3150  }
3151  ECHO='func_fallback_echo'
3152fi
3153
3154# func_echo_all arg...
3155# Invoke $ECHO with all args, space-separated.
3156func_echo_all ()
3157{
3158    $ECHO ""
3159}
3160
3161case $ECHO in
3162  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3163$as_echo "printf" >&6; } ;;
3164  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3165$as_echo "print -r" >&6; } ;;
3166  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3167$as_echo "cat" >&6; } ;;
3168esac
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183DEPDIR="${am__leading_dot}deps"
3184
3185ac_config_commands="$ac_config_commands depfiles"
3186
3187
3188am_make=${MAKE-make}
3189cat > confinc << 'END'
3190am__doit:
3191	@echo this is the am__doit target
3192.PHONY: am__doit
3193END
3194# If we don't find an include directive, just comment out the code.
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3196$as_echo_n "checking for style of include used by $am_make... " >&6; }
3197am__include="#"
3198am__quote=
3199_am_result=none
3200# First try GNU make style include.
3201echo "include confinc" > confmf
3202# Ignore all kinds of additional output from 'make'.
3203case `$am_make -s -f confmf 2> /dev/null` in #(
3204*the\ am__doit\ target*)
3205  am__include=include
3206  am__quote=
3207  _am_result=GNU
3208  ;;
3209esac
3210# Now try BSD make style include.
3211if test "$am__include" = "#"; then
3212   echo '.include "confinc"' > confmf
3213   case `$am_make -s -f confmf 2> /dev/null` in #(
3214   *the\ am__doit\ target*)
3215     am__include=.include
3216     am__quote="\""
3217     _am_result=BSD
3218     ;;
3219   esac
3220fi
3221
3222
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3224$as_echo "$_am_result" >&6; }
3225rm -f confinc confmf
3226
3227# Check whether --enable-dependency-tracking was given.
3228if test "${enable_dependency_tracking+set}" = set; then :
3229  enableval=$enable_dependency_tracking;
3230fi
3231
3232if test "x$enable_dependency_tracking" != xno; then
3233  am_depcomp="$ac_aux_dir/depcomp"
3234  AMDEPBACKSLASH='\'
3235  am__nodep='_no'
3236fi
3237 if test "x$enable_dependency_tracking" != xno; then
3238  AMDEP_TRUE=
3239  AMDEP_FALSE='#'
3240else
3241  AMDEP_TRUE='#'
3242  AMDEP_FALSE=
3243fi
3244
3245
3246ac_ext=c
3247ac_cpp='$CPP $CPPFLAGS'
3248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251if test -n "$ac_tool_prefix"; then
3252  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3253set dummy ${ac_tool_prefix}gcc; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if ${ac_cv_prog_CC+:} false; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  if test -n "$CC"; then
3260  ac_cv_prog_CC="$CC" # Let the user override the test.
3261else
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
3265  IFS=$as_save_IFS
3266  test -z "$as_dir" && as_dir=.
3267    for ac_exec_ext in '' $ac_executable_extensions; do
3268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271    break 2
3272  fi
3273done
3274  done
3275IFS=$as_save_IFS
3276
3277fi
3278fi
3279CC=$ac_cv_prog_CC
3280if test -n "$CC"; then
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282$as_echo "$CC" >&6; }
3283else
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286fi
3287
3288
3289fi
3290if test -z "$ac_cv_prog_CC"; then
3291  ac_ct_CC=$CC
3292  # Extract the first word of "gcc", so it can be a program name with args.
3293set dummy gcc; ac_word=$2
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if ${ac_cv_prog_ac_ct_CC+:} false; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  if test -n "$ac_ct_CC"; then
3300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307    for ac_exec_ext in '' $ac_executable_extensions; do
3308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309    ac_cv_prog_ac_ct_CC="gcc"
3310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314  done
3315IFS=$as_save_IFS
3316
3317fi
3318fi
3319ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320if test -n "$ac_ct_CC"; then
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322$as_echo "$ac_ct_CC" >&6; }
3323else
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326fi
3327
3328  if test "x$ac_ct_CC" = x; then
3329    CC=""
3330  else
3331    case $cross_compiling:$ac_tool_warned in
3332yes:)
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335ac_tool_warned=yes ;;
3336esac
3337    CC=$ac_ct_CC
3338  fi
3339else
3340  CC="$ac_cv_prog_CC"
3341fi
3342
3343if test -z "$CC"; then
3344          if test -n "$ac_tool_prefix"; then
3345    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3346set dummy ${ac_tool_prefix}cc; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
3349if ${ac_cv_prog_CC+:} false; then :
3350  $as_echo_n "(cached) " >&6
3351else
3352  if test -n "$CC"; then
3353  ac_cv_prog_CC="$CC" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360    for ac_exec_ext in '' $ac_executable_extensions; do
3361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_CC="${ac_tool_prefix}cc"
3363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367  done
3368IFS=$as_save_IFS
3369
3370fi
3371fi
3372CC=$ac_cv_prog_CC
3373if test -n "$CC"; then
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375$as_echo "$CC" >&6; }
3376else
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379fi
3380
3381
3382  fi
3383fi
3384if test -z "$CC"; then
3385  # Extract the first word of "cc", so it can be a program name with args.
3386set dummy cc; ac_word=$2
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if ${ac_cv_prog_CC+:} false; then :
3390  $as_echo_n "(cached) " >&6
3391else
3392  if test -n "$CC"; then
3393  ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395  ac_prog_rejected=no
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399  IFS=$as_save_IFS
3400  test -z "$as_dir" && as_dir=.
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3404       ac_prog_rejected=yes
3405       continue
3406     fi
3407    ac_cv_prog_CC="cc"
3408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409    break 2
3410  fi
3411done
3412  done
3413IFS=$as_save_IFS
3414
3415if test $ac_prog_rejected = yes; then
3416  # We found a bogon in the path, so make sure we never use it.
3417  set dummy $ac_cv_prog_CC
3418  shift
3419  if test $# != 0; then
3420    # We chose a different compiler from the bogus one.
3421    # However, it has the same basename, so the bogon will be chosen
3422    # first if we set CC to just the basename; use the full file name.
3423    shift
3424    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3425  fi
3426fi
3427fi
3428fi
3429CC=$ac_cv_prog_CC
3430if test -n "$CC"; then
3431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432$as_echo "$CC" >&6; }
3433else
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438
3439fi
3440if test -z "$CC"; then
3441  if test -n "$ac_tool_prefix"; then
3442  for ac_prog in cl.exe
3443  do
3444    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3445set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447$as_echo_n "checking for $ac_word... " >&6; }
3448if ${ac_cv_prog_CC+:} false; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  if test -n "$CC"; then
3452  ac_cv_prog_CC="$CC" # Let the user override the test.
3453else
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457  IFS=$as_save_IFS
3458  test -z "$as_dir" && as_dir=.
3459    for ac_exec_ext in '' $ac_executable_extensions; do
3460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463    break 2
3464  fi
3465done
3466  done
3467IFS=$as_save_IFS
3468
3469fi
3470fi
3471CC=$ac_cv_prog_CC
3472if test -n "$CC"; then
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3474$as_echo "$CC" >&6; }
3475else
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477$as_echo "no" >&6; }
3478fi
3479
3480
3481    test -n "$CC" && break
3482  done
3483fi
3484if test -z "$CC"; then
3485  ac_ct_CC=$CC
3486  for ac_prog in cl.exe
3487do
3488  # Extract the first word of "$ac_prog", so it can be a program name with args.
3489set dummy $ac_prog; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if ${ac_cv_prog_ac_ct_CC+:} false; then :
3493  $as_echo_n "(cached) " >&6
3494else
3495  if test -n "$ac_ct_CC"; then
3496  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  test -z "$as_dir" && as_dir=.
3503    for ac_exec_ext in '' $ac_executable_extensions; do
3504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505    ac_cv_prog_ac_ct_CC="$ac_prog"
3506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507    break 2
3508  fi
3509done
3510  done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516if test -n "$ac_ct_CC"; then
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518$as_echo "$ac_ct_CC" >&6; }
3519else
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525  test -n "$ac_ct_CC" && break
3526done
3527
3528  if test "x$ac_ct_CC" = x; then
3529    CC=""
3530  else
3531    case $cross_compiling:$ac_tool_warned in
3532yes:)
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535ac_tool_warned=yes ;;
3536esac
3537    CC=$ac_ct_CC
3538  fi
3539fi
3540
3541fi
3542
3543
3544test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "no acceptable C compiler found in \$PATH
3547See \`config.log' for more details" "$LINENO" 5; }
3548
3549# Provide some information about the compiler.
3550$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3551set X $ac_compile
3552ac_compiler=$2
3553for ac_option in --version -v -V -qversion; do
3554  { { ac_try="$ac_compiler $ac_option >&5"
3555case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3562  ac_status=$?
3563  if test -s conftest.err; then
3564    sed '10a\
3565... rest of stderr output deleted ...
3566         10q' conftest.err >conftest.er1
3567    cat conftest.er1 >&5
3568  fi
3569  rm -f conftest.er1 conftest.err
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572done
3573
3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585ac_clean_files_save=$ac_clean_files
3586ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3587# Try to create an executable without -o first, disregard a.out.
3588# It will help us diagnose broken compilers, and finding out an intuition
3589# of exeext.
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3591$as_echo_n "checking whether the C compiler works... " >&6; }
3592ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3593
3594# The possible output files:
3595ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3596
3597ac_rmfiles=
3598for ac_file in $ac_files
3599do
3600  case $ac_file in
3601    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3603  esac
3604done
3605rm -f $ac_rmfiles
3606
3607if { { ac_try="$ac_link_default"
3608case "(($ac_try" in
3609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610  *) ac_try_echo=$ac_try;;
3611esac
3612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613$as_echo "$ac_try_echo"; } >&5
3614  (eval "$ac_link_default") 2>&5
3615  ac_status=$?
3616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617  test $ac_status = 0; }; then :
3618  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3619# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3620# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3621# so that the user can short-circuit this test for compilers unknown to
3622# Autoconf.
3623for ac_file in $ac_files ''
3624do
3625  test -f "$ac_file" || continue
3626  case $ac_file in
3627    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3628	;;
3629    [ab].out )
3630	# We found the default executable, but exeext='' is most
3631	# certainly right.
3632	break;;
3633    *.* )
3634	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3635	then :; else
3636	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637	fi
3638	# We set ac_cv_exeext here because the later test for it is not
3639	# safe: cross compilers may not add the suffix if given an `-o'
3640	# argument, so we may need to know it at that point already.
3641	# Even if this section looks crufty: it has the advantage of
3642	# actually working.
3643	break;;
3644    * )
3645	break;;
3646  esac
3647done
3648test "$ac_cv_exeext" = no && ac_cv_exeext=
3649
3650else
3651  ac_file=''
3652fi
3653if test -z "$ac_file"; then :
3654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655$as_echo "no" >&6; }
3656$as_echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661as_fn_error 77 "C compiler cannot create executables
3662See \`config.log' for more details" "$LINENO" 5; }
3663else
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665$as_echo "yes" >&6; }
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3668$as_echo_n "checking for C compiler default output file name... " >&6; }
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3670$as_echo "$ac_file" >&6; }
3671ac_exeext=$ac_cv_exeext
3672
3673rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3674ac_clean_files=$ac_clean_files_save
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3676$as_echo_n "checking for suffix of executables... " >&6; }
3677if { { ac_try="$ac_link"
3678case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684  (eval "$ac_link") 2>&5
3685  ac_status=$?
3686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687  test $ac_status = 0; }; then :
3688  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3689# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3690# work properly (i.e., refer to `conftest.exe'), while it won't with
3691# `rm'.
3692for ac_file in conftest.exe conftest conftest.*; do
3693  test -f "$ac_file" || continue
3694  case $ac_file in
3695    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3696    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697	  break;;
3698    * ) break;;
3699  esac
3700done
3701else
3702  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3705See \`config.log' for more details" "$LINENO" 5; }
3706fi
3707rm -f conftest conftest$ac_cv_exeext
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3709$as_echo "$ac_cv_exeext" >&6; }
3710
3711rm -f conftest.$ac_ext
3712EXEEXT=$ac_cv_exeext
3713ac_exeext=$EXEEXT
3714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h.  */
3716#include <stdio.h>
3717int
3718main ()
3719{
3720FILE *f = fopen ("conftest.out", "w");
3721 return ferror (f) || fclose (f) != 0;
3722
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727ac_clean_files="$ac_clean_files conftest.out"
3728# Check that the compiler produces executables we can run.  If not, either
3729# the compiler is broken, or we cross compile.
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3731$as_echo_n "checking whether we are cross compiling... " >&6; }
3732if test "$cross_compiling" != yes; then
3733  { { ac_try="$ac_link"
3734case "(($ac_try" in
3735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736  *) ac_try_echo=$ac_try;;
3737esac
3738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739$as_echo "$ac_try_echo"; } >&5
3740  (eval "$ac_link") 2>&5
3741  ac_status=$?
3742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743  test $ac_status = 0; }
3744  if { ac_try='./conftest$ac_cv_exeext'
3745  { { case "(($ac_try" in
3746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747  *) ac_try_echo=$ac_try;;
3748esac
3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750$as_echo "$ac_try_echo"; } >&5
3751  (eval "$ac_try") 2>&5
3752  ac_status=$?
3753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754  test $ac_status = 0; }; }; then
3755    cross_compiling=no
3756  else
3757    if test "$cross_compiling" = maybe; then
3758	cross_compiling=yes
3759    else
3760	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762as_fn_error $? "cannot run C compiled programs.
3763If you meant to cross compile, use \`--host'.
3764See \`config.log' for more details" "$LINENO" 5; }
3765    fi
3766  fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3769$as_echo "$cross_compiling" >&6; }
3770
3771rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3772ac_clean_files=$ac_clean_files_save
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3774$as_echo_n "checking for suffix of object files... " >&6; }
3775if ${ac_cv_objext+:} false; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779/* end confdefs.h.  */
3780
3781int
3782main ()
3783{
3784
3785  ;
3786  return 0;
3787}
3788_ACEOF
3789rm -f conftest.o conftest.obj
3790if { { ac_try="$ac_compile"
3791case "(($ac_try" in
3792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793  *) ac_try_echo=$ac_try;;
3794esac
3795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796$as_echo "$ac_try_echo"; } >&5
3797  (eval "$ac_compile") 2>&5
3798  ac_status=$?
3799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800  test $ac_status = 0; }; then :
3801  for ac_file in conftest.o conftest.obj conftest.*; do
3802  test -f "$ac_file" || continue;
3803  case $ac_file in
3804    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3805    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806       break;;
3807  esac
3808done
3809else
3810  $as_echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815as_fn_error $? "cannot compute suffix of object files: cannot compile
3816See \`config.log' for more details" "$LINENO" 5; }
3817fi
3818rm -f conftest.$ac_cv_objext conftest.$ac_ext
3819fi
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3821$as_echo "$ac_cv_objext" >&6; }
3822OBJEXT=$ac_cv_objext
3823ac_objext=$OBJEXT
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3825$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3826if ${ac_cv_c_compiler_gnu+:} false; then :
3827  $as_echo_n "(cached) " >&6
3828else
3829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831
3832int
3833main ()
3834{
3835#ifndef __GNUC__
3836       choke me
3837#endif
3838
3839  ;
3840  return 0;
3841}
3842_ACEOF
3843if ac_fn_c_try_compile "$LINENO"; then :
3844  ac_compiler_gnu=yes
3845else
3846  ac_compiler_gnu=no
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849ac_cv_c_compiler_gnu=$ac_compiler_gnu
3850
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3853$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3854if test $ac_compiler_gnu = yes; then
3855  GCC=yes
3856else
3857  GCC=
3858fi
3859ac_test_CFLAGS=${CFLAGS+set}
3860ac_save_CFLAGS=$CFLAGS
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3862$as_echo_n "checking whether $CC accepts -g... " >&6; }
3863if ${ac_cv_prog_cc_g+:} false; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  ac_save_c_werror_flag=$ac_c_werror_flag
3867   ac_c_werror_flag=yes
3868   ac_cv_prog_cc_g=no
3869   CFLAGS="-g"
3870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881if ac_fn_c_try_compile "$LINENO"; then :
3882  ac_cv_prog_cc_g=yes
3883else
3884  CFLAGS=""
3885      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886/* end confdefs.h.  */
3887
3888int
3889main ()
3890{
3891
3892  ;
3893  return 0;
3894}
3895_ACEOF
3896if ac_fn_c_try_compile "$LINENO"; then :
3897
3898else
3899  ac_c_werror_flag=$ac_save_c_werror_flag
3900	 CFLAGS="-g"
3901	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h.  */
3903
3904int
3905main ()
3906{
3907
3908  ;
3909  return 0;
3910}
3911_ACEOF
3912if ac_fn_c_try_compile "$LINENO"; then :
3913  ac_cv_prog_cc_g=yes
3914fi
3915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916fi
3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918fi
3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920   ac_c_werror_flag=$ac_save_c_werror_flag
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3923$as_echo "$ac_cv_prog_cc_g" >&6; }
3924if test "$ac_test_CFLAGS" = set; then
3925  CFLAGS=$ac_save_CFLAGS
3926elif test $ac_cv_prog_cc_g = yes; then
3927  if test "$GCC" = yes; then
3928    CFLAGS="-g -O2"
3929  else
3930    CFLAGS="-g"
3931  fi
3932else
3933  if test "$GCC" = yes; then
3934    CFLAGS="-O2"
3935  else
3936    CFLAGS=
3937  fi
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3940$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3941if ${ac_cv_prog_cc_c89+:} false; then :
3942  $as_echo_n "(cached) " >&6
3943else
3944  ac_cv_prog_cc_c89=no
3945ac_save_CC=$CC
3946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948#include <stdarg.h>
3949#include <stdio.h>
3950struct stat;
3951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3952struct buf { int x; };
3953FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954static char *e (p, i)
3955     char **p;
3956     int i;
3957{
3958  return p[i];
3959}
3960static char *f (char * (*g) (char **, int), char **p, ...)
3961{
3962  char *s;
3963  va_list v;
3964  va_start (v,p);
3965  s = g (p, va_arg (v,int));
3966  va_end (v);
3967  return s;
3968}
3969
3970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3971   function prototypes and stuff, but not '\xHH' hex character constants.
3972   These don't provoke an error unfortunately, instead are silently treated
3973   as 'x'.  The following induces an error, until -std is added to get
3974   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3975   array size at least.  It's necessary to write '\x00'==0 to get something
3976   that's true only with -std.  */
3977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978
3979/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3980   inside strings and character constants.  */
3981#define FOO(x) 'x'
3982int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3983
3984int test (int i, double x);
3985struct s1 {int (*f) (int a);};
3986struct s2 {int (*f) (double a);};
3987int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3988int argc;
3989char **argv;
3990int
3991main ()
3992{
3993return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3994  ;
3995  return 0;
3996}
3997_ACEOF
3998for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3999	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4000do
4001  CC="$ac_save_CC $ac_arg"
4002  if ac_fn_c_try_compile "$LINENO"; then :
4003  ac_cv_prog_cc_c89=$ac_arg
4004fi
4005rm -f core conftest.err conftest.$ac_objext
4006  test "x$ac_cv_prog_cc_c89" != "xno" && break
4007done
4008rm -f conftest.$ac_ext
4009CC=$ac_save_CC
4010
4011fi
4012# AC_CACHE_VAL
4013case "x$ac_cv_prog_cc_c89" in
4014  x)
4015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4016$as_echo "none needed" >&6; } ;;
4017  xno)
4018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4019$as_echo "unsupported" >&6; } ;;
4020  *)
4021    CC="$CC $ac_cv_prog_cc_c89"
4022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4023$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4024esac
4025if test "x$ac_cv_prog_cc_c89" != xno; then :
4026
4027fi
4028
4029ac_ext=c
4030ac_cpp='$CPP $CPPFLAGS'
4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035ac_ext=c
4036ac_cpp='$CPP $CPPFLAGS'
4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4041$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4042if ${am_cv_prog_cc_c_o+:} false; then :
4043  $as_echo_n "(cached) " >&6
4044else
4045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056  # Make sure it works both with $CC and with simple cc.
4057  # Following AC_PROG_CC_C_O, we do the test twice because some
4058  # compilers refuse to overwrite an existing .o file with -o,
4059  # though they will create one.
4060  am_cv_prog_cc_c_o=yes
4061  for am_i in 1 2; do
4062    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4063   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } \
4067         && test -f conftest2.$ac_objext; then
4068      : OK
4069    else
4070      am_cv_prog_cc_c_o=no
4071      break
4072    fi
4073  done
4074  rm -f core conftest*
4075  unset am_i
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4078$as_echo "$am_cv_prog_cc_c_o" >&6; }
4079if test "$am_cv_prog_cc_c_o" != yes; then
4080   # Losing compiler, so override with the script.
4081   # FIXME: It is wrong to rewrite CC.
4082   # But if we don't then we get into trouble of one sort or another.
4083   # A longer-term fix would be to have automake use am__CC in this case,
4084   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4085   CC="$am_aux_dir/compile $CC"
4086fi
4087ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093
4094depcc="$CC"   am_compiler_list=
4095
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4097$as_echo_n "checking dependency style of $depcc... " >&6; }
4098if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4102  # We make a subdir and do the tests there.  Otherwise we can end up
4103  # making bogus files that we don't know about and never remove.  For
4104  # instance it was reported that on HP-UX the gcc test will end up
4105  # making a dummy file named 'D' -- because '-MD' means "put the output
4106  # in D".
4107  rm -rf conftest.dir
4108  mkdir conftest.dir
4109  # Copy depcomp to subdir because otherwise we won't find it if we're
4110  # using a relative directory.
4111  cp "$am_depcomp" conftest.dir
4112  cd conftest.dir
4113  # We will build objects and dependencies in a subdirectory because
4114  # it helps to detect inapplicable dependency modes.  For instance
4115  # both Tru64's cc and ICC support -MD to output dependencies as a
4116  # side effect of compilation, but ICC will put the dependencies in
4117  # the current directory while Tru64 will put them in the object
4118  # directory.
4119  mkdir sub
4120
4121  am_cv_CC_dependencies_compiler_type=none
4122  if test "$am_compiler_list" = ""; then
4123     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4124  fi
4125  am__universal=false
4126  case " $depcc " in #(
4127     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4128     esac
4129
4130  for depmode in $am_compiler_list; do
4131    # Setup a source with many dependencies, because some compilers
4132    # like to wrap large dependency lists on column 80 (with \), and
4133    # we should not choose a depcomp mode which is confused by this.
4134    #
4135    # We need to recreate these files for each test, as the compiler may
4136    # overwrite some of them when testing with obscure command lines.
4137    # This happens at least with the AIX C compiler.
4138    : > sub/conftest.c
4139    for i in 1 2 3 4 5 6; do
4140      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4141      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4142      # Solaris 10 /bin/sh.
4143      echo '/* dummy */' > sub/conftst$i.h
4144    done
4145    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4146
4147    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4148    # mode.  It turns out that the SunPro C++ compiler does not properly
4149    # handle '-M -o', and we need to detect this.  Also, some Intel
4150    # versions had trouble with output in subdirs.
4151    am__obj=sub/conftest.${OBJEXT-o}
4152    am__minus_obj="-o $am__obj"
4153    case $depmode in
4154    gcc)
4155      # This depmode causes a compiler race in universal mode.
4156      test "$am__universal" = false || continue
4157      ;;
4158    nosideeffect)
4159      # After this tag, mechanisms are not by side-effect, so they'll
4160      # only be used when explicitly requested.
4161      if test "x$enable_dependency_tracking" = xyes; then
4162	continue
4163      else
4164	break
4165      fi
4166      ;;
4167    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4168      # This compiler won't grok '-c -o', but also, the minuso test has
4169      # not run yet.  These depmodes are late enough in the game, and
4170      # so weak that their functioning should not be impacted.
4171      am__obj=conftest.${OBJEXT-o}
4172      am__minus_obj=
4173      ;;
4174    none) break ;;
4175    esac
4176    if depmode=$depmode \
4177       source=sub/conftest.c object=$am__obj \
4178       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4179       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4180         >/dev/null 2>conftest.err &&
4181       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4182       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4183       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4184       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4185      # icc doesn't choke on unknown options, it will just issue warnings
4186      # or remarks (even with -Werror).  So we grep stderr for any message
4187      # that says an option was ignored or not supported.
4188      # When given -MP, icc 7.0 and 7.1 complain thusly:
4189      #   icc: Command line warning: ignoring option '-M'; no argument required
4190      # The diagnosis changed in icc 8.0:
4191      #   icc: Command line remark: option '-MP' not supported
4192      if (grep 'ignoring option' conftest.err ||
4193          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4194        am_cv_CC_dependencies_compiler_type=$depmode
4195        break
4196      fi
4197    fi
4198  done
4199
4200  cd ..
4201  rm -rf conftest.dir
4202else
4203  am_cv_CC_dependencies_compiler_type=none
4204fi
4205
4206fi
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4208$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4209CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4210
4211 if
4212  test "x$enable_dependency_tracking" != xno \
4213  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4214  am__fastdepCC_TRUE=
4215  am__fastdepCC_FALSE='#'
4216else
4217  am__fastdepCC_TRUE='#'
4218  am__fastdepCC_FALSE=
4219fi
4220
4221
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4223$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4224if ${ac_cv_path_SED+:} false; then :
4225  $as_echo_n "(cached) " >&6
4226else
4227            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4228     for ac_i in 1 2 3 4 5 6 7; do
4229       ac_script="$ac_script$as_nl$ac_script"
4230     done
4231     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4232     { ac_script=; unset ac_script;}
4233     if test -z "$SED"; then
4234  ac_path_SED_found=false
4235  # Loop through the user's path and test for each of PROGNAME-LIST
4236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239  IFS=$as_save_IFS
4240  test -z "$as_dir" && as_dir=.
4241    for ac_prog in sed gsed; do
4242    for ac_exec_ext in '' $ac_executable_extensions; do
4243      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4244      as_fn_executable_p "$ac_path_SED" || continue
4245# Check for GNU ac_path_SED and select it if it is found.
4246  # Check for GNU $ac_path_SED
4247case `"$ac_path_SED" --version 2>&1` in
4248*GNU*)
4249  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4250*)
4251  ac_count=0
4252  $as_echo_n 0123456789 >"conftest.in"
4253  while :
4254  do
4255    cat "conftest.in" "conftest.in" >"conftest.tmp"
4256    mv "conftest.tmp" "conftest.in"
4257    cp "conftest.in" "conftest.nl"
4258    $as_echo '' >> "conftest.nl"
4259    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261    as_fn_arith $ac_count + 1 && ac_count=$as_val
4262    if test $ac_count -gt ${ac_path_SED_max-0}; then
4263      # Best one so far, save it but keep looking for a better one
4264      ac_cv_path_SED="$ac_path_SED"
4265      ac_path_SED_max=$ac_count
4266    fi
4267    # 10*(2^10) chars as input seems more than enough
4268    test $ac_count -gt 10 && break
4269  done
4270  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271esac
4272
4273      $ac_path_SED_found && break 3
4274    done
4275  done
4276  done
4277IFS=$as_save_IFS
4278  if test -z "$ac_cv_path_SED"; then
4279    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4280  fi
4281else
4282  ac_cv_path_SED=$SED
4283fi
4284
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4287$as_echo "$ac_cv_path_SED" >&6; }
4288 SED="$ac_cv_path_SED"
4289  rm -f conftest.sed
4290
4291test -z "$SED" && SED=sed
4292Xsed="$SED -e 1s/^X//"
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4305$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4306if ${ac_cv_path_GREP+:} false; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  if test -z "$GREP"; then
4310  ac_path_GREP_found=false
4311  # Loop through the user's path and test for each of PROGNAME-LIST
4312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317    for ac_prog in grep ggrep; do
4318    for ac_exec_ext in '' $ac_executable_extensions; do
4319      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4320      as_fn_executable_p "$ac_path_GREP" || continue
4321# Check for GNU ac_path_GREP and select it if it is found.
4322  # Check for GNU $ac_path_GREP
4323case `"$ac_path_GREP" --version 2>&1` in
4324*GNU*)
4325  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4326*)
4327  ac_count=0
4328  $as_echo_n 0123456789 >"conftest.in"
4329  while :
4330  do
4331    cat "conftest.in" "conftest.in" >"conftest.tmp"
4332    mv "conftest.tmp" "conftest.in"
4333    cp "conftest.in" "conftest.nl"
4334    $as_echo 'GREP' >> "conftest.nl"
4335    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337    as_fn_arith $ac_count + 1 && ac_count=$as_val
4338    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4339      # Best one so far, save it but keep looking for a better one
4340      ac_cv_path_GREP="$ac_path_GREP"
4341      ac_path_GREP_max=$ac_count
4342    fi
4343    # 10*(2^10) chars as input seems more than enough
4344    test $ac_count -gt 10 && break
4345  done
4346  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347esac
4348
4349      $ac_path_GREP_found && break 3
4350    done
4351  done
4352  done
4353IFS=$as_save_IFS
4354  if test -z "$ac_cv_path_GREP"; then
4355    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356  fi
4357else
4358  ac_cv_path_GREP=$GREP
4359fi
4360
4361fi
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4363$as_echo "$ac_cv_path_GREP" >&6; }
4364 GREP="$ac_cv_path_GREP"
4365
4366
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4368$as_echo_n "checking for egrep... " >&6; }
4369if ${ac_cv_path_EGREP+:} false; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4373   then ac_cv_path_EGREP="$GREP -E"
4374   else
4375     if test -z "$EGREP"; then
4376  ac_path_EGREP_found=false
4377  # Loop through the user's path and test for each of PROGNAME-LIST
4378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380do
4381  IFS=$as_save_IFS
4382  test -z "$as_dir" && as_dir=.
4383    for ac_prog in egrep; do
4384    for ac_exec_ext in '' $ac_executable_extensions; do
4385      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4386      as_fn_executable_p "$ac_path_EGREP" || continue
4387# Check for GNU ac_path_EGREP and select it if it is found.
4388  # Check for GNU $ac_path_EGREP
4389case `"$ac_path_EGREP" --version 2>&1` in
4390*GNU*)
4391  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4392*)
4393  ac_count=0
4394  $as_echo_n 0123456789 >"conftest.in"
4395  while :
4396  do
4397    cat "conftest.in" "conftest.in" >"conftest.tmp"
4398    mv "conftest.tmp" "conftest.in"
4399    cp "conftest.in" "conftest.nl"
4400    $as_echo 'EGREP' >> "conftest.nl"
4401    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403    as_fn_arith $ac_count + 1 && ac_count=$as_val
4404    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4405      # Best one so far, save it but keep looking for a better one
4406      ac_cv_path_EGREP="$ac_path_EGREP"
4407      ac_path_EGREP_max=$ac_count
4408    fi
4409    # 10*(2^10) chars as input seems more than enough
4410    test $ac_count -gt 10 && break
4411  done
4412  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413esac
4414
4415      $ac_path_EGREP_found && break 3
4416    done
4417  done
4418  done
4419IFS=$as_save_IFS
4420  if test -z "$ac_cv_path_EGREP"; then
4421    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422  fi
4423else
4424  ac_cv_path_EGREP=$EGREP
4425fi
4426
4427   fi
4428fi
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4430$as_echo "$ac_cv_path_EGREP" >&6; }
4431 EGREP="$ac_cv_path_EGREP"
4432
4433
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4435$as_echo_n "checking for fgrep... " >&6; }
4436if ${ac_cv_path_FGREP+:} false; then :
4437  $as_echo_n "(cached) " >&6
4438else
4439  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4440   then ac_cv_path_FGREP="$GREP -F"
4441   else
4442     if test -z "$FGREP"; then
4443  ac_path_FGREP_found=false
4444  # Loop through the user's path and test for each of PROGNAME-LIST
4445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450    for ac_prog in fgrep; do
4451    for ac_exec_ext in '' $ac_executable_extensions; do
4452      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4453      as_fn_executable_p "$ac_path_FGREP" || continue
4454# Check for GNU ac_path_FGREP and select it if it is found.
4455  # Check for GNU $ac_path_FGREP
4456case `"$ac_path_FGREP" --version 2>&1` in
4457*GNU*)
4458  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4459*)
4460  ac_count=0
4461  $as_echo_n 0123456789 >"conftest.in"
4462  while :
4463  do
4464    cat "conftest.in" "conftest.in" >"conftest.tmp"
4465    mv "conftest.tmp" "conftest.in"
4466    cp "conftest.in" "conftest.nl"
4467    $as_echo 'FGREP' >> "conftest.nl"
4468    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4469    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4470    as_fn_arith $ac_count + 1 && ac_count=$as_val
4471    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4472      # Best one so far, save it but keep looking for a better one
4473      ac_cv_path_FGREP="$ac_path_FGREP"
4474      ac_path_FGREP_max=$ac_count
4475    fi
4476    # 10*(2^10) chars as input seems more than enough
4477    test $ac_count -gt 10 && break
4478  done
4479  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4480esac
4481
4482      $ac_path_FGREP_found && break 3
4483    done
4484  done
4485  done
4486IFS=$as_save_IFS
4487  if test -z "$ac_cv_path_FGREP"; then
4488    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4489  fi
4490else
4491  ac_cv_path_FGREP=$FGREP
4492fi
4493
4494   fi
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4497$as_echo "$ac_cv_path_FGREP" >&6; }
4498 FGREP="$ac_cv_path_FGREP"
4499
4500
4501test -z "$GREP" && GREP=grep
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521# Check whether --with-gnu-ld was given.
4522if test "${with_gnu_ld+set}" = set; then :
4523  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4524else
4525  with_gnu_ld=no
4526fi
4527
4528ac_prog=ld
4529if test yes = "$GCC"; then
4530  # Check if gcc -print-prog-name=ld gives a path.
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4532$as_echo_n "checking for ld used by $CC... " >&6; }
4533  case $host in
4534  *-*-mingw*)
4535    # gcc leaves a trailing carriage return, which upsets mingw
4536    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4537  *)
4538    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4539  esac
4540  case $ac_prog in
4541    # Accept absolute paths.
4542    [\\/]* | ?:[\\/]*)
4543      re_direlt='/[^/][^/]*/\.\./'
4544      # Canonicalize the pathname of ld
4545      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4546      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4547	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4548      done
4549      test -z "$LD" && LD=$ac_prog
4550      ;;
4551  "")
4552    # If it fails, then pretend we aren't using GCC.
4553    ac_prog=ld
4554    ;;
4555  *)
4556    # If it is relative, then search for the first ld in PATH.
4557    with_gnu_ld=unknown
4558    ;;
4559  esac
4560elif test yes = "$with_gnu_ld"; then
4561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4562$as_echo_n "checking for GNU ld... " >&6; }
4563else
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4565$as_echo_n "checking for non-GNU ld... " >&6; }
4566fi
4567if ${lt_cv_path_LD+:} false; then :
4568  $as_echo_n "(cached) " >&6
4569else
4570  if test -z "$LD"; then
4571  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4572  for ac_dir in $PATH; do
4573    IFS=$lt_save_ifs
4574    test -z "$ac_dir" && ac_dir=.
4575    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4576      lt_cv_path_LD=$ac_dir/$ac_prog
4577      # Check to see if the program is GNU ld.  I'd rather use --version,
4578      # but apparently some variants of GNU ld only accept -v.
4579      # Break only if it was the GNU/non-GNU ld that we prefer.
4580      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4581      *GNU* | *'with BFD'*)
4582	test no != "$with_gnu_ld" && break
4583	;;
4584      *)
4585	test yes != "$with_gnu_ld" && break
4586	;;
4587      esac
4588    fi
4589  done
4590  IFS=$lt_save_ifs
4591else
4592  lt_cv_path_LD=$LD # Let the user override the test with a path.
4593fi
4594fi
4595
4596LD=$lt_cv_path_LD
4597if test -n "$LD"; then
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4599$as_echo "$LD" >&6; }
4600else
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602$as_echo "no" >&6; }
4603fi
4604test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4606$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4607if ${lt_cv_prog_gnu_ld+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4611case `$LD -v 2>&1 </dev/null` in
4612*GNU* | *'with BFD'*)
4613  lt_cv_prog_gnu_ld=yes
4614  ;;
4615*)
4616  lt_cv_prog_gnu_ld=no
4617  ;;
4618esac
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4621$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4622with_gnu_ld=$lt_cv_prog_gnu_ld
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4633$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4634if ${lt_cv_path_NM+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  if test -n "$NM"; then
4638  # Let the user override the test.
4639  lt_cv_path_NM=$NM
4640else
4641  lt_nm_to_check=${ac_tool_prefix}nm
4642  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4643    lt_nm_to_check="$lt_nm_to_check nm"
4644  fi
4645  for lt_tmp_nm in $lt_nm_to_check; do
4646    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4647    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4648      IFS=$lt_save_ifs
4649      test -z "$ac_dir" && ac_dir=.
4650      tmp_nm=$ac_dir/$lt_tmp_nm
4651      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4652	# Check to see if the nm accepts a BSD-compat flag.
4653	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4654	#   nm: unknown option "B" ignored
4655	# Tru64's nm complains that /dev/null is an invalid object file
4656	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4657	case $build_os in
4658	mingw*) lt_bad_file=conftest.nm/nofile ;;
4659	*) lt_bad_file=/dev/null ;;
4660	esac
4661	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4662	*$lt_bad_file* | *'Invalid file or object type'*)
4663	  lt_cv_path_NM="$tmp_nm -B"
4664	  break 2
4665	  ;;
4666	*)
4667	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4668	  */dev/null*)
4669	    lt_cv_path_NM="$tmp_nm -p"
4670	    break 2
4671	    ;;
4672	  *)
4673	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4674	    continue # so that we can try to find one that supports BSD flags
4675	    ;;
4676	  esac
4677	  ;;
4678	esac
4679      fi
4680    done
4681    IFS=$lt_save_ifs
4682  done
4683  : ${lt_cv_path_NM=no}
4684fi
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4687$as_echo "$lt_cv_path_NM" >&6; }
4688if test no != "$lt_cv_path_NM"; then
4689  NM=$lt_cv_path_NM
4690else
4691  # Didn't find any BSD compatible name lister, look for dumpbin.
4692  if test -n "$DUMPBIN"; then :
4693    # Let the user override the test.
4694  else
4695    if test -n "$ac_tool_prefix"; then
4696  for ac_prog in dumpbin "link -dump"
4697  do
4698    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701$as_echo_n "checking for $ac_word... " >&6; }
4702if ${ac_cv_prog_DUMPBIN+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test -n "$DUMPBIN"; then
4706  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713    for ac_exec_ext in '' $ac_executable_extensions; do
4714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720  done
4721IFS=$as_save_IFS
4722
4723fi
4724fi
4725DUMPBIN=$ac_cv_prog_DUMPBIN
4726if test -n "$DUMPBIN"; then
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4728$as_echo "$DUMPBIN" >&6; }
4729else
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731$as_echo "no" >&6; }
4732fi
4733
4734
4735    test -n "$DUMPBIN" && break
4736  done
4737fi
4738if test -z "$DUMPBIN"; then
4739  ac_ct_DUMPBIN=$DUMPBIN
4740  for ac_prog in dumpbin "link -dump"
4741do
4742  # Extract the first word of "$ac_prog", so it can be a program name with args.
4743set dummy $ac_prog; ac_word=$2
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745$as_echo_n "checking for $ac_word... " >&6; }
4746if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -n "$ac_ct_DUMPBIN"; then
4750  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764  done
4765IFS=$as_save_IFS
4766
4767fi
4768fi
4769ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4770if test -n "$ac_ct_DUMPBIN"; then
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4772$as_echo "$ac_ct_DUMPBIN" >&6; }
4773else
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778
4779  test -n "$ac_ct_DUMPBIN" && break
4780done
4781
4782  if test "x$ac_ct_DUMPBIN" = x; then
4783    DUMPBIN=":"
4784  else
4785    case $cross_compiling:$ac_tool_warned in
4786yes:)
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789ac_tool_warned=yes ;;
4790esac
4791    DUMPBIN=$ac_ct_DUMPBIN
4792  fi
4793fi
4794
4795    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4796    *COFF*)
4797      DUMPBIN="$DUMPBIN -symbols -headers"
4798      ;;
4799    *)
4800      DUMPBIN=:
4801      ;;
4802    esac
4803  fi
4804
4805  if test : != "$DUMPBIN"; then
4806    NM=$DUMPBIN
4807  fi
4808fi
4809test -z "$NM" && NM=nm
4810
4811
4812
4813
4814
4815
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4817$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4818if ${lt_cv_nm_interface+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  lt_cv_nm_interface="BSD nm"
4822  echo "int some_variable = 0;" > conftest.$ac_ext
4823  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4824  (eval "$ac_compile" 2>conftest.err)
4825  cat conftest.err >&5
4826  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4827  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4828  cat conftest.err >&5
4829  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4830  cat conftest.out >&5
4831  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4832    lt_cv_nm_interface="MS dumpbin"
4833  fi
4834  rm -f conftest*
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4837$as_echo "$lt_cv_nm_interface" >&6; }
4838
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4840$as_echo_n "checking whether ln -s works... " >&6; }
4841LN_S=$as_ln_s
4842if test "$LN_S" = "ln -s"; then
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4844$as_echo "yes" >&6; }
4845else
4846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4847$as_echo "no, using $LN_S" >&6; }
4848fi
4849
4850# find the maximum length of command line arguments
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4852$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4853if ${lt_cv_sys_max_cmd_len+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856    i=0
4857  teststring=ABCD
4858
4859  case $build_os in
4860  msdosdjgpp*)
4861    # On DJGPP, this test can blow up pretty badly due to problems in libc
4862    # (any single argument exceeding 2000 bytes causes a buffer overrun
4863    # during glob expansion).  Even if it were fixed, the result of this
4864    # check would be larger than it should be.
4865    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4866    ;;
4867
4868  gnu*)
4869    # Under GNU Hurd, this test is not required because there is
4870    # no limit to the length of command line arguments.
4871    # Libtool will interpret -1 as no limit whatsoever
4872    lt_cv_sys_max_cmd_len=-1;
4873    ;;
4874
4875  cygwin* | mingw* | cegcc*)
4876    # On Win9x/ME, this test blows up -- it succeeds, but takes
4877    # about 5 minutes as the teststring grows exponentially.
4878    # Worse, since 9x/ME are not pre-emptively multitasking,
4879    # you end up with a "frozen" computer, even though with patience
4880    # the test eventually succeeds (with a max line length of 256k).
4881    # Instead, let's just punt: use the minimum linelength reported by
4882    # all of the supported platforms: 8192 (on NT/2K/XP).
4883    lt_cv_sys_max_cmd_len=8192;
4884    ;;
4885
4886  mint*)
4887    # On MiNT this can take a long time and run out of memory.
4888    lt_cv_sys_max_cmd_len=8192;
4889    ;;
4890
4891  amigaos*)
4892    # On AmigaOS with pdksh, this test takes hours, literally.
4893    # So we just punt and use a minimum line length of 8192.
4894    lt_cv_sys_max_cmd_len=8192;
4895    ;;
4896
4897  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4898    # This has been around since 386BSD, at least.  Likely further.
4899    if test -x /sbin/sysctl; then
4900      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4901    elif test -x /usr/sbin/sysctl; then
4902      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4903    else
4904      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4905    fi
4906    # And add a safety zone
4907    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4908    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4909    ;;
4910
4911  interix*)
4912    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4913    lt_cv_sys_max_cmd_len=196608
4914    ;;
4915
4916  os2*)
4917    # The test takes a long time on OS/2.
4918    lt_cv_sys_max_cmd_len=8192
4919    ;;
4920
4921  osf*)
4922    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4923    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4924    # nice to cause kernel panics so lets avoid the loop below.
4925    # First set a reasonable default.
4926    lt_cv_sys_max_cmd_len=16384
4927    #
4928    if test -x /sbin/sysconfig; then
4929      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4930        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4931      esac
4932    fi
4933    ;;
4934  sco3.2v5*)
4935    lt_cv_sys_max_cmd_len=102400
4936    ;;
4937  sysv5* | sco5v6* | sysv4.2uw2*)
4938    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4939    if test -n "$kargmax"; then
4940      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4941    else
4942      lt_cv_sys_max_cmd_len=32768
4943    fi
4944    ;;
4945  *)
4946    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4947    if test -n "$lt_cv_sys_max_cmd_len" && \
4948       test undefined != "$lt_cv_sys_max_cmd_len"; then
4949      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4950      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4951    else
4952      # Make teststring a little bigger before we do anything with it.
4953      # a 1K string should be a reasonable start.
4954      for i in 1 2 3 4 5 6 7 8; do
4955        teststring=$teststring$teststring
4956      done
4957      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4958      # If test is not a shell built-in, we'll probably end up computing a
4959      # maximum length that is only half of the actual maximum length, but
4960      # we can't tell.
4961      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4962	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4963	      test 17 != "$i" # 1/2 MB should be enough
4964      do
4965        i=`expr $i + 1`
4966        teststring=$teststring$teststring
4967      done
4968      # Only check the string length outside the loop.
4969      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4970      teststring=
4971      # Add a significant safety factor because C++ compilers can tack on
4972      # massive amounts of additional arguments before passing them to the
4973      # linker.  It appears as though 1/2 is a usable value.
4974      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4975    fi
4976    ;;
4977  esac
4978
4979fi
4980
4981if test -n "$lt_cv_sys_max_cmd_len"; then
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4983$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4984else
4985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4986$as_echo "none" >&6; }
4987fi
4988max_cmd_len=$lt_cv_sys_max_cmd_len
4989
4990
4991
4992
4993
4994
4995: ${CP="cp -f"}
4996: ${MV="mv -f"}
4997: ${RM="rm -f"}
4998
4999if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5000  lt_unset=unset
5001else
5002  lt_unset=false
5003fi
5004
5005
5006
5007
5008
5009# test EBCDIC or ASCII
5010case `echo X|tr X '\101'` in
5011 A) # ASCII based system
5012    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5013  lt_SP2NL='tr \040 \012'
5014  lt_NL2SP='tr \015\012 \040\040'
5015  ;;
5016 *) # EBCDIC based system
5017  lt_SP2NL='tr \100 \n'
5018  lt_NL2SP='tr \r\n \100\100'
5019  ;;
5020esac
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5031$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5032if ${lt_cv_to_host_file_cmd+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  case $host in
5036  *-*-mingw* )
5037    case $build in
5038      *-*-mingw* ) # actually msys
5039        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5040        ;;
5041      *-*-cygwin* )
5042        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5043        ;;
5044      * ) # otherwise, assume *nix
5045        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5046        ;;
5047    esac
5048    ;;
5049  *-*-cygwin* )
5050    case $build in
5051      *-*-mingw* ) # actually msys
5052        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5053        ;;
5054      *-*-cygwin* )
5055        lt_cv_to_host_file_cmd=func_convert_file_noop
5056        ;;
5057      * ) # otherwise, assume *nix
5058        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5059        ;;
5060    esac
5061    ;;
5062  * ) # unhandled hosts (and "normal" native builds)
5063    lt_cv_to_host_file_cmd=func_convert_file_noop
5064    ;;
5065esac
5066
5067fi
5068
5069to_host_file_cmd=$lt_cv_to_host_file_cmd
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5071$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5072
5073
5074
5075
5076
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5078$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5079if ${lt_cv_to_tool_file_cmd+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  #assume ordinary cross tools, or native build.
5083lt_cv_to_tool_file_cmd=func_convert_file_noop
5084case $host in
5085  *-*-mingw* )
5086    case $build in
5087      *-*-mingw* ) # actually msys
5088        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5089        ;;
5090    esac
5091    ;;
5092esac
5093
5094fi
5095
5096to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5098$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5099
5100
5101
5102
5103
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5105$as_echo_n "checking for $LD option to reload object files... " >&6; }
5106if ${lt_cv_ld_reload_flag+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  lt_cv_ld_reload_flag='-r'
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5112$as_echo "$lt_cv_ld_reload_flag" >&6; }
5113reload_flag=$lt_cv_ld_reload_flag
5114case $reload_flag in
5115"" | " "*) ;;
5116*) reload_flag=" $reload_flag" ;;
5117esac
5118reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119case $host_os in
5120  cygwin* | mingw* | pw32* | cegcc*)
5121    if test yes != "$GCC"; then
5122      reload_cmds=false
5123    fi
5124    ;;
5125  darwin*)
5126    if test yes = "$GCC"; then
5127      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5128    else
5129      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5130    fi
5131    ;;
5132esac
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142if test -n "$ac_tool_prefix"; then
5143  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5144set dummy ${ac_tool_prefix}objdump; ac_word=$2
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146$as_echo_n "checking for $ac_word... " >&6; }
5147if ${ac_cv_prog_OBJDUMP+:} false; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150  if test -n "$OBJDUMP"; then
5151  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156  IFS=$as_save_IFS
5157  test -z "$as_dir" && as_dir=.
5158    for ac_exec_ext in '' $ac_executable_extensions; do
5159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162    break 2
5163  fi
5164done
5165  done
5166IFS=$as_save_IFS
5167
5168fi
5169fi
5170OBJDUMP=$ac_cv_prog_OBJDUMP
5171if test -n "$OBJDUMP"; then
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5173$as_echo "$OBJDUMP" >&6; }
5174else
5175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176$as_echo "no" >&6; }
5177fi
5178
5179
5180fi
5181if test -z "$ac_cv_prog_OBJDUMP"; then
5182  ac_ct_OBJDUMP=$OBJDUMP
5183  # Extract the first word of "objdump", so it can be a program name with args.
5184set dummy objdump; ac_word=$2
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186$as_echo_n "checking for $ac_word... " >&6; }
5187if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190  if test -n "$ac_ct_OBJDUMP"; then
5191  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196  IFS=$as_save_IFS
5197  test -z "$as_dir" && as_dir=.
5198    for ac_exec_ext in '' $ac_executable_extensions; do
5199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202    break 2
5203  fi
5204done
5205  done
5206IFS=$as_save_IFS
5207
5208fi
5209fi
5210ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5211if test -n "$ac_ct_OBJDUMP"; then
5212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5213$as_echo "$ac_ct_OBJDUMP" >&6; }
5214else
5215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216$as_echo "no" >&6; }
5217fi
5218
5219  if test "x$ac_ct_OBJDUMP" = x; then
5220    OBJDUMP="false"
5221  else
5222    case $cross_compiling:$ac_tool_warned in
5223yes:)
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226ac_tool_warned=yes ;;
5227esac
5228    OBJDUMP=$ac_ct_OBJDUMP
5229  fi
5230else
5231  OBJDUMP="$ac_cv_prog_OBJDUMP"
5232fi
5233
5234test -z "$OBJDUMP" && OBJDUMP=objdump
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5245$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5246if ${lt_cv_deplibs_check_method+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  lt_cv_file_magic_cmd='$MAGIC_CMD'
5250lt_cv_file_magic_test_file=
5251lt_cv_deplibs_check_method='unknown'
5252# Need to set the preceding variable on all platforms that support
5253# interlibrary dependencies.
5254# 'none' -- dependencies not supported.
5255# 'unknown' -- same as none, but documents that we really don't know.
5256# 'pass_all' -- all dependencies passed with no checks.
5257# 'test_compile' -- check by making test program.
5258# 'file_magic [[regex]]' -- check by looking for files in library path
5259# that responds to the $file_magic_cmd with a given extended regex.
5260# If you have 'file' or equivalent on your system and you're not sure
5261# whether 'pass_all' will *always* work, you probably want this one.
5262
5263case $host_os in
5264aix[4-9]*)
5265  lt_cv_deplibs_check_method=pass_all
5266  ;;
5267
5268beos*)
5269  lt_cv_deplibs_check_method=pass_all
5270  ;;
5271
5272bsdi[45]*)
5273  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5274  lt_cv_file_magic_cmd='/usr/bin/file -L'
5275  lt_cv_file_magic_test_file=/shlib/libc.so
5276  ;;
5277
5278cygwin*)
5279  # func_win32_libid is a shell function defined in ltmain.sh
5280  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5281  lt_cv_file_magic_cmd='func_win32_libid'
5282  ;;
5283
5284mingw* | pw32*)
5285  # Base MSYS/MinGW do not provide the 'file' command needed by
5286  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5287  # unless we find 'file', for example because we are cross-compiling.
5288  if ( file / ) >/dev/null 2>&1; then
5289    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5290    lt_cv_file_magic_cmd='func_win32_libid'
5291  else
5292    # Keep this pattern in sync with the one in func_win32_libid.
5293    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5294    lt_cv_file_magic_cmd='$OBJDUMP -f'
5295  fi
5296  ;;
5297
5298cegcc*)
5299  # use the weaker test based on 'objdump'. See mingw*.
5300  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5301  lt_cv_file_magic_cmd='$OBJDUMP -f'
5302  ;;
5303
5304darwin* | rhapsody*)
5305  lt_cv_deplibs_check_method=pass_all
5306  ;;
5307
5308freebsd* | dragonfly*)
5309  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5310    case $host_cpu in
5311    i*86 )
5312      # Not sure whether the presence of OpenBSD here was a mistake.
5313      # Let's accept both of them until this is cleared up.
5314      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5315      lt_cv_file_magic_cmd=/usr/bin/file
5316      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5317      ;;
5318    esac
5319  else
5320    lt_cv_deplibs_check_method=pass_all
5321  fi
5322  ;;
5323
5324haiku*)
5325  lt_cv_deplibs_check_method=pass_all
5326  ;;
5327
5328hpux10.20* | hpux11*)
5329  lt_cv_file_magic_cmd=/usr/bin/file
5330  case $host_cpu in
5331  ia64*)
5332    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5333    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5334    ;;
5335  hppa*64*)
5336    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]'
5337    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5338    ;;
5339  *)
5340    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5341    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5342    ;;
5343  esac
5344  ;;
5345
5346interix[3-9]*)
5347  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5348  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5349  ;;
5350
5351irix5* | irix6* | nonstopux*)
5352  case $LD in
5353  *-32|*"-32 ") libmagic=32-bit;;
5354  *-n32|*"-n32 ") libmagic=N32;;
5355  *-64|*"-64 ") libmagic=64-bit;;
5356  *) libmagic=never-match;;
5357  esac
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361# This must be glibc/ELF.
5362linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5363  lt_cv_deplibs_check_method=pass_all
5364  ;;
5365
5366netbsd*)
5367  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5368    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5369  else
5370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5371  fi
5372  ;;
5373
5374newos6*)
5375  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5376  lt_cv_file_magic_cmd=/usr/bin/file
5377  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5378  ;;
5379
5380*nto* | *qnx*)
5381  lt_cv_deplibs_check_method=pass_all
5382  ;;
5383
5384openbsd* | bitrig*)
5385  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5386    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5387  else
5388    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5389  fi
5390  ;;
5391
5392osf3* | osf4* | osf5*)
5393  lt_cv_deplibs_check_method=pass_all
5394  ;;
5395
5396rdos*)
5397  lt_cv_deplibs_check_method=pass_all
5398  ;;
5399
5400solaris*)
5401  lt_cv_deplibs_check_method=pass_all
5402  ;;
5403
5404sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5405  lt_cv_deplibs_check_method=pass_all
5406  ;;
5407
5408sysv4 | sysv4.3*)
5409  case $host_vendor in
5410  motorola)
5411    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]'
5412    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5413    ;;
5414  ncr)
5415    lt_cv_deplibs_check_method=pass_all
5416    ;;
5417  sequent)
5418    lt_cv_file_magic_cmd='/bin/file'
5419    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5420    ;;
5421  sni)
5422    lt_cv_file_magic_cmd='/bin/file'
5423    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5424    lt_cv_file_magic_test_file=/lib/libc.so
5425    ;;
5426  siemens)
5427    lt_cv_deplibs_check_method=pass_all
5428    ;;
5429  pc)
5430    lt_cv_deplibs_check_method=pass_all
5431    ;;
5432  esac
5433  ;;
5434
5435tpf*)
5436  lt_cv_deplibs_check_method=pass_all
5437  ;;
5438os2*)
5439  lt_cv_deplibs_check_method=pass_all
5440  ;;
5441esac
5442
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5445$as_echo "$lt_cv_deplibs_check_method" >&6; }
5446
5447file_magic_glob=
5448want_nocaseglob=no
5449if test "$build" = "$host"; then
5450  case $host_os in
5451  mingw* | pw32*)
5452    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5453      want_nocaseglob=yes
5454    else
5455      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5456    fi
5457    ;;
5458  esac
5459fi
5460
5461file_magic_cmd=$lt_cv_file_magic_cmd
5462deplibs_check_method=$lt_cv_deplibs_check_method
5463test -z "$deplibs_check_method" && deplibs_check_method=unknown
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486if test -n "$ac_tool_prefix"; then
5487  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5488set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490$as_echo_n "checking for $ac_word... " >&6; }
5491if ${ac_cv_prog_DLLTOOL+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  if test -n "$DLLTOOL"; then
5495  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500  IFS=$as_save_IFS
5501  test -z "$as_dir" && as_dir=.
5502    for ac_exec_ext in '' $ac_executable_extensions; do
5503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506    break 2
5507  fi
5508done
5509  done
5510IFS=$as_save_IFS
5511
5512fi
5513fi
5514DLLTOOL=$ac_cv_prog_DLLTOOL
5515if test -n "$DLLTOOL"; then
5516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5517$as_echo "$DLLTOOL" >&6; }
5518else
5519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520$as_echo "no" >&6; }
5521fi
5522
5523
5524fi
5525if test -z "$ac_cv_prog_DLLTOOL"; then
5526  ac_ct_DLLTOOL=$DLLTOOL
5527  # Extract the first word of "dlltool", so it can be a program name with args.
5528set dummy dlltool; ac_word=$2
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530$as_echo_n "checking for $ac_word... " >&6; }
5531if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  if test -n "$ac_ct_DLLTOOL"; then
5535  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5536else
5537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538for as_dir in $PATH
5539do
5540  IFS=$as_save_IFS
5541  test -z "$as_dir" && as_dir=.
5542    for ac_exec_ext in '' $ac_executable_extensions; do
5543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546    break 2
5547  fi
5548done
5549  done
5550IFS=$as_save_IFS
5551
5552fi
5553fi
5554ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5555if test -n "$ac_ct_DLLTOOL"; then
5556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5557$as_echo "$ac_ct_DLLTOOL" >&6; }
5558else
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560$as_echo "no" >&6; }
5561fi
5562
5563  if test "x$ac_ct_DLLTOOL" = x; then
5564    DLLTOOL="false"
5565  else
5566    case $cross_compiling:$ac_tool_warned in
5567yes:)
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5570ac_tool_warned=yes ;;
5571esac
5572    DLLTOOL=$ac_ct_DLLTOOL
5573  fi
5574else
5575  DLLTOOL="$ac_cv_prog_DLLTOOL"
5576fi
5577
5578test -z "$DLLTOOL" && DLLTOOL=dlltool
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5590$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5591if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  lt_cv_sharedlib_from_linklib_cmd='unknown'
5595
5596case $host_os in
5597cygwin* | mingw* | pw32* | cegcc*)
5598  # two different shell functions defined in ltmain.sh;
5599  # decide which one to use based on capabilities of $DLLTOOL
5600  case `$DLLTOOL --help 2>&1` in
5601  *--identify-strict*)
5602    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5603    ;;
5604  *)
5605    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5606    ;;
5607  esac
5608  ;;
5609*)
5610  # fallback: assume linklib IS sharedlib
5611  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5612  ;;
5613esac
5614
5615fi
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5617$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5618sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5619test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5620
5621
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629  for ac_prog in ar
5630  do
5631    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
5635if ${ac_cv_prog_AR+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  if test -n "$AR"; then
5639  ac_cv_prog_AR="$AR" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646    for ac_exec_ext in '' $ac_executable_extensions; do
5647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653  done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658AR=$ac_cv_prog_AR
5659if test -n "$AR"; then
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5661$as_echo "$AR" >&6; }
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667
5668    test -n "$AR" && break
5669  done
5670fi
5671if test -z "$AR"; then
5672  ac_ct_AR=$AR
5673  for ac_prog in ar
5674do
5675  # Extract the first word of "$ac_prog", so it can be a program name with args.
5676set dummy $ac_prog; ac_word=$2
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
5679if ${ac_cv_prog_ac_ct_AR+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  if test -n "$ac_ct_AR"; then
5683  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  test -z "$as_dir" && as_dir=.
5690    for ac_exec_ext in '' $ac_executable_extensions; do
5691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692    ac_cv_prog_ac_ct_AR="$ac_prog"
5693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694    break 2
5695  fi
5696done
5697  done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
5702ac_ct_AR=$ac_cv_prog_ac_ct_AR
5703if test -n "$ac_ct_AR"; then
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5705$as_echo "$ac_ct_AR" >&6; }
5706else
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711
5712  test -n "$ac_ct_AR" && break
5713done
5714
5715  if test "x$ac_ct_AR" = x; then
5716    AR="false"
5717  else
5718    case $cross_compiling:$ac_tool_warned in
5719yes:)
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722ac_tool_warned=yes ;;
5723esac
5724    AR=$ac_ct_AR
5725  fi
5726fi
5727
5728: ${AR=ar}
5729: ${AR_FLAGS=cru}
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5742$as_echo_n "checking for archiver @FILE support... " >&6; }
5743if ${lt_cv_ar_at_file+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746  lt_cv_ar_at_file=no
5747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h.  */
5749
5750int
5751main ()
5752{
5753
5754  ;
5755  return 0;
5756}
5757_ACEOF
5758if ac_fn_c_try_compile "$LINENO"; then :
5759  echo conftest.$ac_objext > conftest.lst
5760      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5761      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5762  (eval $lt_ar_try) 2>&5
5763  ac_status=$?
5764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765  test $ac_status = 0; }
5766      if test 0 -eq "$ac_status"; then
5767	# Ensure the archiver fails upon bogus file names.
5768	rm -f conftest.$ac_objext libconftest.a
5769	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5770  (eval $lt_ar_try) 2>&5
5771  ac_status=$?
5772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773  test $ac_status = 0; }
5774	if test 0 -ne "$ac_status"; then
5775          lt_cv_ar_at_file=@
5776        fi
5777      fi
5778      rm -f conftest.* libconftest.a
5779
5780fi
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5785$as_echo "$lt_cv_ar_at_file" >&6; }
5786
5787if test no = "$lt_cv_ar_at_file"; then
5788  archiver_list_spec=
5789else
5790  archiver_list_spec=$lt_cv_ar_at_file
5791fi
5792
5793
5794
5795
5796
5797
5798
5799if test -n "$ac_tool_prefix"; then
5800  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801set dummy ${ac_tool_prefix}strip; ac_word=$2
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803$as_echo_n "checking for $ac_word... " >&6; }
5804if ${ac_cv_prog_STRIP+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  if test -n "$STRIP"; then
5808  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813  IFS=$as_save_IFS
5814  test -z "$as_dir" && as_dir=.
5815    for ac_exec_ext in '' $ac_executable_extensions; do
5816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819    break 2
5820  fi
5821done
5822  done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827STRIP=$ac_cv_prog_STRIP
5828if test -n "$STRIP"; then
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5830$as_echo "$STRIP" >&6; }
5831else
5832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }
5834fi
5835
5836
5837fi
5838if test -z "$ac_cv_prog_STRIP"; then
5839  ac_ct_STRIP=$STRIP
5840  # Extract the first word of "strip", so it can be a program name with args.
5841set dummy strip; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  if test -n "$ac_ct_STRIP"; then
5848  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855    for ac_exec_ext in '' $ac_executable_extensions; do
5856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857    ac_cv_prog_ac_ct_STRIP="strip"
5858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862  done
5863IFS=$as_save_IFS
5864
5865fi
5866fi
5867ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868if test -n "$ac_ct_STRIP"; then
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5870$as_echo "$ac_ct_STRIP" >&6; }
5871else
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
5875
5876  if test "x$ac_ct_STRIP" = x; then
5877    STRIP=":"
5878  else
5879    case $cross_compiling:$ac_tool_warned in
5880yes:)
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883ac_tool_warned=yes ;;
5884esac
5885    STRIP=$ac_ct_STRIP
5886  fi
5887else
5888  STRIP="$ac_cv_prog_STRIP"
5889fi
5890
5891test -z "$STRIP" && STRIP=:
5892
5893
5894
5895
5896
5897
5898if test -n "$ac_tool_prefix"; then
5899  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_RANLIB+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  if test -n "$RANLIB"; then
5907  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914    for ac_exec_ext in '' $ac_executable_extensions; do
5915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921  done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926RANLIB=$ac_cv_prog_RANLIB
5927if test -n "$RANLIB"; then
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5929$as_echo "$RANLIB" >&6; }
5930else
5931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935
5936fi
5937if test -z "$ac_cv_prog_RANLIB"; then
5938  ac_ct_RANLIB=$RANLIB
5939  # Extract the first word of "ranlib", so it can be a program name with args.
5940set dummy ranlib; ac_word=$2
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942$as_echo_n "checking for $ac_word... " >&6; }
5943if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  if test -n "$ac_ct_RANLIB"; then
5947  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952  IFS=$as_save_IFS
5953  test -z "$as_dir" && as_dir=.
5954    for ac_exec_ext in '' $ac_executable_extensions; do
5955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956    ac_cv_prog_ac_ct_RANLIB="ranlib"
5957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958    break 2
5959  fi
5960done
5961  done
5962IFS=$as_save_IFS
5963
5964fi
5965fi
5966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967if test -n "$ac_ct_RANLIB"; then
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5969$as_echo "$ac_ct_RANLIB" >&6; }
5970else
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972$as_echo "no" >&6; }
5973fi
5974
5975  if test "x$ac_ct_RANLIB" = x; then
5976    RANLIB=":"
5977  else
5978    case $cross_compiling:$ac_tool_warned in
5979yes:)
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982ac_tool_warned=yes ;;
5983esac
5984    RANLIB=$ac_ct_RANLIB
5985  fi
5986else
5987  RANLIB="$ac_cv_prog_RANLIB"
5988fi
5989
5990test -z "$RANLIB" && RANLIB=:
5991
5992
5993
5994
5995
5996
5997# Determine commands to create old-style static archives.
5998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5999old_postinstall_cmds='chmod 644 $oldlib'
6000old_postuninstall_cmds=
6001
6002if test -n "$RANLIB"; then
6003  case $host_os in
6004  bitrig* | openbsd*)
6005    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6006    ;;
6007  *)
6008    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6009    ;;
6010  esac
6011  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6012fi
6013
6014case $host_os in
6015  darwin*)
6016    lock_old_archive_extraction=yes ;;
6017  *)
6018    lock_old_archive_extraction=no ;;
6019esac
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059# If no C compiler was specified, use CC.
6060LTCC=${LTCC-"$CC"}
6061
6062# If no C compiler flags were specified, use CFLAGS.
6063LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6064
6065# Allow CC to be a program name with arguments.
6066compiler=$CC
6067
6068
6069# Check for command to grab the raw symbol name followed by C symbol from nm.
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6071$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6072if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075
6076# These are sane defaults that work on at least a few old systems.
6077# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6078
6079# Character class describing NM global symbol codes.
6080symcode='[BCDEGRST]'
6081
6082# Regexp to match symbols that can be accessed directly from C.
6083sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6084
6085# Define system-specific variables.
6086case $host_os in
6087aix*)
6088  symcode='[BCDT]'
6089  ;;
6090cygwin* | mingw* | pw32* | cegcc*)
6091  symcode='[ABCDGISTW]'
6092  ;;
6093hpux*)
6094  if test ia64 = "$host_cpu"; then
6095    symcode='[ABCDEGRST]'
6096  fi
6097  ;;
6098irix* | nonstopux*)
6099  symcode='[BCDEGRST]'
6100  ;;
6101osf*)
6102  symcode='[BCDEGQRST]'
6103  ;;
6104solaris*)
6105  symcode='[BDRT]'
6106  ;;
6107sco3.2v5*)
6108  symcode='[DT]'
6109  ;;
6110sysv4.2uw2*)
6111  symcode='[DT]'
6112  ;;
6113sysv5* | sco5v6* | unixware* | OpenUNIX*)
6114  symcode='[ABDT]'
6115  ;;
6116sysv4)
6117  symcode='[DFNSTU]'
6118  ;;
6119esac
6120
6121# If we're using GNU nm, then use its standard symbol codes.
6122case `$NM -V 2>&1` in
6123*GNU* | *'with BFD'*)
6124  symcode='[ABCDGIRSTW]' ;;
6125esac
6126
6127if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6128  # Gets list of data symbols to import.
6129  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6130  # Adjust the below global symbol transforms to fixup imported variables.
6131  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6132  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6133  lt_c_name_lib_hook="\
6134  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6135  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6136else
6137  # Disable hooks by default.
6138  lt_cv_sys_global_symbol_to_import=
6139  lt_cdecl_hook=
6140  lt_c_name_hook=
6141  lt_c_name_lib_hook=
6142fi
6143
6144# Transform an extracted symbol line into a proper C declaration.
6145# Some systems (esp. on ia64) link data and code symbols differently,
6146# so use this general approach.
6147lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6148$lt_cdecl_hook\
6149" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6150" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6151
6152# Transform an extracted symbol line into symbol name and symbol address
6153lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6154$lt_c_name_hook\
6155" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6156" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6157
6158# Transform an extracted symbol line into symbol name with lib prefix and
6159# symbol address.
6160lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6161$lt_c_name_lib_hook\
6162" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6163" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6164" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6165
6166# Handle CRLF in mingw tool chain
6167opt_cr=
6168case $build_os in
6169mingw*)
6170  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6171  ;;
6172esac
6173
6174# Try without a prefix underscore, then with it.
6175for ac_symprfx in "" "_"; do
6176
6177  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6178  symxfrm="\\1 $ac_symprfx\\2 \\2"
6179
6180  # Write the raw and C identifiers.
6181  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6182    # Fake it for dumpbin and say T for any non-static function,
6183    # D for any global variable and I for any imported variable.
6184    # Also find C++ and __fastcall symbols from MSVC++,
6185    # which start with @ or ?.
6186    lt_cv_sys_global_symbol_pipe="$AWK '"\
6187"     {last_section=section; section=\$ 3};"\
6188"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6189"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6190"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6191"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6192"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6193"     \$ 0!~/External *\|/{next};"\
6194"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6195"     {if(hide[section]) next};"\
6196"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6197"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6198"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6199"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6200"     ' prfx=^$ac_symprfx"
6201  else
6202    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6203  fi
6204  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6205
6206  # Check to see that the pipe works correctly.
6207  pipe_works=no
6208
6209  rm -f conftest*
6210  cat > conftest.$ac_ext <<_LT_EOF
6211#ifdef __cplusplus
6212extern "C" {
6213#endif
6214char nm_test_var;
6215void nm_test_func(void);
6216void nm_test_func(void){}
6217#ifdef __cplusplus
6218}
6219#endif
6220int main(){nm_test_var='a';nm_test_func();return(0);}
6221_LT_EOF
6222
6223  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6224  (eval $ac_compile) 2>&5
6225  ac_status=$?
6226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227  test $ac_status = 0; }; then
6228    # Now try to grab the symbols.
6229    nlist=conftest.nm
6230    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6231  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6232  ac_status=$?
6233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6234  test $ac_status = 0; } && test -s "$nlist"; then
6235      # Try sorting and uniquifying the output.
6236      if sort "$nlist" | uniq > "$nlist"T; then
6237	mv -f "$nlist"T "$nlist"
6238      else
6239	rm -f "$nlist"T
6240      fi
6241
6242      # Make sure that we snagged all the symbols we need.
6243      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6244	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6245	  cat <<_LT_EOF > conftest.$ac_ext
6246/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6247#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6248/* DATA imports from DLLs on WIN32 can't be const, because runtime
6249   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6250# define LT_DLSYM_CONST
6251#elif defined __osf__
6252/* This system does not cope well with relocations in const data.  */
6253# define LT_DLSYM_CONST
6254#else
6255# define LT_DLSYM_CONST const
6256#endif
6257
6258#ifdef __cplusplus
6259extern "C" {
6260#endif
6261
6262_LT_EOF
6263	  # Now generate the symbol file.
6264	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6265
6266	  cat <<_LT_EOF >> conftest.$ac_ext
6267
6268/* The mapping between symbol names and symbols.  */
6269LT_DLSYM_CONST struct {
6270  const char *name;
6271  void       *address;
6272}
6273lt__PROGRAM__LTX_preloaded_symbols[] =
6274{
6275  { "@PROGRAM@", (void *) 0 },
6276_LT_EOF
6277	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6278	  cat <<\_LT_EOF >> conftest.$ac_ext
6279  {0, (void *) 0}
6280};
6281
6282/* This works around a problem in FreeBSD linker */
6283#ifdef FREEBSD_WORKAROUND
6284static const void *lt_preloaded_setup() {
6285  return lt__PROGRAM__LTX_preloaded_symbols;
6286}
6287#endif
6288
6289#ifdef __cplusplus
6290}
6291#endif
6292_LT_EOF
6293	  # Now try linking the two files.
6294	  mv conftest.$ac_objext conftstm.$ac_objext
6295	  lt_globsym_save_LIBS=$LIBS
6296	  lt_globsym_save_CFLAGS=$CFLAGS
6297	  LIBS=conftstm.$ac_objext
6298	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6299	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6300  (eval $ac_link) 2>&5
6301  ac_status=$?
6302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6304	    pipe_works=yes
6305	  fi
6306	  LIBS=$lt_globsym_save_LIBS
6307	  CFLAGS=$lt_globsym_save_CFLAGS
6308	else
6309	  echo "cannot find nm_test_func in $nlist" >&5
6310	fi
6311      else
6312	echo "cannot find nm_test_var in $nlist" >&5
6313      fi
6314    else
6315      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6316    fi
6317  else
6318    echo "$progname: failed program was:" >&5
6319    cat conftest.$ac_ext >&5
6320  fi
6321  rm -rf conftest* conftst*
6322
6323  # Do not use the global_symbol_pipe unless it works.
6324  if test yes = "$pipe_works"; then
6325    break
6326  else
6327    lt_cv_sys_global_symbol_pipe=
6328  fi
6329done
6330
6331fi
6332
6333if test -z "$lt_cv_sys_global_symbol_pipe"; then
6334  lt_cv_sys_global_symbol_to_cdecl=
6335fi
6336if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6338$as_echo "failed" >&6; }
6339else
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6341$as_echo "ok" >&6; }
6342fi
6343
6344# Response file support.
6345if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6346  nm_file_list_spec='@'
6347elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6348  nm_file_list_spec='@'
6349fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6388$as_echo_n "checking for sysroot... " >&6; }
6389
6390# Check whether --with-sysroot was given.
6391if test "${with_sysroot+set}" = set; then :
6392  withval=$with_sysroot;
6393else
6394  with_sysroot=no
6395fi
6396
6397
6398lt_sysroot=
6399case $with_sysroot in #(
6400 yes)
6401   if test yes = "$GCC"; then
6402     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6403   fi
6404   ;; #(
6405 /*)
6406   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6407   ;; #(
6408 no|'')
6409   ;; #(
6410 *)
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6412$as_echo "$with_sysroot" >&6; }
6413   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6414   ;;
6415esac
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6418$as_echo "${lt_sysroot:-no}" >&6; }
6419
6420
6421
6422
6423
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6425$as_echo_n "checking for a working dd... " >&6; }
6426if ${ac_cv_path_lt_DD+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  printf 0123456789abcdef0123456789abcdef >conftest.i
6430cat conftest.i conftest.i >conftest2.i
6431: ${lt_DD:=$DD}
6432if test -z "$lt_DD"; then
6433  ac_path_lt_DD_found=false
6434  # Loop through the user's path and test for each of PROGNAME-LIST
6435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438  IFS=$as_save_IFS
6439  test -z "$as_dir" && as_dir=.
6440    for ac_prog in dd; do
6441    for ac_exec_ext in '' $ac_executable_extensions; do
6442      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6443      as_fn_executable_p "$ac_path_lt_DD" || continue
6444if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6445  cmp -s conftest.i conftest.out \
6446  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6447fi
6448      $ac_path_lt_DD_found && break 3
6449    done
6450  done
6451  done
6452IFS=$as_save_IFS
6453  if test -z "$ac_cv_path_lt_DD"; then
6454    :
6455  fi
6456else
6457  ac_cv_path_lt_DD=$lt_DD
6458fi
6459
6460rm -f conftest.i conftest2.i conftest.out
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6463$as_echo "$ac_cv_path_lt_DD" >&6; }
6464
6465
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6467$as_echo_n "checking how to truncate binary pipes... " >&6; }
6468if ${lt_cv_truncate_bin+:} false; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471  printf 0123456789abcdef0123456789abcdef >conftest.i
6472cat conftest.i conftest.i >conftest2.i
6473lt_cv_truncate_bin=
6474if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6475  cmp -s conftest.i conftest.out \
6476  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6477fi
6478rm -f conftest.i conftest2.i conftest.out
6479test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6482$as_echo "$lt_cv_truncate_bin" >&6; }
6483
6484
6485
6486
6487
6488
6489
6490# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6491func_cc_basename ()
6492{
6493    for cc_temp in $*""; do
6494      case $cc_temp in
6495        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6496        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6497        \-*) ;;
6498        *) break;;
6499      esac
6500    done
6501    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6502}
6503
6504# Check whether --enable-libtool-lock was given.
6505if test "${enable_libtool_lock+set}" = set; then :
6506  enableval=$enable_libtool_lock;
6507fi
6508
6509test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6510
6511# Some flags need to be propagated to the compiler or linker for good
6512# libtool support.
6513case $host in
6514ia64-*-hpux*)
6515  # Find out what ABI is being produced by ac_compile, and set mode
6516  # options accordingly.
6517  echo 'int i;' > conftest.$ac_ext
6518  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519  (eval $ac_compile) 2>&5
6520  ac_status=$?
6521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522  test $ac_status = 0; }; then
6523    case `/usr/bin/file conftest.$ac_objext` in
6524      *ELF-32*)
6525	HPUX_IA64_MODE=32
6526	;;
6527      *ELF-64*)
6528	HPUX_IA64_MODE=64
6529	;;
6530    esac
6531  fi
6532  rm -rf conftest*
6533  ;;
6534*-*-irix6*)
6535  # Find out what ABI is being produced by ac_compile, and set linker
6536  # options accordingly.
6537  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6538  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6539  (eval $ac_compile) 2>&5
6540  ac_status=$?
6541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542  test $ac_status = 0; }; then
6543    if test yes = "$lt_cv_prog_gnu_ld"; then
6544      case `/usr/bin/file conftest.$ac_objext` in
6545	*32-bit*)
6546	  LD="${LD-ld} -melf32bsmip"
6547	  ;;
6548	*N32*)
6549	  LD="${LD-ld} -melf32bmipn32"
6550	  ;;
6551	*64-bit*)
6552	  LD="${LD-ld} -melf64bmip"
6553	;;
6554      esac
6555    else
6556      case `/usr/bin/file conftest.$ac_objext` in
6557	*32-bit*)
6558	  LD="${LD-ld} -32"
6559	  ;;
6560	*N32*)
6561	  LD="${LD-ld} -n32"
6562	  ;;
6563	*64-bit*)
6564	  LD="${LD-ld} -64"
6565	  ;;
6566      esac
6567    fi
6568  fi
6569  rm -rf conftest*
6570  ;;
6571
6572mips64*-*linux*)
6573  # Find out what ABI is being produced by ac_compile, and set linker
6574  # options accordingly.
6575  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6576  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6577  (eval $ac_compile) 2>&5
6578  ac_status=$?
6579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580  test $ac_status = 0; }; then
6581    emul=elf
6582    case `/usr/bin/file conftest.$ac_objext` in
6583      *32-bit*)
6584	emul="${emul}32"
6585	;;
6586      *64-bit*)
6587	emul="${emul}64"
6588	;;
6589    esac
6590    case `/usr/bin/file conftest.$ac_objext` in
6591      *MSB*)
6592	emul="${emul}btsmip"
6593	;;
6594      *LSB*)
6595	emul="${emul}ltsmip"
6596	;;
6597    esac
6598    case `/usr/bin/file conftest.$ac_objext` in
6599      *N32*)
6600	emul="${emul}n32"
6601	;;
6602    esac
6603    LD="${LD-ld} -m $emul"
6604  fi
6605  rm -rf conftest*
6606  ;;
6607
6608x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6609s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6610  # Find out what ABI is being produced by ac_compile, and set linker
6611  # options accordingly.  Note that the listed cases only cover the
6612  # situations where additional linker options are needed (such as when
6613  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6614  # vice versa); the common cases where no linker options are needed do
6615  # not appear in the list.
6616  echo 'int i;' > conftest.$ac_ext
6617  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618  (eval $ac_compile) 2>&5
6619  ac_status=$?
6620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621  test $ac_status = 0; }; then
6622    case `/usr/bin/file conftest.o` in
6623      *32-bit*)
6624	case $host in
6625	  x86_64-*kfreebsd*-gnu)
6626	    LD="${LD-ld} -m elf_i386_fbsd"
6627	    ;;
6628	  x86_64-*linux*)
6629	    case `/usr/bin/file conftest.o` in
6630	      *x86-64*)
6631		LD="${LD-ld} -m elf32_x86_64"
6632		;;
6633	      *)
6634		LD="${LD-ld} -m elf_i386"
6635		;;
6636	    esac
6637	    ;;
6638	  powerpc64le-*linux*)
6639	    LD="${LD-ld} -m elf32lppclinux"
6640	    ;;
6641	  powerpc64-*linux*)
6642	    LD="${LD-ld} -m elf32ppclinux"
6643	    ;;
6644	  s390x-*linux*)
6645	    LD="${LD-ld} -m elf_s390"
6646	    ;;
6647	  sparc64-*linux*)
6648	    LD="${LD-ld} -m elf32_sparc"
6649	    ;;
6650	esac
6651	;;
6652      *64-bit*)
6653	case $host in
6654	  x86_64-*kfreebsd*-gnu)
6655	    LD="${LD-ld} -m elf_x86_64_fbsd"
6656	    ;;
6657	  x86_64-*linux*)
6658	    LD="${LD-ld} -m elf_x86_64"
6659	    ;;
6660	  powerpcle-*linux*)
6661	    LD="${LD-ld} -m elf64lppc"
6662	    ;;
6663	  powerpc-*linux*)
6664	    LD="${LD-ld} -m elf64ppc"
6665	    ;;
6666	  s390*-*linux*|s390*-*tpf*)
6667	    LD="${LD-ld} -m elf64_s390"
6668	    ;;
6669	  sparc*-*linux*)
6670	    LD="${LD-ld} -m elf64_sparc"
6671	    ;;
6672	esac
6673	;;
6674    esac
6675  fi
6676  rm -rf conftest*
6677  ;;
6678
6679*-*-sco3.2v5*)
6680  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6681  SAVE_CFLAGS=$CFLAGS
6682  CFLAGS="$CFLAGS -belf"
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6684$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6685if ${lt_cv_cc_needs_belf+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  ac_ext=c
6689ac_cpp='$CPP $CPPFLAGS'
6690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692ac_compiler_gnu=$ac_cv_c_compiler_gnu
6693
6694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h.  */
6696
6697int
6698main ()
6699{
6700
6701  ;
6702  return 0;
6703}
6704_ACEOF
6705if ac_fn_c_try_link "$LINENO"; then :
6706  lt_cv_cc_needs_belf=yes
6707else
6708  lt_cv_cc_needs_belf=no
6709fi
6710rm -f core conftest.err conftest.$ac_objext \
6711    conftest$ac_exeext conftest.$ac_ext
6712     ac_ext=c
6713ac_cpp='$CPP $CPPFLAGS'
6714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716ac_compiler_gnu=$ac_cv_c_compiler_gnu
6717
6718fi
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6720$as_echo "$lt_cv_cc_needs_belf" >&6; }
6721  if test yes != "$lt_cv_cc_needs_belf"; then
6722    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6723    CFLAGS=$SAVE_CFLAGS
6724  fi
6725  ;;
6726*-*solaris*)
6727  # Find out what ABI is being produced by ac_compile, and set linker
6728  # options accordingly.
6729  echo 'int i;' > conftest.$ac_ext
6730  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731  (eval $ac_compile) 2>&5
6732  ac_status=$?
6733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734  test $ac_status = 0; }; then
6735    case `/usr/bin/file conftest.o` in
6736    *64-bit*)
6737      case $lt_cv_prog_gnu_ld in
6738      yes*)
6739        case $host in
6740        i?86-*-solaris*|x86_64-*-solaris*)
6741          LD="${LD-ld} -m elf_x86_64"
6742          ;;
6743        sparc*-*-solaris*)
6744          LD="${LD-ld} -m elf64_sparc"
6745          ;;
6746        esac
6747        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6748        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6749          LD=${LD-ld}_sol2
6750        fi
6751        ;;
6752      *)
6753	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6754	  LD="${LD-ld} -64"
6755	fi
6756	;;
6757      esac
6758      ;;
6759    esac
6760  fi
6761  rm -rf conftest*
6762  ;;
6763esac
6764
6765need_locks=$enable_libtool_lock
6766
6767if test -n "$ac_tool_prefix"; then
6768  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6769set dummy ${ac_tool_prefix}mt; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  if test -n "$MANIFEST_TOOL"; then
6776  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781  IFS=$as_save_IFS
6782  test -z "$as_dir" && as_dir=.
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790  done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6796if test -n "$MANIFEST_TOOL"; then
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6798$as_echo "$MANIFEST_TOOL" >&6; }
6799else
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804
6805fi
6806if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6807  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6808  # Extract the first word of "mt", so it can be a program name with args.
6809set dummy mt; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$ac_ct_MANIFEST_TOOL"; then
6816  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6836if test -n "$ac_ct_MANIFEST_TOOL"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6838$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6845    MANIFEST_TOOL=":"
6846  else
6847    case $cross_compiling:$ac_tool_warned in
6848yes:)
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851ac_tool_warned=yes ;;
6852esac
6853    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6854  fi
6855else
6856  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6857fi
6858
6859test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6861$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6862if ${lt_cv_path_mainfest_tool+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  lt_cv_path_mainfest_tool=no
6866  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6867  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6868  cat conftest.err >&5
6869  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6870    lt_cv_path_mainfest_tool=yes
6871  fi
6872  rm -f conftest*
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6875$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6876if test yes != "$lt_cv_path_mainfest_tool"; then
6877  MANIFEST_TOOL=:
6878fi
6879
6880
6881
6882
6883
6884
6885  case $host_os in
6886    rhapsody* | darwin*)
6887    if test -n "$ac_tool_prefix"; then
6888  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_DSYMUTIL+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$DSYMUTIL"; then
6896  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915DSYMUTIL=$ac_cv_prog_DSYMUTIL
6916if test -n "$DSYMUTIL"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6918$as_echo "$DSYMUTIL" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_DSYMUTIL"; then
6927  ac_ct_DSYMUTIL=$DSYMUTIL
6928  # Extract the first word of "dsymutil", so it can be a program name with args.
6929set dummy dsymutil; ac_word=$2
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  if test -n "$ac_ct_DSYMUTIL"; then
6936  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941  IFS=$as_save_IFS
6942  test -z "$as_dir" && as_dir=.
6943    for ac_exec_ext in '' $ac_executable_extensions; do
6944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947    break 2
6948  fi
6949done
6950  done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6956if test -n "$ac_ct_DSYMUTIL"; then
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6958$as_echo "$ac_ct_DSYMUTIL" >&6; }
6959else
6960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
6964  if test "x$ac_ct_DSYMUTIL" = x; then
6965    DSYMUTIL=":"
6966  else
6967    case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973    DSYMUTIL=$ac_ct_DSYMUTIL
6974  fi
6975else
6976  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6977fi
6978
6979    if test -n "$ac_tool_prefix"; then
6980  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_NMEDIT+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if test -n "$NMEDIT"; then
6988  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007NMEDIT=$ac_cv_prog_NMEDIT
7008if test -n "$NMEDIT"; then
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7010$as_echo "$NMEDIT" >&6; }
7011else
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_NMEDIT"; then
7019  ac_ct_NMEDIT=$NMEDIT
7020  # Extract the first word of "nmedit", so it can be a program name with args.
7021set dummy nmedit; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  if test -n "$ac_ct_NMEDIT"; then
7028  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  test -z "$as_dir" && as_dir=.
7035    for ac_exec_ext in '' $ac_executable_extensions; do
7036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039    break 2
7040  fi
7041done
7042  done
7043IFS=$as_save_IFS
7044
7045fi
7046fi
7047ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7048if test -n "$ac_ct_NMEDIT"; then
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7050$as_echo "$ac_ct_NMEDIT" >&6; }
7051else
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
7054fi
7055
7056  if test "x$ac_ct_NMEDIT" = x; then
7057    NMEDIT=":"
7058  else
7059    case $cross_compiling:$ac_tool_warned in
7060yes:)
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063ac_tool_warned=yes ;;
7064esac
7065    NMEDIT=$ac_ct_NMEDIT
7066  fi
7067else
7068  NMEDIT="$ac_cv_prog_NMEDIT"
7069fi
7070
7071    if test -n "$ac_tool_prefix"; then
7072  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}lipo; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_LIPO+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  if test -n "$LIPO"; then
7080  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087    for ac_exec_ext in '' $ac_executable_extensions; do
7088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094  done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099LIPO=$ac_cv_prog_LIPO
7100if test -n "$LIPO"; then
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7102$as_echo "$LIPO" >&6; }
7103else
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_LIPO"; then
7111  ac_ct_LIPO=$LIPO
7112  # Extract the first word of "lipo", so it can be a program name with args.
7113set dummy lipo; ac_word=$2
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  if test -n "$ac_ct_LIPO"; then
7120  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127    for ac_exec_ext in '' $ac_executable_extensions; do
7128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129    ac_cv_prog_ac_ct_LIPO="lipo"
7130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131    break 2
7132  fi
7133done
7134  done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7140if test -n "$ac_ct_LIPO"; then
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7142$as_echo "$ac_ct_LIPO" >&6; }
7143else
7144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148  if test "x$ac_ct_LIPO" = x; then
7149    LIPO=":"
7150  else
7151    case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157    LIPO=$ac_ct_LIPO
7158  fi
7159else
7160  LIPO="$ac_cv_prog_LIPO"
7161fi
7162
7163    if test -n "$ac_tool_prefix"; then
7164  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7165set dummy ${ac_tool_prefix}otool; ac_word=$2
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if ${ac_cv_prog_OTOOL+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  if test -n "$OTOOL"; then
7172  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179    for ac_exec_ext in '' $ac_executable_extensions; do
7180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186  done
7187IFS=$as_save_IFS
7188
7189fi
7190fi
7191OTOOL=$ac_cv_prog_OTOOL
7192if test -n "$OTOOL"; then
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7194$as_echo "$OTOOL" >&6; }
7195else
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
7198fi
7199
7200
7201fi
7202if test -z "$ac_cv_prog_OTOOL"; then
7203  ac_ct_OTOOL=$OTOOL
7204  # Extract the first word of "otool", so it can be a program name with args.
7205set dummy otool; ac_word=$2
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  if test -n "$ac_ct_OTOOL"; then
7212  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217  IFS=$as_save_IFS
7218  test -z "$as_dir" && as_dir=.
7219    for ac_exec_ext in '' $ac_executable_extensions; do
7220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221    ac_cv_prog_ac_ct_OTOOL="otool"
7222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226  done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7232if test -n "$ac_ct_OTOOL"; then
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7234$as_echo "$ac_ct_OTOOL" >&6; }
7235else
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7238fi
7239
7240  if test "x$ac_ct_OTOOL" = x; then
7241    OTOOL=":"
7242  else
7243    case $cross_compiling:$ac_tool_warned in
7244yes:)
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247ac_tool_warned=yes ;;
7248esac
7249    OTOOL=$ac_ct_OTOOL
7250  fi
7251else
7252  OTOOL="$ac_cv_prog_OTOOL"
7253fi
7254
7255    if test -n "$ac_tool_prefix"; then
7256  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}otool64; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_OTOOL64+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$OTOOL64"; then
7264  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283OTOOL64=$ac_cv_prog_OTOOL64
7284if test -n "$OTOOL64"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7286$as_echo "$OTOOL64" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293fi
7294if test -z "$ac_cv_prog_OTOOL64"; then
7295  ac_ct_OTOOL64=$OTOOL64
7296  # Extract the first word of "otool64", so it can be a program name with args.
7297set dummy otool64; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  if test -n "$ac_ct_OTOOL64"; then
7304  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311    for ac_exec_ext in '' $ac_executable_extensions; do
7312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313    ac_cv_prog_ac_ct_OTOOL64="otool64"
7314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318  done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7324if test -n "$ac_ct_OTOOL64"; then
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7326$as_echo "$ac_ct_OTOOL64" >&6; }
7327else
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332  if test "x$ac_ct_OTOOL64" = x; then
7333    OTOOL64=":"
7334  else
7335    case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341    OTOOL64=$ac_ct_OTOOL64
7342  fi
7343else
7344  OTOOL64="$ac_cv_prog_OTOOL64"
7345fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7374$as_echo_n "checking for -single_module linker flag... " >&6; }
7375if ${lt_cv_apple_cc_single_mod+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  lt_cv_apple_cc_single_mod=no
7379      if test -z "$LT_MULTI_MODULE"; then
7380	# By default we will add the -single_module flag. You can override
7381	# by either setting the environment variable LT_MULTI_MODULE
7382	# non-empty at configure time, or by adding -multi_module to the
7383	# link flags.
7384	rm -rf libconftest.dylib*
7385	echo "int foo(void){return 1;}" > conftest.c
7386	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7387-dynamiclib -Wl,-single_module conftest.c" >&5
7388	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7389	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7390        _lt_result=$?
7391	# If there is a non-empty error log, and "single_module"
7392	# appears in it, assume the flag caused a linker warning
7393        if test -s conftest.err && $GREP single_module conftest.err; then
7394	  cat conftest.err >&5
7395	# Otherwise, if the output was created with a 0 exit code from
7396	# the compiler, it worked.
7397	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7398	  lt_cv_apple_cc_single_mod=yes
7399	else
7400	  cat conftest.err >&5
7401	fi
7402	rm -rf libconftest.dylib*
7403	rm -f conftest.*
7404      fi
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7407$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7408
7409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7410$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7411if ${lt_cv_ld_exported_symbols_list+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  lt_cv_ld_exported_symbols_list=no
7415      save_LDFLAGS=$LDFLAGS
7416      echo "_main" > conftest.sym
7417      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7418      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h.  */
7420
7421int
7422main ()
7423{
7424
7425  ;
7426  return 0;
7427}
7428_ACEOF
7429if ac_fn_c_try_link "$LINENO"; then :
7430  lt_cv_ld_exported_symbols_list=yes
7431else
7432  lt_cv_ld_exported_symbols_list=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext \
7435    conftest$ac_exeext conftest.$ac_ext
7436	LDFLAGS=$save_LDFLAGS
7437
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7440$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7441
7442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7443$as_echo_n "checking for -force_load linker flag... " >&6; }
7444if ${lt_cv_ld_force_load+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  lt_cv_ld_force_load=no
7448      cat > conftest.c << _LT_EOF
7449int forced_loaded() { return 2;}
7450_LT_EOF
7451      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7452      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7453      echo "$AR cru libconftest.a conftest.o" >&5
7454      $AR cru libconftest.a conftest.o 2>&5
7455      echo "$RANLIB libconftest.a" >&5
7456      $RANLIB libconftest.a 2>&5
7457      cat > conftest.c << _LT_EOF
7458int main() { return 0;}
7459_LT_EOF
7460      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7461      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7462      _lt_result=$?
7463      if test -s conftest.err && $GREP force_load conftest.err; then
7464	cat conftest.err >&5
7465      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7466	lt_cv_ld_force_load=yes
7467      else
7468	cat conftest.err >&5
7469      fi
7470        rm -f conftest.err libconftest.a conftest conftest.c
7471        rm -rf conftest.dSYM
7472
7473fi
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7475$as_echo "$lt_cv_ld_force_load" >&6; }
7476    case $host_os in
7477    rhapsody* | darwin1.[012])
7478      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7479    darwin1.*)
7480      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7481    darwin*) # darwin 5.x on
7482      # if running on 10.5 or later, the deployment target defaults
7483      # to the OS version, if on x86, and 10.4, the deployment
7484      # target defaults to 10.4. Don't you love it?
7485      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7486	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7487	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7488	10.[012][,.]*)
7489	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7490	10.*)
7491	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7492      esac
7493    ;;
7494  esac
7495    if test yes = "$lt_cv_apple_cc_single_mod"; then
7496      _lt_dar_single_mod='$single_module'
7497    fi
7498    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7499      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7500    else
7501      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7502    fi
7503    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7504      _lt_dsymutil='~$DSYMUTIL $lib || :'
7505    else
7506      _lt_dsymutil=
7507    fi
7508    ;;
7509  esac
7510
7511# func_munge_path_list VARIABLE PATH
7512# -----------------------------------
7513# VARIABLE is name of variable containing _space_ separated list of
7514# directories to be munged by the contents of PATH, which is string
7515# having a format:
7516# "DIR[:DIR]:"
7517#       string "DIR[ DIR]" will be prepended to VARIABLE
7518# ":DIR[:DIR]"
7519#       string "DIR[ DIR]" will be appended to VARIABLE
7520# "DIRP[:DIRP]::[DIRA:]DIRA"
7521#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7522#       "DIRA[ DIRA]" will be appended to VARIABLE
7523# "DIR[:DIR]"
7524#       VARIABLE will be replaced by "DIR[ DIR]"
7525func_munge_path_list ()
7526{
7527    case x$2 in
7528    x)
7529        ;;
7530    *:)
7531        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7532        ;;
7533    x:*)
7534        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7535        ;;
7536    *::*)
7537        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7538        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7539        ;;
7540    *)
7541        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7542        ;;
7543    esac
7544}
7545
7546ac_ext=c
7547ac_cpp='$CPP $CPPFLAGS'
7548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7552$as_echo_n "checking how to run the C preprocessor... " >&6; }
7553# On Suns, sometimes $CPP names a directory.
7554if test -n "$CPP" && test -d "$CPP"; then
7555  CPP=
7556fi
7557if test -z "$CPP"; then
7558  if ${ac_cv_prog_CPP+:} false; then :
7559  $as_echo_n "(cached) " >&6
7560else
7561      # Double quotes because CPP needs to be expanded
7562    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7563    do
7564      ac_preproc_ok=false
7565for ac_c_preproc_warn_flag in '' yes
7566do
7567  # Use a header file that comes with gcc, so configuring glibc
7568  # with a fresh cross-compiler works.
7569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7570  # <limits.h> exists even on freestanding compilers.
7571  # On the NeXT, cc -E runs the code through the compiler's parser,
7572  # not just through cpp. "Syntax error" is here to catch this case.
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575#ifdef __STDC__
7576# include <limits.h>
7577#else
7578# include <assert.h>
7579#endif
7580		     Syntax error
7581_ACEOF
7582if ac_fn_c_try_cpp "$LINENO"; then :
7583
7584else
7585  # Broken: fails on valid input.
7586continue
7587fi
7588rm -f conftest.err conftest.i conftest.$ac_ext
7589
7590  # OK, works on sane cases.  Now check whether nonexistent headers
7591  # can be detected and how.
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594#include <ac_nonexistent.h>
7595_ACEOF
7596if ac_fn_c_try_cpp "$LINENO"; then :
7597  # Broken: success on invalid input.
7598continue
7599else
7600  # Passes both tests.
7601ac_preproc_ok=:
7602break
7603fi
7604rm -f conftest.err conftest.i conftest.$ac_ext
7605
7606done
7607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7608rm -f conftest.i conftest.err conftest.$ac_ext
7609if $ac_preproc_ok; then :
7610  break
7611fi
7612
7613    done
7614    ac_cv_prog_CPP=$CPP
7615
7616fi
7617  CPP=$ac_cv_prog_CPP
7618else
7619  ac_cv_prog_CPP=$CPP
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7622$as_echo "$CPP" >&6; }
7623ac_preproc_ok=false
7624for ac_c_preproc_warn_flag in '' yes
7625do
7626  # Use a header file that comes with gcc, so configuring glibc
7627  # with a fresh cross-compiler works.
7628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7629  # <limits.h> exists even on freestanding compilers.
7630  # On the NeXT, cc -E runs the code through the compiler's parser,
7631  # not just through cpp. "Syntax error" is here to catch this case.
7632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h.  */
7634#ifdef __STDC__
7635# include <limits.h>
7636#else
7637# include <assert.h>
7638#endif
7639		     Syntax error
7640_ACEOF
7641if ac_fn_c_try_cpp "$LINENO"; then :
7642
7643else
7644  # Broken: fails on valid input.
7645continue
7646fi
7647rm -f conftest.err conftest.i conftest.$ac_ext
7648
7649  # OK, works on sane cases.  Now check whether nonexistent headers
7650  # can be detected and how.
7651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h.  */
7653#include <ac_nonexistent.h>
7654_ACEOF
7655if ac_fn_c_try_cpp "$LINENO"; then :
7656  # Broken: success on invalid input.
7657continue
7658else
7659  # Passes both tests.
7660ac_preproc_ok=:
7661break
7662fi
7663rm -f conftest.err conftest.i conftest.$ac_ext
7664
7665done
7666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7667rm -f conftest.i conftest.err conftest.$ac_ext
7668if $ac_preproc_ok; then :
7669
7670else
7671  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7673as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7674See \`config.log' for more details" "$LINENO" 5; }
7675fi
7676
7677ac_ext=c
7678ac_cpp='$CPP $CPPFLAGS'
7679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7681ac_compiler_gnu=$ac_cv_c_compiler_gnu
7682
7683
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7685$as_echo_n "checking for ANSI C header files... " >&6; }
7686if ${ac_cv_header_stdc+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691#include <stdlib.h>
7692#include <stdarg.h>
7693#include <string.h>
7694#include <float.h>
7695
7696int
7697main ()
7698{
7699
7700  ;
7701  return 0;
7702}
7703_ACEOF
7704if ac_fn_c_try_compile "$LINENO"; then :
7705  ac_cv_header_stdc=yes
7706else
7707  ac_cv_header_stdc=no
7708fi
7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710
7711if test $ac_cv_header_stdc = yes; then
7712  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715#include <string.h>
7716
7717_ACEOF
7718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7719  $EGREP "memchr" >/dev/null 2>&1; then :
7720
7721else
7722  ac_cv_header_stdc=no
7723fi
7724rm -f conftest*
7725
7726fi
7727
7728if test $ac_cv_header_stdc = yes; then
7729  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731/* end confdefs.h.  */
7732#include <stdlib.h>
7733
7734_ACEOF
7735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7736  $EGREP "free" >/dev/null 2>&1; then :
7737
7738else
7739  ac_cv_header_stdc=no
7740fi
7741rm -f conftest*
7742
7743fi
7744
7745if test $ac_cv_header_stdc = yes; then
7746  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7747  if test "$cross_compiling" = yes; then :
7748  :
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752#include <ctype.h>
7753#include <stdlib.h>
7754#if ((' ' & 0x0FF) == 0x020)
7755# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7756# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7757#else
7758# define ISLOWER(c) \
7759		   (('a' <= (c) && (c) <= 'i') \
7760		     || ('j' <= (c) && (c) <= 'r') \
7761		     || ('s' <= (c) && (c) <= 'z'))
7762# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7763#endif
7764
7765#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7766int
7767main ()
7768{
7769  int i;
7770  for (i = 0; i < 256; i++)
7771    if (XOR (islower (i), ISLOWER (i))
7772	|| toupper (i) != TOUPPER (i))
7773      return 2;
7774  return 0;
7775}
7776_ACEOF
7777if ac_fn_c_try_run "$LINENO"; then :
7778
7779else
7780  ac_cv_header_stdc=no
7781fi
7782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7783  conftest.$ac_objext conftest.beam conftest.$ac_ext
7784fi
7785
7786fi
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7789$as_echo "$ac_cv_header_stdc" >&6; }
7790if test $ac_cv_header_stdc = yes; then
7791
7792$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7793
7794fi
7795
7796# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7798		  inttypes.h stdint.h unistd.h
7799do :
7800  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7801ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7802"
7803if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7804  cat >>confdefs.h <<_ACEOF
7805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7806_ACEOF
7807
7808fi
7809
7810done
7811
7812
7813for ac_header in dlfcn.h
7814do :
7815  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7816"
7817if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7818  cat >>confdefs.h <<_ACEOF
7819#define HAVE_DLFCN_H 1
7820_ACEOF
7821
7822fi
7823
7824done
7825
7826
7827
7828
7829
7830# Set options
7831
7832
7833
7834        enable_dlopen=no
7835
7836
7837  enable_win32_dll=no
7838
7839
7840            # Check whether --enable-shared was given.
7841if test "${enable_shared+set}" = set; then :
7842  enableval=$enable_shared; p=${PACKAGE-default}
7843    case $enableval in
7844    yes) enable_shared=yes ;;
7845    no) enable_shared=no ;;
7846    *)
7847      enable_shared=no
7848      # Look at the argument we got.  We use all the common list separators.
7849      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7850      for pkg in $enableval; do
7851	IFS=$lt_save_ifs
7852	if test "X$pkg" = "X$p"; then
7853	  enable_shared=yes
7854	fi
7855      done
7856      IFS=$lt_save_ifs
7857      ;;
7858    esac
7859else
7860  enable_shared=yes
7861fi
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873# Check whether --with-pic was given.
7874if test "${with_pic+set}" = set; then :
7875  withval=$with_pic; lt_p=${PACKAGE-default}
7876    case $withval in
7877    yes|no) pic_mode=$withval ;;
7878    *)
7879      pic_mode=default
7880      # Look at the argument we got.  We use all the common list separators.
7881      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7882      for lt_pkg in $withval; do
7883	IFS=$lt_save_ifs
7884	if test "X$lt_pkg" = "X$lt_p"; then
7885	  pic_mode=yes
7886	fi
7887      done
7888      IFS=$lt_save_ifs
7889      ;;
7890    esac
7891else
7892  pic_mode=default
7893fi
7894
7895
7896
7897
7898
7899
7900
7901
7902  # Check whether --enable-fast-install was given.
7903if test "${enable_fast_install+set}" = set; then :
7904  enableval=$enable_fast_install; p=${PACKAGE-default}
7905    case $enableval in
7906    yes) enable_fast_install=yes ;;
7907    no) enable_fast_install=no ;;
7908    *)
7909      enable_fast_install=no
7910      # Look at the argument we got.  We use all the common list separators.
7911      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7912      for pkg in $enableval; do
7913	IFS=$lt_save_ifs
7914	if test "X$pkg" = "X$p"; then
7915	  enable_fast_install=yes
7916	fi
7917      done
7918      IFS=$lt_save_ifs
7919      ;;
7920    esac
7921else
7922  enable_fast_install=yes
7923fi
7924
7925
7926
7927
7928
7929
7930
7931
7932  shared_archive_member_spec=
7933case $host,$enable_shared in
7934power*-*-aix[5-9]*,yes)
7935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7936$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7937
7938# Check whether --with-aix-soname was given.
7939if test "${with_aix_soname+set}" = set; then :
7940  withval=$with_aix_soname; case $withval in
7941    aix|svr4|both)
7942      ;;
7943    *)
7944      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7945      ;;
7946    esac
7947    lt_cv_with_aix_soname=$with_aix_soname
7948else
7949  if ${lt_cv_with_aix_soname+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  lt_cv_with_aix_soname=aix
7953fi
7954
7955    with_aix_soname=$lt_cv_with_aix_soname
7956fi
7957
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7959$as_echo "$with_aix_soname" >&6; }
7960  if test aix != "$with_aix_soname"; then
7961    # For the AIX way of multilib, we name the shared archive member
7962    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7963    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7964    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7965    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7966    if test 64 = "${OBJECT_MODE-32}"; then
7967      shared_archive_member_spec=shr_64
7968    else
7969      shared_archive_member_spec=shr
7970    fi
7971  fi
7972  ;;
7973*)
7974  with_aix_soname=aix
7975  ;;
7976esac
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987# This can be used to rebuild libtool when needed
7988LIBTOOL_DEPS=$ltmain
7989
7990# Always use our own libtool.
7991LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022test -z "$LN_S" && LN_S="ln -s"
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037if test -n "${ZSH_VERSION+set}"; then
8038   setopt NO_GLOB_SUBST
8039fi
8040
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8042$as_echo_n "checking for objdir... " >&6; }
8043if ${lt_cv_objdir+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  rm -f .libs 2>/dev/null
8047mkdir .libs 2>/dev/null
8048if test -d .libs; then
8049  lt_cv_objdir=.libs
8050else
8051  # MS-DOS does not allow filenames that begin with a dot.
8052  lt_cv_objdir=_libs
8053fi
8054rmdir .libs 2>/dev/null
8055fi
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8057$as_echo "$lt_cv_objdir" >&6; }
8058objdir=$lt_cv_objdir
8059
8060
8061
8062
8063
8064cat >>confdefs.h <<_ACEOF
8065#define LT_OBJDIR "$lt_cv_objdir/"
8066_ACEOF
8067
8068
8069
8070
8071case $host_os in
8072aix3*)
8073  # AIX sometimes has problems with the GCC collect2 program.  For some
8074  # reason, if we set the COLLECT_NAMES environment variable, the problems
8075  # vanish in a puff of smoke.
8076  if test set != "${COLLECT_NAMES+set}"; then
8077    COLLECT_NAMES=
8078    export COLLECT_NAMES
8079  fi
8080  ;;
8081esac
8082
8083# Global variables:
8084ofile=libtool
8085can_build_shared=yes
8086
8087# All known linkers require a '.a' archive for static linking (except MSVC,
8088# which needs '.lib').
8089libext=a
8090
8091with_gnu_ld=$lt_cv_prog_gnu_ld
8092
8093old_CC=$CC
8094old_CFLAGS=$CFLAGS
8095
8096# Set sane defaults for various variables
8097test -z "$CC" && CC=cc
8098test -z "$LTCC" && LTCC=$CC
8099test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8100test -z "$LD" && LD=ld
8101test -z "$ac_objext" && ac_objext=o
8102
8103func_cc_basename $compiler
8104cc_basename=$func_cc_basename_result
8105
8106
8107# Only perform the check for file, if the check method requires it
8108test -z "$MAGIC_CMD" && MAGIC_CMD=file
8109case $deplibs_check_method in
8110file_magic*)
8111  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8113$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8114if ${lt_cv_path_MAGIC_CMD+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  case $MAGIC_CMD in
8118[\\/*] |  ?:[\\/]*)
8119  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8120  ;;
8121*)
8122  lt_save_MAGIC_CMD=$MAGIC_CMD
8123  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8124  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8125  for ac_dir in $ac_dummy; do
8126    IFS=$lt_save_ifs
8127    test -z "$ac_dir" && ac_dir=.
8128    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8129      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8130      if test -n "$file_magic_test_file"; then
8131	case $deplibs_check_method in
8132	"file_magic "*)
8133	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8134	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8135	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8136	    $EGREP "$file_magic_regex" > /dev/null; then
8137	    :
8138	  else
8139	    cat <<_LT_EOF 1>&2
8140
8141*** Warning: the command libtool uses to detect shared libraries,
8142*** $file_magic_cmd, produces output that libtool cannot recognize.
8143*** The result is that libtool may fail to recognize shared libraries
8144*** as such.  This will affect the creation of libtool libraries that
8145*** depend on shared libraries, but programs linked with such libtool
8146*** libraries will work regardless of this problem.  Nevertheless, you
8147*** may want to report the problem to your system manager and/or to
8148*** bug-libtool@gnu.org
8149
8150_LT_EOF
8151	  fi ;;
8152	esac
8153      fi
8154      break
8155    fi
8156  done
8157  IFS=$lt_save_ifs
8158  MAGIC_CMD=$lt_save_MAGIC_CMD
8159  ;;
8160esac
8161fi
8162
8163MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8164if test -n "$MAGIC_CMD"; then
8165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8166$as_echo "$MAGIC_CMD" >&6; }
8167else
8168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169$as_echo "no" >&6; }
8170fi
8171
8172
8173
8174
8175
8176if test -z "$lt_cv_path_MAGIC_CMD"; then
8177  if test -n "$ac_tool_prefix"; then
8178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8179$as_echo_n "checking for file... " >&6; }
8180if ${lt_cv_path_MAGIC_CMD+:} false; then :
8181  $as_echo_n "(cached) " >&6
8182else
8183  case $MAGIC_CMD in
8184[\\/*] |  ?:[\\/]*)
8185  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8186  ;;
8187*)
8188  lt_save_MAGIC_CMD=$MAGIC_CMD
8189  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8190  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8191  for ac_dir in $ac_dummy; do
8192    IFS=$lt_save_ifs
8193    test -z "$ac_dir" && ac_dir=.
8194    if test -f "$ac_dir/file"; then
8195      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8196      if test -n "$file_magic_test_file"; then
8197	case $deplibs_check_method in
8198	"file_magic "*)
8199	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8200	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8201	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8202	    $EGREP "$file_magic_regex" > /dev/null; then
8203	    :
8204	  else
8205	    cat <<_LT_EOF 1>&2
8206
8207*** Warning: the command libtool uses to detect shared libraries,
8208*** $file_magic_cmd, produces output that libtool cannot recognize.
8209*** The result is that libtool may fail to recognize shared libraries
8210*** as such.  This will affect the creation of libtool libraries that
8211*** depend on shared libraries, but programs linked with such libtool
8212*** libraries will work regardless of this problem.  Nevertheless, you
8213*** may want to report the problem to your system manager and/or to
8214*** bug-libtool@gnu.org
8215
8216_LT_EOF
8217	  fi ;;
8218	esac
8219      fi
8220      break
8221    fi
8222  done
8223  IFS=$lt_save_ifs
8224  MAGIC_CMD=$lt_save_MAGIC_CMD
8225  ;;
8226esac
8227fi
8228
8229MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8230if test -n "$MAGIC_CMD"; then
8231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8232$as_echo "$MAGIC_CMD" >&6; }
8233else
8234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235$as_echo "no" >&6; }
8236fi
8237
8238
8239  else
8240    MAGIC_CMD=:
8241  fi
8242fi
8243
8244  fi
8245  ;;
8246esac
8247
8248# Use C for the default configuration in the libtool script
8249
8250lt_save_CC=$CC
8251ac_ext=c
8252ac_cpp='$CPP $CPPFLAGS'
8253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256
8257
8258# Source file extension for C test sources.
8259ac_ext=c
8260
8261# Object file extension for compiled C test sources.
8262objext=o
8263objext=$objext
8264
8265# Code to be used in simple compile tests
8266lt_simple_compile_test_code="int some_variable = 0;"
8267
8268# Code to be used in simple link tests
8269lt_simple_link_test_code='int main(){return(0);}'
8270
8271
8272
8273
8274
8275
8276
8277# If no C compiler was specified, use CC.
8278LTCC=${LTCC-"$CC"}
8279
8280# If no C compiler flags were specified, use CFLAGS.
8281LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8282
8283# Allow CC to be a program name with arguments.
8284compiler=$CC
8285
8286# Save the default compiler, since it gets overwritten when the other
8287# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8288compiler_DEFAULT=$CC
8289
8290# save warnings/boilerplate of simple test code
8291ac_outfile=conftest.$ac_objext
8292echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8293eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8294_lt_compiler_boilerplate=`cat conftest.err`
8295$RM conftest*
8296
8297ac_outfile=conftest.$ac_objext
8298echo "$lt_simple_link_test_code" >conftest.$ac_ext
8299eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8300_lt_linker_boilerplate=`cat conftest.err`
8301$RM -r conftest*
8302
8303
8304## CAVEAT EMPTOR:
8305## There is no encapsulation within the following macros, do not change
8306## the running order or otherwise move them around unless you know exactly
8307## what you are doing...
8308if test -n "$compiler"; then
8309
8310lt_prog_compiler_no_builtin_flag=
8311
8312if test yes = "$GCC"; then
8313  case $cc_basename in
8314  nvcc*)
8315    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8316  *)
8317    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8318  esac
8319
8320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8321$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8322if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8323  $as_echo_n "(cached) " >&6
8324else
8325  lt_cv_prog_compiler_rtti_exceptions=no
8326   ac_outfile=conftest.$ac_objext
8327   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8329   # Insert the option either (1) after the last *FLAGS variable, or
8330   # (2) before a word containing "conftest.", or (3) at the end.
8331   # Note that $ac_compile itself does not contain backslashes and begins
8332   # with a dollar sign (not a hyphen), so the echo should work correctly.
8333   # The option is referenced via a variable to avoid confusing sed.
8334   lt_compile=`echo "$ac_compile" | $SED \
8335   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337   -e 's:$: $lt_compiler_flag:'`
8338   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8339   (eval "$lt_compile" 2>conftest.err)
8340   ac_status=$?
8341   cat conftest.err >&5
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   if (exit $ac_status) && test -s "$ac_outfile"; then
8344     # The compiler can only warn and ignore the option if not recognized
8345     # So say no if there are warnings other than the usual output.
8346     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8347     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8348     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8349       lt_cv_prog_compiler_rtti_exceptions=yes
8350     fi
8351   fi
8352   $RM conftest*
8353
8354fi
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8356$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8357
8358if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8359    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8360else
8361    :
8362fi
8363
8364fi
8365
8366
8367
8368
8369
8370
8371  lt_prog_compiler_wl=
8372lt_prog_compiler_pic=
8373lt_prog_compiler_static=
8374
8375
8376  if test yes = "$GCC"; then
8377    lt_prog_compiler_wl='-Wl,'
8378    lt_prog_compiler_static='-static'
8379
8380    case $host_os in
8381      aix*)
8382      # All AIX code is PIC.
8383      if test ia64 = "$host_cpu"; then
8384	# AIX 5 now supports IA64 processor
8385	lt_prog_compiler_static='-Bstatic'
8386      fi
8387      lt_prog_compiler_pic='-fPIC'
8388      ;;
8389
8390    amigaos*)
8391      case $host_cpu in
8392      powerpc)
8393            # see comment about AmigaOS4 .so support
8394            lt_prog_compiler_pic='-fPIC'
8395        ;;
8396      m68k)
8397            # FIXME: we need at least 68020 code to build shared libraries, but
8398            # adding the '-m68020' flag to GCC prevents building anything better,
8399            # like '-m68040'.
8400            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8401        ;;
8402      esac
8403      ;;
8404
8405    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8406      # PIC is the default for these OSes.
8407      ;;
8408
8409    mingw* | cygwin* | pw32* | os2* | cegcc*)
8410      # This hack is so that the source file can tell whether it is being
8411      # built for inclusion in a dll (and should export symbols for example).
8412      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8413      # (--disable-auto-import) libraries
8414      lt_prog_compiler_pic='-DDLL_EXPORT'
8415      case $host_os in
8416      os2*)
8417	lt_prog_compiler_static='$wl-static'
8418	;;
8419      esac
8420      ;;
8421
8422    darwin* | rhapsody*)
8423      # PIC is the default on this platform
8424      # Common symbols not allowed in MH_DYLIB files
8425      lt_prog_compiler_pic='-fno-common'
8426      ;;
8427
8428    haiku*)
8429      # PIC is the default for Haiku.
8430      # The "-static" flag exists, but is broken.
8431      lt_prog_compiler_static=
8432      ;;
8433
8434    hpux*)
8435      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8436      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8437      # sets the default TLS model and affects inlining.
8438      case $host_cpu in
8439      hppa*64*)
8440	# +Z the default
8441	;;
8442      *)
8443	lt_prog_compiler_pic='-fPIC'
8444	;;
8445      esac
8446      ;;
8447
8448    interix[3-9]*)
8449      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8450      # Instead, we relocate shared libraries at runtime.
8451      ;;
8452
8453    msdosdjgpp*)
8454      # Just because we use GCC doesn't mean we suddenly get shared libraries
8455      # on systems that don't support them.
8456      lt_prog_compiler_can_build_shared=no
8457      enable_shared=no
8458      ;;
8459
8460    *nto* | *qnx*)
8461      # QNX uses GNU C++, but need to define -shared option too, otherwise
8462      # it will coredump.
8463      lt_prog_compiler_pic='-fPIC -shared'
8464      ;;
8465
8466    sysv4*MP*)
8467      if test -d /usr/nec; then
8468	lt_prog_compiler_pic=-Kconform_pic
8469      fi
8470      ;;
8471
8472    *)
8473      lt_prog_compiler_pic='-fPIC'
8474      ;;
8475    esac
8476
8477    case $cc_basename in
8478    nvcc*) # Cuda Compiler Driver 2.2
8479      lt_prog_compiler_wl='-Xlinker '
8480      if test -n "$lt_prog_compiler_pic"; then
8481        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8482      fi
8483      ;;
8484    esac
8485  else
8486    # PORTME Check for flag to pass linker flags through the system compiler.
8487    case $host_os in
8488    aix*)
8489      lt_prog_compiler_wl='-Wl,'
8490      if test ia64 = "$host_cpu"; then
8491	# AIX 5 now supports IA64 processor
8492	lt_prog_compiler_static='-Bstatic'
8493      else
8494	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8495      fi
8496      ;;
8497
8498    darwin* | rhapsody*)
8499      # PIC is the default on this platform
8500      # Common symbols not allowed in MH_DYLIB files
8501      lt_prog_compiler_pic='-fno-common'
8502      case $cc_basename in
8503      nagfor*)
8504        # NAG Fortran compiler
8505        lt_prog_compiler_wl='-Wl,-Wl,,'
8506        lt_prog_compiler_pic='-PIC'
8507        lt_prog_compiler_static='-Bstatic'
8508        ;;
8509      esac
8510      ;;
8511
8512    mingw* | cygwin* | pw32* | os2* | cegcc*)
8513      # This hack is so that the source file can tell whether it is being
8514      # built for inclusion in a dll (and should export symbols for example).
8515      lt_prog_compiler_pic='-DDLL_EXPORT'
8516      case $host_os in
8517      os2*)
8518	lt_prog_compiler_static='$wl-static'
8519	;;
8520      esac
8521      ;;
8522
8523    hpux9* | hpux10* | hpux11*)
8524      lt_prog_compiler_wl='-Wl,'
8525      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8526      # not for PA HP-UX.
8527      case $host_cpu in
8528      hppa*64*|ia64*)
8529	# +Z the default
8530	;;
8531      *)
8532	lt_prog_compiler_pic='+Z'
8533	;;
8534      esac
8535      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8536      lt_prog_compiler_static='$wl-a ${wl}archive'
8537      ;;
8538
8539    irix5* | irix6* | nonstopux*)
8540      lt_prog_compiler_wl='-Wl,'
8541      # PIC (with -KPIC) is the default.
8542      lt_prog_compiler_static='-non_shared'
8543      ;;
8544
8545    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8546      case $cc_basename in
8547      # old Intel for x86_64, which still supported -KPIC.
8548      ecc*)
8549	lt_prog_compiler_wl='-Wl,'
8550	lt_prog_compiler_pic='-KPIC'
8551	lt_prog_compiler_static='-static'
8552        ;;
8553      # icc used to be incompatible with GCC.
8554      # ICC 10 doesn't accept -KPIC any more.
8555      icc* | ifort*)
8556	lt_prog_compiler_wl='-Wl,'
8557	lt_prog_compiler_pic='-fPIC'
8558	lt_prog_compiler_static='-static'
8559        ;;
8560      # Lahey Fortran 8.1.
8561      lf95*)
8562	lt_prog_compiler_wl='-Wl,'
8563	lt_prog_compiler_pic='--shared'
8564	lt_prog_compiler_static='--static'
8565	;;
8566      nagfor*)
8567	# NAG Fortran compiler
8568	lt_prog_compiler_wl='-Wl,-Wl,,'
8569	lt_prog_compiler_pic='-PIC'
8570	lt_prog_compiler_static='-Bstatic'
8571	;;
8572      tcc*)
8573	# Fabrice Bellard et al's Tiny C Compiler
8574	lt_prog_compiler_wl='-Wl,'
8575	lt_prog_compiler_pic='-fPIC'
8576	lt_prog_compiler_static='-static'
8577	;;
8578      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8579        # Portland Group compilers (*not* the Pentium gcc compiler,
8580	# which looks to be a dead project)
8581	lt_prog_compiler_wl='-Wl,'
8582	lt_prog_compiler_pic='-fpic'
8583	lt_prog_compiler_static='-Bstatic'
8584        ;;
8585      ccc*)
8586        lt_prog_compiler_wl='-Wl,'
8587        # All Alpha code is PIC.
8588        lt_prog_compiler_static='-non_shared'
8589        ;;
8590      xl* | bgxl* | bgf* | mpixl*)
8591	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8592	lt_prog_compiler_wl='-Wl,'
8593	lt_prog_compiler_pic='-qpic'
8594	lt_prog_compiler_static='-qstaticlink'
8595	;;
8596      *)
8597	case `$CC -V 2>&1 | sed 5q` in
8598	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8599	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8600	  lt_prog_compiler_pic='-KPIC'
8601	  lt_prog_compiler_static='-Bstatic'
8602	  lt_prog_compiler_wl=''
8603	  ;;
8604	*Sun\ F* | *Sun*Fortran*)
8605	  lt_prog_compiler_pic='-KPIC'
8606	  lt_prog_compiler_static='-Bstatic'
8607	  lt_prog_compiler_wl='-Qoption ld '
8608	  ;;
8609	*Sun\ C*)
8610	  # Sun C 5.9
8611	  lt_prog_compiler_pic='-KPIC'
8612	  lt_prog_compiler_static='-Bstatic'
8613	  lt_prog_compiler_wl='-Wl,'
8614	  ;;
8615        *Intel*\ [CF]*Compiler*)
8616	  lt_prog_compiler_wl='-Wl,'
8617	  lt_prog_compiler_pic='-fPIC'
8618	  lt_prog_compiler_static='-static'
8619	  ;;
8620	*Portland\ Group*)
8621	  lt_prog_compiler_wl='-Wl,'
8622	  lt_prog_compiler_pic='-fpic'
8623	  lt_prog_compiler_static='-Bstatic'
8624	  ;;
8625	esac
8626	;;
8627      esac
8628      ;;
8629
8630    newsos6)
8631      lt_prog_compiler_pic='-KPIC'
8632      lt_prog_compiler_static='-Bstatic'
8633      ;;
8634
8635    *nto* | *qnx*)
8636      # QNX uses GNU C++, but need to define -shared option too, otherwise
8637      # it will coredump.
8638      lt_prog_compiler_pic='-fPIC -shared'
8639      ;;
8640
8641    osf3* | osf4* | osf5*)
8642      lt_prog_compiler_wl='-Wl,'
8643      # All OSF/1 code is PIC.
8644      lt_prog_compiler_static='-non_shared'
8645      ;;
8646
8647    rdos*)
8648      lt_prog_compiler_static='-non_shared'
8649      ;;
8650
8651    solaris*)
8652      lt_prog_compiler_pic='-KPIC'
8653      lt_prog_compiler_static='-Bstatic'
8654      case $cc_basename in
8655      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8656	lt_prog_compiler_wl='-Qoption ld ';;
8657      *)
8658	lt_prog_compiler_wl='-Wl,';;
8659      esac
8660      ;;
8661
8662    sunos4*)
8663      lt_prog_compiler_wl='-Qoption ld '
8664      lt_prog_compiler_pic='-PIC'
8665      lt_prog_compiler_static='-Bstatic'
8666      ;;
8667
8668    sysv4 | sysv4.2uw2* | sysv4.3*)
8669      lt_prog_compiler_wl='-Wl,'
8670      lt_prog_compiler_pic='-KPIC'
8671      lt_prog_compiler_static='-Bstatic'
8672      ;;
8673
8674    sysv4*MP*)
8675      if test -d /usr/nec; then
8676	lt_prog_compiler_pic='-Kconform_pic'
8677	lt_prog_compiler_static='-Bstatic'
8678      fi
8679      ;;
8680
8681    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8682      lt_prog_compiler_wl='-Wl,'
8683      lt_prog_compiler_pic='-KPIC'
8684      lt_prog_compiler_static='-Bstatic'
8685      ;;
8686
8687    unicos*)
8688      lt_prog_compiler_wl='-Wl,'
8689      lt_prog_compiler_can_build_shared=no
8690      ;;
8691
8692    uts4*)
8693      lt_prog_compiler_pic='-pic'
8694      lt_prog_compiler_static='-Bstatic'
8695      ;;
8696
8697    *)
8698      lt_prog_compiler_can_build_shared=no
8699      ;;
8700    esac
8701  fi
8702
8703case $host_os in
8704  # For platforms that do not support PIC, -DPIC is meaningless:
8705  *djgpp*)
8706    lt_prog_compiler_pic=
8707    ;;
8708  *)
8709    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8710    ;;
8711esac
8712
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8714$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8715if ${lt_cv_prog_compiler_pic+:} false; then :
8716  $as_echo_n "(cached) " >&6
8717else
8718  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8719fi
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8721$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8722lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8723
8724#
8725# Check to make sure the PIC flag actually works.
8726#
8727if test -n "$lt_prog_compiler_pic"; then
8728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8729$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8730if ${lt_cv_prog_compiler_pic_works+:} false; then :
8731  $as_echo_n "(cached) " >&6
8732else
8733  lt_cv_prog_compiler_pic_works=no
8734   ac_outfile=conftest.$ac_objext
8735   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8737   # Insert the option either (1) after the last *FLAGS variable, or
8738   # (2) before a word containing "conftest.", or (3) at the end.
8739   # Note that $ac_compile itself does not contain backslashes and begins
8740   # with a dollar sign (not a hyphen), so the echo should work correctly.
8741   # The option is referenced via a variable to avoid confusing sed.
8742   lt_compile=`echo "$ac_compile" | $SED \
8743   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745   -e 's:$: $lt_compiler_flag:'`
8746   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8747   (eval "$lt_compile" 2>conftest.err)
8748   ac_status=$?
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   if (exit $ac_status) && test -s "$ac_outfile"; then
8752     # The compiler can only warn and ignore the option if not recognized
8753     # So say no if there are warnings other than the usual output.
8754     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8755     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8757       lt_cv_prog_compiler_pic_works=yes
8758     fi
8759   fi
8760   $RM conftest*
8761
8762fi
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8764$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8765
8766if test yes = "$lt_cv_prog_compiler_pic_works"; then
8767    case $lt_prog_compiler_pic in
8768     "" | " "*) ;;
8769     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8770     esac
8771else
8772    lt_prog_compiler_pic=
8773     lt_prog_compiler_can_build_shared=no
8774fi
8775
8776fi
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788#
8789# Check to make sure the static flag actually works.
8790#
8791wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8793$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8794if ${lt_cv_prog_compiler_static_works+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  lt_cv_prog_compiler_static_works=no
8798   save_LDFLAGS=$LDFLAGS
8799   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8800   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8801   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8802     # The linker can only warn and ignore the option if not recognized
8803     # So say no if there are warnings
8804     if test -s conftest.err; then
8805       # Append any errors to the config.log.
8806       cat conftest.err 1>&5
8807       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8808       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8809       if diff conftest.exp conftest.er2 >/dev/null; then
8810         lt_cv_prog_compiler_static_works=yes
8811       fi
8812     else
8813       lt_cv_prog_compiler_static_works=yes
8814     fi
8815   fi
8816   $RM -r conftest*
8817   LDFLAGS=$save_LDFLAGS
8818
8819fi
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8821$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8822
8823if test yes = "$lt_cv_prog_compiler_static_works"; then
8824    :
8825else
8826    lt_prog_compiler_static=
8827fi
8828
8829
8830
8831
8832
8833
8834
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8836$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8837if ${lt_cv_prog_compiler_c_o+:} false; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  lt_cv_prog_compiler_c_o=no
8841   $RM -r conftest 2>/dev/null
8842   mkdir conftest
8843   cd conftest
8844   mkdir out
8845   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846
8847   lt_compiler_flag="-o out/conftest2.$ac_objext"
8848   # Insert the option either (1) after the last *FLAGS variable, or
8849   # (2) before a word containing "conftest.", or (3) at the end.
8850   # Note that $ac_compile itself does not contain backslashes and begins
8851   # with a dollar sign (not a hyphen), so the echo should work correctly.
8852   lt_compile=`echo "$ac_compile" | $SED \
8853   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855   -e 's:$: $lt_compiler_flag:'`
8856   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857   (eval "$lt_compile" 2>out/conftest.err)
8858   ac_status=$?
8859   cat out/conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8862   then
8863     # The compiler can only warn and ignore the option if not recognized
8864     # So say no if there are warnings
8865     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8866     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8867     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8868       lt_cv_prog_compiler_c_o=yes
8869     fi
8870   fi
8871   chmod u+w . 2>&5
8872   $RM conftest*
8873   # SGI C++ compiler will create directory out/ii_files/ for
8874   # template instantiation
8875   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8876   $RM out/* && rmdir out
8877   cd ..
8878   $RM -r conftest
8879   $RM conftest*
8880
8881fi
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8883$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8884
8885
8886
8887
8888
8889
8890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8891$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8892if ${lt_cv_prog_compiler_c_o+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  lt_cv_prog_compiler_c_o=no
8896   $RM -r conftest 2>/dev/null
8897   mkdir conftest
8898   cd conftest
8899   mkdir out
8900   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8901
8902   lt_compiler_flag="-o out/conftest2.$ac_objext"
8903   # Insert the option either (1) after the last *FLAGS variable, or
8904   # (2) before a word containing "conftest.", or (3) at the end.
8905   # Note that $ac_compile itself does not contain backslashes and begins
8906   # with a dollar sign (not a hyphen), so the echo should work correctly.
8907   lt_compile=`echo "$ac_compile" | $SED \
8908   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8909   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8910   -e 's:$: $lt_compiler_flag:'`
8911   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8912   (eval "$lt_compile" 2>out/conftest.err)
8913   ac_status=$?
8914   cat out/conftest.err >&5
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8917   then
8918     # The compiler can only warn and ignore the option if not recognized
8919     # So say no if there are warnings
8920     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8921     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8922     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8923       lt_cv_prog_compiler_c_o=yes
8924     fi
8925   fi
8926   chmod u+w . 2>&5
8927   $RM conftest*
8928   # SGI C++ compiler will create directory out/ii_files/ for
8929   # template instantiation
8930   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8931   $RM out/* && rmdir out
8932   cd ..
8933   $RM -r conftest
8934   $RM conftest*
8935
8936fi
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8938$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8939
8940
8941
8942
8943hard_links=nottested
8944if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8945  # do not overwrite the value of need_locks provided by the user
8946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8947$as_echo_n "checking if we can lock with hard links... " >&6; }
8948  hard_links=yes
8949  $RM conftest*
8950  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8951  touch conftest.a
8952  ln conftest.a conftest.b 2>&5 || hard_links=no
8953  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8955$as_echo "$hard_links" >&6; }
8956  if test no = "$hard_links"; then
8957    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8958$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8959    need_locks=warn
8960  fi
8961else
8962  need_locks=no
8963fi
8964
8965
8966
8967
8968
8969
8970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8972
8973  runpath_var=
8974  allow_undefined_flag=
8975  always_export_symbols=no
8976  archive_cmds=
8977  archive_expsym_cmds=
8978  compiler_needs_object=no
8979  enable_shared_with_static_runtimes=no
8980  export_dynamic_flag_spec=
8981  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8982  hardcode_automatic=no
8983  hardcode_direct=no
8984  hardcode_direct_absolute=no
8985  hardcode_libdir_flag_spec=
8986  hardcode_libdir_separator=
8987  hardcode_minus_L=no
8988  hardcode_shlibpath_var=unsupported
8989  inherit_rpath=no
8990  link_all_deplibs=unknown
8991  module_cmds=
8992  module_expsym_cmds=
8993  old_archive_from_new_cmds=
8994  old_archive_from_expsyms_cmds=
8995  thread_safe_flag_spec=
8996  whole_archive_flag_spec=
8997  # include_expsyms should be a list of space-separated symbols to be *always*
8998  # included in the symbol list
8999  include_expsyms=
9000  # exclude_expsyms can be an extended regexp of symbols to exclude
9001  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9002  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9003  # as well as any symbol that contains 'd'.
9004  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9005  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9006  # platforms (ab)use it in PIC code, but their linkers get confused if
9007  # the symbol is explicitly referenced.  Since portable code cannot
9008  # rely on this symbol name, it's probably fine to never include it in
9009  # preloaded symbol tables.
9010  # Exclude shared library initialization/finalization symbols.
9011  extract_expsyms_cmds=
9012
9013  case $host_os in
9014  cygwin* | mingw* | pw32* | cegcc*)
9015    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9016    # When not using gcc, we currently assume that we are using
9017    # Microsoft Visual C++.
9018    if test yes != "$GCC"; then
9019      with_gnu_ld=no
9020    fi
9021    ;;
9022  interix*)
9023    # we just hope/assume this is gcc and not c89 (= MSVC++)
9024    with_gnu_ld=yes
9025    ;;
9026  openbsd* | bitrig*)
9027    with_gnu_ld=no
9028    ;;
9029  esac
9030
9031  ld_shlibs=yes
9032
9033  # On some targets, GNU ld is compatible enough with the native linker
9034  # that we're better off using the native interface for both.
9035  lt_use_gnu_ld_interface=no
9036  if test yes = "$with_gnu_ld"; then
9037    case $host_os in
9038      aix*)
9039	# The AIX port of GNU ld has always aspired to compatibility
9040	# with the native linker.  However, as the warning in the GNU ld
9041	# block says, versions before 2.19.5* couldn't really create working
9042	# shared libraries, regardless of the interface used.
9043	case `$LD -v 2>&1` in
9044	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9045	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9046	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9047	  *)
9048	    lt_use_gnu_ld_interface=yes
9049	    ;;
9050	esac
9051	;;
9052      *)
9053	lt_use_gnu_ld_interface=yes
9054	;;
9055    esac
9056  fi
9057
9058  if test yes = "$lt_use_gnu_ld_interface"; then
9059    # If archive_cmds runs LD, not CC, wlarc should be empty
9060    wlarc='$wl'
9061
9062    # Set some defaults for GNU ld with shared library support. These
9063    # are reset later if shared libraries are not supported. Putting them
9064    # here allows them to be overridden if necessary.
9065    runpath_var=LD_RUN_PATH
9066    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9067    export_dynamic_flag_spec='$wl--export-dynamic'
9068    # ancient GNU ld didn't support --whole-archive et. al.
9069    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9070      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9071    else
9072      whole_archive_flag_spec=
9073    fi
9074    supports_anon_versioning=no
9075    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9076      *GNU\ gold*) supports_anon_versioning=yes ;;
9077      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9078      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9079      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9080      *\ 2.11.*) ;; # other 2.11 versions
9081      *) supports_anon_versioning=yes ;;
9082    esac
9083
9084    # See if GNU ld supports shared libraries.
9085    case $host_os in
9086    aix[3-9]*)
9087      # On AIX/PPC, the GNU linker is very broken
9088      if test ia64 != "$host_cpu"; then
9089	ld_shlibs=no
9090	cat <<_LT_EOF 1>&2
9091
9092*** Warning: the GNU linker, at least up to release 2.19, is reported
9093*** to be unable to reliably create shared libraries on AIX.
9094*** Therefore, libtool is disabling shared libraries support.  If you
9095*** really care for shared libraries, you may want to install binutils
9096*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9097*** You will then need to restart the configuration process.
9098
9099_LT_EOF
9100      fi
9101      ;;
9102
9103    amigaos*)
9104      case $host_cpu in
9105      powerpc)
9106            # see comment about AmigaOS4 .so support
9107            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9108            archive_expsym_cmds=''
9109        ;;
9110      m68k)
9111            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)'
9112            hardcode_libdir_flag_spec='-L$libdir'
9113            hardcode_minus_L=yes
9114        ;;
9115      esac
9116      ;;
9117
9118    beos*)
9119      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9120	allow_undefined_flag=unsupported
9121	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9122	# support --undefined.  This deserves some investigation.  FIXME
9123	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9124      else
9125	ld_shlibs=no
9126      fi
9127      ;;
9128
9129    cygwin* | mingw* | pw32* | cegcc*)
9130      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9131      # as there is no search path for DLLs.
9132      hardcode_libdir_flag_spec='-L$libdir'
9133      export_dynamic_flag_spec='$wl--export-all-symbols'
9134      allow_undefined_flag=unsupported
9135      always_export_symbols=no
9136      enable_shared_with_static_runtimes=yes
9137      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9138      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9139
9140      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9141        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142	# If the export-symbols file already is a .def file, use it as
9143	# is; otherwise, prepend EXPORTS...
9144	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9145          cp $export_symbols $output_objdir/$soname.def;
9146        else
9147          echo EXPORTS > $output_objdir/$soname.def;
9148          cat $export_symbols >> $output_objdir/$soname.def;
9149        fi~
9150        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9151      else
9152	ld_shlibs=no
9153      fi
9154      ;;
9155
9156    haiku*)
9157      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9158      link_all_deplibs=yes
9159      ;;
9160
9161    os2*)
9162      hardcode_libdir_flag_spec='-L$libdir'
9163      hardcode_minus_L=yes
9164      allow_undefined_flag=unsupported
9165      shrext_cmds=.dll
9166      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9167	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9168	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9169	$ECHO EXPORTS >> $output_objdir/$libname.def~
9170	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9171	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9172	emximp -o $lib $output_objdir/$libname.def'
9173      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9174	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9175	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9176	$ECHO EXPORTS >> $output_objdir/$libname.def~
9177	prefix_cmds="$SED"~
9178	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9179	  prefix_cmds="$prefix_cmds -e 1d";
9180	fi~
9181	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9182	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9183	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9184	emximp -o $lib $output_objdir/$libname.def'
9185      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9186      enable_shared_with_static_runtimes=yes
9187      ;;
9188
9189    interix[3-9]*)
9190      hardcode_direct=no
9191      hardcode_shlibpath_var=no
9192      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9193      export_dynamic_flag_spec='$wl-E'
9194      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9195      # Instead, shared libraries are loaded at an image base (0x10000000 by
9196      # default) and relocated if they conflict, which is a slow very memory
9197      # consuming and fragmenting process.  To avoid this, we pick a random,
9198      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9199      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9200      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9201      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'
9202      ;;
9203
9204    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9205      tmp_diet=no
9206      if test linux-dietlibc = "$host_os"; then
9207	case $cc_basename in
9208	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9209	esac
9210      fi
9211      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9212	 && test no = "$tmp_diet"
9213      then
9214	tmp_addflag=' $pic_flag'
9215	tmp_sharedflag='-shared'
9216	case $cc_basename,$host_cpu in
9217        pgcc*)				# Portland Group C compiler
9218	  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'
9219	  tmp_addflag=' $pic_flag'
9220	  ;;
9221	pgf77* | pgf90* | pgf95* | pgfortran*)
9222					# Portland Group f77 and f90 compilers
9223	  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'
9224	  tmp_addflag=' $pic_flag -Mnomain' ;;
9225	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9226	  tmp_addflag=' -i_dynamic' ;;
9227	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9228	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9229	ifc* | ifort*)			# Intel Fortran compiler
9230	  tmp_addflag=' -nofor_main' ;;
9231	lf95*)				# Lahey Fortran 8.1
9232	  whole_archive_flag_spec=
9233	  tmp_sharedflag='--shared' ;;
9234        nagfor*)                        # NAGFOR 5.3
9235          tmp_sharedflag='-Wl,-shared' ;;
9236	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9237	  tmp_sharedflag='-qmkshrobj'
9238	  tmp_addflag= ;;
9239	nvcc*)	# Cuda Compiler Driver 2.2
9240	  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'
9241	  compiler_needs_object=yes
9242	  ;;
9243	esac
9244	case `$CC -V 2>&1 | sed 5q` in
9245	*Sun\ C*)			# Sun C 5.9
9246	  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'
9247	  compiler_needs_object=yes
9248	  tmp_sharedflag='-G' ;;
9249	*Sun\ F*)			# Sun Fortran 8.3
9250	  tmp_sharedflag='-G' ;;
9251	esac
9252	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9253
9254        if test yes = "$supports_anon_versioning"; then
9255          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9256            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9257            echo "local: *; };" >> $output_objdir/$libname.ver~
9258            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9259        fi
9260
9261	case $cc_basename in
9262	tcc*)
9263	  export_dynamic_flag_spec='-rdynamic'
9264	  ;;
9265	xlf* | bgf* | bgxlf* | mpixlf*)
9266	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9267	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9268	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9269	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9270	  if test yes = "$supports_anon_versioning"; then
9271	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9272              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9273              echo "local: *; };" >> $output_objdir/$libname.ver~
9274              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9275	  fi
9276	  ;;
9277	esac
9278      else
9279        ld_shlibs=no
9280      fi
9281      ;;
9282
9283    netbsd*)
9284      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9285	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9286	wlarc=
9287      else
9288	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9289	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9290      fi
9291      ;;
9292
9293    solaris*)
9294      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9295	ld_shlibs=no
9296	cat <<_LT_EOF 1>&2
9297
9298*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9299*** create shared libraries on Solaris systems.  Therefore, libtool
9300*** is disabling shared libraries support.  We urge you to upgrade GNU
9301*** binutils to release 2.9.1 or newer.  Another option is to modify
9302*** your PATH or compiler configuration so that the native linker is
9303*** used, and then restart.
9304
9305_LT_EOF
9306      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9308	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9309      else
9310	ld_shlibs=no
9311      fi
9312      ;;
9313
9314    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9315      case `$LD -v 2>&1` in
9316        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9317	ld_shlibs=no
9318	cat <<_LT_EOF 1>&2
9319
9320*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9321*** reliably create shared libraries on SCO systems.  Therefore, libtool
9322*** is disabling shared libraries support.  We urge you to upgrade GNU
9323*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9324*** your PATH or compiler configuration so that the native linker is
9325*** used, and then restart.
9326
9327_LT_EOF
9328	;;
9329	*)
9330	  # For security reasons, it is highly recommended that you always
9331	  # use absolute paths for naming shared libraries, and exclude the
9332	  # DT_RUNPATH tag from executables and libraries.  But doing so
9333	  # requires that you compile everything twice, which is a pain.
9334	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9336	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9337	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9338	  else
9339	    ld_shlibs=no
9340	  fi
9341	;;
9342      esac
9343      ;;
9344
9345    sunos4*)
9346      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9347      wlarc=
9348      hardcode_direct=yes
9349      hardcode_shlibpath_var=no
9350      ;;
9351
9352    *)
9353      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9355	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9356      else
9357	ld_shlibs=no
9358      fi
9359      ;;
9360    esac
9361
9362    if test no = "$ld_shlibs"; then
9363      runpath_var=
9364      hardcode_libdir_flag_spec=
9365      export_dynamic_flag_spec=
9366      whole_archive_flag_spec=
9367    fi
9368  else
9369    # PORTME fill in a description of your system's linker (not GNU ld)
9370    case $host_os in
9371    aix3*)
9372      allow_undefined_flag=unsupported
9373      always_export_symbols=yes
9374      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'
9375      # Note: this linker hardcodes the directories in LIBPATH if there
9376      # are no directories specified by -L.
9377      hardcode_minus_L=yes
9378      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9379	# Neither direct hardcoding nor static linking is supported with a
9380	# broken collect2.
9381	hardcode_direct=unsupported
9382      fi
9383      ;;
9384
9385    aix[4-9]*)
9386      if test ia64 = "$host_cpu"; then
9387	# On IA64, the linker does run time linking by default, so we don't
9388	# have to do anything special.
9389	aix_use_runtimelinking=no
9390	exp_sym_flag='-Bexport'
9391	no_entry_flag=
9392      else
9393	# If we're using GNU nm, then we don't want the "-C" option.
9394	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9395	# Without the "-l" option, or with the "-B" option, AIX nm treats
9396	# weak defined symbols like other global defined symbols, whereas
9397	# GNU nm marks them as "W".
9398	# While the 'weak' keyword is ignored in the Export File, we need
9399	# it in the Import File for the 'aix-soname' feature, so we have
9400	# to replace the "-B" option with "-P" for AIX nm.
9401	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9402	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9403	else
9404	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9405	fi
9406	aix_use_runtimelinking=no
9407
9408	# Test if we are trying to use run time linking or normal
9409	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9410	# have runtime linking enabled, and use it for executables.
9411	# For shared libraries, we enable/disable runtime linking
9412	# depending on the kind of the shared library created -
9413	# when "with_aix_soname,aix_use_runtimelinking" is:
9414	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9415	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9416	#            lib.a           static archive
9417	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9418	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9419	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9420	#            lib.a(lib.so.V) shared, rtl:no
9421	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9422	#            lib.a           static archive
9423	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9424	  for ld_flag in $LDFLAGS; do
9425	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9426	    aix_use_runtimelinking=yes
9427	    break
9428	  fi
9429	  done
9430	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9431	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9432	    # so we don't have lib.a shared libs to link our executables.
9433	    # We have to force runtime linking in this case.
9434	    aix_use_runtimelinking=yes
9435	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9436	  fi
9437	  ;;
9438	esac
9439
9440	exp_sym_flag='-bexport'
9441	no_entry_flag='-bnoentry'
9442      fi
9443
9444      # When large executables or shared objects are built, AIX ld can
9445      # have problems creating the table of contents.  If linking a library
9446      # or program results in "error TOC overflow" add -mminimal-toc to
9447      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9448      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9449
9450      archive_cmds=''
9451      hardcode_direct=yes
9452      hardcode_direct_absolute=yes
9453      hardcode_libdir_separator=':'
9454      link_all_deplibs=yes
9455      file_list_spec='$wl-f,'
9456      case $with_aix_soname,$aix_use_runtimelinking in
9457      aix,*) ;; # traditional, no import file
9458      svr4,* | *,yes) # use import file
9459	# The Import File defines what to hardcode.
9460	hardcode_direct=no
9461	hardcode_direct_absolute=no
9462	;;
9463      esac
9464
9465      if test yes = "$GCC"; then
9466	case $host_os in aix4.[012]|aix4.[012].*)
9467	# We only want to do this on AIX 4.2 and lower, the check
9468	# below for broken collect2 doesn't work under 4.3+
9469	  collect2name=`$CC -print-prog-name=collect2`
9470	  if test -f "$collect2name" &&
9471	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9472	  then
9473	  # We have reworked collect2
9474	  :
9475	  else
9476	  # We have old collect2
9477	  hardcode_direct=unsupported
9478	  # It fails to find uninstalled libraries when the uninstalled
9479	  # path is not listed in the libpath.  Setting hardcode_minus_L
9480	  # to unsupported forces relinking
9481	  hardcode_minus_L=yes
9482	  hardcode_libdir_flag_spec='-L$libdir'
9483	  hardcode_libdir_separator=
9484	  fi
9485	  ;;
9486	esac
9487	shared_flag='-shared'
9488	if test yes = "$aix_use_runtimelinking"; then
9489	  shared_flag="$shared_flag "'$wl-G'
9490	fi
9491	# Need to ensure runtime linking is disabled for the traditional
9492	# shared library, or the linker may eventually find shared libraries
9493	# /with/ Import File - we do not want to mix them.
9494	shared_flag_aix='-shared'
9495	shared_flag_svr4='-shared $wl-G'
9496      else
9497	# not using gcc
9498	if test ia64 = "$host_cpu"; then
9499	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9500	# chokes on -Wl,-G. The following line is correct:
9501	  shared_flag='-G'
9502	else
9503	  if test yes = "$aix_use_runtimelinking"; then
9504	    shared_flag='$wl-G'
9505	  else
9506	    shared_flag='$wl-bM:SRE'
9507	  fi
9508	  shared_flag_aix='$wl-bM:SRE'
9509	  shared_flag_svr4='$wl-G'
9510	fi
9511      fi
9512
9513      export_dynamic_flag_spec='$wl-bexpall'
9514      # It seems that -bexpall does not export symbols beginning with
9515      # underscore (_), so it is better to generate a list of symbols to export.
9516      always_export_symbols=yes
9517      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9518	# Warning - without using the other runtime loading flags (-brtl),
9519	# -berok will link without error, but may produce a broken library.
9520	allow_undefined_flag='-berok'
9521        # Determine the default libpath from the value encoded in an
9522        # empty executable.
9523        if test set = "${lt_cv_aix_libpath+set}"; then
9524  aix_libpath=$lt_cv_aix_libpath
9525else
9526  if ${lt_cv_aix_libpath_+:} false; then :
9527  $as_echo_n "(cached) " >&6
9528else
9529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h.  */
9531
9532int
9533main ()
9534{
9535
9536  ;
9537  return 0;
9538}
9539_ACEOF
9540if ac_fn_c_try_link "$LINENO"; then :
9541
9542  lt_aix_libpath_sed='
9543      /Import File Strings/,/^$/ {
9544	  /^0/ {
9545	      s/^0  *\([^ ]*\) *$/\1/
9546	      p
9547	  }
9548      }'
9549  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550  # Check for a 64-bit object if we didn't find anything.
9551  if test -z "$lt_cv_aix_libpath_"; then
9552    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553  fi
9554fi
9555rm -f core conftest.err conftest.$ac_objext \
9556    conftest$ac_exeext conftest.$ac_ext
9557  if test -z "$lt_cv_aix_libpath_"; then
9558    lt_cv_aix_libpath_=/usr/lib:/lib
9559  fi
9560
9561fi
9562
9563  aix_libpath=$lt_cv_aix_libpath_
9564fi
9565
9566        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9567        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9568      else
9569	if test ia64 = "$host_cpu"; then
9570	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9571	  allow_undefined_flag="-z nodefs"
9572	  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"
9573	else
9574	 # Determine the default libpath from the value encoded in an
9575	 # empty executable.
9576	 if test set = "${lt_cv_aix_libpath+set}"; then
9577  aix_libpath=$lt_cv_aix_libpath
9578else
9579  if ${lt_cv_aix_libpath_+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584
9585int
9586main ()
9587{
9588
9589  ;
9590  return 0;
9591}
9592_ACEOF
9593if ac_fn_c_try_link "$LINENO"; then :
9594
9595  lt_aix_libpath_sed='
9596      /Import File Strings/,/^$/ {
9597	  /^0/ {
9598	      s/^0  *\([^ ]*\) *$/\1/
9599	      p
9600	  }
9601      }'
9602  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603  # Check for a 64-bit object if we didn't find anything.
9604  if test -z "$lt_cv_aix_libpath_"; then
9605    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606  fi
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609    conftest$ac_exeext conftest.$ac_ext
9610  if test -z "$lt_cv_aix_libpath_"; then
9611    lt_cv_aix_libpath_=/usr/lib:/lib
9612  fi
9613
9614fi
9615
9616  aix_libpath=$lt_cv_aix_libpath_
9617fi
9618
9619	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9620	  # Warning - without using the other run time loading flags,
9621	  # -berok will link without error, but may produce a broken library.
9622	  no_undefined_flag=' $wl-bernotok'
9623	  allow_undefined_flag=' $wl-berok'
9624	  if test yes = "$with_gnu_ld"; then
9625	    # We only use this code for GNU lds that support --whole-archive.
9626	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9627	  else
9628	    # Exported symbols can be pulled into shared objects from archives
9629	    whole_archive_flag_spec='$convenience'
9630	  fi
9631	  archive_cmds_need_lc=yes
9632	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9633	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9634	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9635	  if test svr4 != "$with_aix_soname"; then
9636	    # This is similar to how AIX traditionally builds its shared libraries.
9637	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9638	  fi
9639	  if test aix != "$with_aix_soname"; then
9640	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9641	  else
9642	    # used by -dlpreopen to get the symbols
9643	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9644	  fi
9645	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9646	fi
9647      fi
9648      ;;
9649
9650    amigaos*)
9651      case $host_cpu in
9652      powerpc)
9653            # see comment about AmigaOS4 .so support
9654            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9655            archive_expsym_cmds=''
9656        ;;
9657      m68k)
9658            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)'
9659            hardcode_libdir_flag_spec='-L$libdir'
9660            hardcode_minus_L=yes
9661        ;;
9662      esac
9663      ;;
9664
9665    bsdi[45]*)
9666      export_dynamic_flag_spec=-rdynamic
9667      ;;
9668
9669    cygwin* | mingw* | pw32* | cegcc*)
9670      # When not using gcc, we currently assume that we are using
9671      # Microsoft Visual C++.
9672      # hardcode_libdir_flag_spec is actually meaningless, as there is
9673      # no search path for DLLs.
9674      case $cc_basename in
9675      cl*)
9676	# Native MSVC
9677	hardcode_libdir_flag_spec=' '
9678	allow_undefined_flag=unsupported
9679	always_export_symbols=yes
9680	file_list_spec='@'
9681	# Tell ltmain to make .lib files, not .a files.
9682	libext=lib
9683	# Tell ltmain to make .dll files, not .so files.
9684	shrext_cmds=.dll
9685	# FIXME: Setting linknames here is a bad hack.
9686	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9687	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9688            cp "$export_symbols" "$output_objdir/$soname.def";
9689            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9690          else
9691            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9692          fi~
9693          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9694          linknames='
9695	# The linker will not automatically build a static lib if we build a DLL.
9696	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9697	enable_shared_with_static_runtimes=yes
9698	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9699	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9700	# Don't use ranlib
9701	old_postinstall_cmds='chmod 644 $oldlib'
9702	postlink_cmds='lt_outputfile="@OUTPUT@"~
9703          lt_tool_outputfile="@TOOL_OUTPUT@"~
9704          case $lt_outputfile in
9705            *.exe|*.EXE) ;;
9706            *)
9707              lt_outputfile=$lt_outputfile.exe
9708              lt_tool_outputfile=$lt_tool_outputfile.exe
9709              ;;
9710          esac~
9711          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9712            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9713            $RM "$lt_outputfile.manifest";
9714          fi'
9715	;;
9716      *)
9717	# Assume MSVC wrapper
9718	hardcode_libdir_flag_spec=' '
9719	allow_undefined_flag=unsupported
9720	# Tell ltmain to make .lib files, not .a files.
9721	libext=lib
9722	# Tell ltmain to make .dll files, not .so files.
9723	shrext_cmds=.dll
9724	# FIXME: Setting linknames here is a bad hack.
9725	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9726	# The linker will automatically build a .lib file if we build a DLL.
9727	old_archive_from_new_cmds='true'
9728	# FIXME: Should let the user specify the lib program.
9729	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9730	enable_shared_with_static_runtimes=yes
9731	;;
9732      esac
9733      ;;
9734
9735    darwin* | rhapsody*)
9736
9737
9738  archive_cmds_need_lc=no
9739  hardcode_direct=no
9740  hardcode_automatic=yes
9741  hardcode_shlibpath_var=unsupported
9742  if test yes = "$lt_cv_ld_force_load"; then
9743    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\"`'
9744
9745  else
9746    whole_archive_flag_spec=''
9747  fi
9748  link_all_deplibs=yes
9749  allow_undefined_flag=$_lt_dar_allow_undefined
9750  case $cc_basename in
9751     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9752     *) _lt_dar_can_shared=$GCC ;;
9753  esac
9754  if test yes = "$_lt_dar_can_shared"; then
9755    output_verbose_link_cmd=func_echo_all
9756    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9757    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9758    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"
9759    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"
9760
9761  else
9762  ld_shlibs=no
9763  fi
9764
9765      ;;
9766
9767    dgux*)
9768      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769      hardcode_libdir_flag_spec='-L$libdir'
9770      hardcode_shlibpath_var=no
9771      ;;
9772
9773    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9774    # support.  Future versions do this automatically, but an explicit c++rt0.o
9775    # does not break anything, and helps significantly (at the cost of a little
9776    # extra space).
9777    freebsd2.2*)
9778      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9779      hardcode_libdir_flag_spec='-R$libdir'
9780      hardcode_direct=yes
9781      hardcode_shlibpath_var=no
9782      ;;
9783
9784    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9785    freebsd2.*)
9786      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9787      hardcode_direct=yes
9788      hardcode_minus_L=yes
9789      hardcode_shlibpath_var=no
9790      ;;
9791
9792    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9793    freebsd* | dragonfly*)
9794      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9795      hardcode_libdir_flag_spec='-R$libdir'
9796      hardcode_direct=yes
9797      hardcode_shlibpath_var=no
9798      ;;
9799
9800    hpux9*)
9801      if test yes = "$GCC"; then
9802	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9803      else
9804	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9805      fi
9806      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9807      hardcode_libdir_separator=:
9808      hardcode_direct=yes
9809
9810      # hardcode_minus_L: Not really in the search PATH,
9811      # but as the default location of the library.
9812      hardcode_minus_L=yes
9813      export_dynamic_flag_spec='$wl-E'
9814      ;;
9815
9816    hpux10*)
9817      if test yes,no = "$GCC,$with_gnu_ld"; then
9818	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9819      else
9820	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9821      fi
9822      if test no = "$with_gnu_ld"; then
9823	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9824	hardcode_libdir_separator=:
9825	hardcode_direct=yes
9826	hardcode_direct_absolute=yes
9827	export_dynamic_flag_spec='$wl-E'
9828	# hardcode_minus_L: Not really in the search PATH,
9829	# but as the default location of the library.
9830	hardcode_minus_L=yes
9831      fi
9832      ;;
9833
9834    hpux11*)
9835      if test yes,no = "$GCC,$with_gnu_ld"; then
9836	case $host_cpu in
9837	hppa*64*)
9838	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9839	  ;;
9840	ia64*)
9841	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9842	  ;;
9843	*)
9844	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845	  ;;
9846	esac
9847      else
9848	case $host_cpu in
9849	hppa*64*)
9850	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9851	  ;;
9852	ia64*)
9853	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854	  ;;
9855	*)
9856
9857	  # Older versions of the 11.00 compiler do not understand -b yet
9858	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9859	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9860$as_echo_n "checking if $CC understands -b... " >&6; }
9861if ${lt_cv_prog_compiler__b+:} false; then :
9862  $as_echo_n "(cached) " >&6
9863else
9864  lt_cv_prog_compiler__b=no
9865   save_LDFLAGS=$LDFLAGS
9866   LDFLAGS="$LDFLAGS -b"
9867   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9868   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9869     # The linker can only warn and ignore the option if not recognized
9870     # So say no if there are warnings
9871     if test -s conftest.err; then
9872       # Append any errors to the config.log.
9873       cat conftest.err 1>&5
9874       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9875       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9876       if diff conftest.exp conftest.er2 >/dev/null; then
9877         lt_cv_prog_compiler__b=yes
9878       fi
9879     else
9880       lt_cv_prog_compiler__b=yes
9881     fi
9882   fi
9883   $RM -r conftest*
9884   LDFLAGS=$save_LDFLAGS
9885
9886fi
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9888$as_echo "$lt_cv_prog_compiler__b" >&6; }
9889
9890if test yes = "$lt_cv_prog_compiler__b"; then
9891    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892else
9893    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9894fi
9895
9896	  ;;
9897	esac
9898      fi
9899      if test no = "$with_gnu_ld"; then
9900	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9901	hardcode_libdir_separator=:
9902
9903	case $host_cpu in
9904	hppa*64*|ia64*)
9905	  hardcode_direct=no
9906	  hardcode_shlibpath_var=no
9907	  ;;
9908	*)
9909	  hardcode_direct=yes
9910	  hardcode_direct_absolute=yes
9911	  export_dynamic_flag_spec='$wl-E'
9912
9913	  # hardcode_minus_L: Not really in the search PATH,
9914	  # but as the default location of the library.
9915	  hardcode_minus_L=yes
9916	  ;;
9917	esac
9918      fi
9919      ;;
9920
9921    irix5* | irix6* | nonstopux*)
9922      if test yes = "$GCC"; then
9923	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9924	# Try to use the -exported_symbol ld option, if it does not
9925	# work, assume that -exports_file does not work either and
9926	# implicitly export all symbols.
9927	# This should be the same for all languages, so no per-tag cache variable.
9928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9929$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9930if ${lt_cv_irix_exported_symbol+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  save_LDFLAGS=$LDFLAGS
9934	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9935	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int foo (void) { return 0; }
9938_ACEOF
9939if ac_fn_c_try_link "$LINENO"; then :
9940  lt_cv_irix_exported_symbol=yes
9941else
9942  lt_cv_irix_exported_symbol=no
9943fi
9944rm -f core conftest.err conftest.$ac_objext \
9945    conftest$ac_exeext conftest.$ac_ext
9946           LDFLAGS=$save_LDFLAGS
9947fi
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9949$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9950	if test yes = "$lt_cv_irix_exported_symbol"; then
9951          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9952	fi
9953      else
9954	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'
9955	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'
9956      fi
9957      archive_cmds_need_lc='no'
9958      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9959      hardcode_libdir_separator=:
9960      inherit_rpath=yes
9961      link_all_deplibs=yes
9962      ;;
9963
9964    linux*)
9965      case $cc_basename in
9966      tcc*)
9967	# Fabrice Bellard et al's Tiny C Compiler
9968	ld_shlibs=yes
9969	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9970	;;
9971      esac
9972      ;;
9973
9974    netbsd*)
9975      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9977      else
9978	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9979      fi
9980      hardcode_libdir_flag_spec='-R$libdir'
9981      hardcode_direct=yes
9982      hardcode_shlibpath_var=no
9983      ;;
9984
9985    newsos6)
9986      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987      hardcode_direct=yes
9988      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9989      hardcode_libdir_separator=:
9990      hardcode_shlibpath_var=no
9991      ;;
9992
9993    *nto* | *qnx*)
9994      ;;
9995
9996    openbsd* | bitrig*)
9997      if test -f /usr/libexec/ld.so; then
9998	hardcode_direct=yes
9999	hardcode_shlibpath_var=no
10000	hardcode_direct_absolute=yes
10001	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10002	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10004	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10005	  export_dynamic_flag_spec='$wl-E'
10006	else
10007	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10008	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10009	fi
10010      else
10011	ld_shlibs=no
10012      fi
10013      ;;
10014
10015    os2*)
10016      hardcode_libdir_flag_spec='-L$libdir'
10017      hardcode_minus_L=yes
10018      allow_undefined_flag=unsupported
10019      shrext_cmds=.dll
10020      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10021	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10022	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10023	$ECHO EXPORTS >> $output_objdir/$libname.def~
10024	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10025	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10026	emximp -o $lib $output_objdir/$libname.def'
10027      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10028	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10029	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10030	$ECHO EXPORTS >> $output_objdir/$libname.def~
10031	prefix_cmds="$SED"~
10032	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10033	  prefix_cmds="$prefix_cmds -e 1d";
10034	fi~
10035	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10036	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10037	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10038	emximp -o $lib $output_objdir/$libname.def'
10039      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10040      enable_shared_with_static_runtimes=yes
10041      ;;
10042
10043    osf3*)
10044      if test yes = "$GCC"; then
10045	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10046	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'
10047      else
10048	allow_undefined_flag=' -expect_unresolved \*'
10049	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'
10050      fi
10051      archive_cmds_need_lc='no'
10052      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10053      hardcode_libdir_separator=:
10054      ;;
10055
10056    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10057      if test yes = "$GCC"; then
10058	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10059	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10060	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10061      else
10062	allow_undefined_flag=' -expect_unresolved \*'
10063	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'
10064	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~
10065          $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'
10066
10067	# Both c and cxx compiler support -rpath directly
10068	hardcode_libdir_flag_spec='-rpath $libdir'
10069      fi
10070      archive_cmds_need_lc='no'
10071      hardcode_libdir_separator=:
10072      ;;
10073
10074    solaris*)
10075      no_undefined_flag=' -z defs'
10076      if test yes = "$GCC"; then
10077	wlarc='$wl'
10078	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10079	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10080          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10081      else
10082	case `$CC -V 2>&1` in
10083	*"Compilers 5.0"*)
10084	  wlarc=''
10085	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10087            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10088	  ;;
10089	*)
10090	  wlarc='$wl'
10091	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10093            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10094	  ;;
10095	esac
10096      fi
10097      hardcode_libdir_flag_spec='-R$libdir'
10098      hardcode_shlibpath_var=no
10099      case $host_os in
10100      solaris2.[0-5] | solaris2.[0-5].*) ;;
10101      *)
10102	# The compiler driver will combine and reorder linker options,
10103	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10104	# but is careful enough not to reorder.
10105	# Supported since Solaris 2.6 (maybe 2.5.1?)
10106	if test yes = "$GCC"; then
10107	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10108	else
10109	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10110	fi
10111	;;
10112      esac
10113      link_all_deplibs=yes
10114      ;;
10115
10116    sunos4*)
10117      if test sequent = "$host_vendor"; then
10118	# Use $CC to link under sequent, because it throws in some extra .o
10119	# files that make .init and .fini sections work.
10120	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10121      else
10122	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10123      fi
10124      hardcode_libdir_flag_spec='-L$libdir'
10125      hardcode_direct=yes
10126      hardcode_minus_L=yes
10127      hardcode_shlibpath_var=no
10128      ;;
10129
10130    sysv4)
10131      case $host_vendor in
10132	sni)
10133	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134	  hardcode_direct=yes # is this really true???
10135	;;
10136	siemens)
10137	  ## LD is ld it makes a PLAMLIB
10138	  ## CC just makes a GrossModule.
10139	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10140	  reload_cmds='$CC -r -o $output$reload_objs'
10141	  hardcode_direct=no
10142        ;;
10143	motorola)
10144	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10146	;;
10147      esac
10148      runpath_var='LD_RUN_PATH'
10149      hardcode_shlibpath_var=no
10150      ;;
10151
10152    sysv4.3*)
10153      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10154      hardcode_shlibpath_var=no
10155      export_dynamic_flag_spec='-Bexport'
10156      ;;
10157
10158    sysv4*MP*)
10159      if test -d /usr/nec; then
10160	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161	hardcode_shlibpath_var=no
10162	runpath_var=LD_RUN_PATH
10163	hardcode_runpath_var=yes
10164	ld_shlibs=yes
10165      fi
10166      ;;
10167
10168    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10169      no_undefined_flag='$wl-z,text'
10170      archive_cmds_need_lc=no
10171      hardcode_shlibpath_var=no
10172      runpath_var='LD_RUN_PATH'
10173
10174      if test yes = "$GCC"; then
10175	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177      else
10178	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180      fi
10181      ;;
10182
10183    sysv5* | sco3.2v5* | sco5v6*)
10184      # Note: We CANNOT use -z defs as we might desire, because we do not
10185      # link with -lc, and that would cause any symbols used from libc to
10186      # always be unresolved, which means just about no library would
10187      # ever link correctly.  If we're not using GNU ld we use -z text
10188      # though, which does catch some bad symbols but isn't as heavy-handed
10189      # as -z defs.
10190      no_undefined_flag='$wl-z,text'
10191      allow_undefined_flag='$wl-z,nodefs'
10192      archive_cmds_need_lc=no
10193      hardcode_shlibpath_var=no
10194      hardcode_libdir_flag_spec='$wl-R,$libdir'
10195      hardcode_libdir_separator=':'
10196      link_all_deplibs=yes
10197      export_dynamic_flag_spec='$wl-Bexport'
10198      runpath_var='LD_RUN_PATH'
10199
10200      if test yes = "$GCC"; then
10201	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10202	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10203      else
10204	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206      fi
10207      ;;
10208
10209    uts4*)
10210      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211      hardcode_libdir_flag_spec='-L$libdir'
10212      hardcode_shlibpath_var=no
10213      ;;
10214
10215    *)
10216      ld_shlibs=no
10217      ;;
10218    esac
10219
10220    if test sni = "$host_vendor"; then
10221      case $host in
10222      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10223	export_dynamic_flag_spec='$wl-Blargedynsym'
10224	;;
10225      esac
10226    fi
10227  fi
10228
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10230$as_echo "$ld_shlibs" >&6; }
10231test no = "$ld_shlibs" && can_build_shared=no
10232
10233with_gnu_ld=$with_gnu_ld
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249#
10250# Do we need to explicitly link libc?
10251#
10252case "x$archive_cmds_need_lc" in
10253x|xyes)
10254  # Assume -lc should be added
10255  archive_cmds_need_lc=yes
10256
10257  if test yes,yes = "$GCC,$enable_shared"; then
10258    case $archive_cmds in
10259    *'~'*)
10260      # FIXME: we may have to deal with multi-command sequences.
10261      ;;
10262    '$CC '*)
10263      # Test whether the compiler implicitly links with -lc since on some
10264      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10265      # to ld, don't add -lc before -lgcc.
10266      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10267$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10268if ${lt_cv_archive_cmds_need_lc+:} false; then :
10269  $as_echo_n "(cached) " >&6
10270else
10271  $RM conftest*
10272	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10273
10274	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10275  (eval $ac_compile) 2>&5
10276  ac_status=$?
10277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10278  test $ac_status = 0; } 2>conftest.err; then
10279	  soname=conftest
10280	  lib=conftest
10281	  libobjs=conftest.$ac_objext
10282	  deplibs=
10283	  wl=$lt_prog_compiler_wl
10284	  pic_flag=$lt_prog_compiler_pic
10285	  compiler_flags=-v
10286	  linker_flags=-v
10287	  verstring=
10288	  output_objdir=.
10289	  libname=conftest
10290	  lt_save_allow_undefined_flag=$allow_undefined_flag
10291	  allow_undefined_flag=
10292	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10293  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10294  ac_status=$?
10295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10296  test $ac_status = 0; }
10297	  then
10298	    lt_cv_archive_cmds_need_lc=no
10299	  else
10300	    lt_cv_archive_cmds_need_lc=yes
10301	  fi
10302	  allow_undefined_flag=$lt_save_allow_undefined_flag
10303	else
10304	  cat conftest.err 1>&5
10305	fi
10306	$RM conftest*
10307
10308fi
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10310$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10311      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10312      ;;
10313    esac
10314  fi
10315  ;;
10316esac
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10470$as_echo_n "checking dynamic linker characteristics... " >&6; }
10471
10472if test yes = "$GCC"; then
10473  case $host_os in
10474    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10475    *) lt_awk_arg='/^libraries:/' ;;
10476  esac
10477  case $host_os in
10478    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10479    *) lt_sed_strip_eq='s|=/|/|g' ;;
10480  esac
10481  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10482  case $lt_search_path_spec in
10483  *\;*)
10484    # if the path contains ";" then we assume it to be the separator
10485    # otherwise default to the standard path separator (i.e. ":") - it is
10486    # assumed that no part of a normal pathname contains ";" but that should
10487    # okay in the real world where ";" in dirpaths is itself problematic.
10488    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10489    ;;
10490  *)
10491    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10492    ;;
10493  esac
10494  # Ok, now we have the path, separated by spaces, we can step through it
10495  # and add multilib dir if necessary...
10496  lt_tmp_lt_search_path_spec=
10497  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10498  # ...but if some path component already ends with the multilib dir we assume
10499  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10500  case "$lt_multi_os_dir; $lt_search_path_spec " in
10501  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10502    lt_multi_os_dir=
10503    ;;
10504  esac
10505  for lt_sys_path in $lt_search_path_spec; do
10506    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10507      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10508    elif test -n "$lt_multi_os_dir"; then
10509      test -d "$lt_sys_path" && \
10510	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10511    fi
10512  done
10513  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10514BEGIN {RS = " "; FS = "/|\n";} {
10515  lt_foo = "";
10516  lt_count = 0;
10517  for (lt_i = NF; lt_i > 0; lt_i--) {
10518    if ($lt_i != "" && $lt_i != ".") {
10519      if ($lt_i == "..") {
10520        lt_count++;
10521      } else {
10522        if (lt_count == 0) {
10523          lt_foo = "/" $lt_i lt_foo;
10524        } else {
10525          lt_count--;
10526        }
10527      }
10528    }
10529  }
10530  if (lt_foo != "") { lt_freq[lt_foo]++; }
10531  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10532}'`
10533  # AWK program above erroneously prepends '/' to C:/dos/paths
10534  # for these hosts.
10535  case $host_os in
10536    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10537      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10538  esac
10539  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10540else
10541  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10542fi
10543library_names_spec=
10544libname_spec='lib$name'
10545soname_spec=
10546shrext_cmds=.so
10547postinstall_cmds=
10548postuninstall_cmds=
10549finish_cmds=
10550finish_eval=
10551shlibpath_var=
10552shlibpath_overrides_runpath=unknown
10553version_type=none
10554dynamic_linker="$host_os ld.so"
10555sys_lib_dlsearch_path_spec="/lib /usr/lib"
10556need_lib_prefix=unknown
10557hardcode_into_libs=no
10558
10559# when you set need_version to no, make sure it does not cause -set_version
10560# flags to be left without arguments
10561need_version=unknown
10562
10563
10564
10565case $host_os in
10566aix3*)
10567  version_type=linux # correct to gnu/linux during the next big refactor
10568  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10569  shlibpath_var=LIBPATH
10570
10571  # AIX 3 has no versioning support, so we append a major version to the name.
10572  soname_spec='$libname$release$shared_ext$major'
10573  ;;
10574
10575aix[4-9]*)
10576  version_type=linux # correct to gnu/linux during the next big refactor
10577  need_lib_prefix=no
10578  need_version=no
10579  hardcode_into_libs=yes
10580  if test ia64 = "$host_cpu"; then
10581    # AIX 5 supports IA64
10582    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10583    shlibpath_var=LD_LIBRARY_PATH
10584  else
10585    # With GCC up to 2.95.x, collect2 would create an import file
10586    # for dependence libraries.  The import file would start with
10587    # the line '#! .'.  This would cause the generated library to
10588    # depend on '.', always an invalid library.  This was fixed in
10589    # development snapshots of GCC prior to 3.0.
10590    case $host_os in
10591      aix4 | aix4.[01] | aix4.[01].*)
10592      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10593	   echo ' yes '
10594	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10595	:
10596      else
10597	can_build_shared=no
10598      fi
10599      ;;
10600    esac
10601    # Using Import Files as archive members, it is possible to support
10602    # filename-based versioning of shared library archives on AIX. While
10603    # this would work for both with and without runtime linking, it will
10604    # prevent static linking of such archives. So we do filename-based
10605    # shared library versioning with .so extension only, which is used
10606    # when both runtime linking and shared linking is enabled.
10607    # Unfortunately, runtime linking may impact performance, so we do
10608    # not want this to be the default eventually. Also, we use the
10609    # versioned .so libs for executables only if there is the -brtl
10610    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10611    # To allow for filename-based versioning support, we need to create
10612    # libNAME.so.V as an archive file, containing:
10613    # *) an Import File, referring to the versioned filename of the
10614    #    archive as well as the shared archive member, telling the
10615    #    bitwidth (32 or 64) of that shared object, and providing the
10616    #    list of exported symbols of that shared object, eventually
10617    #    decorated with the 'weak' keyword
10618    # *) the shared object with the F_LOADONLY flag set, to really avoid
10619    #    it being seen by the linker.
10620    # At run time we better use the real file rather than another symlink,
10621    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10622
10623    case $with_aix_soname,$aix_use_runtimelinking in
10624    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10625    # soname into executable. Probably we can add versioning support to
10626    # collect2, so additional links can be useful in future.
10627    aix,yes) # traditional libtool
10628      dynamic_linker='AIX unversionable lib.so'
10629      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10630      # instead of lib<name>.a to let people know that these are not
10631      # typical AIX shared libraries.
10632      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10633      ;;
10634    aix,no) # traditional AIX only
10635      dynamic_linker='AIX lib.a(lib.so.V)'
10636      # We preserve .a as extension for shared libraries through AIX4.2
10637      # and later when we are not doing run time linking.
10638      library_names_spec='$libname$release.a $libname.a'
10639      soname_spec='$libname$release$shared_ext$major'
10640      ;;
10641    svr4,*) # full svr4 only
10642      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10643      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10644      # We do not specify a path in Import Files, so LIBPATH fires.
10645      shlibpath_overrides_runpath=yes
10646      ;;
10647    *,yes) # both, prefer svr4
10648      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10649      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10650      # unpreferred sharedlib libNAME.a needs extra handling
10651      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10652      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10653      # We do not specify a path in Import Files, so LIBPATH fires.
10654      shlibpath_overrides_runpath=yes
10655      ;;
10656    *,no) # both, prefer aix
10657      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10658      library_names_spec='$libname$release.a $libname.a'
10659      soname_spec='$libname$release$shared_ext$major'
10660      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10661      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10662      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10663      ;;
10664    esac
10665    shlibpath_var=LIBPATH
10666  fi
10667  ;;
10668
10669amigaos*)
10670  case $host_cpu in
10671  powerpc)
10672    # Since July 2007 AmigaOS4 officially supports .so libraries.
10673    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10674    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10675    ;;
10676  m68k)
10677    library_names_spec='$libname.ixlibrary $libname.a'
10678    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10679    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10680    ;;
10681  esac
10682  ;;
10683
10684beos*)
10685  library_names_spec='$libname$shared_ext'
10686  dynamic_linker="$host_os ld.so"
10687  shlibpath_var=LIBRARY_PATH
10688  ;;
10689
10690bsdi[45]*)
10691  version_type=linux # correct to gnu/linux during the next big refactor
10692  need_version=no
10693  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10694  soname_spec='$libname$release$shared_ext$major'
10695  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10696  shlibpath_var=LD_LIBRARY_PATH
10697  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10698  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10699  # the default ld.so.conf also contains /usr/contrib/lib and
10700  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10701  # libtool to hard-code these into programs
10702  ;;
10703
10704cygwin* | mingw* | pw32* | cegcc*)
10705  version_type=windows
10706  shrext_cmds=.dll
10707  need_version=no
10708  need_lib_prefix=no
10709
10710  case $GCC,$cc_basename in
10711  yes,*)
10712    # gcc
10713    library_names_spec='$libname.dll.a'
10714    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10715    postinstall_cmds='base_file=`basename \$file`~
10716      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10717      dldir=$destdir/`dirname \$dlpath`~
10718      test -d \$dldir || mkdir -p \$dldir~
10719      $install_prog $dir/$dlname \$dldir/$dlname~
10720      chmod a+x \$dldir/$dlname~
10721      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10722        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10723      fi'
10724    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10725      dlpath=$dir/\$dldll~
10726       $RM \$dlpath'
10727    shlibpath_overrides_runpath=yes
10728
10729    case $host_os in
10730    cygwin*)
10731      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10732      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10733
10734      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10735      ;;
10736    mingw* | cegcc*)
10737      # MinGW DLLs use traditional 'lib' prefix
10738      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10739      ;;
10740    pw32*)
10741      # pw32 DLLs use 'pw' prefix rather than 'lib'
10742      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10743      ;;
10744    esac
10745    dynamic_linker='Win32 ld.exe'
10746    ;;
10747
10748  *,cl*)
10749    # Native MSVC
10750    libname_spec='$name'
10751    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10752    library_names_spec='$libname.dll.lib'
10753
10754    case $build_os in
10755    mingw*)
10756      sys_lib_search_path_spec=
10757      lt_save_ifs=$IFS
10758      IFS=';'
10759      for lt_path in $LIB
10760      do
10761        IFS=$lt_save_ifs
10762        # Let DOS variable expansion print the short 8.3 style file name.
10763        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10764        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10765      done
10766      IFS=$lt_save_ifs
10767      # Convert to MSYS style.
10768      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10769      ;;
10770    cygwin*)
10771      # Convert to unix form, then to dos form, then back to unix form
10772      # but this time dos style (no spaces!) so that the unix form looks
10773      # like /cygdrive/c/PROGRA~1:/cygdr...
10774      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10775      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10776      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10777      ;;
10778    *)
10779      sys_lib_search_path_spec=$LIB
10780      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10781        # It is most probably a Windows format PATH.
10782        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10783      else
10784        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10785      fi
10786      # FIXME: find the short name or the path components, as spaces are
10787      # common. (e.g. "Program Files" -> "PROGRA~1")
10788      ;;
10789    esac
10790
10791    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10792    postinstall_cmds='base_file=`basename \$file`~
10793      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10794      dldir=$destdir/`dirname \$dlpath`~
10795      test -d \$dldir || mkdir -p \$dldir~
10796      $install_prog $dir/$dlname \$dldir/$dlname'
10797    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10798      dlpath=$dir/\$dldll~
10799       $RM \$dlpath'
10800    shlibpath_overrides_runpath=yes
10801    dynamic_linker='Win32 link.exe'
10802    ;;
10803
10804  *)
10805    # Assume MSVC wrapper
10806    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10807    dynamic_linker='Win32 ld.exe'
10808    ;;
10809  esac
10810  # FIXME: first we should search . and the directory the executable is in
10811  shlibpath_var=PATH
10812  ;;
10813
10814darwin* | rhapsody*)
10815  dynamic_linker="$host_os dyld"
10816  version_type=darwin
10817  need_lib_prefix=no
10818  need_version=no
10819  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10820  soname_spec='$libname$release$major$shared_ext'
10821  shlibpath_overrides_runpath=yes
10822  shlibpath_var=DYLD_LIBRARY_PATH
10823  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10824
10825  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10826  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10827  ;;
10828
10829dgux*)
10830  version_type=linux # correct to gnu/linux during the next big refactor
10831  need_lib_prefix=no
10832  need_version=no
10833  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10834  soname_spec='$libname$release$shared_ext$major'
10835  shlibpath_var=LD_LIBRARY_PATH
10836  ;;
10837
10838freebsd* | dragonfly*)
10839  # DragonFly does not have aout.  When/if they implement a new
10840  # versioning mechanism, adjust this.
10841  if test -x /usr/bin/objformat; then
10842    objformat=`/usr/bin/objformat`
10843  else
10844    case $host_os in
10845    freebsd[23].*) objformat=aout ;;
10846    *) objformat=elf ;;
10847    esac
10848  fi
10849  version_type=freebsd-$objformat
10850  case $version_type in
10851    freebsd-elf*)
10852      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10853      soname_spec='$libname$release$shared_ext$major'
10854      need_version=no
10855      need_lib_prefix=no
10856      ;;
10857    freebsd-*)
10858      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10859      need_version=yes
10860      ;;
10861  esac
10862  shlibpath_var=LD_LIBRARY_PATH
10863  case $host_os in
10864  freebsd2.*)
10865    shlibpath_overrides_runpath=yes
10866    ;;
10867  freebsd3.[01]* | freebsdelf3.[01]*)
10868    shlibpath_overrides_runpath=yes
10869    hardcode_into_libs=yes
10870    ;;
10871  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10872  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10873    shlibpath_overrides_runpath=no
10874    hardcode_into_libs=yes
10875    ;;
10876  *) # from 4.6 on, and DragonFly
10877    shlibpath_overrides_runpath=yes
10878    hardcode_into_libs=yes
10879    ;;
10880  esac
10881  ;;
10882
10883haiku*)
10884  version_type=linux # correct to gnu/linux during the next big refactor
10885  need_lib_prefix=no
10886  need_version=no
10887  dynamic_linker="$host_os runtime_loader"
10888  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10889  soname_spec='$libname$release$shared_ext$major'
10890  shlibpath_var=LIBRARY_PATH
10891  shlibpath_overrides_runpath=no
10892  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10893  hardcode_into_libs=yes
10894  ;;
10895
10896hpux9* | hpux10* | hpux11*)
10897  # Give a soname corresponding to the major version so that dld.sl refuses to
10898  # link against other versions.
10899  version_type=sunos
10900  need_lib_prefix=no
10901  need_version=no
10902  case $host_cpu in
10903  ia64*)
10904    shrext_cmds='.so'
10905    hardcode_into_libs=yes
10906    dynamic_linker="$host_os dld.so"
10907    shlibpath_var=LD_LIBRARY_PATH
10908    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10909    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910    soname_spec='$libname$release$shared_ext$major'
10911    if test 32 = "$HPUX_IA64_MODE"; then
10912      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10913      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10914    else
10915      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10916      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10917    fi
10918    ;;
10919  hppa*64*)
10920    shrext_cmds='.sl'
10921    hardcode_into_libs=yes
10922    dynamic_linker="$host_os dld.sl"
10923    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10924    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10925    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10926    soname_spec='$libname$release$shared_ext$major'
10927    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10928    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10929    ;;
10930  *)
10931    shrext_cmds='.sl'
10932    dynamic_linker="$host_os dld.sl"
10933    shlibpath_var=SHLIB_PATH
10934    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10935    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10936    soname_spec='$libname$release$shared_ext$major'
10937    ;;
10938  esac
10939  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10940  postinstall_cmds='chmod 555 $lib'
10941  # or fails outright, so override atomically:
10942  install_override_mode=555
10943  ;;
10944
10945interix[3-9]*)
10946  version_type=linux # correct to gnu/linux during the next big refactor
10947  need_lib_prefix=no
10948  need_version=no
10949  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10950  soname_spec='$libname$release$shared_ext$major'
10951  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10952  shlibpath_var=LD_LIBRARY_PATH
10953  shlibpath_overrides_runpath=no
10954  hardcode_into_libs=yes
10955  ;;
10956
10957irix5* | irix6* | nonstopux*)
10958  case $host_os in
10959    nonstopux*) version_type=nonstopux ;;
10960    *)
10961	if test yes = "$lt_cv_prog_gnu_ld"; then
10962		version_type=linux # correct to gnu/linux during the next big refactor
10963	else
10964		version_type=irix
10965	fi ;;
10966  esac
10967  need_lib_prefix=no
10968  need_version=no
10969  soname_spec='$libname$release$shared_ext$major'
10970  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10971  case $host_os in
10972  irix5* | nonstopux*)
10973    libsuff= shlibsuff=
10974    ;;
10975  *)
10976    case $LD in # libtool.m4 will add one of these switches to LD
10977    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10978      libsuff= shlibsuff= libmagic=32-bit;;
10979    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10980      libsuff=32 shlibsuff=N32 libmagic=N32;;
10981    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10982      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10983    *) libsuff= shlibsuff= libmagic=never-match;;
10984    esac
10985    ;;
10986  esac
10987  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10988  shlibpath_overrides_runpath=no
10989  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10990  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10991  hardcode_into_libs=yes
10992  ;;
10993
10994# No shared lib support for Linux oldld, aout, or coff.
10995linux*oldld* | linux*aout* | linux*coff*)
10996  dynamic_linker=no
10997  ;;
10998
10999linux*android*)
11000  version_type=none # Android doesn't support versioned libraries.
11001  need_lib_prefix=no
11002  need_version=no
11003  library_names_spec='$libname$release$shared_ext'
11004  soname_spec='$libname$release$shared_ext'
11005  finish_cmds=
11006  shlibpath_var=LD_LIBRARY_PATH
11007  shlibpath_overrides_runpath=yes
11008
11009  # This implies no fast_install, which is unacceptable.
11010  # Some rework will be needed to allow for fast_install
11011  # before this can be enabled.
11012  hardcode_into_libs=yes
11013
11014  dynamic_linker='Android linker'
11015  # Don't embed -rpath directories since the linker doesn't support them.
11016  hardcode_libdir_flag_spec='-L$libdir'
11017  ;;
11018
11019# This must be glibc/ELF.
11020linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11021  version_type=linux # correct to gnu/linux during the next big refactor
11022  need_lib_prefix=no
11023  need_version=no
11024  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11025  soname_spec='$libname$release$shared_ext$major'
11026  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11027  shlibpath_var=LD_LIBRARY_PATH
11028  shlibpath_overrides_runpath=no
11029
11030  # Some binutils ld are patched to set DT_RUNPATH
11031  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11032  $as_echo_n "(cached) " >&6
11033else
11034  lt_cv_shlibpath_overrides_runpath=no
11035    save_LDFLAGS=$LDFLAGS
11036    save_libdir=$libdir
11037    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11038	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11039    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040/* end confdefs.h.  */
11041
11042int
11043main ()
11044{
11045
11046  ;
11047  return 0;
11048}
11049_ACEOF
11050if ac_fn_c_try_link "$LINENO"; then :
11051  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11052  lt_cv_shlibpath_overrides_runpath=yes
11053fi
11054fi
11055rm -f core conftest.err conftest.$ac_objext \
11056    conftest$ac_exeext conftest.$ac_ext
11057    LDFLAGS=$save_LDFLAGS
11058    libdir=$save_libdir
11059
11060fi
11061
11062  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11063
11064  # This implies no fast_install, which is unacceptable.
11065  # Some rework will be needed to allow for fast_install
11066  # before this can be enabled.
11067  hardcode_into_libs=yes
11068
11069  # Ideally, we could use ldconfig to report *all* directores which are
11070  # searched for libraries, however this is still not possible.  Aside from not
11071  # being certain /sbin/ldconfig is available, command
11072  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11073  # even though it is searched at run-time.  Try to do the best guess by
11074  # appending ld.so.conf contents (and includes) to the search path.
11075  if test -f /etc/ld.so.conf; then
11076    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' ' '`
11077    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11078  fi
11079
11080  # We used to test for /lib/ld.so.1 and disable shared libraries on
11081  # powerpc, because MkLinux only supported shared libraries with the
11082  # GNU dynamic linker.  Since this was broken with cross compilers,
11083  # most powerpc-linux boxes support dynamic linking these days and
11084  # people can always --disable-shared, the test was removed, and we
11085  # assume the GNU/Linux dynamic linker is in use.
11086  dynamic_linker='GNU/Linux ld.so'
11087  ;;
11088
11089netbsd*)
11090  version_type=sunos
11091  need_lib_prefix=no
11092  need_version=no
11093  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11094    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11095    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11096    dynamic_linker='NetBSD (a.out) ld.so'
11097  else
11098    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099    soname_spec='$libname$release$shared_ext$major'
11100    dynamic_linker='NetBSD ld.elf_so'
11101  fi
11102  shlibpath_var=LD_LIBRARY_PATH
11103  shlibpath_overrides_runpath=yes
11104  hardcode_into_libs=yes
11105  ;;
11106
11107newsos6)
11108  version_type=linux # correct to gnu/linux during the next big refactor
11109  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11110  shlibpath_var=LD_LIBRARY_PATH
11111  shlibpath_overrides_runpath=yes
11112  ;;
11113
11114*nto* | *qnx*)
11115  version_type=qnx
11116  need_lib_prefix=no
11117  need_version=no
11118  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119  soname_spec='$libname$release$shared_ext$major'
11120  shlibpath_var=LD_LIBRARY_PATH
11121  shlibpath_overrides_runpath=no
11122  hardcode_into_libs=yes
11123  dynamic_linker='ldqnx.so'
11124  ;;
11125
11126openbsd* | bitrig*)
11127  version_type=sunos
11128  sys_lib_dlsearch_path_spec=/usr/lib
11129  need_lib_prefix=no
11130  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11131    need_version=no
11132  else
11133    need_version=yes
11134  fi
11135  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11136  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11137  shlibpath_var=LD_LIBRARY_PATH
11138  shlibpath_overrides_runpath=yes
11139  ;;
11140
11141os2*)
11142  libname_spec='$name'
11143  version_type=windows
11144  shrext_cmds=.dll
11145  need_version=no
11146  need_lib_prefix=no
11147  # OS/2 can only load a DLL with a base name of 8 characters or less.
11148  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11149    v=$($ECHO $release$versuffix | tr -d .-);
11150    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11151    $ECHO $n$v`$shared_ext'
11152  library_names_spec='${libname}_dll.$libext'
11153  dynamic_linker='OS/2 ld.exe'
11154  shlibpath_var=BEGINLIBPATH
11155  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11156  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11157  postinstall_cmds='base_file=`basename \$file`~
11158    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11159    dldir=$destdir/`dirname \$dlpath`~
11160    test -d \$dldir || mkdir -p \$dldir~
11161    $install_prog $dir/$dlname \$dldir/$dlname~
11162    chmod a+x \$dldir/$dlname~
11163    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11164      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11165    fi'
11166  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11167    dlpath=$dir/\$dldll~
11168    $RM \$dlpath'
11169  ;;
11170
11171osf3* | osf4* | osf5*)
11172  version_type=osf
11173  need_lib_prefix=no
11174  need_version=no
11175  soname_spec='$libname$release$shared_ext$major'
11176  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11177  shlibpath_var=LD_LIBRARY_PATH
11178  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11179  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11180  ;;
11181
11182rdos*)
11183  dynamic_linker=no
11184  ;;
11185
11186solaris*)
11187  version_type=linux # correct to gnu/linux during the next big refactor
11188  need_lib_prefix=no
11189  need_version=no
11190  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191  soname_spec='$libname$release$shared_ext$major'
11192  shlibpath_var=LD_LIBRARY_PATH
11193  shlibpath_overrides_runpath=yes
11194  hardcode_into_libs=yes
11195  # ldd complains unless libraries are executable
11196  postinstall_cmds='chmod +x $lib'
11197  ;;
11198
11199sunos4*)
11200  version_type=sunos
11201  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11202  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11203  shlibpath_var=LD_LIBRARY_PATH
11204  shlibpath_overrides_runpath=yes
11205  if test yes = "$with_gnu_ld"; then
11206    need_lib_prefix=no
11207  fi
11208  need_version=yes
11209  ;;
11210
11211sysv4 | sysv4.3*)
11212  version_type=linux # correct to gnu/linux during the next big refactor
11213  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11214  soname_spec='$libname$release$shared_ext$major'
11215  shlibpath_var=LD_LIBRARY_PATH
11216  case $host_vendor in
11217    sni)
11218      shlibpath_overrides_runpath=no
11219      need_lib_prefix=no
11220      runpath_var=LD_RUN_PATH
11221      ;;
11222    siemens)
11223      need_lib_prefix=no
11224      ;;
11225    motorola)
11226      need_lib_prefix=no
11227      need_version=no
11228      shlibpath_overrides_runpath=no
11229      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11230      ;;
11231  esac
11232  ;;
11233
11234sysv4*MP*)
11235  if test -d /usr/nec; then
11236    version_type=linux # correct to gnu/linux during the next big refactor
11237    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11238    soname_spec='$libname$shared_ext.$major'
11239    shlibpath_var=LD_LIBRARY_PATH
11240  fi
11241  ;;
11242
11243sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11244  version_type=sco
11245  need_lib_prefix=no
11246  need_version=no
11247  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11248  soname_spec='$libname$release$shared_ext$major'
11249  shlibpath_var=LD_LIBRARY_PATH
11250  shlibpath_overrides_runpath=yes
11251  hardcode_into_libs=yes
11252  if test yes = "$with_gnu_ld"; then
11253    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11254  else
11255    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11256    case $host_os in
11257      sco3.2v5*)
11258        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11259	;;
11260    esac
11261  fi
11262  sys_lib_dlsearch_path_spec='/usr/lib'
11263  ;;
11264
11265tpf*)
11266  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11267  version_type=linux # correct to gnu/linux during the next big refactor
11268  need_lib_prefix=no
11269  need_version=no
11270  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11271  shlibpath_var=LD_LIBRARY_PATH
11272  shlibpath_overrides_runpath=no
11273  hardcode_into_libs=yes
11274  ;;
11275
11276uts4*)
11277  version_type=linux # correct to gnu/linux during the next big refactor
11278  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11279  soname_spec='$libname$release$shared_ext$major'
11280  shlibpath_var=LD_LIBRARY_PATH
11281  ;;
11282
11283*)
11284  dynamic_linker=no
11285  ;;
11286esac
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11288$as_echo "$dynamic_linker" >&6; }
11289test no = "$dynamic_linker" && can_build_shared=no
11290
11291variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11292if test yes = "$GCC"; then
11293  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11294fi
11295
11296if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11297  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11298fi
11299
11300if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11301  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11302fi
11303
11304# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11305configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11306
11307# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11308func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11309
11310# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11311configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11410$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11411hardcode_action=
11412if test -n "$hardcode_libdir_flag_spec" ||
11413   test -n "$runpath_var" ||
11414   test yes = "$hardcode_automatic"; then
11415
11416  # We can hardcode non-existent directories.
11417  if test no != "$hardcode_direct" &&
11418     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11419     # have to relink, otherwise we might link with an installed library
11420     # when we should be linking with a yet-to-be-installed one
11421     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11422     test no != "$hardcode_minus_L"; then
11423    # Linking always hardcodes the temporary library directory.
11424    hardcode_action=relink
11425  else
11426    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11427    hardcode_action=immediate
11428  fi
11429else
11430  # We cannot hardcode anything, or else we can only hardcode existing
11431  # directories.
11432  hardcode_action=unsupported
11433fi
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11435$as_echo "$hardcode_action" >&6; }
11436
11437if test relink = "$hardcode_action" ||
11438   test yes = "$inherit_rpath"; then
11439  # Fast installation is not supported
11440  enable_fast_install=no
11441elif test yes = "$shlibpath_overrides_runpath" ||
11442     test no = "$enable_shared"; then
11443  # Fast installation is not necessary
11444  enable_fast_install=needless
11445fi
11446
11447
11448
11449
11450
11451
11452  if test yes != "$enable_dlopen"; then
11453  enable_dlopen=unknown
11454  enable_dlopen_self=unknown
11455  enable_dlopen_self_static=unknown
11456else
11457  lt_cv_dlopen=no
11458  lt_cv_dlopen_libs=
11459
11460  case $host_os in
11461  beos*)
11462    lt_cv_dlopen=load_add_on
11463    lt_cv_dlopen_libs=
11464    lt_cv_dlopen_self=yes
11465    ;;
11466
11467  mingw* | pw32* | cegcc*)
11468    lt_cv_dlopen=LoadLibrary
11469    lt_cv_dlopen_libs=
11470    ;;
11471
11472  cygwin*)
11473    lt_cv_dlopen=dlopen
11474    lt_cv_dlopen_libs=
11475    ;;
11476
11477  darwin*)
11478    # if libdl is installed we need to link against it
11479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11480$as_echo_n "checking for dlopen in -ldl... " >&6; }
11481if ${ac_cv_lib_dl_dlopen+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  ac_check_lib_save_LIBS=$LIBS
11485LIBS="-ldl  $LIBS"
11486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489/* Override any GCC internal prototype to avoid an error.
11490   Use char because int might match the return type of a GCC
11491   builtin and then its argument prototype would still apply.  */
11492#ifdef __cplusplus
11493extern "C"
11494#endif
11495char dlopen ();
11496int
11497main ()
11498{
11499return dlopen ();
11500  ;
11501  return 0;
11502}
11503_ACEOF
11504if ac_fn_c_try_link "$LINENO"; then :
11505  ac_cv_lib_dl_dlopen=yes
11506else
11507  ac_cv_lib_dl_dlopen=no
11508fi
11509rm -f core conftest.err conftest.$ac_objext \
11510    conftest$ac_exeext conftest.$ac_ext
11511LIBS=$ac_check_lib_save_LIBS
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11514$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11515if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11516  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11517else
11518
11519    lt_cv_dlopen=dyld
11520    lt_cv_dlopen_libs=
11521    lt_cv_dlopen_self=yes
11522
11523fi
11524
11525    ;;
11526
11527  tpf*)
11528    # Don't try to run any link tests for TPF.  We know it's impossible
11529    # because TPF is a cross-compiler, and we know how we open DSOs.
11530    lt_cv_dlopen=dlopen
11531    lt_cv_dlopen_libs=
11532    lt_cv_dlopen_self=no
11533    ;;
11534
11535  *)
11536    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11537if test "x$ac_cv_func_shl_load" = xyes; then :
11538  lt_cv_dlopen=shl_load
11539else
11540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11541$as_echo_n "checking for shl_load in -ldld... " >&6; }
11542if ${ac_cv_lib_dld_shl_load+:} false; then :
11543  $as_echo_n "(cached) " >&6
11544else
11545  ac_check_lib_save_LIBS=$LIBS
11546LIBS="-ldld  $LIBS"
11547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548/* end confdefs.h.  */
11549
11550/* Override any GCC internal prototype to avoid an error.
11551   Use char because int might match the return type of a GCC
11552   builtin and then its argument prototype would still apply.  */
11553#ifdef __cplusplus
11554extern "C"
11555#endif
11556char shl_load ();
11557int
11558main ()
11559{
11560return shl_load ();
11561  ;
11562  return 0;
11563}
11564_ACEOF
11565if ac_fn_c_try_link "$LINENO"; then :
11566  ac_cv_lib_dld_shl_load=yes
11567else
11568  ac_cv_lib_dld_shl_load=no
11569fi
11570rm -f core conftest.err conftest.$ac_objext \
11571    conftest$ac_exeext conftest.$ac_ext
11572LIBS=$ac_check_lib_save_LIBS
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11575$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11576if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11577  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11578else
11579  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11580if test "x$ac_cv_func_dlopen" = xyes; then :
11581  lt_cv_dlopen=dlopen
11582else
11583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11584$as_echo_n "checking for dlopen in -ldl... " >&6; }
11585if ${ac_cv_lib_dl_dlopen+:} false; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  ac_check_lib_save_LIBS=$LIBS
11589LIBS="-ldl  $LIBS"
11590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591/* end confdefs.h.  */
11592
11593/* Override any GCC internal prototype to avoid an error.
11594   Use char because int might match the return type of a GCC
11595   builtin and then its argument prototype would still apply.  */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char dlopen ();
11600int
11601main ()
11602{
11603return dlopen ();
11604  ;
11605  return 0;
11606}
11607_ACEOF
11608if ac_fn_c_try_link "$LINENO"; then :
11609  ac_cv_lib_dl_dlopen=yes
11610else
11611  ac_cv_lib_dl_dlopen=no
11612fi
11613rm -f core conftest.err conftest.$ac_objext \
11614    conftest$ac_exeext conftest.$ac_ext
11615LIBS=$ac_check_lib_save_LIBS
11616fi
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11618$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11619if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11620  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11621else
11622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11623$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11624if ${ac_cv_lib_svld_dlopen+:} false; then :
11625  $as_echo_n "(cached) " >&6
11626else
11627  ac_check_lib_save_LIBS=$LIBS
11628LIBS="-lsvld  $LIBS"
11629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h.  */
11631
11632/* Override any GCC internal prototype to avoid an error.
11633   Use char because int might match the return type of a GCC
11634   builtin and then its argument prototype would still apply.  */
11635#ifdef __cplusplus
11636extern "C"
11637#endif
11638char dlopen ();
11639int
11640main ()
11641{
11642return dlopen ();
11643  ;
11644  return 0;
11645}
11646_ACEOF
11647if ac_fn_c_try_link "$LINENO"; then :
11648  ac_cv_lib_svld_dlopen=yes
11649else
11650  ac_cv_lib_svld_dlopen=no
11651fi
11652rm -f core conftest.err conftest.$ac_objext \
11653    conftest$ac_exeext conftest.$ac_ext
11654LIBS=$ac_check_lib_save_LIBS
11655fi
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11657$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11658if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11659  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11660else
11661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11662$as_echo_n "checking for dld_link in -ldld... " >&6; }
11663if ${ac_cv_lib_dld_dld_link+:} false; then :
11664  $as_echo_n "(cached) " >&6
11665else
11666  ac_check_lib_save_LIBS=$LIBS
11667LIBS="-ldld  $LIBS"
11668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669/* end confdefs.h.  */
11670
11671/* Override any GCC internal prototype to avoid an error.
11672   Use char because int might match the return type of a GCC
11673   builtin and then its argument prototype would still apply.  */
11674#ifdef __cplusplus
11675extern "C"
11676#endif
11677char dld_link ();
11678int
11679main ()
11680{
11681return dld_link ();
11682  ;
11683  return 0;
11684}
11685_ACEOF
11686if ac_fn_c_try_link "$LINENO"; then :
11687  ac_cv_lib_dld_dld_link=yes
11688else
11689  ac_cv_lib_dld_dld_link=no
11690fi
11691rm -f core conftest.err conftest.$ac_objext \
11692    conftest$ac_exeext conftest.$ac_ext
11693LIBS=$ac_check_lib_save_LIBS
11694fi
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11696$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11697if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11698  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11699fi
11700
11701
11702fi
11703
11704
11705fi
11706
11707
11708fi
11709
11710
11711fi
11712
11713
11714fi
11715
11716    ;;
11717  esac
11718
11719  if test no = "$lt_cv_dlopen"; then
11720    enable_dlopen=no
11721  else
11722    enable_dlopen=yes
11723  fi
11724
11725  case $lt_cv_dlopen in
11726  dlopen)
11727    save_CPPFLAGS=$CPPFLAGS
11728    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11729
11730    save_LDFLAGS=$LDFLAGS
11731    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11732
11733    save_LIBS=$LIBS
11734    LIBS="$lt_cv_dlopen_libs $LIBS"
11735
11736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11737$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11738if ${lt_cv_dlopen_self+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  	  if test yes = "$cross_compiling"; then :
11742  lt_cv_dlopen_self=cross
11743else
11744  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11745  lt_status=$lt_dlunknown
11746  cat > conftest.$ac_ext <<_LT_EOF
11747#line $LINENO "configure"
11748#include "confdefs.h"
11749
11750#if HAVE_DLFCN_H
11751#include <dlfcn.h>
11752#endif
11753
11754#include <stdio.h>
11755
11756#ifdef RTLD_GLOBAL
11757#  define LT_DLGLOBAL		RTLD_GLOBAL
11758#else
11759#  ifdef DL_GLOBAL
11760#    define LT_DLGLOBAL		DL_GLOBAL
11761#  else
11762#    define LT_DLGLOBAL		0
11763#  endif
11764#endif
11765
11766/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11767   find out it does not work in some platform. */
11768#ifndef LT_DLLAZY_OR_NOW
11769#  ifdef RTLD_LAZY
11770#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11771#  else
11772#    ifdef DL_LAZY
11773#      define LT_DLLAZY_OR_NOW		DL_LAZY
11774#    else
11775#      ifdef RTLD_NOW
11776#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11777#      else
11778#        ifdef DL_NOW
11779#          define LT_DLLAZY_OR_NOW	DL_NOW
11780#        else
11781#          define LT_DLLAZY_OR_NOW	0
11782#        endif
11783#      endif
11784#    endif
11785#  endif
11786#endif
11787
11788/* When -fvisibility=hidden is used, assume the code has been annotated
11789   correspondingly for the symbols needed.  */
11790#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11791int fnord () __attribute__((visibility("default")));
11792#endif
11793
11794int fnord () { return 42; }
11795int main ()
11796{
11797  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798  int status = $lt_dlunknown;
11799
11800  if (self)
11801    {
11802      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11803      else
11804        {
11805	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11806          else puts (dlerror ());
11807	}
11808      /* dlclose (self); */
11809    }
11810  else
11811    puts (dlerror ());
11812
11813  return status;
11814}
11815_LT_EOF
11816  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11817  (eval $ac_link) 2>&5
11818  ac_status=$?
11819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11821    (./conftest; exit; ) >&5 2>/dev/null
11822    lt_status=$?
11823    case x$lt_status in
11824      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11825      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11826      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11827    esac
11828  else :
11829    # compilation failed
11830    lt_cv_dlopen_self=no
11831  fi
11832fi
11833rm -fr conftest*
11834
11835
11836fi
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11838$as_echo "$lt_cv_dlopen_self" >&6; }
11839
11840    if test yes = "$lt_cv_dlopen_self"; then
11841      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11842      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11843$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11844if ${lt_cv_dlopen_self_static+:} false; then :
11845  $as_echo_n "(cached) " >&6
11846else
11847  	  if test yes = "$cross_compiling"; then :
11848  lt_cv_dlopen_self_static=cross
11849else
11850  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11851  lt_status=$lt_dlunknown
11852  cat > conftest.$ac_ext <<_LT_EOF
11853#line $LINENO "configure"
11854#include "confdefs.h"
11855
11856#if HAVE_DLFCN_H
11857#include <dlfcn.h>
11858#endif
11859
11860#include <stdio.h>
11861
11862#ifdef RTLD_GLOBAL
11863#  define LT_DLGLOBAL		RTLD_GLOBAL
11864#else
11865#  ifdef DL_GLOBAL
11866#    define LT_DLGLOBAL		DL_GLOBAL
11867#  else
11868#    define LT_DLGLOBAL		0
11869#  endif
11870#endif
11871
11872/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11873   find out it does not work in some platform. */
11874#ifndef LT_DLLAZY_OR_NOW
11875#  ifdef RTLD_LAZY
11876#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11877#  else
11878#    ifdef DL_LAZY
11879#      define LT_DLLAZY_OR_NOW		DL_LAZY
11880#    else
11881#      ifdef RTLD_NOW
11882#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11883#      else
11884#        ifdef DL_NOW
11885#          define LT_DLLAZY_OR_NOW	DL_NOW
11886#        else
11887#          define LT_DLLAZY_OR_NOW	0
11888#        endif
11889#      endif
11890#    endif
11891#  endif
11892#endif
11893
11894/* When -fvisibility=hidden is used, assume the code has been annotated
11895   correspondingly for the symbols needed.  */
11896#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11897int fnord () __attribute__((visibility("default")));
11898#endif
11899
11900int fnord () { return 42; }
11901int main ()
11902{
11903  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11904  int status = $lt_dlunknown;
11905
11906  if (self)
11907    {
11908      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11909      else
11910        {
11911	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11912          else puts (dlerror ());
11913	}
11914      /* dlclose (self); */
11915    }
11916  else
11917    puts (dlerror ());
11918
11919  return status;
11920}
11921_LT_EOF
11922  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11923  (eval $ac_link) 2>&5
11924  ac_status=$?
11925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11927    (./conftest; exit; ) >&5 2>/dev/null
11928    lt_status=$?
11929    case x$lt_status in
11930      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11931      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11932      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11933    esac
11934  else :
11935    # compilation failed
11936    lt_cv_dlopen_self_static=no
11937  fi
11938fi
11939rm -fr conftest*
11940
11941
11942fi
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11944$as_echo "$lt_cv_dlopen_self_static" >&6; }
11945    fi
11946
11947    CPPFLAGS=$save_CPPFLAGS
11948    LDFLAGS=$save_LDFLAGS
11949    LIBS=$save_LIBS
11950    ;;
11951  esac
11952
11953  case $lt_cv_dlopen_self in
11954  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11955  *) enable_dlopen_self=unknown ;;
11956  esac
11957
11958  case $lt_cv_dlopen_self_static in
11959  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11960  *) enable_dlopen_self_static=unknown ;;
11961  esac
11962fi
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980striplib=
11981old_striplib=
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11983$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11984if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11985  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11986  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988$as_echo "yes" >&6; }
11989else
11990# FIXME - insert some real tests, host_os isn't really good enough
11991  case $host_os in
11992  darwin*)
11993    if test -n "$STRIP"; then
11994      striplib="$STRIP -x"
11995      old_striplib="$STRIP -S"
11996      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11997$as_echo "yes" >&6; }
11998    else
11999      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001    fi
12002    ;;
12003  *)
12004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
12006    ;;
12007  esac
12008fi
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021  # Report what library types will actually be built
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12023$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12025$as_echo "$can_build_shared" >&6; }
12026
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12028$as_echo_n "checking whether to build shared libraries... " >&6; }
12029  test no = "$can_build_shared" && enable_shared=no
12030
12031  # On AIX, shared libraries and static libraries use the same namespace, and
12032  # are all built from PIC.
12033  case $host_os in
12034  aix3*)
12035    test yes = "$enable_shared" && enable_static=no
12036    if test -n "$RANLIB"; then
12037      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12038      postinstall_cmds='$RANLIB $lib'
12039    fi
12040    ;;
12041
12042  aix[4-9]*)
12043    if test ia64 != "$host_cpu"; then
12044      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12045      yes,aix,yes) ;;			# shared object as lib.so file only
12046      yes,svr4,*) ;;			# shared object as lib.so archive member only
12047      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12048      esac
12049    fi
12050    ;;
12051  esac
12052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12053$as_echo "$enable_shared" >&6; }
12054
12055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12056$as_echo_n "checking whether to build static libraries... " >&6; }
12057  # Make sure either enable_shared or enable_static is yes.
12058  test yes = "$enable_shared" || enable_static=yes
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12060$as_echo "$enable_static" >&6; }
12061
12062
12063
12064
12065fi
12066ac_ext=c
12067ac_cpp='$CPP $CPPFLAGS'
12068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070ac_compiler_gnu=$ac_cv_c_compiler_gnu
12071
12072CC=$lt_save_CC
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088        ac_config_commands="$ac_config_commands libtool"
12089
12090
12091
12092
12093# Only expand once:
12094
12095
12096
12097
12098ac_ext=cpp
12099ac_cpp='$CXXCPP $CPPFLAGS'
12100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12103if test -z "$CXX"; then
12104  if test -n "$CCC"; then
12105    CXX=$CCC
12106  else
12107    if test -n "$ac_tool_prefix"; then
12108  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12109  do
12110    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
12114if ${ac_cv_prog_CXX+:} false; then :
12115  $as_echo_n "(cached) " >&6
12116else
12117  if test -n "$CXX"; then
12118  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12119else
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123  IFS=$as_save_IFS
12124  test -z "$as_dir" && as_dir=.
12125    for ac_exec_ext in '' $ac_executable_extensions; do
12126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129    break 2
12130  fi
12131done
12132  done
12133IFS=$as_save_IFS
12134
12135fi
12136fi
12137CXX=$ac_cv_prog_CXX
12138if test -n "$CXX"; then
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12140$as_echo "$CXX" >&6; }
12141else
12142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
12144fi
12145
12146
12147    test -n "$CXX" && break
12148  done
12149fi
12150if test -z "$CXX"; then
12151  ac_ct_CXX=$CXX
12152  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12153do
12154  # Extract the first word of "$ac_prog", so it can be a program name with args.
12155set dummy $ac_prog; ac_word=$2
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157$as_echo_n "checking for $ac_word... " >&6; }
12158if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12159  $as_echo_n "(cached) " >&6
12160else
12161  if test -n "$ac_ct_CXX"; then
12162  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12163else
12164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165for as_dir in $PATH
12166do
12167  IFS=$as_save_IFS
12168  test -z "$as_dir" && as_dir=.
12169    for ac_exec_ext in '' $ac_executable_extensions; do
12170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171    ac_cv_prog_ac_ct_CXX="$ac_prog"
12172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173    break 2
12174  fi
12175done
12176  done
12177IFS=$as_save_IFS
12178
12179fi
12180fi
12181ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12182if test -n "$ac_ct_CXX"; then
12183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12184$as_echo "$ac_ct_CXX" >&6; }
12185else
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
12188fi
12189
12190
12191  test -n "$ac_ct_CXX" && break
12192done
12193
12194  if test "x$ac_ct_CXX" = x; then
12195    CXX="g++"
12196  else
12197    case $cross_compiling:$ac_tool_warned in
12198yes:)
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12201ac_tool_warned=yes ;;
12202esac
12203    CXX=$ac_ct_CXX
12204  fi
12205fi
12206
12207  fi
12208fi
12209# Provide some information about the compiler.
12210$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12211set X $ac_compile
12212ac_compiler=$2
12213for ac_option in --version -v -V -qversion; do
12214  { { ac_try="$ac_compiler $ac_option >&5"
12215case "(($ac_try" in
12216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217  *) ac_try_echo=$ac_try;;
12218esac
12219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12220$as_echo "$ac_try_echo"; } >&5
12221  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12222  ac_status=$?
12223  if test -s conftest.err; then
12224    sed '10a\
12225... rest of stderr output deleted ...
12226         10q' conftest.err >conftest.er1
12227    cat conftest.er1 >&5
12228  fi
12229  rm -f conftest.er1 conftest.err
12230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231  test $ac_status = 0; }
12232done
12233
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12235$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12236if ${ac_cv_cxx_compiler_gnu+:} false; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h.  */
12241
12242int
12243main ()
12244{
12245#ifndef __GNUC__
12246       choke me
12247#endif
12248
12249  ;
12250  return 0;
12251}
12252_ACEOF
12253if ac_fn_cxx_try_compile "$LINENO"; then :
12254  ac_compiler_gnu=yes
12255else
12256  ac_compiler_gnu=no
12257fi
12258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12260
12261fi
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12263$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12264if test $ac_compiler_gnu = yes; then
12265  GXX=yes
12266else
12267  GXX=
12268fi
12269ac_test_CXXFLAGS=${CXXFLAGS+set}
12270ac_save_CXXFLAGS=$CXXFLAGS
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12272$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12273if ${ac_cv_prog_cxx_g+:} false; then :
12274  $as_echo_n "(cached) " >&6
12275else
12276  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12277   ac_cxx_werror_flag=yes
12278   ac_cv_prog_cxx_g=no
12279   CXXFLAGS="-g"
12280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281/* end confdefs.h.  */
12282
12283int
12284main ()
12285{
12286
12287  ;
12288  return 0;
12289}
12290_ACEOF
12291if ac_fn_cxx_try_compile "$LINENO"; then :
12292  ac_cv_prog_cxx_g=yes
12293else
12294  CXXFLAGS=""
12295      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h.  */
12297
12298int
12299main ()
12300{
12301
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_cxx_try_compile "$LINENO"; then :
12307
12308else
12309  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12310	 CXXFLAGS="-g"
12311	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312/* end confdefs.h.  */
12313
12314int
12315main ()
12316{
12317
12318  ;
12319  return 0;
12320}
12321_ACEOF
12322if ac_fn_cxx_try_compile "$LINENO"; then :
12323  ac_cv_prog_cxx_g=yes
12324fi
12325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326fi
12327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328fi
12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12333$as_echo "$ac_cv_prog_cxx_g" >&6; }
12334if test "$ac_test_CXXFLAGS" = set; then
12335  CXXFLAGS=$ac_save_CXXFLAGS
12336elif test $ac_cv_prog_cxx_g = yes; then
12337  if test "$GXX" = yes; then
12338    CXXFLAGS="-g -O2"
12339  else
12340    CXXFLAGS="-g"
12341  fi
12342else
12343  if test "$GXX" = yes; then
12344    CXXFLAGS="-O2"
12345  else
12346    CXXFLAGS=
12347  fi
12348fi
12349ac_ext=c
12350ac_cpp='$CPP $CPPFLAGS'
12351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354
12355depcc="$CXX"  am_compiler_list=
12356
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12358$as_echo_n "checking dependency style of $depcc... " >&6; }
12359if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12363  # We make a subdir and do the tests there.  Otherwise we can end up
12364  # making bogus files that we don't know about and never remove.  For
12365  # instance it was reported that on HP-UX the gcc test will end up
12366  # making a dummy file named 'D' -- because '-MD' means "put the output
12367  # in D".
12368  rm -rf conftest.dir
12369  mkdir conftest.dir
12370  # Copy depcomp to subdir because otherwise we won't find it if we're
12371  # using a relative directory.
12372  cp "$am_depcomp" conftest.dir
12373  cd conftest.dir
12374  # We will build objects and dependencies in a subdirectory because
12375  # it helps to detect inapplicable dependency modes.  For instance
12376  # both Tru64's cc and ICC support -MD to output dependencies as a
12377  # side effect of compilation, but ICC will put the dependencies in
12378  # the current directory while Tru64 will put them in the object
12379  # directory.
12380  mkdir sub
12381
12382  am_cv_CXX_dependencies_compiler_type=none
12383  if test "$am_compiler_list" = ""; then
12384     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12385  fi
12386  am__universal=false
12387  case " $depcc " in #(
12388     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12389     esac
12390
12391  for depmode in $am_compiler_list; do
12392    # Setup a source with many dependencies, because some compilers
12393    # like to wrap large dependency lists on column 80 (with \), and
12394    # we should not choose a depcomp mode which is confused by this.
12395    #
12396    # We need to recreate these files for each test, as the compiler may
12397    # overwrite some of them when testing with obscure command lines.
12398    # This happens at least with the AIX C compiler.
12399    : > sub/conftest.c
12400    for i in 1 2 3 4 5 6; do
12401      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12402      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12403      # Solaris 10 /bin/sh.
12404      echo '/* dummy */' > sub/conftst$i.h
12405    done
12406    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12407
12408    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12409    # mode.  It turns out that the SunPro C++ compiler does not properly
12410    # handle '-M -o', and we need to detect this.  Also, some Intel
12411    # versions had trouble with output in subdirs.
12412    am__obj=sub/conftest.${OBJEXT-o}
12413    am__minus_obj="-o $am__obj"
12414    case $depmode in
12415    gcc)
12416      # This depmode causes a compiler race in universal mode.
12417      test "$am__universal" = false || continue
12418      ;;
12419    nosideeffect)
12420      # After this tag, mechanisms are not by side-effect, so they'll
12421      # only be used when explicitly requested.
12422      if test "x$enable_dependency_tracking" = xyes; then
12423	continue
12424      else
12425	break
12426      fi
12427      ;;
12428    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12429      # This compiler won't grok '-c -o', but also, the minuso test has
12430      # not run yet.  These depmodes are late enough in the game, and
12431      # so weak that their functioning should not be impacted.
12432      am__obj=conftest.${OBJEXT-o}
12433      am__minus_obj=
12434      ;;
12435    none) break ;;
12436    esac
12437    if depmode=$depmode \
12438       source=sub/conftest.c object=$am__obj \
12439       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12440       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12441         >/dev/null 2>conftest.err &&
12442       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12443       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12444       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12445       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12446      # icc doesn't choke on unknown options, it will just issue warnings
12447      # or remarks (even with -Werror).  So we grep stderr for any message
12448      # that says an option was ignored or not supported.
12449      # When given -MP, icc 7.0 and 7.1 complain thusly:
12450      #   icc: Command line warning: ignoring option '-M'; no argument required
12451      # The diagnosis changed in icc 8.0:
12452      #   icc: Command line remark: option '-MP' not supported
12453      if (grep 'ignoring option' conftest.err ||
12454          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12455        am_cv_CXX_dependencies_compiler_type=$depmode
12456        break
12457      fi
12458    fi
12459  done
12460
12461  cd ..
12462  rm -rf conftest.dir
12463else
12464  am_cv_CXX_dependencies_compiler_type=none
12465fi
12466
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12469$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12470CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12471
12472 if
12473  test "x$enable_dependency_tracking" != xno \
12474  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12475  am__fastdepCXX_TRUE=
12476  am__fastdepCXX_FALSE='#'
12477else
12478  am__fastdepCXX_TRUE='#'
12479  am__fastdepCXX_FALSE=
12480fi
12481
12482
12483
12484
12485func_stripname_cnf ()
12486{
12487  case $2 in
12488  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12489  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12490  esac
12491} # func_stripname_cnf
12492
12493      if test -n "$CXX" && ( test no != "$CXX" &&
12494    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12495    (test g++ != "$CXX"))); then
12496  ac_ext=cpp
12497ac_cpp='$CXXCPP $CPPFLAGS'
12498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12502$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12503if test -z "$CXXCPP"; then
12504  if ${ac_cv_prog_CXXCPP+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507      # Double quotes because CXXCPP needs to be expanded
12508    for CXXCPP in "$CXX -E" "/lib/cpp"
12509    do
12510      ac_preproc_ok=false
12511for ac_cxx_preproc_warn_flag in '' yes
12512do
12513  # Use a header file that comes with gcc, so configuring glibc
12514  # with a fresh cross-compiler works.
12515  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516  # <limits.h> exists even on freestanding compilers.
12517  # On the NeXT, cc -E runs the code through the compiler's parser,
12518  # not just through cpp. "Syntax error" is here to catch this case.
12519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h.  */
12521#ifdef __STDC__
12522# include <limits.h>
12523#else
12524# include <assert.h>
12525#endif
12526		     Syntax error
12527_ACEOF
12528if ac_fn_cxx_try_cpp "$LINENO"; then :
12529
12530else
12531  # Broken: fails on valid input.
12532continue
12533fi
12534rm -f conftest.err conftest.i conftest.$ac_ext
12535
12536  # OK, works on sane cases.  Now check whether nonexistent headers
12537  # can be detected and how.
12538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h.  */
12540#include <ac_nonexistent.h>
12541_ACEOF
12542if ac_fn_cxx_try_cpp "$LINENO"; then :
12543  # Broken: success on invalid input.
12544continue
12545else
12546  # Passes both tests.
12547ac_preproc_ok=:
12548break
12549fi
12550rm -f conftest.err conftest.i conftest.$ac_ext
12551
12552done
12553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12554rm -f conftest.i conftest.err conftest.$ac_ext
12555if $ac_preproc_ok; then :
12556  break
12557fi
12558
12559    done
12560    ac_cv_prog_CXXCPP=$CXXCPP
12561
12562fi
12563  CXXCPP=$ac_cv_prog_CXXCPP
12564else
12565  ac_cv_prog_CXXCPP=$CXXCPP
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12568$as_echo "$CXXCPP" >&6; }
12569ac_preproc_ok=false
12570for ac_cxx_preproc_warn_flag in '' yes
12571do
12572  # Use a header file that comes with gcc, so configuring glibc
12573  # with a fresh cross-compiler works.
12574  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12575  # <limits.h> exists even on freestanding compilers.
12576  # On the NeXT, cc -E runs the code through the compiler's parser,
12577  # not just through cpp. "Syntax error" is here to catch this case.
12578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579/* end confdefs.h.  */
12580#ifdef __STDC__
12581# include <limits.h>
12582#else
12583# include <assert.h>
12584#endif
12585		     Syntax error
12586_ACEOF
12587if ac_fn_cxx_try_cpp "$LINENO"; then :
12588
12589else
12590  # Broken: fails on valid input.
12591continue
12592fi
12593rm -f conftest.err conftest.i conftest.$ac_ext
12594
12595  # OK, works on sane cases.  Now check whether nonexistent headers
12596  # can be detected and how.
12597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598/* end confdefs.h.  */
12599#include <ac_nonexistent.h>
12600_ACEOF
12601if ac_fn_cxx_try_cpp "$LINENO"; then :
12602  # Broken: success on invalid input.
12603continue
12604else
12605  # Passes both tests.
12606ac_preproc_ok=:
12607break
12608fi
12609rm -f conftest.err conftest.i conftest.$ac_ext
12610
12611done
12612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12613rm -f conftest.i conftest.err conftest.$ac_ext
12614if $ac_preproc_ok; then :
12615
12616else
12617  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12619as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12620See \`config.log' for more details" "$LINENO" 5; }
12621fi
12622
12623ac_ext=c
12624ac_cpp='$CPP $CPPFLAGS'
12625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627ac_compiler_gnu=$ac_cv_c_compiler_gnu
12628
12629else
12630  _lt_caught_CXX_error=yes
12631fi
12632
12633ac_ext=cpp
12634ac_cpp='$CXXCPP $CPPFLAGS'
12635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12638
12639archive_cmds_need_lc_CXX=no
12640allow_undefined_flag_CXX=
12641always_export_symbols_CXX=no
12642archive_expsym_cmds_CXX=
12643compiler_needs_object_CXX=no
12644export_dynamic_flag_spec_CXX=
12645hardcode_direct_CXX=no
12646hardcode_direct_absolute_CXX=no
12647hardcode_libdir_flag_spec_CXX=
12648hardcode_libdir_separator_CXX=
12649hardcode_minus_L_CXX=no
12650hardcode_shlibpath_var_CXX=unsupported
12651hardcode_automatic_CXX=no
12652inherit_rpath_CXX=no
12653module_cmds_CXX=
12654module_expsym_cmds_CXX=
12655link_all_deplibs_CXX=unknown
12656old_archive_cmds_CXX=$old_archive_cmds
12657reload_flag_CXX=$reload_flag
12658reload_cmds_CXX=$reload_cmds
12659no_undefined_flag_CXX=
12660whole_archive_flag_spec_CXX=
12661enable_shared_with_static_runtimes_CXX=no
12662
12663# Source file extension for C++ test sources.
12664ac_ext=cpp
12665
12666# Object file extension for compiled C++ test sources.
12667objext=o
12668objext_CXX=$objext
12669
12670# No sense in running all these tests if we already determined that
12671# the CXX compiler isn't working.  Some variables (like enable_shared)
12672# are currently assumed to apply to all compilers on this platform,
12673# and will be corrupted by setting them based on a non-working compiler.
12674if test yes != "$_lt_caught_CXX_error"; then
12675  # Code to be used in simple compile tests
12676  lt_simple_compile_test_code="int some_variable = 0;"
12677
12678  # Code to be used in simple link tests
12679  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12680
12681  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12682
12683
12684
12685
12686
12687
12688# If no C compiler was specified, use CC.
12689LTCC=${LTCC-"$CC"}
12690
12691# If no C compiler flags were specified, use CFLAGS.
12692LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12693
12694# Allow CC to be a program name with arguments.
12695compiler=$CC
12696
12697
12698  # save warnings/boilerplate of simple test code
12699  ac_outfile=conftest.$ac_objext
12700echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12701eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12702_lt_compiler_boilerplate=`cat conftest.err`
12703$RM conftest*
12704
12705  ac_outfile=conftest.$ac_objext
12706echo "$lt_simple_link_test_code" >conftest.$ac_ext
12707eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12708_lt_linker_boilerplate=`cat conftest.err`
12709$RM -r conftest*
12710
12711
12712  # Allow CC to be a program name with arguments.
12713  lt_save_CC=$CC
12714  lt_save_CFLAGS=$CFLAGS
12715  lt_save_LD=$LD
12716  lt_save_GCC=$GCC
12717  GCC=$GXX
12718  lt_save_with_gnu_ld=$with_gnu_ld
12719  lt_save_path_LD=$lt_cv_path_LD
12720  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12721    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12722  else
12723    $as_unset lt_cv_prog_gnu_ld
12724  fi
12725  if test -n "${lt_cv_path_LDCXX+set}"; then
12726    lt_cv_path_LD=$lt_cv_path_LDCXX
12727  else
12728    $as_unset lt_cv_path_LD
12729  fi
12730  test -z "${LDCXX+set}" || LD=$LDCXX
12731  CC=${CXX-"c++"}
12732  CFLAGS=$CXXFLAGS
12733  compiler=$CC
12734  compiler_CXX=$CC
12735  func_cc_basename $compiler
12736cc_basename=$func_cc_basename_result
12737
12738
12739  if test -n "$compiler"; then
12740    # We don't want -fno-exception when compiling C++ code, so set the
12741    # no_builtin_flag separately
12742    if test yes = "$GXX"; then
12743      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12744    else
12745      lt_prog_compiler_no_builtin_flag_CXX=
12746    fi
12747
12748    if test yes = "$GXX"; then
12749      # Set up default GNU C++ configuration
12750
12751
12752
12753# Check whether --with-gnu-ld was given.
12754if test "${with_gnu_ld+set}" = set; then :
12755  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12756else
12757  with_gnu_ld=no
12758fi
12759
12760ac_prog=ld
12761if test yes = "$GCC"; then
12762  # Check if gcc -print-prog-name=ld gives a path.
12763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12764$as_echo_n "checking for ld used by $CC... " >&6; }
12765  case $host in
12766  *-*-mingw*)
12767    # gcc leaves a trailing carriage return, which upsets mingw
12768    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12769  *)
12770    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12771  esac
12772  case $ac_prog in
12773    # Accept absolute paths.
12774    [\\/]* | ?:[\\/]*)
12775      re_direlt='/[^/][^/]*/\.\./'
12776      # Canonicalize the pathname of ld
12777      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12778      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12779	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12780      done
12781      test -z "$LD" && LD=$ac_prog
12782      ;;
12783  "")
12784    # If it fails, then pretend we aren't using GCC.
12785    ac_prog=ld
12786    ;;
12787  *)
12788    # If it is relative, then search for the first ld in PATH.
12789    with_gnu_ld=unknown
12790    ;;
12791  esac
12792elif test yes = "$with_gnu_ld"; then
12793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12794$as_echo_n "checking for GNU ld... " >&6; }
12795else
12796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12797$as_echo_n "checking for non-GNU ld... " >&6; }
12798fi
12799if ${lt_cv_path_LD+:} false; then :
12800  $as_echo_n "(cached) " >&6
12801else
12802  if test -z "$LD"; then
12803  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12804  for ac_dir in $PATH; do
12805    IFS=$lt_save_ifs
12806    test -z "$ac_dir" && ac_dir=.
12807    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12808      lt_cv_path_LD=$ac_dir/$ac_prog
12809      # Check to see if the program is GNU ld.  I'd rather use --version,
12810      # but apparently some variants of GNU ld only accept -v.
12811      # Break only if it was the GNU/non-GNU ld that we prefer.
12812      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12813      *GNU* | *'with BFD'*)
12814	test no != "$with_gnu_ld" && break
12815	;;
12816      *)
12817	test yes != "$with_gnu_ld" && break
12818	;;
12819      esac
12820    fi
12821  done
12822  IFS=$lt_save_ifs
12823else
12824  lt_cv_path_LD=$LD # Let the user override the test with a path.
12825fi
12826fi
12827
12828LD=$lt_cv_path_LD
12829if test -n "$LD"; then
12830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12831$as_echo "$LD" >&6; }
12832else
12833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
12835fi
12836test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12838$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12839if ${lt_cv_prog_gnu_ld+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12843case `$LD -v 2>&1 </dev/null` in
12844*GNU* | *'with BFD'*)
12845  lt_cv_prog_gnu_ld=yes
12846  ;;
12847*)
12848  lt_cv_prog_gnu_ld=no
12849  ;;
12850esac
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12853$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12854with_gnu_ld=$lt_cv_prog_gnu_ld
12855
12856
12857
12858
12859
12860
12861
12862      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12863      # archiving commands below assume that GNU ld is being used.
12864      if test yes = "$with_gnu_ld"; then
12865        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12866        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12867
12868        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12869        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12870
12871        # If archive_cmds runs LD, not CC, wlarc should be empty
12872        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12873        #     investigate it a little bit more. (MM)
12874        wlarc='$wl'
12875
12876        # ancient GNU ld didn't support --whole-archive et. al.
12877        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12878	  $GREP 'no-whole-archive' > /dev/null; then
12879          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12880        else
12881          whole_archive_flag_spec_CXX=
12882        fi
12883      else
12884        with_gnu_ld=no
12885        wlarc=
12886
12887        # A generic and very simple default shared library creation
12888        # command for GNU C++ for the case where it uses the native
12889        # linker, instead of GNU ld.  If possible, this setting should
12890        # overridden to take advantage of the native linker features on
12891        # the platform it is being used on.
12892        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12893      fi
12894
12895      # Commands to make compiler produce verbose output that lists
12896      # what "hidden" libraries, object files and flags are used when
12897      # linking a shared library.
12898      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12899
12900    else
12901      GXX=no
12902      with_gnu_ld=no
12903      wlarc=
12904    fi
12905
12906    # PORTME: fill in a description of your system's C++ link characteristics
12907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12908$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12909    ld_shlibs_CXX=yes
12910    case $host_os in
12911      aix3*)
12912        # FIXME: insert proper C++ library support
12913        ld_shlibs_CXX=no
12914        ;;
12915      aix[4-9]*)
12916        if test ia64 = "$host_cpu"; then
12917          # On IA64, the linker does run time linking by default, so we don't
12918          # have to do anything special.
12919          aix_use_runtimelinking=no
12920          exp_sym_flag='-Bexport'
12921          no_entry_flag=
12922        else
12923          aix_use_runtimelinking=no
12924
12925          # Test if we are trying to use run time linking or normal
12926          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12927          # have runtime linking enabled, and use it for executables.
12928          # For shared libraries, we enable/disable runtime linking
12929          # depending on the kind of the shared library created -
12930          # when "with_aix_soname,aix_use_runtimelinking" is:
12931          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12932          # "aix,yes"  lib.so          shared, rtl:yes, for executables
12933          #            lib.a           static archive
12934          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12935          #            lib.a(lib.so.V) shared, rtl:no,  for executables
12936          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12937          #            lib.a(lib.so.V) shared, rtl:no
12938          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12939          #            lib.a           static archive
12940          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12941	    for ld_flag in $LDFLAGS; do
12942	      case $ld_flag in
12943	      *-brtl*)
12944	        aix_use_runtimelinking=yes
12945	        break
12946	        ;;
12947	      esac
12948	    done
12949	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12950	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
12951	      # so we don't have lib.a shared libs to link our executables.
12952	      # We have to force runtime linking in this case.
12953	      aix_use_runtimelinking=yes
12954	      LDFLAGS="$LDFLAGS -Wl,-brtl"
12955	    fi
12956	    ;;
12957          esac
12958
12959          exp_sym_flag='-bexport'
12960          no_entry_flag='-bnoentry'
12961        fi
12962
12963        # When large executables or shared objects are built, AIX ld can
12964        # have problems creating the table of contents.  If linking a library
12965        # or program results in "error TOC overflow" add -mminimal-toc to
12966        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12967        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12968
12969        archive_cmds_CXX=''
12970        hardcode_direct_CXX=yes
12971        hardcode_direct_absolute_CXX=yes
12972        hardcode_libdir_separator_CXX=':'
12973        link_all_deplibs_CXX=yes
12974        file_list_spec_CXX='$wl-f,'
12975        case $with_aix_soname,$aix_use_runtimelinking in
12976        aix,*) ;;	# no import file
12977        svr4,* | *,yes) # use import file
12978          # The Import File defines what to hardcode.
12979          hardcode_direct_CXX=no
12980          hardcode_direct_absolute_CXX=no
12981          ;;
12982        esac
12983
12984        if test yes = "$GXX"; then
12985          case $host_os in aix4.[012]|aix4.[012].*)
12986          # We only want to do this on AIX 4.2 and lower, the check
12987          # below for broken collect2 doesn't work under 4.3+
12988	  collect2name=`$CC -print-prog-name=collect2`
12989	  if test -f "$collect2name" &&
12990	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12991	  then
12992	    # We have reworked collect2
12993	    :
12994	  else
12995	    # We have old collect2
12996	    hardcode_direct_CXX=unsupported
12997	    # It fails to find uninstalled libraries when the uninstalled
12998	    # path is not listed in the libpath.  Setting hardcode_minus_L
12999	    # to unsupported forces relinking
13000	    hardcode_minus_L_CXX=yes
13001	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13002	    hardcode_libdir_separator_CXX=
13003	  fi
13004          esac
13005          shared_flag='-shared'
13006	  if test yes = "$aix_use_runtimelinking"; then
13007	    shared_flag=$shared_flag' $wl-G'
13008	  fi
13009	  # Need to ensure runtime linking is disabled for the traditional
13010	  # shared library, or the linker may eventually find shared libraries
13011	  # /with/ Import File - we do not want to mix them.
13012	  shared_flag_aix='-shared'
13013	  shared_flag_svr4='-shared $wl-G'
13014        else
13015          # not using gcc
13016          if test ia64 = "$host_cpu"; then
13017	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13018	  # chokes on -Wl,-G. The following line is correct:
13019	  shared_flag='-G'
13020          else
13021	    if test yes = "$aix_use_runtimelinking"; then
13022	      shared_flag='$wl-G'
13023	    else
13024	      shared_flag='$wl-bM:SRE'
13025	    fi
13026	    shared_flag_aix='$wl-bM:SRE'
13027	    shared_flag_svr4='$wl-G'
13028          fi
13029        fi
13030
13031        export_dynamic_flag_spec_CXX='$wl-bexpall'
13032        # It seems that -bexpall does not export symbols beginning with
13033        # underscore (_), so it is better to generate a list of symbols to
13034	# export.
13035        always_export_symbols_CXX=yes
13036	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13037          # Warning - without using the other runtime loading flags (-brtl),
13038          # -berok will link without error, but may produce a broken library.
13039          # The "-G" linker flag allows undefined symbols.
13040          no_undefined_flag_CXX='-bernotok'
13041          # Determine the default libpath from the value encoded in an empty
13042          # executable.
13043          if test set = "${lt_cv_aix_libpath+set}"; then
13044  aix_libpath=$lt_cv_aix_libpath
13045else
13046  if ${lt_cv_aix_libpath__CXX+:} false; then :
13047  $as_echo_n "(cached) " >&6
13048else
13049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051
13052int
13053main ()
13054{
13055
13056  ;
13057  return 0;
13058}
13059_ACEOF
13060if ac_fn_cxx_try_link "$LINENO"; then :
13061
13062  lt_aix_libpath_sed='
13063      /Import File Strings/,/^$/ {
13064	  /^0/ {
13065	      s/^0  *\([^ ]*\) *$/\1/
13066	      p
13067	  }
13068      }'
13069  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13070  # Check for a 64-bit object if we didn't find anything.
13071  if test -z "$lt_cv_aix_libpath__CXX"; then
13072    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13073  fi
13074fi
13075rm -f core conftest.err conftest.$ac_objext \
13076    conftest$ac_exeext conftest.$ac_ext
13077  if test -z "$lt_cv_aix_libpath__CXX"; then
13078    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13079  fi
13080
13081fi
13082
13083  aix_libpath=$lt_cv_aix_libpath__CXX
13084fi
13085
13086          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13087
13088          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13089        else
13090          if test ia64 = "$host_cpu"; then
13091	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13092	    allow_undefined_flag_CXX="-z nodefs"
13093	    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"
13094          else
13095	    # Determine the default libpath from the value encoded in an
13096	    # empty executable.
13097	    if test set = "${lt_cv_aix_libpath+set}"; then
13098  aix_libpath=$lt_cv_aix_libpath
13099else
13100  if ${lt_cv_aix_libpath__CXX+:} false; then :
13101  $as_echo_n "(cached) " >&6
13102else
13103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104/* end confdefs.h.  */
13105
13106int
13107main ()
13108{
13109
13110  ;
13111  return 0;
13112}
13113_ACEOF
13114if ac_fn_cxx_try_link "$LINENO"; then :
13115
13116  lt_aix_libpath_sed='
13117      /Import File Strings/,/^$/ {
13118	  /^0/ {
13119	      s/^0  *\([^ ]*\) *$/\1/
13120	      p
13121	  }
13122      }'
13123  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13124  # Check for a 64-bit object if we didn't find anything.
13125  if test -z "$lt_cv_aix_libpath__CXX"; then
13126    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13127  fi
13128fi
13129rm -f core conftest.err conftest.$ac_objext \
13130    conftest$ac_exeext conftest.$ac_ext
13131  if test -z "$lt_cv_aix_libpath__CXX"; then
13132    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13133  fi
13134
13135fi
13136
13137  aix_libpath=$lt_cv_aix_libpath__CXX
13138fi
13139
13140	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13141	    # Warning - without using the other run time loading flags,
13142	    # -berok will link without error, but may produce a broken library.
13143	    no_undefined_flag_CXX=' $wl-bernotok'
13144	    allow_undefined_flag_CXX=' $wl-berok'
13145	    if test yes = "$with_gnu_ld"; then
13146	      # We only use this code for GNU lds that support --whole-archive.
13147	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13148	    else
13149	      # Exported symbols can be pulled into shared objects from archives
13150	      whole_archive_flag_spec_CXX='$convenience'
13151	    fi
13152	    archive_cmds_need_lc_CXX=yes
13153	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13154	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13155	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13156	    if test svr4 != "$with_aix_soname"; then
13157	      # This is similar to how AIX traditionally builds its shared
13158	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13159	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13160	    fi
13161	    if test aix != "$with_aix_soname"; then
13162	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13163	    else
13164	      # used by -dlpreopen to get the symbols
13165	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13166	    fi
13167	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13168          fi
13169        fi
13170        ;;
13171
13172      beos*)
13173	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13174	  allow_undefined_flag_CXX=unsupported
13175	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13176	  # support --undefined.  This deserves some investigation.  FIXME
13177	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13178	else
13179	  ld_shlibs_CXX=no
13180	fi
13181	;;
13182
13183      chorus*)
13184        case $cc_basename in
13185          *)
13186	  # FIXME: insert proper C++ library support
13187	  ld_shlibs_CXX=no
13188	  ;;
13189        esac
13190        ;;
13191
13192      cygwin* | mingw* | pw32* | cegcc*)
13193	case $GXX,$cc_basename in
13194	,cl* | no,cl*)
13195	  # Native MSVC
13196	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13197	  # no search path for DLLs.
13198	  hardcode_libdir_flag_spec_CXX=' '
13199	  allow_undefined_flag_CXX=unsupported
13200	  always_export_symbols_CXX=yes
13201	  file_list_spec_CXX='@'
13202	  # Tell ltmain to make .lib files, not .a files.
13203	  libext=lib
13204	  # Tell ltmain to make .dll files, not .so files.
13205	  shrext_cmds=.dll
13206	  # FIXME: Setting linknames here is a bad hack.
13207	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13208	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13209              cp "$export_symbols" "$output_objdir/$soname.def";
13210              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13211            else
13212              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13213            fi~
13214            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13215            linknames='
13216	  # The linker will not automatically build a static lib if we build a DLL.
13217	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13218	  enable_shared_with_static_runtimes_CXX=yes
13219	  # Don't use ranlib
13220	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13221	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13222            lt_tool_outputfile="@TOOL_OUTPUT@"~
13223            case $lt_outputfile in
13224              *.exe|*.EXE) ;;
13225              *)
13226                lt_outputfile=$lt_outputfile.exe
13227                lt_tool_outputfile=$lt_tool_outputfile.exe
13228                ;;
13229            esac~
13230            func_to_tool_file "$lt_outputfile"~
13231            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13232              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13233              $RM "$lt_outputfile.manifest";
13234            fi'
13235	  ;;
13236	*)
13237	  # g++
13238	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13239	  # as there is no search path for DLLs.
13240	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13241	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13242	  allow_undefined_flag_CXX=unsupported
13243	  always_export_symbols_CXX=no
13244	  enable_shared_with_static_runtimes_CXX=yes
13245
13246	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13247	    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'
13248	    # If the export-symbols file already is a .def file, use it as
13249	    # is; otherwise, prepend EXPORTS...
13250	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13251              cp $export_symbols $output_objdir/$soname.def;
13252            else
13253              echo EXPORTS > $output_objdir/$soname.def;
13254              cat $export_symbols >> $output_objdir/$soname.def;
13255            fi~
13256            $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'
13257	  else
13258	    ld_shlibs_CXX=no
13259	  fi
13260	  ;;
13261	esac
13262	;;
13263      darwin* | rhapsody*)
13264
13265
13266  archive_cmds_need_lc_CXX=no
13267  hardcode_direct_CXX=no
13268  hardcode_automatic_CXX=yes
13269  hardcode_shlibpath_var_CXX=unsupported
13270  if test yes = "$lt_cv_ld_force_load"; then
13271    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\"`'
13272
13273  else
13274    whole_archive_flag_spec_CXX=''
13275  fi
13276  link_all_deplibs_CXX=yes
13277  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13278  case $cc_basename in
13279     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13280     *) _lt_dar_can_shared=$GCC ;;
13281  esac
13282  if test yes = "$_lt_dar_can_shared"; then
13283    output_verbose_link_cmd=func_echo_all
13284    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"
13285    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13286    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"
13287    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"
13288       if test yes != "$lt_cv_apple_cc_single_mod"; then
13289      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"
13290      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"
13291    fi
13292
13293  else
13294  ld_shlibs_CXX=no
13295  fi
13296
13297	;;
13298
13299      os2*)
13300	hardcode_libdir_flag_spec_CXX='-L$libdir'
13301	hardcode_minus_L_CXX=yes
13302	allow_undefined_flag_CXX=unsupported
13303	shrext_cmds=.dll
13304	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13305	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13306	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13307	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13308	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13309	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13310	  emximp -o $lib $output_objdir/$libname.def'
13311	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13312	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13313	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13314	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13315	  prefix_cmds="$SED"~
13316	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13317	    prefix_cmds="$prefix_cmds -e 1d";
13318	  fi~
13319	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13320	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13321	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13322	  emximp -o $lib $output_objdir/$libname.def'
13323	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13324	enable_shared_with_static_runtimes_CXX=yes
13325	;;
13326
13327      dgux*)
13328        case $cc_basename in
13329          ec++*)
13330	    # FIXME: insert proper C++ library support
13331	    ld_shlibs_CXX=no
13332	    ;;
13333          ghcx*)
13334	    # Green Hills C++ Compiler
13335	    # FIXME: insert proper C++ library support
13336	    ld_shlibs_CXX=no
13337	    ;;
13338          *)
13339	    # FIXME: insert proper C++ library support
13340	    ld_shlibs_CXX=no
13341	    ;;
13342        esac
13343        ;;
13344
13345      freebsd2.*)
13346        # C++ shared libraries reported to be fairly broken before
13347	# switch to ELF
13348        ld_shlibs_CXX=no
13349        ;;
13350
13351      freebsd-elf*)
13352        archive_cmds_need_lc_CXX=no
13353        ;;
13354
13355      freebsd* | dragonfly*)
13356        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13357        # conventions
13358        ld_shlibs_CXX=yes
13359        ;;
13360
13361      haiku*)
13362        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13363        link_all_deplibs_CXX=yes
13364        ;;
13365
13366      hpux9*)
13367        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13368        hardcode_libdir_separator_CXX=:
13369        export_dynamic_flag_spec_CXX='$wl-E'
13370        hardcode_direct_CXX=yes
13371        hardcode_minus_L_CXX=yes # Not in the search PATH,
13372				             # but as the default
13373				             # location of the library.
13374
13375        case $cc_basename in
13376          CC*)
13377            # FIXME: insert proper C++ library support
13378            ld_shlibs_CXX=no
13379            ;;
13380          aCC*)
13381            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13382            # Commands to make compiler produce verbose output that lists
13383            # what "hidden" libraries, object files and flags are used when
13384            # linking a shared library.
13385            #
13386            # There doesn't appear to be a way to prevent this compiler from
13387            # explicitly linking system object files so we need to strip them
13388            # from the output so that they don't get included in the library
13389            # dependencies.
13390            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"'
13391            ;;
13392          *)
13393            if test yes = "$GXX"; then
13394              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13395            else
13396              # FIXME: insert proper C++ library support
13397              ld_shlibs_CXX=no
13398            fi
13399            ;;
13400        esac
13401        ;;
13402
13403      hpux10*|hpux11*)
13404        if test no = "$with_gnu_ld"; then
13405	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13406	  hardcode_libdir_separator_CXX=:
13407
13408          case $host_cpu in
13409            hppa*64*|ia64*)
13410              ;;
13411            *)
13412	      export_dynamic_flag_spec_CXX='$wl-E'
13413              ;;
13414          esac
13415        fi
13416        case $host_cpu in
13417          hppa*64*|ia64*)
13418            hardcode_direct_CXX=no
13419            hardcode_shlibpath_var_CXX=no
13420            ;;
13421          *)
13422            hardcode_direct_CXX=yes
13423            hardcode_direct_absolute_CXX=yes
13424            hardcode_minus_L_CXX=yes # Not in the search PATH,
13425					         # but as the default
13426					         # location of the library.
13427            ;;
13428        esac
13429
13430        case $cc_basename in
13431          CC*)
13432	    # FIXME: insert proper C++ library support
13433	    ld_shlibs_CXX=no
13434	    ;;
13435          aCC*)
13436	    case $host_cpu in
13437	      hppa*64*)
13438	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439	        ;;
13440	      ia64*)
13441	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13442	        ;;
13443	      *)
13444	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13445	        ;;
13446	    esac
13447	    # Commands to make compiler produce verbose output that lists
13448	    # what "hidden" libraries, object files and flags are used when
13449	    # linking a shared library.
13450	    #
13451	    # There doesn't appear to be a way to prevent this compiler from
13452	    # explicitly linking system object files so we need to strip them
13453	    # from the output so that they don't get included in the library
13454	    # dependencies.
13455	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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"'
13456	    ;;
13457          *)
13458	    if test yes = "$GXX"; then
13459	      if test no = "$with_gnu_ld"; then
13460	        case $host_cpu in
13461	          hppa*64*)
13462	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13463	            ;;
13464	          ia64*)
13465	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13466	            ;;
13467	          *)
13468	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13469	            ;;
13470	        esac
13471	      fi
13472	    else
13473	      # FIXME: insert proper C++ library support
13474	      ld_shlibs_CXX=no
13475	    fi
13476	    ;;
13477        esac
13478        ;;
13479
13480      interix[3-9]*)
13481	hardcode_direct_CXX=no
13482	hardcode_shlibpath_var_CXX=no
13483	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13484	export_dynamic_flag_spec_CXX='$wl-E'
13485	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13486	# Instead, shared libraries are loaded at an image base (0x10000000 by
13487	# default) and relocated if they conflict, which is a slow very memory
13488	# consuming and fragmenting process.  To avoid this, we pick a random,
13489	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13490	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13491	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'
13492	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'
13493	;;
13494      irix5* | irix6*)
13495        case $cc_basename in
13496          CC*)
13497	    # SGI C++
13498	    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'
13499
13500	    # Archives containing C++ object files must be created using
13501	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13502	    # necessary to make sure instantiated templates are included
13503	    # in the archive.
13504	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13505	    ;;
13506          *)
13507	    if test yes = "$GXX"; then
13508	      if test no = "$with_gnu_ld"; then
13509	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13510	      else
13511	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13512	      fi
13513	    fi
13514	    link_all_deplibs_CXX=yes
13515	    ;;
13516        esac
13517        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13518        hardcode_libdir_separator_CXX=:
13519        inherit_rpath_CXX=yes
13520        ;;
13521
13522      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13523        case $cc_basename in
13524          KCC*)
13525	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13526
13527	    # KCC will only create a shared library if the output file
13528	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13529	    # to its proper name (with version) after linking.
13530	    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'
13531	    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'
13532	    # Commands to make compiler produce verbose output that lists
13533	    # what "hidden" libraries, object files and flags are used when
13534	    # linking a shared library.
13535	    #
13536	    # There doesn't appear to be a way to prevent this compiler from
13537	    # explicitly linking system object files so we need to strip them
13538	    # from the output so that they don't get included in the library
13539	    # dependencies.
13540	    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"'
13541
13542	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13543	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13544
13545	    # Archives containing C++ object files must be created using
13546	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13547	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13548	    ;;
13549	  icpc* | ecpc* )
13550	    # Intel C++
13551	    with_gnu_ld=yes
13552	    # version 8.0 and above of icpc choke on multiply defined symbols
13553	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13554	    # earlier do not add the objects themselves.
13555	    case `$CC -V 2>&1` in
13556	      *"Version 7."*)
13557	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13558		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'
13559		;;
13560	      *)  # Version 8.0 or newer
13561	        tmp_idyn=
13562	        case $host_cpu in
13563		  ia64*) tmp_idyn=' -i_dynamic';;
13564		esac
13565	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13566		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'
13567		;;
13568	    esac
13569	    archive_cmds_need_lc_CXX=no
13570	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13571	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13572	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13573	    ;;
13574          pgCC* | pgcpp*)
13575            # Portland Group C++ compiler
13576	    case `$CC -V` in
13577	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13578	      prelink_cmds_CXX='tpldir=Template.dir~
13579               rm -rf $tpldir~
13580               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13581               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13582	      old_archive_cmds_CXX='tpldir=Template.dir~
13583                rm -rf $tpldir~
13584                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13585                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13586                $RANLIB $oldlib'
13587	      archive_cmds_CXX='tpldir=Template.dir~
13588                rm -rf $tpldir~
13589                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13590                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13591	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13592                rm -rf $tpldir~
13593                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13594                $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'
13595	      ;;
13596	    *) # Version 6 and above use weak symbols
13597	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13598	      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'
13599	      ;;
13600	    esac
13601
13602	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13603	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13604	    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'
13605            ;;
13606	  cxx*)
13607	    # Compaq C++
13608	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13609	    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'
13610
13611	    runpath_var=LD_RUN_PATH
13612	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13613	    hardcode_libdir_separator_CXX=:
13614
13615	    # Commands to make compiler produce verbose output that lists
13616	    # what "hidden" libraries, object files and flags are used when
13617	    # linking a shared library.
13618	    #
13619	    # There doesn't appear to be a way to prevent this compiler from
13620	    # explicitly linking system object files so we need to strip them
13621	    # from the output so that they don't get included in the library
13622	    # dependencies.
13623	    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'
13624	    ;;
13625	  xl* | mpixl* | bgxl*)
13626	    # IBM XL 8.0 on PPC, with GNU ld
13627	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13628	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13629	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13630	    if test yes = "$supports_anon_versioning"; then
13631	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13632                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13633                echo "local: *; };" >> $output_objdir/$libname.ver~
13634                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13635	    fi
13636	    ;;
13637	  *)
13638	    case `$CC -V 2>&1 | sed 5q` in
13639	    *Sun\ C*)
13640	      # Sun C++ 5.9
13641	      no_undefined_flag_CXX=' -zdefs'
13642	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13643	      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'
13644	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13645	      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'
13646	      compiler_needs_object_CXX=yes
13647
13648	      # Not sure whether something based on
13649	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13650	      # would be better.
13651	      output_verbose_link_cmd='func_echo_all'
13652
13653	      # Archives containing C++ object files must be created using
13654	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13655	      # necessary to make sure instantiated templates are included
13656	      # in the archive.
13657	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13658	      ;;
13659	    esac
13660	    ;;
13661	esac
13662	;;
13663
13664      lynxos*)
13665        # FIXME: insert proper C++ library support
13666	ld_shlibs_CXX=no
13667	;;
13668
13669      m88k*)
13670        # FIXME: insert proper C++ library support
13671        ld_shlibs_CXX=no
13672	;;
13673
13674      mvs*)
13675        case $cc_basename in
13676          cxx*)
13677	    # FIXME: insert proper C++ library support
13678	    ld_shlibs_CXX=no
13679	    ;;
13680	  *)
13681	    # FIXME: insert proper C++ library support
13682	    ld_shlibs_CXX=no
13683	    ;;
13684	esac
13685	;;
13686
13687      netbsd*)
13688        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13689	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13690	  wlarc=
13691	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13692	  hardcode_direct_CXX=yes
13693	  hardcode_shlibpath_var_CXX=no
13694	fi
13695	# Workaround some broken pre-1.5 toolchains
13696	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13697	;;
13698
13699      *nto* | *qnx*)
13700        ld_shlibs_CXX=yes
13701	;;
13702
13703      openbsd* | bitrig*)
13704	if test -f /usr/libexec/ld.so; then
13705	  hardcode_direct_CXX=yes
13706	  hardcode_shlibpath_var_CXX=no
13707	  hardcode_direct_absolute_CXX=yes
13708	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13709	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13710	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13711	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13712	    export_dynamic_flag_spec_CXX='$wl-E'
13713	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13714	  fi
13715	  output_verbose_link_cmd=func_echo_all
13716	else
13717	  ld_shlibs_CXX=no
13718	fi
13719	;;
13720
13721      osf3* | osf4* | osf5*)
13722        case $cc_basename in
13723          KCC*)
13724	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13725
13726	    # KCC will only create a shared library if the output file
13727	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13728	    # to its proper name (with version) after linking.
13729	    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'
13730
13731	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13732	    hardcode_libdir_separator_CXX=:
13733
13734	    # Archives containing C++ object files must be created using
13735	    # the KAI C++ compiler.
13736	    case $host in
13737	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13738	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13739	    esac
13740	    ;;
13741          RCC*)
13742	    # Rational C++ 2.4.1
13743	    # FIXME: insert proper C++ library support
13744	    ld_shlibs_CXX=no
13745	    ;;
13746          cxx*)
13747	    case $host in
13748	      osf3*)
13749	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13750	        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'
13751	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13752		;;
13753	      *)
13754	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13755	        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'
13756	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13757                  echo "-hidden">> $lib.exp~
13758                  $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~
13759                  $RM $lib.exp'
13760	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13761		;;
13762	    esac
13763
13764	    hardcode_libdir_separator_CXX=:
13765
13766	    # Commands to make compiler produce verbose output that lists
13767	    # what "hidden" libraries, object files and flags are used when
13768	    # linking a shared library.
13769	    #
13770	    # There doesn't appear to be a way to prevent this compiler from
13771	    # explicitly linking system object files so we need to strip them
13772	    # from the output so that they don't get included in the library
13773	    # dependencies.
13774	    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"'
13775	    ;;
13776	  *)
13777	    if test yes,no = "$GXX,$with_gnu_ld"; then
13778	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13779	      case $host in
13780	        osf3*)
13781	          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'
13782		  ;;
13783	        *)
13784	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13785		  ;;
13786	      esac
13787
13788	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13789	      hardcode_libdir_separator_CXX=:
13790
13791	      # Commands to make compiler produce verbose output that lists
13792	      # what "hidden" libraries, object files and flags are used when
13793	      # linking a shared library.
13794	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13795
13796	    else
13797	      # FIXME: insert proper C++ library support
13798	      ld_shlibs_CXX=no
13799	    fi
13800	    ;;
13801        esac
13802        ;;
13803
13804      psos*)
13805        # FIXME: insert proper C++ library support
13806        ld_shlibs_CXX=no
13807        ;;
13808
13809      sunos4*)
13810        case $cc_basename in
13811          CC*)
13812	    # Sun C++ 4.x
13813	    # FIXME: insert proper C++ library support
13814	    ld_shlibs_CXX=no
13815	    ;;
13816          lcc*)
13817	    # Lucid
13818	    # FIXME: insert proper C++ library support
13819	    ld_shlibs_CXX=no
13820	    ;;
13821          *)
13822	    # FIXME: insert proper C++ library support
13823	    ld_shlibs_CXX=no
13824	    ;;
13825        esac
13826        ;;
13827
13828      solaris*)
13829        case $cc_basename in
13830          CC* | sunCC*)
13831	    # Sun C++ 4.2, 5.x and Centerline C++
13832            archive_cmds_need_lc_CXX=yes
13833	    no_undefined_flag_CXX=' -zdefs'
13834	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13835	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13836              $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'
13837
13838	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13839	    hardcode_shlibpath_var_CXX=no
13840	    case $host_os in
13841	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13842	      *)
13843		# The compiler driver will combine and reorder linker options,
13844		# but understands '-z linker_flag'.
13845	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13846		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13847	        ;;
13848	    esac
13849	    link_all_deplibs_CXX=yes
13850
13851	    output_verbose_link_cmd='func_echo_all'
13852
13853	    # Archives containing C++ object files must be created using
13854	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13855	    # necessary to make sure instantiated templates are included
13856	    # in the archive.
13857	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13858	    ;;
13859          gcx*)
13860	    # Green Hills C++ Compiler
13861	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13862
13863	    # The C++ compiler must be used to create the archive.
13864	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13865	    ;;
13866          *)
13867	    # GNU C++ compiler with Solaris linker
13868	    if test yes,no = "$GXX,$with_gnu_ld"; then
13869	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
13870	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13871	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13872	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13873                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13874
13875	        # Commands to make compiler produce verbose output that lists
13876	        # what "hidden" libraries, object files and flags are used when
13877	        # linking a shared library.
13878	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13879	      else
13880	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
13881	        # platform.
13882	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13883	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13884                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13885
13886	        # Commands to make compiler produce verbose output that lists
13887	        # what "hidden" libraries, object files and flags are used when
13888	        # linking a shared library.
13889	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13890	      fi
13891
13892	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13893	      case $host_os in
13894		solaris2.[0-5] | solaris2.[0-5].*) ;;
13895		*)
13896		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13897		  ;;
13898	      esac
13899	    fi
13900	    ;;
13901        esac
13902        ;;
13903
13904    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13905      no_undefined_flag_CXX='$wl-z,text'
13906      archive_cmds_need_lc_CXX=no
13907      hardcode_shlibpath_var_CXX=no
13908      runpath_var='LD_RUN_PATH'
13909
13910      case $cc_basename in
13911        CC*)
13912	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13913	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13914	  ;;
13915	*)
13916	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13917	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13918	  ;;
13919      esac
13920      ;;
13921
13922      sysv5* | sco3.2v5* | sco5v6*)
13923	# Note: We CANNOT use -z defs as we might desire, because we do not
13924	# link with -lc, and that would cause any symbols used from libc to
13925	# always be unresolved, which means just about no library would
13926	# ever link correctly.  If we're not using GNU ld we use -z text
13927	# though, which does catch some bad symbols but isn't as heavy-handed
13928	# as -z defs.
13929	no_undefined_flag_CXX='$wl-z,text'
13930	allow_undefined_flag_CXX='$wl-z,nodefs'
13931	archive_cmds_need_lc_CXX=no
13932	hardcode_shlibpath_var_CXX=no
13933	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13934	hardcode_libdir_separator_CXX=':'
13935	link_all_deplibs_CXX=yes
13936	export_dynamic_flag_spec_CXX='$wl-Bexport'
13937	runpath_var='LD_RUN_PATH'
13938
13939	case $cc_basename in
13940          CC*)
13941	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13942	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13943	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13944              '"$old_archive_cmds_CXX"
13945	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13946              '"$reload_cmds_CXX"
13947	    ;;
13948	  *)
13949	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13950	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951	    ;;
13952	esac
13953      ;;
13954
13955      tandem*)
13956        case $cc_basename in
13957          NCC*)
13958	    # NonStop-UX NCC 3.20
13959	    # FIXME: insert proper C++ library support
13960	    ld_shlibs_CXX=no
13961	    ;;
13962          *)
13963	    # FIXME: insert proper C++ library support
13964	    ld_shlibs_CXX=no
13965	    ;;
13966        esac
13967        ;;
13968
13969      vxworks*)
13970        # FIXME: insert proper C++ library support
13971        ld_shlibs_CXX=no
13972        ;;
13973
13974      *)
13975        # FIXME: insert proper C++ library support
13976        ld_shlibs_CXX=no
13977        ;;
13978    esac
13979
13980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13981$as_echo "$ld_shlibs_CXX" >&6; }
13982    test no = "$ld_shlibs_CXX" && can_build_shared=no
13983
13984    GCC_CXX=$GXX
13985    LD_CXX=$LD
13986
13987    ## CAVEAT EMPTOR:
13988    ## There is no encapsulation within the following macros, do not change
13989    ## the running order or otherwise move them around unless you know exactly
13990    ## what you are doing...
13991    # Dependencies to place before and after the object being linked:
13992predep_objects_CXX=
13993postdep_objects_CXX=
13994predeps_CXX=
13995postdeps_CXX=
13996compiler_lib_search_path_CXX=
13997
13998cat > conftest.$ac_ext <<_LT_EOF
13999class Foo
14000{
14001public:
14002  Foo (void) { a = 0; }
14003private:
14004  int a;
14005};
14006_LT_EOF
14007
14008
14009_lt_libdeps_save_CFLAGS=$CFLAGS
14010case "$CC $CFLAGS " in #(
14011*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14012*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14013*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14014esac
14015
14016if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14017  (eval $ac_compile) 2>&5
14018  ac_status=$?
14019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020  test $ac_status = 0; }; then
14021  # Parse the compiler output and extract the necessary
14022  # objects, libraries and library flags.
14023
14024  # Sentinel used to keep track of whether or not we are before
14025  # the conftest object file.
14026  pre_test_object_deps_done=no
14027
14028  for p in `eval "$output_verbose_link_cmd"`; do
14029    case $prev$p in
14030
14031    -L* | -R* | -l*)
14032       # Some compilers place space between "-{L,R}" and the path.
14033       # Remove the space.
14034       if test x-L = "$p" ||
14035          test x-R = "$p"; then
14036	 prev=$p
14037	 continue
14038       fi
14039
14040       # Expand the sysroot to ease extracting the directories later.
14041       if test -z "$prev"; then
14042         case $p in
14043         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14044         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14045         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14046         esac
14047       fi
14048       case $p in
14049       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14050       esac
14051       if test no = "$pre_test_object_deps_done"; then
14052	 case $prev in
14053	 -L | -R)
14054	   # Internal compiler library paths should come after those
14055	   # provided the user.  The postdeps already come after the
14056	   # user supplied libs so there is no need to process them.
14057	   if test -z "$compiler_lib_search_path_CXX"; then
14058	     compiler_lib_search_path_CXX=$prev$p
14059	   else
14060	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14061	   fi
14062	   ;;
14063	 # The "-l" case would never come before the object being
14064	 # linked, so don't bother handling this case.
14065	 esac
14066       else
14067	 if test -z "$postdeps_CXX"; then
14068	   postdeps_CXX=$prev$p
14069	 else
14070	   postdeps_CXX="${postdeps_CXX} $prev$p"
14071	 fi
14072       fi
14073       prev=
14074       ;;
14075
14076    *.lto.$objext) ;; # Ignore GCC LTO objects
14077    *.$objext)
14078       # This assumes that the test object file only shows up
14079       # once in the compiler output.
14080       if test "$p" = "conftest.$objext"; then
14081	 pre_test_object_deps_done=yes
14082	 continue
14083       fi
14084
14085       if test no = "$pre_test_object_deps_done"; then
14086	 if test -z "$predep_objects_CXX"; then
14087	   predep_objects_CXX=$p
14088	 else
14089	   predep_objects_CXX="$predep_objects_CXX $p"
14090	 fi
14091       else
14092	 if test -z "$postdep_objects_CXX"; then
14093	   postdep_objects_CXX=$p
14094	 else
14095	   postdep_objects_CXX="$postdep_objects_CXX $p"
14096	 fi
14097       fi
14098       ;;
14099
14100    *) ;; # Ignore the rest.
14101
14102    esac
14103  done
14104
14105  # Clean up.
14106  rm -f a.out a.exe
14107else
14108  echo "libtool.m4: error: problem compiling CXX test program"
14109fi
14110
14111$RM -f confest.$objext
14112CFLAGS=$_lt_libdeps_save_CFLAGS
14113
14114# PORTME: override above test on systems where it is broken
14115case $host_os in
14116interix[3-9]*)
14117  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14118  # hack all around it, let's just trust "g++" to DTRT.
14119  predep_objects_CXX=
14120  postdep_objects_CXX=
14121  postdeps_CXX=
14122  ;;
14123esac
14124
14125
14126case " $postdeps_CXX " in
14127*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14128esac
14129 compiler_lib_search_dirs_CXX=
14130if test -n "${compiler_lib_search_path_CXX}"; then
14131 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14132fi
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164    lt_prog_compiler_wl_CXX=
14165lt_prog_compiler_pic_CXX=
14166lt_prog_compiler_static_CXX=
14167
14168
14169  # C++ specific cases for pic, static, wl, etc.
14170  if test yes = "$GXX"; then
14171    lt_prog_compiler_wl_CXX='-Wl,'
14172    lt_prog_compiler_static_CXX='-static'
14173
14174    case $host_os in
14175    aix*)
14176      # All AIX code is PIC.
14177      if test ia64 = "$host_cpu"; then
14178	# AIX 5 now supports IA64 processor
14179	lt_prog_compiler_static_CXX='-Bstatic'
14180      fi
14181      lt_prog_compiler_pic_CXX='-fPIC'
14182      ;;
14183
14184    amigaos*)
14185      case $host_cpu in
14186      powerpc)
14187            # see comment about AmigaOS4 .so support
14188            lt_prog_compiler_pic_CXX='-fPIC'
14189        ;;
14190      m68k)
14191            # FIXME: we need at least 68020 code to build shared libraries, but
14192            # adding the '-m68020' flag to GCC prevents building anything better,
14193            # like '-m68040'.
14194            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14195        ;;
14196      esac
14197      ;;
14198
14199    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14200      # PIC is the default for these OSes.
14201      ;;
14202    mingw* | cygwin* | os2* | pw32* | cegcc*)
14203      # This hack is so that the source file can tell whether it is being
14204      # built for inclusion in a dll (and should export symbols for example).
14205      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14206      # (--disable-auto-import) libraries
14207      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14208      case $host_os in
14209      os2*)
14210	lt_prog_compiler_static_CXX='$wl-static'
14211	;;
14212      esac
14213      ;;
14214    darwin* | rhapsody*)
14215      # PIC is the default on this platform
14216      # Common symbols not allowed in MH_DYLIB files
14217      lt_prog_compiler_pic_CXX='-fno-common'
14218      ;;
14219    *djgpp*)
14220      # DJGPP does not support shared libraries at all
14221      lt_prog_compiler_pic_CXX=
14222      ;;
14223    haiku*)
14224      # PIC is the default for Haiku.
14225      # The "-static" flag exists, but is broken.
14226      lt_prog_compiler_static_CXX=
14227      ;;
14228    interix[3-9]*)
14229      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14230      # Instead, we relocate shared libraries at runtime.
14231      ;;
14232    sysv4*MP*)
14233      if test -d /usr/nec; then
14234	lt_prog_compiler_pic_CXX=-Kconform_pic
14235      fi
14236      ;;
14237    hpux*)
14238      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14239      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14240      # sets the default TLS model and affects inlining.
14241      case $host_cpu in
14242      hppa*64*)
14243	;;
14244      *)
14245	lt_prog_compiler_pic_CXX='-fPIC'
14246	;;
14247      esac
14248      ;;
14249    *qnx* | *nto*)
14250      # QNX uses GNU C++, but need to define -shared option too, otherwise
14251      # it will coredump.
14252      lt_prog_compiler_pic_CXX='-fPIC -shared'
14253      ;;
14254    *)
14255      lt_prog_compiler_pic_CXX='-fPIC'
14256      ;;
14257    esac
14258  else
14259    case $host_os in
14260      aix[4-9]*)
14261	# All AIX code is PIC.
14262	if test ia64 = "$host_cpu"; then
14263	  # AIX 5 now supports IA64 processor
14264	  lt_prog_compiler_static_CXX='-Bstatic'
14265	else
14266	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14267	fi
14268	;;
14269      chorus*)
14270	case $cc_basename in
14271	cxch68*)
14272	  # Green Hills C++ Compiler
14273	  # _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"
14274	  ;;
14275	esac
14276	;;
14277      mingw* | cygwin* | os2* | pw32* | cegcc*)
14278	# This hack is so that the source file can tell whether it is being
14279	# built for inclusion in a dll (and should export symbols for example).
14280	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14281	;;
14282      dgux*)
14283	case $cc_basename in
14284	  ec++*)
14285	    lt_prog_compiler_pic_CXX='-KPIC'
14286	    ;;
14287	  ghcx*)
14288	    # Green Hills C++ Compiler
14289	    lt_prog_compiler_pic_CXX='-pic'
14290	    ;;
14291	  *)
14292	    ;;
14293	esac
14294	;;
14295      freebsd* | dragonfly*)
14296	# FreeBSD uses GNU C++
14297	;;
14298      hpux9* | hpux10* | hpux11*)
14299	case $cc_basename in
14300	  CC*)
14301	    lt_prog_compiler_wl_CXX='-Wl,'
14302	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14303	    if test ia64 != "$host_cpu"; then
14304	      lt_prog_compiler_pic_CXX='+Z'
14305	    fi
14306	    ;;
14307	  aCC*)
14308	    lt_prog_compiler_wl_CXX='-Wl,'
14309	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14310	    case $host_cpu in
14311	    hppa*64*|ia64*)
14312	      # +Z the default
14313	      ;;
14314	    *)
14315	      lt_prog_compiler_pic_CXX='+Z'
14316	      ;;
14317	    esac
14318	    ;;
14319	  *)
14320	    ;;
14321	esac
14322	;;
14323      interix*)
14324	# This is c89, which is MS Visual C++ (no shared libs)
14325	# Anyone wants to do a port?
14326	;;
14327      irix5* | irix6* | nonstopux*)
14328	case $cc_basename in
14329	  CC*)
14330	    lt_prog_compiler_wl_CXX='-Wl,'
14331	    lt_prog_compiler_static_CXX='-non_shared'
14332	    # CC pic flag -KPIC is the default.
14333	    ;;
14334	  *)
14335	    ;;
14336	esac
14337	;;
14338      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14339	case $cc_basename in
14340	  KCC*)
14341	    # KAI C++ Compiler
14342	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14343	    lt_prog_compiler_pic_CXX='-fPIC'
14344	    ;;
14345	  ecpc* )
14346	    # old Intel C++ for x86_64, which still supported -KPIC.
14347	    lt_prog_compiler_wl_CXX='-Wl,'
14348	    lt_prog_compiler_pic_CXX='-KPIC'
14349	    lt_prog_compiler_static_CXX='-static'
14350	    ;;
14351	  icpc* )
14352	    # Intel C++, used to be incompatible with GCC.
14353	    # ICC 10 doesn't accept -KPIC any more.
14354	    lt_prog_compiler_wl_CXX='-Wl,'
14355	    lt_prog_compiler_pic_CXX='-fPIC'
14356	    lt_prog_compiler_static_CXX='-static'
14357	    ;;
14358	  pgCC* | pgcpp*)
14359	    # Portland Group C++ compiler
14360	    lt_prog_compiler_wl_CXX='-Wl,'
14361	    lt_prog_compiler_pic_CXX='-fpic'
14362	    lt_prog_compiler_static_CXX='-Bstatic'
14363	    ;;
14364	  cxx*)
14365	    # Compaq C++
14366	    # Make sure the PIC flag is empty.  It appears that all Alpha
14367	    # Linux and Compaq Tru64 Unix objects are PIC.
14368	    lt_prog_compiler_pic_CXX=
14369	    lt_prog_compiler_static_CXX='-non_shared'
14370	    ;;
14371	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14372	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14373	    lt_prog_compiler_wl_CXX='-Wl,'
14374	    lt_prog_compiler_pic_CXX='-qpic'
14375	    lt_prog_compiler_static_CXX='-qstaticlink'
14376	    ;;
14377	  *)
14378	    case `$CC -V 2>&1 | sed 5q` in
14379	    *Sun\ C*)
14380	      # Sun C++ 5.9
14381	      lt_prog_compiler_pic_CXX='-KPIC'
14382	      lt_prog_compiler_static_CXX='-Bstatic'
14383	      lt_prog_compiler_wl_CXX='-Qoption ld '
14384	      ;;
14385	    esac
14386	    ;;
14387	esac
14388	;;
14389      lynxos*)
14390	;;
14391      m88k*)
14392	;;
14393      mvs*)
14394	case $cc_basename in
14395	  cxx*)
14396	    lt_prog_compiler_pic_CXX='-W c,exportall'
14397	    ;;
14398	  *)
14399	    ;;
14400	esac
14401	;;
14402      netbsd*)
14403	;;
14404      *qnx* | *nto*)
14405        # QNX uses GNU C++, but need to define -shared option too, otherwise
14406        # it will coredump.
14407        lt_prog_compiler_pic_CXX='-fPIC -shared'
14408        ;;
14409      osf3* | osf4* | osf5*)
14410	case $cc_basename in
14411	  KCC*)
14412	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14413	    ;;
14414	  RCC*)
14415	    # Rational C++ 2.4.1
14416	    lt_prog_compiler_pic_CXX='-pic'
14417	    ;;
14418	  cxx*)
14419	    # Digital/Compaq C++
14420	    lt_prog_compiler_wl_CXX='-Wl,'
14421	    # Make sure the PIC flag is empty.  It appears that all Alpha
14422	    # Linux and Compaq Tru64 Unix objects are PIC.
14423	    lt_prog_compiler_pic_CXX=
14424	    lt_prog_compiler_static_CXX='-non_shared'
14425	    ;;
14426	  *)
14427	    ;;
14428	esac
14429	;;
14430      psos*)
14431	;;
14432      solaris*)
14433	case $cc_basename in
14434	  CC* | sunCC*)
14435	    # Sun C++ 4.2, 5.x and Centerline C++
14436	    lt_prog_compiler_pic_CXX='-KPIC'
14437	    lt_prog_compiler_static_CXX='-Bstatic'
14438	    lt_prog_compiler_wl_CXX='-Qoption ld '
14439	    ;;
14440	  gcx*)
14441	    # Green Hills C++ Compiler
14442	    lt_prog_compiler_pic_CXX='-PIC'
14443	    ;;
14444	  *)
14445	    ;;
14446	esac
14447	;;
14448      sunos4*)
14449	case $cc_basename in
14450	  CC*)
14451	    # Sun C++ 4.x
14452	    lt_prog_compiler_pic_CXX='-pic'
14453	    lt_prog_compiler_static_CXX='-Bstatic'
14454	    ;;
14455	  lcc*)
14456	    # Lucid
14457	    lt_prog_compiler_pic_CXX='-pic'
14458	    ;;
14459	  *)
14460	    ;;
14461	esac
14462	;;
14463      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14464	case $cc_basename in
14465	  CC*)
14466	    lt_prog_compiler_wl_CXX='-Wl,'
14467	    lt_prog_compiler_pic_CXX='-KPIC'
14468	    lt_prog_compiler_static_CXX='-Bstatic'
14469	    ;;
14470	esac
14471	;;
14472      tandem*)
14473	case $cc_basename in
14474	  NCC*)
14475	    # NonStop-UX NCC 3.20
14476	    lt_prog_compiler_pic_CXX='-KPIC'
14477	    ;;
14478	  *)
14479	    ;;
14480	esac
14481	;;
14482      vxworks*)
14483	;;
14484      *)
14485	lt_prog_compiler_can_build_shared_CXX=no
14486	;;
14487    esac
14488  fi
14489
14490case $host_os in
14491  # For platforms that do not support PIC, -DPIC is meaningless:
14492  *djgpp*)
14493    lt_prog_compiler_pic_CXX=
14494    ;;
14495  *)
14496    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14497    ;;
14498esac
14499
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14501$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14502if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14503  $as_echo_n "(cached) " >&6
14504else
14505  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14508$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14509lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14510
14511#
14512# Check to make sure the PIC flag actually works.
14513#
14514if test -n "$lt_prog_compiler_pic_CXX"; then
14515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14516$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14517if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14518  $as_echo_n "(cached) " >&6
14519else
14520  lt_cv_prog_compiler_pic_works_CXX=no
14521   ac_outfile=conftest.$ac_objext
14522   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14524   # Insert the option either (1) after the last *FLAGS variable, or
14525   # (2) before a word containing "conftest.", or (3) at the end.
14526   # Note that $ac_compile itself does not contain backslashes and begins
14527   # with a dollar sign (not a hyphen), so the echo should work correctly.
14528   # The option is referenced via a variable to avoid confusing sed.
14529   lt_compile=`echo "$ac_compile" | $SED \
14530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532   -e 's:$: $lt_compiler_flag:'`
14533   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14534   (eval "$lt_compile" 2>conftest.err)
14535   ac_status=$?
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   if (exit $ac_status) && test -s "$ac_outfile"; then
14539     # The compiler can only warn and ignore the option if not recognized
14540     # So say no if there are warnings other than the usual output.
14541     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14542     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14543     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14544       lt_cv_prog_compiler_pic_works_CXX=yes
14545     fi
14546   fi
14547   $RM conftest*
14548
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14551$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14552
14553if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14554    case $lt_prog_compiler_pic_CXX in
14555     "" | " "*) ;;
14556     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14557     esac
14558else
14559    lt_prog_compiler_pic_CXX=
14560     lt_prog_compiler_can_build_shared_CXX=no
14561fi
14562
14563fi
14564
14565
14566
14567
14568
14569#
14570# Check to make sure the static flag actually works.
14571#
14572wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14574$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14575if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14576  $as_echo_n "(cached) " >&6
14577else
14578  lt_cv_prog_compiler_static_works_CXX=no
14579   save_LDFLAGS=$LDFLAGS
14580   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14581   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14582   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14583     # The linker can only warn and ignore the option if not recognized
14584     # So say no if there are warnings
14585     if test -s conftest.err; then
14586       # Append any errors to the config.log.
14587       cat conftest.err 1>&5
14588       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14589       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14590       if diff conftest.exp conftest.er2 >/dev/null; then
14591         lt_cv_prog_compiler_static_works_CXX=yes
14592       fi
14593     else
14594       lt_cv_prog_compiler_static_works_CXX=yes
14595     fi
14596   fi
14597   $RM -r conftest*
14598   LDFLAGS=$save_LDFLAGS
14599
14600fi
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14602$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14603
14604if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14605    :
14606else
14607    lt_prog_compiler_static_CXX=
14608fi
14609
14610
14611
14612
14613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14615if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14616  $as_echo_n "(cached) " >&6
14617else
14618  lt_cv_prog_compiler_c_o_CXX=no
14619   $RM -r conftest 2>/dev/null
14620   mkdir conftest
14621   cd conftest
14622   mkdir out
14623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624
14625   lt_compiler_flag="-o out/conftest2.$ac_objext"
14626   # Insert the option either (1) after the last *FLAGS variable, or
14627   # (2) before a word containing "conftest.", or (3) at the end.
14628   # Note that $ac_compile itself does not contain backslashes and begins
14629   # with a dollar sign (not a hyphen), so the echo should work correctly.
14630   lt_compile=`echo "$ac_compile" | $SED \
14631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14633   -e 's:$: $lt_compiler_flag:'`
14634   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14635   (eval "$lt_compile" 2>out/conftest.err)
14636   ac_status=$?
14637   cat out/conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14640   then
14641     # The compiler can only warn and ignore the option if not recognized
14642     # So say no if there are warnings
14643     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14644     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14645     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14646       lt_cv_prog_compiler_c_o_CXX=yes
14647     fi
14648   fi
14649   chmod u+w . 2>&5
14650   $RM conftest*
14651   # SGI C++ compiler will create directory out/ii_files/ for
14652   # template instantiation
14653   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14654   $RM out/* && rmdir out
14655   cd ..
14656   $RM -r conftest
14657   $RM conftest*
14658
14659fi
14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14661$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14662
14663
14664
14665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14666$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14667if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14668  $as_echo_n "(cached) " >&6
14669else
14670  lt_cv_prog_compiler_c_o_CXX=no
14671   $RM -r conftest 2>/dev/null
14672   mkdir conftest
14673   cd conftest
14674   mkdir out
14675   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14676
14677   lt_compiler_flag="-o out/conftest2.$ac_objext"
14678   # Insert the option either (1) after the last *FLAGS variable, or
14679   # (2) before a word containing "conftest.", or (3) at the end.
14680   # Note that $ac_compile itself does not contain backslashes and begins
14681   # with a dollar sign (not a hyphen), so the echo should work correctly.
14682   lt_compile=`echo "$ac_compile" | $SED \
14683   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14684   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14685   -e 's:$: $lt_compiler_flag:'`
14686   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14687   (eval "$lt_compile" 2>out/conftest.err)
14688   ac_status=$?
14689   cat out/conftest.err >&5
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14692   then
14693     # The compiler can only warn and ignore the option if not recognized
14694     # So say no if there are warnings
14695     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14696     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14697     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14698       lt_cv_prog_compiler_c_o_CXX=yes
14699     fi
14700   fi
14701   chmod u+w . 2>&5
14702   $RM conftest*
14703   # SGI C++ compiler will create directory out/ii_files/ for
14704   # template instantiation
14705   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14706   $RM out/* && rmdir out
14707   cd ..
14708   $RM -r conftest
14709   $RM conftest*
14710
14711fi
14712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14713$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14714
14715
14716
14717
14718hard_links=nottested
14719if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14720  # do not overwrite the value of need_locks provided by the user
14721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14722$as_echo_n "checking if we can lock with hard links... " >&6; }
14723  hard_links=yes
14724  $RM conftest*
14725  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726  touch conftest.a
14727  ln conftest.a conftest.b 2>&5 || hard_links=no
14728  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14730$as_echo "$hard_links" >&6; }
14731  if test no = "$hard_links"; then
14732    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14733$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14734    need_locks=warn
14735  fi
14736else
14737  need_locks=no
14738fi
14739
14740
14741
14742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14743$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14744
14745  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14746  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14747  case $host_os in
14748  aix[4-9]*)
14749    # If we're using GNU nm, then we don't want the "-C" option.
14750    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14751    # Without the "-l" option, or with the "-B" option, AIX nm treats
14752    # weak defined symbols like other global defined symbols, whereas
14753    # GNU nm marks them as "W".
14754    # While the 'weak' keyword is ignored in the Export File, we need
14755    # it in the Import File for the 'aix-soname' feature, so we have
14756    # to replace the "-B" option with "-P" for AIX nm.
14757    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14758      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14759    else
14760      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14761    fi
14762    ;;
14763  pw32*)
14764    export_symbols_cmds_CXX=$ltdll_cmds
14765    ;;
14766  cygwin* | mingw* | cegcc*)
14767    case $cc_basename in
14768    cl*)
14769      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14770      ;;
14771    *)
14772      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14773      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14774      ;;
14775    esac
14776    ;;
14777  *)
14778    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14779    ;;
14780  esac
14781
14782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14783$as_echo "$ld_shlibs_CXX" >&6; }
14784test no = "$ld_shlibs_CXX" && can_build_shared=no
14785
14786with_gnu_ld_CXX=$with_gnu_ld
14787
14788
14789
14790
14791
14792
14793#
14794# Do we need to explicitly link libc?
14795#
14796case "x$archive_cmds_need_lc_CXX" in
14797x|xyes)
14798  # Assume -lc should be added
14799  archive_cmds_need_lc_CXX=yes
14800
14801  if test yes,yes = "$GCC,$enable_shared"; then
14802    case $archive_cmds_CXX in
14803    *'~'*)
14804      # FIXME: we may have to deal with multi-command sequences.
14805      ;;
14806    '$CC '*)
14807      # Test whether the compiler implicitly links with -lc since on some
14808      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14809      # to ld, don't add -lc before -lgcc.
14810      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14811$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14812if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14813  $as_echo_n "(cached) " >&6
14814else
14815  $RM conftest*
14816	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817
14818	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14819  (eval $ac_compile) 2>&5
14820  ac_status=$?
14821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822  test $ac_status = 0; } 2>conftest.err; then
14823	  soname=conftest
14824	  lib=conftest
14825	  libobjs=conftest.$ac_objext
14826	  deplibs=
14827	  wl=$lt_prog_compiler_wl_CXX
14828	  pic_flag=$lt_prog_compiler_pic_CXX
14829	  compiler_flags=-v
14830	  linker_flags=-v
14831	  verstring=
14832	  output_objdir=.
14833	  libname=conftest
14834	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14835	  allow_undefined_flag_CXX=
14836	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14837  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14838  ac_status=$?
14839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14840  test $ac_status = 0; }
14841	  then
14842	    lt_cv_archive_cmds_need_lc_CXX=no
14843	  else
14844	    lt_cv_archive_cmds_need_lc_CXX=yes
14845	  fi
14846	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14847	else
14848	  cat conftest.err 1>&5
14849	fi
14850	$RM conftest*
14851
14852fi
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14854$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14855      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14856      ;;
14857    esac
14858  fi
14859  ;;
14860esac
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14924$as_echo_n "checking dynamic linker characteristics... " >&6; }
14925
14926library_names_spec=
14927libname_spec='lib$name'
14928soname_spec=
14929shrext_cmds=.so
14930postinstall_cmds=
14931postuninstall_cmds=
14932finish_cmds=
14933finish_eval=
14934shlibpath_var=
14935shlibpath_overrides_runpath=unknown
14936version_type=none
14937dynamic_linker="$host_os ld.so"
14938sys_lib_dlsearch_path_spec="/lib /usr/lib"
14939need_lib_prefix=unknown
14940hardcode_into_libs=no
14941
14942# when you set need_version to no, make sure it does not cause -set_version
14943# flags to be left without arguments
14944need_version=unknown
14945
14946
14947
14948case $host_os in
14949aix3*)
14950  version_type=linux # correct to gnu/linux during the next big refactor
14951  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14952  shlibpath_var=LIBPATH
14953
14954  # AIX 3 has no versioning support, so we append a major version to the name.
14955  soname_spec='$libname$release$shared_ext$major'
14956  ;;
14957
14958aix[4-9]*)
14959  version_type=linux # correct to gnu/linux during the next big refactor
14960  need_lib_prefix=no
14961  need_version=no
14962  hardcode_into_libs=yes
14963  if test ia64 = "$host_cpu"; then
14964    # AIX 5 supports IA64
14965    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14966    shlibpath_var=LD_LIBRARY_PATH
14967  else
14968    # With GCC up to 2.95.x, collect2 would create an import file
14969    # for dependence libraries.  The import file would start with
14970    # the line '#! .'.  This would cause the generated library to
14971    # depend on '.', always an invalid library.  This was fixed in
14972    # development snapshots of GCC prior to 3.0.
14973    case $host_os in
14974      aix4 | aix4.[01] | aix4.[01].*)
14975      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14976	   echo ' yes '
14977	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14978	:
14979      else
14980	can_build_shared=no
14981      fi
14982      ;;
14983    esac
14984    # Using Import Files as archive members, it is possible to support
14985    # filename-based versioning of shared library archives on AIX. While
14986    # this would work for both with and without runtime linking, it will
14987    # prevent static linking of such archives. So we do filename-based
14988    # shared library versioning with .so extension only, which is used
14989    # when both runtime linking and shared linking is enabled.
14990    # Unfortunately, runtime linking may impact performance, so we do
14991    # not want this to be the default eventually. Also, we use the
14992    # versioned .so libs for executables only if there is the -brtl
14993    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14994    # To allow for filename-based versioning support, we need to create
14995    # libNAME.so.V as an archive file, containing:
14996    # *) an Import File, referring to the versioned filename of the
14997    #    archive as well as the shared archive member, telling the
14998    #    bitwidth (32 or 64) of that shared object, and providing the
14999    #    list of exported symbols of that shared object, eventually
15000    #    decorated with the 'weak' keyword
15001    # *) the shared object with the F_LOADONLY flag set, to really avoid
15002    #    it being seen by the linker.
15003    # At run time we better use the real file rather than another symlink,
15004    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15005
15006    case $with_aix_soname,$aix_use_runtimelinking in
15007    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15008    # soname into executable. Probably we can add versioning support to
15009    # collect2, so additional links can be useful in future.
15010    aix,yes) # traditional libtool
15011      dynamic_linker='AIX unversionable lib.so'
15012      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15013      # instead of lib<name>.a to let people know that these are not
15014      # typical AIX shared libraries.
15015      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15016      ;;
15017    aix,no) # traditional AIX only
15018      dynamic_linker='AIX lib.a(lib.so.V)'
15019      # We preserve .a as extension for shared libraries through AIX4.2
15020      # and later when we are not doing run time linking.
15021      library_names_spec='$libname$release.a $libname.a'
15022      soname_spec='$libname$release$shared_ext$major'
15023      ;;
15024    svr4,*) # full svr4 only
15025      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15026      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15027      # We do not specify a path in Import Files, so LIBPATH fires.
15028      shlibpath_overrides_runpath=yes
15029      ;;
15030    *,yes) # both, prefer svr4
15031      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15032      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15033      # unpreferred sharedlib libNAME.a needs extra handling
15034      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15035      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15036      # We do not specify a path in Import Files, so LIBPATH fires.
15037      shlibpath_overrides_runpath=yes
15038      ;;
15039    *,no) # both, prefer aix
15040      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15041      library_names_spec='$libname$release.a $libname.a'
15042      soname_spec='$libname$release$shared_ext$major'
15043      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15044      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15045      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15046      ;;
15047    esac
15048    shlibpath_var=LIBPATH
15049  fi
15050  ;;
15051
15052amigaos*)
15053  case $host_cpu in
15054  powerpc)
15055    # Since July 2007 AmigaOS4 officially supports .so libraries.
15056    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15057    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15058    ;;
15059  m68k)
15060    library_names_spec='$libname.ixlibrary $libname.a'
15061    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15062    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15063    ;;
15064  esac
15065  ;;
15066
15067beos*)
15068  library_names_spec='$libname$shared_ext'
15069  dynamic_linker="$host_os ld.so"
15070  shlibpath_var=LIBRARY_PATH
15071  ;;
15072
15073bsdi[45]*)
15074  version_type=linux # correct to gnu/linux during the next big refactor
15075  need_version=no
15076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15077  soname_spec='$libname$release$shared_ext$major'
15078  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15079  shlibpath_var=LD_LIBRARY_PATH
15080  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15081  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15082  # the default ld.so.conf also contains /usr/contrib/lib and
15083  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15084  # libtool to hard-code these into programs
15085  ;;
15086
15087cygwin* | mingw* | pw32* | cegcc*)
15088  version_type=windows
15089  shrext_cmds=.dll
15090  need_version=no
15091  need_lib_prefix=no
15092
15093  case $GCC,$cc_basename in
15094  yes,*)
15095    # gcc
15096    library_names_spec='$libname.dll.a'
15097    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15098    postinstall_cmds='base_file=`basename \$file`~
15099      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15100      dldir=$destdir/`dirname \$dlpath`~
15101      test -d \$dldir || mkdir -p \$dldir~
15102      $install_prog $dir/$dlname \$dldir/$dlname~
15103      chmod a+x \$dldir/$dlname~
15104      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15105        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15106      fi'
15107    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15108      dlpath=$dir/\$dldll~
15109       $RM \$dlpath'
15110    shlibpath_overrides_runpath=yes
15111
15112    case $host_os in
15113    cygwin*)
15114      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15115      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15116
15117      ;;
15118    mingw* | cegcc*)
15119      # MinGW DLLs use traditional 'lib' prefix
15120      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15121      ;;
15122    pw32*)
15123      # pw32 DLLs use 'pw' prefix rather than 'lib'
15124      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15125      ;;
15126    esac
15127    dynamic_linker='Win32 ld.exe'
15128    ;;
15129
15130  *,cl*)
15131    # Native MSVC
15132    libname_spec='$name'
15133    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15134    library_names_spec='$libname.dll.lib'
15135
15136    case $build_os in
15137    mingw*)
15138      sys_lib_search_path_spec=
15139      lt_save_ifs=$IFS
15140      IFS=';'
15141      for lt_path in $LIB
15142      do
15143        IFS=$lt_save_ifs
15144        # Let DOS variable expansion print the short 8.3 style file name.
15145        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15146        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15147      done
15148      IFS=$lt_save_ifs
15149      # Convert to MSYS style.
15150      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15151      ;;
15152    cygwin*)
15153      # Convert to unix form, then to dos form, then back to unix form
15154      # but this time dos style (no spaces!) so that the unix form looks
15155      # like /cygdrive/c/PROGRA~1:/cygdr...
15156      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15157      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15158      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15159      ;;
15160    *)
15161      sys_lib_search_path_spec=$LIB
15162      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15163        # It is most probably a Windows format PATH.
15164        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15165      else
15166        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15167      fi
15168      # FIXME: find the short name or the path components, as spaces are
15169      # common. (e.g. "Program Files" -> "PROGRA~1")
15170      ;;
15171    esac
15172
15173    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15174    postinstall_cmds='base_file=`basename \$file`~
15175      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15176      dldir=$destdir/`dirname \$dlpath`~
15177      test -d \$dldir || mkdir -p \$dldir~
15178      $install_prog $dir/$dlname \$dldir/$dlname'
15179    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15180      dlpath=$dir/\$dldll~
15181       $RM \$dlpath'
15182    shlibpath_overrides_runpath=yes
15183    dynamic_linker='Win32 link.exe'
15184    ;;
15185
15186  *)
15187    # Assume MSVC wrapper
15188    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15189    dynamic_linker='Win32 ld.exe'
15190    ;;
15191  esac
15192  # FIXME: first we should search . and the directory the executable is in
15193  shlibpath_var=PATH
15194  ;;
15195
15196darwin* | rhapsody*)
15197  dynamic_linker="$host_os dyld"
15198  version_type=darwin
15199  need_lib_prefix=no
15200  need_version=no
15201  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15202  soname_spec='$libname$release$major$shared_ext'
15203  shlibpath_overrides_runpath=yes
15204  shlibpath_var=DYLD_LIBRARY_PATH
15205  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15206
15207  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15208  ;;
15209
15210dgux*)
15211  version_type=linux # correct to gnu/linux during the next big refactor
15212  need_lib_prefix=no
15213  need_version=no
15214  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15215  soname_spec='$libname$release$shared_ext$major'
15216  shlibpath_var=LD_LIBRARY_PATH
15217  ;;
15218
15219freebsd* | dragonfly*)
15220  # DragonFly does not have aout.  When/if they implement a new
15221  # versioning mechanism, adjust this.
15222  if test -x /usr/bin/objformat; then
15223    objformat=`/usr/bin/objformat`
15224  else
15225    case $host_os in
15226    freebsd[23].*) objformat=aout ;;
15227    *) objformat=elf ;;
15228    esac
15229  fi
15230  version_type=freebsd-$objformat
15231  case $version_type in
15232    freebsd-elf*)
15233      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15234      soname_spec='$libname$release$shared_ext$major'
15235      need_version=no
15236      need_lib_prefix=no
15237      ;;
15238    freebsd-*)
15239      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15240      need_version=yes
15241      ;;
15242  esac
15243  shlibpath_var=LD_LIBRARY_PATH
15244  case $host_os in
15245  freebsd2.*)
15246    shlibpath_overrides_runpath=yes
15247    ;;
15248  freebsd3.[01]* | freebsdelf3.[01]*)
15249    shlibpath_overrides_runpath=yes
15250    hardcode_into_libs=yes
15251    ;;
15252  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15253  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15254    shlibpath_overrides_runpath=no
15255    hardcode_into_libs=yes
15256    ;;
15257  *) # from 4.6 on, and DragonFly
15258    shlibpath_overrides_runpath=yes
15259    hardcode_into_libs=yes
15260    ;;
15261  esac
15262  ;;
15263
15264haiku*)
15265  version_type=linux # correct to gnu/linux during the next big refactor
15266  need_lib_prefix=no
15267  need_version=no
15268  dynamic_linker="$host_os runtime_loader"
15269  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15270  soname_spec='$libname$release$shared_ext$major'
15271  shlibpath_var=LIBRARY_PATH
15272  shlibpath_overrides_runpath=no
15273  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15274  hardcode_into_libs=yes
15275  ;;
15276
15277hpux9* | hpux10* | hpux11*)
15278  # Give a soname corresponding to the major version so that dld.sl refuses to
15279  # link against other versions.
15280  version_type=sunos
15281  need_lib_prefix=no
15282  need_version=no
15283  case $host_cpu in
15284  ia64*)
15285    shrext_cmds='.so'
15286    hardcode_into_libs=yes
15287    dynamic_linker="$host_os dld.so"
15288    shlibpath_var=LD_LIBRARY_PATH
15289    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15290    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15291    soname_spec='$libname$release$shared_ext$major'
15292    if test 32 = "$HPUX_IA64_MODE"; then
15293      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15294      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15295    else
15296      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15297      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15298    fi
15299    ;;
15300  hppa*64*)
15301    shrext_cmds='.sl'
15302    hardcode_into_libs=yes
15303    dynamic_linker="$host_os dld.sl"
15304    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15305    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15306    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15307    soname_spec='$libname$release$shared_ext$major'
15308    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15309    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15310    ;;
15311  *)
15312    shrext_cmds='.sl'
15313    dynamic_linker="$host_os dld.sl"
15314    shlibpath_var=SHLIB_PATH
15315    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15316    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15317    soname_spec='$libname$release$shared_ext$major'
15318    ;;
15319  esac
15320  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15321  postinstall_cmds='chmod 555 $lib'
15322  # or fails outright, so override atomically:
15323  install_override_mode=555
15324  ;;
15325
15326interix[3-9]*)
15327  version_type=linux # correct to gnu/linux during the next big refactor
15328  need_lib_prefix=no
15329  need_version=no
15330  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15331  soname_spec='$libname$release$shared_ext$major'
15332  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15333  shlibpath_var=LD_LIBRARY_PATH
15334  shlibpath_overrides_runpath=no
15335  hardcode_into_libs=yes
15336  ;;
15337
15338irix5* | irix6* | nonstopux*)
15339  case $host_os in
15340    nonstopux*) version_type=nonstopux ;;
15341    *)
15342	if test yes = "$lt_cv_prog_gnu_ld"; then
15343		version_type=linux # correct to gnu/linux during the next big refactor
15344	else
15345		version_type=irix
15346	fi ;;
15347  esac
15348  need_lib_prefix=no
15349  need_version=no
15350  soname_spec='$libname$release$shared_ext$major'
15351  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15352  case $host_os in
15353  irix5* | nonstopux*)
15354    libsuff= shlibsuff=
15355    ;;
15356  *)
15357    case $LD in # libtool.m4 will add one of these switches to LD
15358    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15359      libsuff= shlibsuff= libmagic=32-bit;;
15360    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15361      libsuff=32 shlibsuff=N32 libmagic=N32;;
15362    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15363      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15364    *) libsuff= shlibsuff= libmagic=never-match;;
15365    esac
15366    ;;
15367  esac
15368  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15369  shlibpath_overrides_runpath=no
15370  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15371  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15372  hardcode_into_libs=yes
15373  ;;
15374
15375# No shared lib support for Linux oldld, aout, or coff.
15376linux*oldld* | linux*aout* | linux*coff*)
15377  dynamic_linker=no
15378  ;;
15379
15380linux*android*)
15381  version_type=none # Android doesn't support versioned libraries.
15382  need_lib_prefix=no
15383  need_version=no
15384  library_names_spec='$libname$release$shared_ext'
15385  soname_spec='$libname$release$shared_ext'
15386  finish_cmds=
15387  shlibpath_var=LD_LIBRARY_PATH
15388  shlibpath_overrides_runpath=yes
15389
15390  # This implies no fast_install, which is unacceptable.
15391  # Some rework will be needed to allow for fast_install
15392  # before this can be enabled.
15393  hardcode_into_libs=yes
15394
15395  dynamic_linker='Android linker'
15396  # Don't embed -rpath directories since the linker doesn't support them.
15397  hardcode_libdir_flag_spec_CXX='-L$libdir'
15398  ;;
15399
15400# This must be glibc/ELF.
15401linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15402  version_type=linux # correct to gnu/linux during the next big refactor
15403  need_lib_prefix=no
15404  need_version=no
15405  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15406  soname_spec='$libname$release$shared_ext$major'
15407  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15408  shlibpath_var=LD_LIBRARY_PATH
15409  shlibpath_overrides_runpath=no
15410
15411  # Some binutils ld are patched to set DT_RUNPATH
15412  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15413  $as_echo_n "(cached) " >&6
15414else
15415  lt_cv_shlibpath_overrides_runpath=no
15416    save_LDFLAGS=$LDFLAGS
15417    save_libdir=$libdir
15418    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15419	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15420    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421/* end confdefs.h.  */
15422
15423int
15424main ()
15425{
15426
15427  ;
15428  return 0;
15429}
15430_ACEOF
15431if ac_fn_cxx_try_link "$LINENO"; then :
15432  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15433  lt_cv_shlibpath_overrides_runpath=yes
15434fi
15435fi
15436rm -f core conftest.err conftest.$ac_objext \
15437    conftest$ac_exeext conftest.$ac_ext
15438    LDFLAGS=$save_LDFLAGS
15439    libdir=$save_libdir
15440
15441fi
15442
15443  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15444
15445  # This implies no fast_install, which is unacceptable.
15446  # Some rework will be needed to allow for fast_install
15447  # before this can be enabled.
15448  hardcode_into_libs=yes
15449
15450  # Ideally, we could use ldconfig to report *all* directores which are
15451  # searched for libraries, however this is still not possible.  Aside from not
15452  # being certain /sbin/ldconfig is available, command
15453  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15454  # even though it is searched at run-time.  Try to do the best guess by
15455  # appending ld.so.conf contents (and includes) to the search path.
15456  if test -f /etc/ld.so.conf; then
15457    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' ' '`
15458    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15459  fi
15460
15461  # We used to test for /lib/ld.so.1 and disable shared libraries on
15462  # powerpc, because MkLinux only supported shared libraries with the
15463  # GNU dynamic linker.  Since this was broken with cross compilers,
15464  # most powerpc-linux boxes support dynamic linking these days and
15465  # people can always --disable-shared, the test was removed, and we
15466  # assume the GNU/Linux dynamic linker is in use.
15467  dynamic_linker='GNU/Linux ld.so'
15468  ;;
15469
15470netbsd*)
15471  version_type=sunos
15472  need_lib_prefix=no
15473  need_version=no
15474  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15475    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15476    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15477    dynamic_linker='NetBSD (a.out) ld.so'
15478  else
15479    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15480    soname_spec='$libname$release$shared_ext$major'
15481    dynamic_linker='NetBSD ld.elf_so'
15482  fi
15483  shlibpath_var=LD_LIBRARY_PATH
15484  shlibpath_overrides_runpath=yes
15485  hardcode_into_libs=yes
15486  ;;
15487
15488newsos6)
15489  version_type=linux # correct to gnu/linux during the next big refactor
15490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15491  shlibpath_var=LD_LIBRARY_PATH
15492  shlibpath_overrides_runpath=yes
15493  ;;
15494
15495*nto* | *qnx*)
15496  version_type=qnx
15497  need_lib_prefix=no
15498  need_version=no
15499  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15500  soname_spec='$libname$release$shared_ext$major'
15501  shlibpath_var=LD_LIBRARY_PATH
15502  shlibpath_overrides_runpath=no
15503  hardcode_into_libs=yes
15504  dynamic_linker='ldqnx.so'
15505  ;;
15506
15507openbsd* | bitrig*)
15508  version_type=sunos
15509  sys_lib_dlsearch_path_spec=/usr/lib
15510  need_lib_prefix=no
15511  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15512    need_version=no
15513  else
15514    need_version=yes
15515  fi
15516  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15517  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15518  shlibpath_var=LD_LIBRARY_PATH
15519  shlibpath_overrides_runpath=yes
15520  ;;
15521
15522os2*)
15523  libname_spec='$name'
15524  version_type=windows
15525  shrext_cmds=.dll
15526  need_version=no
15527  need_lib_prefix=no
15528  # OS/2 can only load a DLL with a base name of 8 characters or less.
15529  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15530    v=$($ECHO $release$versuffix | tr -d .-);
15531    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15532    $ECHO $n$v`$shared_ext'
15533  library_names_spec='${libname}_dll.$libext'
15534  dynamic_linker='OS/2 ld.exe'
15535  shlibpath_var=BEGINLIBPATH
15536  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15537  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15538  postinstall_cmds='base_file=`basename \$file`~
15539    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15540    dldir=$destdir/`dirname \$dlpath`~
15541    test -d \$dldir || mkdir -p \$dldir~
15542    $install_prog $dir/$dlname \$dldir/$dlname~
15543    chmod a+x \$dldir/$dlname~
15544    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15545      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15546    fi'
15547  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15548    dlpath=$dir/\$dldll~
15549    $RM \$dlpath'
15550  ;;
15551
15552osf3* | osf4* | osf5*)
15553  version_type=osf
15554  need_lib_prefix=no
15555  need_version=no
15556  soname_spec='$libname$release$shared_ext$major'
15557  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15558  shlibpath_var=LD_LIBRARY_PATH
15559  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15560  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15561  ;;
15562
15563rdos*)
15564  dynamic_linker=no
15565  ;;
15566
15567solaris*)
15568  version_type=linux # correct to gnu/linux during the next big refactor
15569  need_lib_prefix=no
15570  need_version=no
15571  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15572  soname_spec='$libname$release$shared_ext$major'
15573  shlibpath_var=LD_LIBRARY_PATH
15574  shlibpath_overrides_runpath=yes
15575  hardcode_into_libs=yes
15576  # ldd complains unless libraries are executable
15577  postinstall_cmds='chmod +x $lib'
15578  ;;
15579
15580sunos4*)
15581  version_type=sunos
15582  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15583  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15584  shlibpath_var=LD_LIBRARY_PATH
15585  shlibpath_overrides_runpath=yes
15586  if test yes = "$with_gnu_ld"; then
15587    need_lib_prefix=no
15588  fi
15589  need_version=yes
15590  ;;
15591
15592sysv4 | sysv4.3*)
15593  version_type=linux # correct to gnu/linux during the next big refactor
15594  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15595  soname_spec='$libname$release$shared_ext$major'
15596  shlibpath_var=LD_LIBRARY_PATH
15597  case $host_vendor in
15598    sni)
15599      shlibpath_overrides_runpath=no
15600      need_lib_prefix=no
15601      runpath_var=LD_RUN_PATH
15602      ;;
15603    siemens)
15604      need_lib_prefix=no
15605      ;;
15606    motorola)
15607      need_lib_prefix=no
15608      need_version=no
15609      shlibpath_overrides_runpath=no
15610      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15611      ;;
15612  esac
15613  ;;
15614
15615sysv4*MP*)
15616  if test -d /usr/nec; then
15617    version_type=linux # correct to gnu/linux during the next big refactor
15618    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15619    soname_spec='$libname$shared_ext.$major'
15620    shlibpath_var=LD_LIBRARY_PATH
15621  fi
15622  ;;
15623
15624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15625  version_type=sco
15626  need_lib_prefix=no
15627  need_version=no
15628  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15629  soname_spec='$libname$release$shared_ext$major'
15630  shlibpath_var=LD_LIBRARY_PATH
15631  shlibpath_overrides_runpath=yes
15632  hardcode_into_libs=yes
15633  if test yes = "$with_gnu_ld"; then
15634    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15635  else
15636    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15637    case $host_os in
15638      sco3.2v5*)
15639        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15640	;;
15641    esac
15642  fi
15643  sys_lib_dlsearch_path_spec='/usr/lib'
15644  ;;
15645
15646tpf*)
15647  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15648  version_type=linux # correct to gnu/linux during the next big refactor
15649  need_lib_prefix=no
15650  need_version=no
15651  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15652  shlibpath_var=LD_LIBRARY_PATH
15653  shlibpath_overrides_runpath=no
15654  hardcode_into_libs=yes
15655  ;;
15656
15657uts4*)
15658  version_type=linux # correct to gnu/linux during the next big refactor
15659  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15660  soname_spec='$libname$release$shared_ext$major'
15661  shlibpath_var=LD_LIBRARY_PATH
15662  ;;
15663
15664*)
15665  dynamic_linker=no
15666  ;;
15667esac
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15669$as_echo "$dynamic_linker" >&6; }
15670test no = "$dynamic_linker" && can_build_shared=no
15671
15672variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15673if test yes = "$GCC"; then
15674  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15675fi
15676
15677if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15678  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15679fi
15680
15681if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15682  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15683fi
15684
15685# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15686configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15687
15688# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15689func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15690
15691# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15692configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15734$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15735hardcode_action_CXX=
15736if test -n "$hardcode_libdir_flag_spec_CXX" ||
15737   test -n "$runpath_var_CXX" ||
15738   test yes = "$hardcode_automatic_CXX"; then
15739
15740  # We can hardcode non-existent directories.
15741  if test no != "$hardcode_direct_CXX" &&
15742     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15743     # have to relink, otherwise we might link with an installed library
15744     # when we should be linking with a yet-to-be-installed one
15745     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15746     test no != "$hardcode_minus_L_CXX"; then
15747    # Linking always hardcodes the temporary library directory.
15748    hardcode_action_CXX=relink
15749  else
15750    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15751    hardcode_action_CXX=immediate
15752  fi
15753else
15754  # We cannot hardcode anything, or else we can only hardcode existing
15755  # directories.
15756  hardcode_action_CXX=unsupported
15757fi
15758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15759$as_echo "$hardcode_action_CXX" >&6; }
15760
15761if test relink = "$hardcode_action_CXX" ||
15762   test yes = "$inherit_rpath_CXX"; then
15763  # Fast installation is not supported
15764  enable_fast_install=no
15765elif test yes = "$shlibpath_overrides_runpath" ||
15766     test no = "$enable_shared"; then
15767  # Fast installation is not necessary
15768  enable_fast_install=needless
15769fi
15770
15771
15772
15773
15774
15775
15776
15777  fi # test -n "$compiler"
15778
15779  CC=$lt_save_CC
15780  CFLAGS=$lt_save_CFLAGS
15781  LDCXX=$LD
15782  LD=$lt_save_LD
15783  GCC=$lt_save_GCC
15784  with_gnu_ld=$lt_save_with_gnu_ld
15785  lt_cv_path_LDCXX=$lt_cv_path_LD
15786  lt_cv_path_LD=$lt_save_path_LD
15787  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15788  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15789fi # test yes != "$_lt_caught_CXX_error"
15790
15791ac_ext=c
15792ac_cpp='$CPP $CPPFLAGS'
15793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15795ac_compiler_gnu=$ac_cv_c_compiler_gnu
15796
15797
15798
15799# Check whether --enable-debug was given.
15800if test "${enable_debug+set}" = set; then :
15801  enableval=$enable_debug;
15802        if test "$enableval" = "yes"; then
15803            CXXFLAGS="$CXXFLAGS -Wall -Werror -DDEBUG"
15804        else
15805            CXXFLAGS="$CXXFLAGS -Wall -Werror -DNDEBUG"
15806        fi
15807
15808else
15809
15810        CXXFLAGS="$CXXFLAGS -Wall -Werror -DNDEBUG"
15811
15812
15813fi
15814
15815
15816ac_ext=cpp
15817ac_cpp='$CXXCPP $CPPFLAGS'
15818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15821
15822
15823      ac_success=no
15824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15825$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15826if ${ax_cv_cxx_compile_cxx11+:} false; then :
15827  $as_echo_n "(cached) " >&6
15828else
15829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830/* end confdefs.h.  */
15831
15832  template <typename T>
15833    struct check
15834    {
15835      static_assert(sizeof(int) <= sizeof(T), "not big enough");
15836    };
15837
15838    typedef check<check<bool>> right_angle_brackets;
15839
15840    int a;
15841    decltype(a) b;
15842
15843    typedef check<int> check_type;
15844    check_type c;
15845    check_type&& cr = static_cast<check_type&&>(c);
15846
15847_ACEOF
15848if ac_fn_cxx_try_compile "$LINENO"; then :
15849  ax_cv_cxx_compile_cxx11=yes
15850else
15851  ax_cv_cxx_compile_cxx11=no
15852fi
15853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15854fi
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15856$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15857  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15858    ac_success=yes
15859  fi
15860
15861    if test x$ac_success = xno; then
15862    for switch in -std=gnu++11 -std=gnu++0x; do
15863      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15864      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15865$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15866if eval \${$cachevar+:} false; then :
15867  $as_echo_n "(cached) " >&6
15868else
15869  ac_save_CXXFLAGS="$CXXFLAGS"
15870         CXXFLAGS="$CXXFLAGS $switch"
15871         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872/* end confdefs.h.  */
15873
15874  template <typename T>
15875    struct check
15876    {
15877      static_assert(sizeof(int) <= sizeof(T), "not big enough");
15878    };
15879
15880    typedef check<check<bool>> right_angle_brackets;
15881
15882    int a;
15883    decltype(a) b;
15884
15885    typedef check<int> check_type;
15886    check_type c;
15887    check_type&& cr = static_cast<check_type&&>(c);
15888
15889_ACEOF
15890if ac_fn_cxx_try_compile "$LINENO"; then :
15891  eval $cachevar=yes
15892else
15893  eval $cachevar=no
15894fi
15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896         CXXFLAGS="$ac_save_CXXFLAGS"
15897fi
15898eval ac_res=\$$cachevar
15899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15900$as_echo "$ac_res" >&6; }
15901      if eval test x\$$cachevar = xyes; then
15902        CXXFLAGS="$CXXFLAGS $switch"
15903        ac_success=yes
15904        break
15905      fi
15906    done
15907  fi
15908
15909    if test x$ac_success = xno; then
15910    for switch in -std=c++11 -std=c++0x; do
15911      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15912      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15913$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15914if eval \${$cachevar+:} false; then :
15915  $as_echo_n "(cached) " >&6
15916else
15917  ac_save_CXXFLAGS="$CXXFLAGS"
15918         CXXFLAGS="$CXXFLAGS $switch"
15919         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h.  */
15921
15922  template <typename T>
15923    struct check
15924    {
15925      static_assert(sizeof(int) <= sizeof(T), "not big enough");
15926    };
15927
15928    typedef check<check<bool>> right_angle_brackets;
15929
15930    int a;
15931    decltype(a) b;
15932
15933    typedef check<int> check_type;
15934    check_type c;
15935    check_type&& cr = static_cast<check_type&&>(c);
15936
15937_ACEOF
15938if ac_fn_cxx_try_compile "$LINENO"; then :
15939  eval $cachevar=yes
15940else
15941  eval $cachevar=no
15942fi
15943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944         CXXFLAGS="$ac_save_CXXFLAGS"
15945fi
15946eval ac_res=\$$cachevar
15947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15948$as_echo "$ac_res" >&6; }
15949      if eval test x\$$cachevar = xyes; then
15950        CXXFLAGS="$CXXFLAGS $switch"
15951        ac_success=yes
15952        break
15953      fi
15954    done
15955  fi
15956
15957  if test x$ac_success = xno; then
15958    as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
15959  fi
15960
15961
15962OTHER_LIBS=
15963
15964
15965
15966# Check whether --with-zlib was given.
15967if test "${with_zlib+set}" = set; then :
15968  withval=$with_zlib; with_zlib="$withval"
15969else
15970  with_zlib=""
15971fi
15972
15973
15974ac_save_CFLAGS="$CFLAGS"
15975ac_save_LIBS="$LIBS"
15976CFLAGS="$CFLAGS -I$with_zlib/include"
15977LIBS="$LIBS -L$with_zlib/lib"
15978
15979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
15980$as_echo_n "checking for inflate in -lz... " >&6; }
15981if ${ac_cv_lib_z_inflate+:} false; then :
15982  $as_echo_n "(cached) " >&6
15983else
15984  ac_check_lib_save_LIBS=$LIBS
15985LIBS="-lz  $LIBS"
15986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987/* end confdefs.h.  */
15988
15989/* Override any GCC internal prototype to avoid an error.
15990   Use char because int might match the return type of a GCC
15991   builtin and then its argument prototype would still apply.  */
15992#ifdef __cplusplus
15993extern "C"
15994#endif
15995char inflate ();
15996int
15997main ()
15998{
15999return inflate ();
16000  ;
16001  return 0;
16002}
16003_ACEOF
16004if ac_fn_cxx_try_link "$LINENO"; then :
16005  ac_cv_lib_z_inflate=yes
16006else
16007  ac_cv_lib_z_inflate=no
16008fi
16009rm -f core conftest.err conftest.$ac_objext \
16010    conftest$ac_exeext conftest.$ac_ext
16011LIBS=$ac_check_lib_save_LIBS
16012fi
16013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
16014$as_echo "$ac_cv_lib_z_inflate" >&6; }
16015if test "x$ac_cv_lib_z_inflate" = xyes; then :
16016
16017
16018$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
16019
16020        OTHER_LIBS="$OTHER_LIBS -lz"
16021
16022fi
16023
16024
16025
16026ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16027if test "x$ac_cv_header_zlib_h" = xyes; then :
16028
16029fi
16030
16031
16032
16033CFLAGS="$ac_save_CFLAGS"
16034LIBS="$ac_save_LIBS"
16035
16036
16037
16038# Check whether --with-bzlib was given.
16039if test "${with_bzlib+set}" = set; then :
16040  withval=$with_bzlib; with_bzlib="$withval"
16041else
16042  with_bzlib=""
16043fi
16044
16045
16046ac_save_CFLAGS="$CFLAGS"
16047ac_save_LIBS="$LIBS"
16048CFLAGS="$CFLAGS -I$with_bzlib/include"
16049LIBS="$LIBS -L$with_bzlib/lib"
16050
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
16052$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
16053if ${ac_cv_lib_bz2_BZ2_bzDecompressInit+:} false; then :
16054  $as_echo_n "(cached) " >&6
16055else
16056  ac_check_lib_save_LIBS=$LIBS
16057LIBS="-lbz2  $LIBS"
16058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059/* end confdefs.h.  */
16060
16061/* Override any GCC internal prototype to avoid an error.
16062   Use char because int might match the return type of a GCC
16063   builtin and then its argument prototype would still apply.  */
16064#ifdef __cplusplus
16065extern "C"
16066#endif
16067char BZ2_bzDecompressInit ();
16068int
16069main ()
16070{
16071return BZ2_bzDecompressInit ();
16072  ;
16073  return 0;
16074}
16075_ACEOF
16076if ac_fn_cxx_try_link "$LINENO"; then :
16077  ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
16078else
16079  ac_cv_lib_bz2_BZ2_bzDecompressInit=no
16080fi
16081rm -f core conftest.err conftest.$ac_objext \
16082    conftest$ac_exeext conftest.$ac_ext
16083LIBS=$ac_check_lib_save_LIBS
16084fi
16085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
16086$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
16087if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then :
16088
16089
16090$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
16091
16092        OTHER_LIBS="$OTHER_LIBS -lbz2"
16093
16094fi
16095
16096
16097ac_fn_cxx_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
16098if test "x$ac_cv_header_bzlib_h" = xyes; then :
16099
16100fi
16101
16102
16103
16104CFLAGS="$ac_save_CFLAGS"
16105LIBS="$ac_save_LIBS"
16106
16107SYSTEM_LIBS="$SYSTEM_LIBS -lm"
16108ATLAS_CFLAGS=""
16109ATLAS_LIB_SUFFIX="-0.6"
16110ATLAS_LIBS="-lAtlasObjects$ATLAS_LIB_SUFFIX -lAtlasNet$ATLAS_LIB_SUFFIX -lAtlas$ATLAS_LIB_SUFFIX -lAtlasCodecs$ATLAS_LIB_SUFFIX -lAtlasMessage$ATLAS_LIB_SUFFIX -lAtlas$ATLAS_LIB_SUFFIX"
16111
16112
16113
16114
16115
16116
16117
16118
16119ac_config_files="$ac_config_files Makefile Atlas/Makefile Atlas/Codecs/Makefile Atlas/Filters/Makefile Atlas/Funky/Makefile Atlas/Message/Makefile Atlas/Net/Makefile Atlas/Objects/Makefile tests/Makefile tests/Objects/Makefile tests/Codecs/Makefile tools/Makefile benchmark/Makefile tutorial/Makefile atlas-cpp.spec mingw32-atlas-cpp.spec atlascpp-0.6.pc"
16120
16121cat >confcache <<\_ACEOF
16122# This file is a shell script that caches the results of configure
16123# tests run on this system so they can be shared between configure
16124# scripts and configure runs, see configure's option --config-cache.
16125# It is not useful on other systems.  If it contains results you don't
16126# want to keep, you may remove or edit it.
16127#
16128# config.status only pays attention to the cache file if you give it
16129# the --recheck option to rerun configure.
16130#
16131# `ac_cv_env_foo' variables (set or unset) will be overridden when
16132# loading this file, other *unset* `ac_cv_foo' will be assigned the
16133# following values.
16134
16135_ACEOF
16136
16137# The following way of writing the cache mishandles newlines in values,
16138# but we know of no workaround that is simple, portable, and efficient.
16139# So, we kill variables containing newlines.
16140# Ultrix sh set writes to stderr and can't be redirected directly,
16141# and sets the high bit in the cache file unless we assign to the vars.
16142(
16143  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16144    eval ac_val=\$$ac_var
16145    case $ac_val in #(
16146    *${as_nl}*)
16147      case $ac_var in #(
16148      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16150      esac
16151      case $ac_var in #(
16152      _ | IFS | as_nl) ;; #(
16153      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16154      *) { eval $ac_var=; unset $ac_var;} ;;
16155      esac ;;
16156    esac
16157  done
16158
16159  (set) 2>&1 |
16160    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16161    *${as_nl}ac_space=\ *)
16162      # `set' does not quote correctly, so add quotes: double-quote
16163      # substitution turns \\\\ into \\, and sed turns \\ into \.
16164      sed -n \
16165	"s/'/'\\\\''/g;
16166	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16167      ;; #(
16168    *)
16169      # `set' quotes correctly as required by POSIX, so do not add quotes.
16170      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16171      ;;
16172    esac |
16173    sort
16174) |
16175  sed '
16176     /^ac_cv_env_/b end
16177     t clear
16178     :clear
16179     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16180     t end
16181     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16182     :end' >>confcache
16183if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16184  if test -w "$cache_file"; then
16185    if test "x$cache_file" != "x/dev/null"; then
16186      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16187$as_echo "$as_me: updating cache $cache_file" >&6;}
16188      if test ! -f "$cache_file" || test -h "$cache_file"; then
16189	cat confcache >"$cache_file"
16190      else
16191        case $cache_file in #(
16192        */* | ?:*)
16193	  mv -f confcache "$cache_file"$$ &&
16194	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16195        *)
16196	  mv -f confcache "$cache_file" ;;
16197	esac
16198      fi
16199    fi
16200  else
16201    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16202$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16203  fi
16204fi
16205rm -f confcache
16206
16207test "x$prefix" = xNONE && prefix=$ac_default_prefix
16208# Let make expand exec_prefix.
16209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16210
16211DEFS=-DHAVE_CONFIG_H
16212
16213ac_libobjs=
16214ac_ltlibobjs=
16215U=
16216for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16217  # 1. Remove the extension, and $U if already installed.
16218  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16219  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16220  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16221  #    will be set to the directory where LIBOBJS objects are built.
16222  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16223  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16224done
16225LIBOBJS=$ac_libobjs
16226
16227LTLIBOBJS=$ac_ltlibobjs
16228
16229
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16231$as_echo_n "checking that generated files are newer than configure... " >&6; }
16232   if test -n "$am_sleep_pid"; then
16233     # Hide warnings about reused PIDs.
16234     wait $am_sleep_pid 2>/dev/null
16235   fi
16236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16237$as_echo "done" >&6; }
16238 if test -n "$EXEEXT"; then
16239  am__EXEEXT_TRUE=
16240  am__EXEEXT_FALSE='#'
16241else
16242  am__EXEEXT_TRUE='#'
16243  am__EXEEXT_FALSE=
16244fi
16245
16246if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16247  as_fn_error $? "conditional \"AMDEP\" was never defined.
16248Usually this means the macro was only invoked conditionally." "$LINENO" 5
16249fi
16250if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16251  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16252Usually this means the macro was only invoked conditionally." "$LINENO" 5
16253fi
16254if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16255  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16256Usually this means the macro was only invoked conditionally." "$LINENO" 5
16257fi
16258
16259: "${CONFIG_STATUS=./config.status}"
16260ac_write_fail=0
16261ac_clean_files_save=$ac_clean_files
16262ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16264$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16265as_write_fail=0
16266cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16267#! $SHELL
16268# Generated by $as_me.
16269# Run this file to recreate the current configuration.
16270# Compiler output produced by configure, useful for debugging
16271# configure, is in config.log if it exists.
16272
16273debug=false
16274ac_cs_recheck=false
16275ac_cs_silent=false
16276
16277SHELL=\${CONFIG_SHELL-$SHELL}
16278export SHELL
16279_ASEOF
16280cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16281## -------------------- ##
16282## M4sh Initialization. ##
16283## -------------------- ##
16284
16285# Be more Bourne compatible
16286DUALCASE=1; export DUALCASE # for MKS sh
16287if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16288  emulate sh
16289  NULLCMD=:
16290  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16291  # is contrary to our usage.  Disable this feature.
16292  alias -g '${1+"$@"}'='"$@"'
16293  setopt NO_GLOB_SUBST
16294else
16295  case `(set -o) 2>/dev/null` in #(
16296  *posix*) :
16297    set -o posix ;; #(
16298  *) :
16299     ;;
16300esac
16301fi
16302
16303
16304as_nl='
16305'
16306export as_nl
16307# Printing a long string crashes Solaris 7 /usr/bin/printf.
16308as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16310as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16311# Prefer a ksh shell builtin over an external printf program on Solaris,
16312# but without wasting forks for bash or zsh.
16313if test -z "$BASH_VERSION$ZSH_VERSION" \
16314    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16315  as_echo='print -r --'
16316  as_echo_n='print -rn --'
16317elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16318  as_echo='printf %s\n'
16319  as_echo_n='printf %s'
16320else
16321  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16322    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16323    as_echo_n='/usr/ucb/echo -n'
16324  else
16325    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16326    as_echo_n_body='eval
16327      arg=$1;
16328      case $arg in #(
16329      *"$as_nl"*)
16330	expr "X$arg" : "X\\(.*\\)$as_nl";
16331	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16332      esac;
16333      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16334    '
16335    export as_echo_n_body
16336    as_echo_n='sh -c $as_echo_n_body as_echo'
16337  fi
16338  export as_echo_body
16339  as_echo='sh -c $as_echo_body as_echo'
16340fi
16341
16342# The user is always right.
16343if test "${PATH_SEPARATOR+set}" != set; then
16344  PATH_SEPARATOR=:
16345  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16346    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16347      PATH_SEPARATOR=';'
16348  }
16349fi
16350
16351
16352# IFS
16353# We need space, tab and new line, in precisely that order.  Quoting is
16354# there to prevent editors from complaining about space-tab.
16355# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16356# splitting by setting IFS to empty value.)
16357IFS=" ""	$as_nl"
16358
16359# Find who we are.  Look in the path if we contain no directory separator.
16360as_myself=
16361case $0 in #((
16362  *[\\/]* ) as_myself=$0 ;;
16363  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16364for as_dir in $PATH
16365do
16366  IFS=$as_save_IFS
16367  test -z "$as_dir" && as_dir=.
16368    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16369  done
16370IFS=$as_save_IFS
16371
16372     ;;
16373esac
16374# We did not find ourselves, most probably we were run as `sh COMMAND'
16375# in which case we are not to be found in the path.
16376if test "x$as_myself" = x; then
16377  as_myself=$0
16378fi
16379if test ! -f "$as_myself"; then
16380  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16381  exit 1
16382fi
16383
16384# Unset variables that we do not need and which cause bugs (e.g. in
16385# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16386# suppresses any "Segmentation fault" message there.  '((' could
16387# trigger a bug in pdksh 5.2.14.
16388for as_var in BASH_ENV ENV MAIL MAILPATH
16389do eval test x\${$as_var+set} = xset \
16390  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16391done
16392PS1='$ '
16393PS2='> '
16394PS4='+ '
16395
16396# NLS nuisances.
16397LC_ALL=C
16398export LC_ALL
16399LANGUAGE=C
16400export LANGUAGE
16401
16402# CDPATH.
16403(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16404
16405
16406# as_fn_error STATUS ERROR [LINENO LOG_FD]
16407# ----------------------------------------
16408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16410# script with STATUS, using 1 if that was 0.
16411as_fn_error ()
16412{
16413  as_status=$1; test $as_status -eq 0 && as_status=1
16414  if test "$4"; then
16415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16417  fi
16418  $as_echo "$as_me: error: $2" >&2
16419  as_fn_exit $as_status
16420} # as_fn_error
16421
16422
16423# as_fn_set_status STATUS
16424# -----------------------
16425# Set $? to STATUS, without forking.
16426as_fn_set_status ()
16427{
16428  return $1
16429} # as_fn_set_status
16430
16431# as_fn_exit STATUS
16432# -----------------
16433# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16434as_fn_exit ()
16435{
16436  set +e
16437  as_fn_set_status $1
16438  exit $1
16439} # as_fn_exit
16440
16441# as_fn_unset VAR
16442# ---------------
16443# Portably unset VAR.
16444as_fn_unset ()
16445{
16446  { eval $1=; unset $1;}
16447}
16448as_unset=as_fn_unset
16449# as_fn_append VAR VALUE
16450# ----------------------
16451# Append the text in VALUE to the end of the definition contained in VAR. Take
16452# advantage of any shell optimizations that allow amortized linear growth over
16453# repeated appends, instead of the typical quadratic growth present in naive
16454# implementations.
16455if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16456  eval 'as_fn_append ()
16457  {
16458    eval $1+=\$2
16459  }'
16460else
16461  as_fn_append ()
16462  {
16463    eval $1=\$$1\$2
16464  }
16465fi # as_fn_append
16466
16467# as_fn_arith ARG...
16468# ------------------
16469# Perform arithmetic evaluation on the ARGs, and store the result in the
16470# global $as_val. Take advantage of shells that can avoid forks. The arguments
16471# must be portable across $(()) and expr.
16472if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16473  eval 'as_fn_arith ()
16474  {
16475    as_val=$(( $* ))
16476  }'
16477else
16478  as_fn_arith ()
16479  {
16480    as_val=`expr "$@" || test $? -eq 1`
16481  }
16482fi # as_fn_arith
16483
16484
16485if expr a : '\(a\)' >/dev/null 2>&1 &&
16486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16487  as_expr=expr
16488else
16489  as_expr=false
16490fi
16491
16492if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16493  as_basename=basename
16494else
16495  as_basename=false
16496fi
16497
16498if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16499  as_dirname=dirname
16500else
16501  as_dirname=false
16502fi
16503
16504as_me=`$as_basename -- "$0" ||
16505$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16506	 X"$0" : 'X\(//\)$' \| \
16507	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16508$as_echo X/"$0" |
16509    sed '/^.*\/\([^/][^/]*\)\/*$/{
16510	    s//\1/
16511	    q
16512	  }
16513	  /^X\/\(\/\/\)$/{
16514	    s//\1/
16515	    q
16516	  }
16517	  /^X\/\(\/\).*/{
16518	    s//\1/
16519	    q
16520	  }
16521	  s/.*/./; q'`
16522
16523# Avoid depending upon Character Ranges.
16524as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16525as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16526as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16527as_cr_digits='0123456789'
16528as_cr_alnum=$as_cr_Letters$as_cr_digits
16529
16530ECHO_C= ECHO_N= ECHO_T=
16531case `echo -n x` in #(((((
16532-n*)
16533  case `echo 'xy\c'` in
16534  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16535  xy)  ECHO_C='\c';;
16536  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16537       ECHO_T='	';;
16538  esac;;
16539*)
16540  ECHO_N='-n';;
16541esac
16542
16543rm -f conf$$ conf$$.exe conf$$.file
16544if test -d conf$$.dir; then
16545  rm -f conf$$.dir/conf$$.file
16546else
16547  rm -f conf$$.dir
16548  mkdir conf$$.dir 2>/dev/null
16549fi
16550if (echo >conf$$.file) 2>/dev/null; then
16551  if ln -s conf$$.file conf$$ 2>/dev/null; then
16552    as_ln_s='ln -s'
16553    # ... but there are two gotchas:
16554    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16555    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16556    # In both cases, we have to default to `cp -pR'.
16557    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16558      as_ln_s='cp -pR'
16559  elif ln conf$$.file conf$$ 2>/dev/null; then
16560    as_ln_s=ln
16561  else
16562    as_ln_s='cp -pR'
16563  fi
16564else
16565  as_ln_s='cp -pR'
16566fi
16567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16568rmdir conf$$.dir 2>/dev/null
16569
16570
16571# as_fn_mkdir_p
16572# -------------
16573# Create "$as_dir" as a directory, including parents if necessary.
16574as_fn_mkdir_p ()
16575{
16576
16577  case $as_dir in #(
16578  -*) as_dir=./$as_dir;;
16579  esac
16580  test -d "$as_dir" || eval $as_mkdir_p || {
16581    as_dirs=
16582    while :; do
16583      case $as_dir in #(
16584      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16585      *) as_qdir=$as_dir;;
16586      esac
16587      as_dirs="'$as_qdir' $as_dirs"
16588      as_dir=`$as_dirname -- "$as_dir" ||
16589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16590	 X"$as_dir" : 'X\(//\)[^/]' \| \
16591	 X"$as_dir" : 'X\(//\)$' \| \
16592	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16593$as_echo X"$as_dir" |
16594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16595	    s//\1/
16596	    q
16597	  }
16598	  /^X\(\/\/\)[^/].*/{
16599	    s//\1/
16600	    q
16601	  }
16602	  /^X\(\/\/\)$/{
16603	    s//\1/
16604	    q
16605	  }
16606	  /^X\(\/\).*/{
16607	    s//\1/
16608	    q
16609	  }
16610	  s/.*/./; q'`
16611      test -d "$as_dir" && break
16612    done
16613    test -z "$as_dirs" || eval "mkdir $as_dirs"
16614  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16615
16616
16617} # as_fn_mkdir_p
16618if mkdir -p . 2>/dev/null; then
16619  as_mkdir_p='mkdir -p "$as_dir"'
16620else
16621  test -d ./-p && rmdir ./-p
16622  as_mkdir_p=false
16623fi
16624
16625
16626# as_fn_executable_p FILE
16627# -----------------------
16628# Test if FILE is an executable regular file.
16629as_fn_executable_p ()
16630{
16631  test -f "$1" && test -x "$1"
16632} # as_fn_executable_p
16633as_test_x='test -x'
16634as_executable_p=as_fn_executable_p
16635
16636# Sed expression to map a string onto a valid CPP name.
16637as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16638
16639# Sed expression to map a string onto a valid variable name.
16640as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16641
16642
16643exec 6>&1
16644## ----------------------------------- ##
16645## Main body of $CONFIG_STATUS script. ##
16646## ----------------------------------- ##
16647_ASEOF
16648test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16649
16650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16651# Save the log message, to keep $0 and so on meaningful, and to
16652# report actual input values of CONFIG_FILES etc. instead of their
16653# values after options handling.
16654ac_log="
16655This file was extended by Atlas-C++ $as_me 0.6.4, which was
16656generated by GNU Autoconf 2.69.  Invocation command line was
16657
16658  CONFIG_FILES    = $CONFIG_FILES
16659  CONFIG_HEADERS  = $CONFIG_HEADERS
16660  CONFIG_LINKS    = $CONFIG_LINKS
16661  CONFIG_COMMANDS = $CONFIG_COMMANDS
16662  $ $0 $@
16663
16664on `(hostname || uname -n) 2>/dev/null | sed 1q`
16665"
16666
16667_ACEOF
16668
16669case $ac_config_files in *"
16670"*) set x $ac_config_files; shift; ac_config_files=$*;;
16671esac
16672
16673case $ac_config_headers in *"
16674"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16675esac
16676
16677
16678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16679# Files that config.status was made for.
16680config_files="$ac_config_files"
16681config_headers="$ac_config_headers"
16682config_commands="$ac_config_commands"
16683
16684_ACEOF
16685
16686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16687ac_cs_usage="\
16688\`$as_me' instantiates files and other configuration actions
16689from templates according to the current configuration.  Unless the files
16690and actions are specified as TAGs, all are instantiated by default.
16691
16692Usage: $0 [OPTION]... [TAG]...
16693
16694  -h, --help       print this help, then exit
16695  -V, --version    print version number and configuration settings, then exit
16696      --config     print configuration, then exit
16697  -q, --quiet, --silent
16698                   do not print progress messages
16699  -d, --debug      don't remove temporary files
16700      --recheck    update $as_me by reconfiguring in the same conditions
16701      --file=FILE[:TEMPLATE]
16702                   instantiate the configuration file FILE
16703      --header=FILE[:TEMPLATE]
16704                   instantiate the configuration header FILE
16705
16706Configuration files:
16707$config_files
16708
16709Configuration headers:
16710$config_headers
16711
16712Configuration commands:
16713$config_commands
16714
16715Report bugs to <erik@ogenvik.org>."
16716
16717_ACEOF
16718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16720ac_cs_version="\\
16721Atlas-C++ config.status 0.6.4
16722configured by $0, generated by GNU Autoconf 2.69,
16723  with options \\"\$ac_cs_config\\"
16724
16725Copyright (C) 2012 Free Software Foundation, Inc.
16726This config.status script is free software; the Free Software Foundation
16727gives unlimited permission to copy, distribute and modify it."
16728
16729ac_pwd='$ac_pwd'
16730srcdir='$srcdir'
16731INSTALL='$INSTALL'
16732MKDIR_P='$MKDIR_P'
16733AWK='$AWK'
16734test -n "\$AWK" || AWK=awk
16735_ACEOF
16736
16737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738# The default lists apply if the user does not specify any file.
16739ac_need_defaults=:
16740while test $# != 0
16741do
16742  case $1 in
16743  --*=?*)
16744    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16745    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16746    ac_shift=:
16747    ;;
16748  --*=)
16749    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16750    ac_optarg=
16751    ac_shift=:
16752    ;;
16753  *)
16754    ac_option=$1
16755    ac_optarg=$2
16756    ac_shift=shift
16757    ;;
16758  esac
16759
16760  case $ac_option in
16761  # Handling of the options.
16762  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16763    ac_cs_recheck=: ;;
16764  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16765    $as_echo "$ac_cs_version"; exit ;;
16766  --config | --confi | --conf | --con | --co | --c )
16767    $as_echo "$ac_cs_config"; exit ;;
16768  --debug | --debu | --deb | --de | --d | -d )
16769    debug=: ;;
16770  --file | --fil | --fi | --f )
16771    $ac_shift
16772    case $ac_optarg in
16773    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16774    '') as_fn_error $? "missing file argument" ;;
16775    esac
16776    as_fn_append CONFIG_FILES " '$ac_optarg'"
16777    ac_need_defaults=false;;
16778  --header | --heade | --head | --hea )
16779    $ac_shift
16780    case $ac_optarg in
16781    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16782    esac
16783    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16784    ac_need_defaults=false;;
16785  --he | --h)
16786    # Conflict between --help and --header
16787    as_fn_error $? "ambiguous option: \`$1'
16788Try \`$0 --help' for more information.";;
16789  --help | --hel | -h )
16790    $as_echo "$ac_cs_usage"; exit ;;
16791  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16792  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16793    ac_cs_silent=: ;;
16794
16795  # This is an error.
16796  -*) as_fn_error $? "unrecognized option: \`$1'
16797Try \`$0 --help' for more information." ;;
16798
16799  *) as_fn_append ac_config_targets " $1"
16800     ac_need_defaults=false ;;
16801
16802  esac
16803  shift
16804done
16805
16806ac_configure_extra_args=
16807
16808if $ac_cs_silent; then
16809  exec 6>/dev/null
16810  ac_configure_extra_args="$ac_configure_extra_args --silent"
16811fi
16812
16813_ACEOF
16814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815if \$ac_cs_recheck; then
16816  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16817  shift
16818  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16819  CONFIG_SHELL='$SHELL'
16820  export CONFIG_SHELL
16821  exec "\$@"
16822fi
16823
16824_ACEOF
16825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826exec 5>>config.log
16827{
16828  echo
16829  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16830## Running $as_me. ##
16831_ASBOX
16832  $as_echo "$ac_log"
16833} >&5
16834
16835_ACEOF
16836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16837#
16838# INIT-COMMANDS
16839#
16840AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16841
16842
16843# The HP-UX ksh and POSIX shell print the target directory to stdout
16844# if CDPATH is set.
16845(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16846
16847sed_quote_subst='$sed_quote_subst'
16848double_quote_subst='$double_quote_subst'
16849delay_variable_subst='$delay_variable_subst'
16850enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16851macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16852macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16853enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16854pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16855enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16856shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16857SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16858ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16859PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16860host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16861host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16862host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16863build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16864build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16865build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16866SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16867Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16868GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16869EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16870FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16871LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16872NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16873LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16874max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16875ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16876exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16877lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16878lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16879lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16880lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16881lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16882reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16883reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16884OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16885deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16886file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16887file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16888want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16889DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16890sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16891AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16892AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16893archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16894STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16895RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16896old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16897old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16898old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16899lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16900CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16901CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16902compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16903GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16904lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16905lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16906lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16907lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16908lt_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"`'
16909lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16910nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16911lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16912lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16913objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16914MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16915lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16916lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16917lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16918lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16919lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16920need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16921MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16922DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16923NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16924LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16925OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16926OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16927libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16928shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16929extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16930archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16931enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16932export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16933whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16934compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16935old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16936old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16937archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16938archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16939module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16940module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16941with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16942allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16943no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16944hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16945hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16946hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16947hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16948hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16949hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16950hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16951inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16952link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16953always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16954export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16955exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16956include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16957prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16958postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16959file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16960variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16961need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16962need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16963version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16964runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16965shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16966shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16967libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16968library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16969soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16970install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16971postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16972postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16973finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16974finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16975hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16976sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16977configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16978configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16979hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16980enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16981enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16982enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16983old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16984striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16985compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16986predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16987postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16988predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16989postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16990compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16991LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16992reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16993reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16994old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16995compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16996GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16997lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16998lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16999lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17000lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17001lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17002archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17003enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17004export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17005whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17006compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17007old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17008old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17009archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17010archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17011module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17012module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17013with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17014allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17015no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17016hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17017hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17018hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17019hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17020hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17021hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17022hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17023inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17024link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17025always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17026export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17027exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17028include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17029prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17030postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17031file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17032hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17033compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17034predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17035postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17036predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17037postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17038compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17039
17040LTCC='$LTCC'
17041LTCFLAGS='$LTCFLAGS'
17042compiler='$compiler_DEFAULT'
17043
17044# A function that is used when there is no print builtin or printf.
17045func_fallback_echo ()
17046{
17047  eval 'cat <<_LTECHO_EOF
17048\$1
17049_LTECHO_EOF'
17050}
17051
17052# Quote evaled strings.
17053for var in SHELL \
17054ECHO \
17055PATH_SEPARATOR \
17056SED \
17057GREP \
17058EGREP \
17059FGREP \
17060LD \
17061NM \
17062LN_S \
17063lt_SP2NL \
17064lt_NL2SP \
17065reload_flag \
17066OBJDUMP \
17067deplibs_check_method \
17068file_magic_cmd \
17069file_magic_glob \
17070want_nocaseglob \
17071DLLTOOL \
17072sharedlib_from_linklib_cmd \
17073AR \
17074AR_FLAGS \
17075archiver_list_spec \
17076STRIP \
17077RANLIB \
17078CC \
17079CFLAGS \
17080compiler \
17081lt_cv_sys_global_symbol_pipe \
17082lt_cv_sys_global_symbol_to_cdecl \
17083lt_cv_sys_global_symbol_to_import \
17084lt_cv_sys_global_symbol_to_c_name_address \
17085lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17086lt_cv_nm_interface \
17087nm_file_list_spec \
17088lt_cv_truncate_bin \
17089lt_prog_compiler_no_builtin_flag \
17090lt_prog_compiler_pic \
17091lt_prog_compiler_wl \
17092lt_prog_compiler_static \
17093lt_cv_prog_compiler_c_o \
17094need_locks \
17095MANIFEST_TOOL \
17096DSYMUTIL \
17097NMEDIT \
17098LIPO \
17099OTOOL \
17100OTOOL64 \
17101shrext_cmds \
17102export_dynamic_flag_spec \
17103whole_archive_flag_spec \
17104compiler_needs_object \
17105with_gnu_ld \
17106allow_undefined_flag \
17107no_undefined_flag \
17108hardcode_libdir_flag_spec \
17109hardcode_libdir_separator \
17110exclude_expsyms \
17111include_expsyms \
17112file_list_spec \
17113variables_saved_for_relink \
17114libname_spec \
17115library_names_spec \
17116soname_spec \
17117install_override_mode \
17118finish_eval \
17119old_striplib \
17120striplib \
17121compiler_lib_search_dirs \
17122predep_objects \
17123postdep_objects \
17124predeps \
17125postdeps \
17126compiler_lib_search_path \
17127LD_CXX \
17128reload_flag_CXX \
17129compiler_CXX \
17130lt_prog_compiler_no_builtin_flag_CXX \
17131lt_prog_compiler_pic_CXX \
17132lt_prog_compiler_wl_CXX \
17133lt_prog_compiler_static_CXX \
17134lt_cv_prog_compiler_c_o_CXX \
17135export_dynamic_flag_spec_CXX \
17136whole_archive_flag_spec_CXX \
17137compiler_needs_object_CXX \
17138with_gnu_ld_CXX \
17139allow_undefined_flag_CXX \
17140no_undefined_flag_CXX \
17141hardcode_libdir_flag_spec_CXX \
17142hardcode_libdir_separator_CXX \
17143exclude_expsyms_CXX \
17144include_expsyms_CXX \
17145file_list_spec_CXX \
17146compiler_lib_search_dirs_CXX \
17147predep_objects_CXX \
17148postdep_objects_CXX \
17149predeps_CXX \
17150postdeps_CXX \
17151compiler_lib_search_path_CXX; do
17152    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17153    *[\\\\\\\`\\"\\\$]*)
17154      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17155      ;;
17156    *)
17157      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17158      ;;
17159    esac
17160done
17161
17162# Double-quote double-evaled strings.
17163for var in reload_cmds \
17164old_postinstall_cmds \
17165old_postuninstall_cmds \
17166old_archive_cmds \
17167extract_expsyms_cmds \
17168old_archive_from_new_cmds \
17169old_archive_from_expsyms_cmds \
17170archive_cmds \
17171archive_expsym_cmds \
17172module_cmds \
17173module_expsym_cmds \
17174export_symbols_cmds \
17175prelink_cmds \
17176postlink_cmds \
17177postinstall_cmds \
17178postuninstall_cmds \
17179finish_cmds \
17180sys_lib_search_path_spec \
17181configure_time_dlsearch_path \
17182configure_time_lt_sys_library_path \
17183reload_cmds_CXX \
17184old_archive_cmds_CXX \
17185old_archive_from_new_cmds_CXX \
17186old_archive_from_expsyms_cmds_CXX \
17187archive_cmds_CXX \
17188archive_expsym_cmds_CXX \
17189module_cmds_CXX \
17190module_expsym_cmds_CXX \
17191export_symbols_cmds_CXX \
17192prelink_cmds_CXX \
17193postlink_cmds_CXX; do
17194    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17195    *[\\\\\\\`\\"\\\$]*)
17196      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17197      ;;
17198    *)
17199      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17200      ;;
17201    esac
17202done
17203
17204ac_aux_dir='$ac_aux_dir'
17205
17206# See if we are running on zsh, and set the options that allow our
17207# commands through without removal of \ escapes INIT.
17208if test -n "\${ZSH_VERSION+set}"; then
17209   setopt NO_GLOB_SUBST
17210fi
17211
17212
17213    PACKAGE='$PACKAGE'
17214    VERSION='$VERSION'
17215    RM='$RM'
17216    ofile='$ofile'
17217
17218
17219
17220
17221
17222
17223_ACEOF
17224
17225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17226
17227# Handling of arguments.
17228for ac_config_target in $ac_config_targets
17229do
17230  case $ac_config_target in
17231    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17232    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17233    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17234    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17235    "Atlas/Makefile") CONFIG_FILES="$CONFIG_FILES Atlas/Makefile" ;;
17236    "Atlas/Codecs/Makefile") CONFIG_FILES="$CONFIG_FILES Atlas/Codecs/Makefile" ;;
17237    "Atlas/Filters/Makefile") CONFIG_FILES="$CONFIG_FILES Atlas/Filters/Makefile" ;;
17238    "Atlas/Funky/Makefile") CONFIG_FILES="$CONFIG_FILES Atlas/Funky/Makefile" ;;
17239    "Atlas/Message/Makefile") CONFIG_FILES="$CONFIG_FILES Atlas/Message/Makefile" ;;
17240    "Atlas/Net/Makefile") CONFIG_FILES="$CONFIG_FILES Atlas/Net/Makefile" ;;
17241    "Atlas/Objects/Makefile") CONFIG_FILES="$CONFIG_FILES Atlas/Objects/Makefile" ;;
17242    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17243    "tests/Objects/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Objects/Makefile" ;;
17244    "tests/Codecs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Codecs/Makefile" ;;
17245    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17246    "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;;
17247    "tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/Makefile" ;;
17248    "atlas-cpp.spec") CONFIG_FILES="$CONFIG_FILES atlas-cpp.spec" ;;
17249    "mingw32-atlas-cpp.spec") CONFIG_FILES="$CONFIG_FILES mingw32-atlas-cpp.spec" ;;
17250    "atlascpp-0.6.pc") CONFIG_FILES="$CONFIG_FILES atlascpp-0.6.pc" ;;
17251
17252  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17253  esac
17254done
17255
17256
17257# If the user did not use the arguments to specify the items to instantiate,
17258# then the envvar interface is used.  Set only those that are not.
17259# We use the long form for the default assignment because of an extremely
17260# bizarre bug on SunOS 4.1.3.
17261if $ac_need_defaults; then
17262  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17263  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17264  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17265fi
17266
17267# Have a temporary directory for convenience.  Make it in the build tree
17268# simply because there is no reason against having it here, and in addition,
17269# creating and moving files from /tmp can sometimes cause problems.
17270# Hook for its removal unless debugging.
17271# Note that there is a small window in which the directory will not be cleaned:
17272# after its creation but before its name has been assigned to `$tmp'.
17273$debug ||
17274{
17275  tmp= ac_tmp=
17276  trap 'exit_status=$?
17277  : "${ac_tmp:=$tmp}"
17278  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17279' 0
17280  trap 'as_fn_exit 1' 1 2 13 15
17281}
17282# Create a (secure) tmp directory for tmp files.
17283
17284{
17285  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17286  test -d "$tmp"
17287}  ||
17288{
17289  tmp=./conf$$-$RANDOM
17290  (umask 077 && mkdir "$tmp")
17291} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17292ac_tmp=$tmp
17293
17294# Set up the scripts for CONFIG_FILES section.
17295# No need to generate them if there are no CONFIG_FILES.
17296# This happens for instance with `./config.status config.h'.
17297if test -n "$CONFIG_FILES"; then
17298
17299
17300ac_cr=`echo X | tr X '\015'`
17301# On cygwin, bash can eat \r inside `` if the user requested igncr.
17302# But we know of no other shell where ac_cr would be empty at this
17303# point, so we can use a bashism as a fallback.
17304if test "x$ac_cr" = x; then
17305  eval ac_cr=\$\'\\r\'
17306fi
17307ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17308if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17309  ac_cs_awk_cr='\\r'
17310else
17311  ac_cs_awk_cr=$ac_cr
17312fi
17313
17314echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17315_ACEOF
17316
17317
17318{
17319  echo "cat >conf$$subs.awk <<_ACEOF" &&
17320  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17321  echo "_ACEOF"
17322} >conf$$subs.sh ||
17323  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17324ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17325ac_delim='%!_!# '
17326for ac_last_try in false false false false false :; do
17327  . ./conf$$subs.sh ||
17328    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17329
17330  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17331  if test $ac_delim_n = $ac_delim_num; then
17332    break
17333  elif $ac_last_try; then
17334    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17335  else
17336    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17337  fi
17338done
17339rm -f conf$$subs.sh
17340
17341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17342cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17343_ACEOF
17344sed -n '
17345h
17346s/^/S["/; s/!.*/"]=/
17347p
17348g
17349s/^[^!]*!//
17350:repl
17351t repl
17352s/'"$ac_delim"'$//
17353t delim
17354:nl
17355h
17356s/\(.\{148\}\)..*/\1/
17357t more1
17358s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17359p
17360n
17361b repl
17362:more1
17363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17364p
17365g
17366s/.\{148\}//
17367t nl
17368:delim
17369h
17370s/\(.\{148\}\)..*/\1/
17371t more2
17372s/["\\]/\\&/g; s/^/"/; s/$/"/
17373p
17374b
17375:more2
17376s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17377p
17378g
17379s/.\{148\}//
17380t delim
17381' <conf$$subs.awk | sed '
17382/^[^""]/{
17383  N
17384  s/\n//
17385}
17386' >>$CONFIG_STATUS || ac_write_fail=1
17387rm -f conf$$subs.awk
17388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17389_ACAWK
17390cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17391  for (key in S) S_is_set[key] = 1
17392  FS = ""
17393
17394}
17395{
17396  line = $ 0
17397  nfields = split(line, field, "@")
17398  substed = 0
17399  len = length(field[1])
17400  for (i = 2; i < nfields; i++) {
17401    key = field[i]
17402    keylen = length(key)
17403    if (S_is_set[key]) {
17404      value = S[key]
17405      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17406      len += length(value) + length(field[++i])
17407      substed = 1
17408    } else
17409      len += 1 + keylen
17410  }
17411
17412  print line
17413}
17414
17415_ACAWK
17416_ACEOF
17417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17418if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17419  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17420else
17421  cat
17422fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17423  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17424_ACEOF
17425
17426# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17427# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17428# trailing colons and then remove the whole line if VPATH becomes empty
17429# (actually we leave an empty line to preserve line numbers).
17430if test "x$srcdir" = x.; then
17431  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17432h
17433s///
17434s/^/:/
17435s/[	 ]*$/:/
17436s/:\$(srcdir):/:/g
17437s/:\${srcdir}:/:/g
17438s/:@srcdir@:/:/g
17439s/^:*//
17440s/:*$//
17441x
17442s/\(=[	 ]*\).*/\1/
17443G
17444s/\n//
17445s/^[^=]*=[	 ]*$//
17446}'
17447fi
17448
17449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17450fi # test -n "$CONFIG_FILES"
17451
17452# Set up the scripts for CONFIG_HEADERS section.
17453# No need to generate them if there are no CONFIG_HEADERS.
17454# This happens for instance with `./config.status Makefile'.
17455if test -n "$CONFIG_HEADERS"; then
17456cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17457BEGIN {
17458_ACEOF
17459
17460# Transform confdefs.h into an awk script `defines.awk', embedded as
17461# here-document in config.status, that substitutes the proper values into
17462# config.h.in to produce config.h.
17463
17464# Create a delimiter string that does not exist in confdefs.h, to ease
17465# handling of long lines.
17466ac_delim='%!_!# '
17467for ac_last_try in false false :; do
17468  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17469  if test -z "$ac_tt"; then
17470    break
17471  elif $ac_last_try; then
17472    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17473  else
17474    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17475  fi
17476done
17477
17478# For the awk script, D is an array of macro values keyed by name,
17479# likewise P contains macro parameters if any.  Preserve backslash
17480# newline sequences.
17481
17482ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17483sed -n '
17484s/.\{148\}/&'"$ac_delim"'/g
17485t rset
17486:rset
17487s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17488t def
17489d
17490:def
17491s/\\$//
17492t bsnl
17493s/["\\]/\\&/g
17494s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17495D["\1"]=" \3"/p
17496s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17497d
17498:bsnl
17499s/["\\]/\\&/g
17500s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17501D["\1"]=" \3\\\\\\n"\\/p
17502t cont
17503s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17504t cont
17505d
17506:cont
17507n
17508s/.\{148\}/&'"$ac_delim"'/g
17509t clear
17510:clear
17511s/\\$//
17512t bsnlc
17513s/["\\]/\\&/g; s/^/"/; s/$/"/p
17514d
17515:bsnlc
17516s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17517b cont
17518' <confdefs.h | sed '
17519s/'"$ac_delim"'/"\\\
17520"/g' >>$CONFIG_STATUS || ac_write_fail=1
17521
17522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17523  for (key in D) D_is_set[key] = 1
17524  FS = ""
17525}
17526/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17527  line = \$ 0
17528  split(line, arg, " ")
17529  if (arg[1] == "#") {
17530    defundef = arg[2]
17531    mac1 = arg[3]
17532  } else {
17533    defundef = substr(arg[1], 2)
17534    mac1 = arg[2]
17535  }
17536  split(mac1, mac2, "(") #)
17537  macro = mac2[1]
17538  prefix = substr(line, 1, index(line, defundef) - 1)
17539  if (D_is_set[macro]) {
17540    # Preserve the white space surrounding the "#".
17541    print prefix "define", macro P[macro] D[macro]
17542    next
17543  } else {
17544    # Replace #undef with comments.  This is necessary, for example,
17545    # in the case of _POSIX_SOURCE, which is predefined and required
17546    # on some systems where configure will not decide to define it.
17547    if (defundef == "undef") {
17548      print "/*", prefix defundef, macro, "*/"
17549      next
17550    }
17551  }
17552}
17553{ print }
17554_ACAWK
17555_ACEOF
17556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17557  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17558fi # test -n "$CONFIG_HEADERS"
17559
17560
17561eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17562shift
17563for ac_tag
17564do
17565  case $ac_tag in
17566  :[FHLC]) ac_mode=$ac_tag; continue;;
17567  esac
17568  case $ac_mode$ac_tag in
17569  :[FHL]*:*);;
17570  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17571  :[FH]-) ac_tag=-:-;;
17572  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17573  esac
17574  ac_save_IFS=$IFS
17575  IFS=:
17576  set x $ac_tag
17577  IFS=$ac_save_IFS
17578  shift
17579  ac_file=$1
17580  shift
17581
17582  case $ac_mode in
17583  :L) ac_source=$1;;
17584  :[FH])
17585    ac_file_inputs=
17586    for ac_f
17587    do
17588      case $ac_f in
17589      -) ac_f="$ac_tmp/stdin";;
17590      *) # Look for the file first in the build tree, then in the source tree
17591	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17592	 # because $ac_f cannot contain `:'.
17593	 test -f "$ac_f" ||
17594	   case $ac_f in
17595	   [\\/$]*) false;;
17596	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17597	   esac ||
17598	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17599      esac
17600      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17601      as_fn_append ac_file_inputs " '$ac_f'"
17602    done
17603
17604    # Let's still pretend it is `configure' which instantiates (i.e., don't
17605    # use $as_me), people would be surprised to read:
17606    #    /* config.h.  Generated by config.status.  */
17607    configure_input='Generated from '`
17608	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17609	`' by configure.'
17610    if test x"$ac_file" != x-; then
17611      configure_input="$ac_file.  $configure_input"
17612      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17613$as_echo "$as_me: creating $ac_file" >&6;}
17614    fi
17615    # Neutralize special characters interpreted by sed in replacement strings.
17616    case $configure_input in #(
17617    *\&* | *\|* | *\\* )
17618       ac_sed_conf_input=`$as_echo "$configure_input" |
17619       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17620    *) ac_sed_conf_input=$configure_input;;
17621    esac
17622
17623    case $ac_tag in
17624    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17625      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17626    esac
17627    ;;
17628  esac
17629
17630  ac_dir=`$as_dirname -- "$ac_file" ||
17631$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17632	 X"$ac_file" : 'X\(//\)[^/]' \| \
17633	 X"$ac_file" : 'X\(//\)$' \| \
17634	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17635$as_echo X"$ac_file" |
17636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17637	    s//\1/
17638	    q
17639	  }
17640	  /^X\(\/\/\)[^/].*/{
17641	    s//\1/
17642	    q
17643	  }
17644	  /^X\(\/\/\)$/{
17645	    s//\1/
17646	    q
17647	  }
17648	  /^X\(\/\).*/{
17649	    s//\1/
17650	    q
17651	  }
17652	  s/.*/./; q'`
17653  as_dir="$ac_dir"; as_fn_mkdir_p
17654  ac_builddir=.
17655
17656case "$ac_dir" in
17657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17658*)
17659  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17660  # A ".." for each directory in $ac_dir_suffix.
17661  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17662  case $ac_top_builddir_sub in
17663  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17664  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17665  esac ;;
17666esac
17667ac_abs_top_builddir=$ac_pwd
17668ac_abs_builddir=$ac_pwd$ac_dir_suffix
17669# for backward compatibility:
17670ac_top_builddir=$ac_top_build_prefix
17671
17672case $srcdir in
17673  .)  # We are building in place.
17674    ac_srcdir=.
17675    ac_top_srcdir=$ac_top_builddir_sub
17676    ac_abs_top_srcdir=$ac_pwd ;;
17677  [\\/]* | ?:[\\/]* )  # Absolute name.
17678    ac_srcdir=$srcdir$ac_dir_suffix;
17679    ac_top_srcdir=$srcdir
17680    ac_abs_top_srcdir=$srcdir ;;
17681  *) # Relative name.
17682    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17683    ac_top_srcdir=$ac_top_build_prefix$srcdir
17684    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17685esac
17686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17687
17688
17689  case $ac_mode in
17690  :F)
17691  #
17692  # CONFIG_FILE
17693  #
17694
17695  case $INSTALL in
17696  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17697  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17698  esac
17699  ac_MKDIR_P=$MKDIR_P
17700  case $MKDIR_P in
17701  [\\/$]* | ?:[\\/]* ) ;;
17702  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17703  esac
17704_ACEOF
17705
17706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17707# If the template does not know about datarootdir, expand it.
17708# FIXME: This hack should be removed a few years after 2.60.
17709ac_datarootdir_hack=; ac_datarootdir_seen=
17710ac_sed_dataroot='
17711/datarootdir/ {
17712  p
17713  q
17714}
17715/@datadir@/p
17716/@docdir@/p
17717/@infodir@/p
17718/@localedir@/p
17719/@mandir@/p'
17720case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17721*datarootdir*) ac_datarootdir_seen=yes;;
17722*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17723  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17724$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17725_ACEOF
17726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17727  ac_datarootdir_hack='
17728  s&@datadir@&$datadir&g
17729  s&@docdir@&$docdir&g
17730  s&@infodir@&$infodir&g
17731  s&@localedir@&$localedir&g
17732  s&@mandir@&$mandir&g
17733  s&\\\${datarootdir}&$datarootdir&g' ;;
17734esac
17735_ACEOF
17736
17737# Neutralize VPATH when `$srcdir' = `.'.
17738# Shell code in configure.ac might set extrasub.
17739# FIXME: do we really want to maintain this feature?
17740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17741ac_sed_extra="$ac_vpsub
17742$extrasub
17743_ACEOF
17744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17745:t
17746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17747s|@configure_input@|$ac_sed_conf_input|;t t
17748s&@top_builddir@&$ac_top_builddir_sub&;t t
17749s&@top_build_prefix@&$ac_top_build_prefix&;t t
17750s&@srcdir@&$ac_srcdir&;t t
17751s&@abs_srcdir@&$ac_abs_srcdir&;t t
17752s&@top_srcdir@&$ac_top_srcdir&;t t
17753s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17754s&@builddir@&$ac_builddir&;t t
17755s&@abs_builddir@&$ac_abs_builddir&;t t
17756s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17757s&@INSTALL@&$ac_INSTALL&;t t
17758s&@MKDIR_P@&$ac_MKDIR_P&;t t
17759$ac_datarootdir_hack
17760"
17761eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17762  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17763
17764test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17765  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17766  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17767      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17768  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17769which seems to be undefined.  Please make sure it is defined" >&5
17770$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17771which seems to be undefined.  Please make sure it is defined" >&2;}
17772
17773  rm -f "$ac_tmp/stdin"
17774  case $ac_file in
17775  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17776  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17777  esac \
17778  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17779 ;;
17780  :H)
17781  #
17782  # CONFIG_HEADER
17783  #
17784  if test x"$ac_file" != x-; then
17785    {
17786      $as_echo "/* $configure_input  */" \
17787      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17788    } >"$ac_tmp/config.h" \
17789      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17790    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17791      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17792$as_echo "$as_me: $ac_file is unchanged" >&6;}
17793    else
17794      rm -f "$ac_file"
17795      mv "$ac_tmp/config.h" "$ac_file" \
17796	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17797    fi
17798  else
17799    $as_echo "/* $configure_input  */" \
17800      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17801      || as_fn_error $? "could not create -" "$LINENO" 5
17802  fi
17803# Compute "$ac_file"'s index in $config_headers.
17804_am_arg="$ac_file"
17805_am_stamp_count=1
17806for _am_header in $config_headers :; do
17807  case $_am_header in
17808    $_am_arg | $_am_arg:* )
17809      break ;;
17810    * )
17811      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17812  esac
17813done
17814echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17815$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17816	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17817	 X"$_am_arg" : 'X\(//\)$' \| \
17818	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17819$as_echo X"$_am_arg" |
17820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17821	    s//\1/
17822	    q
17823	  }
17824	  /^X\(\/\/\)[^/].*/{
17825	    s//\1/
17826	    q
17827	  }
17828	  /^X\(\/\/\)$/{
17829	    s//\1/
17830	    q
17831	  }
17832	  /^X\(\/\).*/{
17833	    s//\1/
17834	    q
17835	  }
17836	  s/.*/./; q'`/stamp-h$_am_stamp_count
17837 ;;
17838
17839  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17840$as_echo "$as_me: executing $ac_file commands" >&6;}
17841 ;;
17842  esac
17843
17844
17845  case $ac_file$ac_mode in
17846    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17847  # Older Autoconf quotes --file arguments for eval, but not when files
17848  # are listed without --file.  Let's play safe and only enable the eval
17849  # if we detect the quoting.
17850  case $CONFIG_FILES in
17851  *\'*) eval set x "$CONFIG_FILES" ;;
17852  *)   set x $CONFIG_FILES ;;
17853  esac
17854  shift
17855  for mf
17856  do
17857    # Strip MF so we end up with the name of the file.
17858    mf=`echo "$mf" | sed -e 's/:.*$//'`
17859    # Check whether this is an Automake generated Makefile or not.
17860    # We used to match only the files named 'Makefile.in', but
17861    # some people rename them; so instead we look at the file content.
17862    # Grep'ing the first line is not enough: some people post-process
17863    # each Makefile.in and add a new line on top of each file to say so.
17864    # Grep'ing the whole file is not good either: AIX grep has a line
17865    # limit of 2048, but all sed's we know have understand at least 4000.
17866    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17867      dirpart=`$as_dirname -- "$mf" ||
17868$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17869	 X"$mf" : 'X\(//\)[^/]' \| \
17870	 X"$mf" : 'X\(//\)$' \| \
17871	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17872$as_echo X"$mf" |
17873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17874	    s//\1/
17875	    q
17876	  }
17877	  /^X\(\/\/\)[^/].*/{
17878	    s//\1/
17879	    q
17880	  }
17881	  /^X\(\/\/\)$/{
17882	    s//\1/
17883	    q
17884	  }
17885	  /^X\(\/\).*/{
17886	    s//\1/
17887	    q
17888	  }
17889	  s/.*/./; q'`
17890    else
17891      continue
17892    fi
17893    # Extract the definition of DEPDIR, am__include, and am__quote
17894    # from the Makefile without running 'make'.
17895    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17896    test -z "$DEPDIR" && continue
17897    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17898    test -z "$am__include" && continue
17899    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17900    # Find all dependency output files, they are included files with
17901    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17902    # simplest approach to changing $(DEPDIR) to its actual value in the
17903    # expansion.
17904    for file in `sed -n "
17905      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17906	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17907      # Make sure the directory exists.
17908      test -f "$dirpart/$file" && continue
17909      fdir=`$as_dirname -- "$file" ||
17910$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17911	 X"$file" : 'X\(//\)[^/]' \| \
17912	 X"$file" : 'X\(//\)$' \| \
17913	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17914$as_echo X"$file" |
17915    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17916	    s//\1/
17917	    q
17918	  }
17919	  /^X\(\/\/\)[^/].*/{
17920	    s//\1/
17921	    q
17922	  }
17923	  /^X\(\/\/\)$/{
17924	    s//\1/
17925	    q
17926	  }
17927	  /^X\(\/\).*/{
17928	    s//\1/
17929	    q
17930	  }
17931	  s/.*/./; q'`
17932      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17933      # echo "creating $dirpart/$file"
17934      echo '# dummy' > "$dirpart/$file"
17935    done
17936  done
17937}
17938 ;;
17939    "libtool":C)
17940
17941    # See if we are running on zsh, and set the options that allow our
17942    # commands through without removal of \ escapes.
17943    if test -n "${ZSH_VERSION+set}"; then
17944      setopt NO_GLOB_SUBST
17945    fi
17946
17947    cfgfile=${ofile}T
17948    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17949    $RM "$cfgfile"
17950
17951    cat <<_LT_EOF >> "$cfgfile"
17952#! $SHELL
17953# Generated automatically by $as_me ($PACKAGE) $VERSION
17954# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17955
17956# Provide generalized library-building support services.
17957# Written by Gordon Matzigkeit, 1996
17958
17959# Copyright (C) 2014 Free Software Foundation, Inc.
17960# This is free software; see the source for copying conditions.  There is NO
17961# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17962
17963# GNU Libtool is free software; you can redistribute it and/or modify
17964# it under the terms of the GNU General Public License as published by
17965# the Free Software Foundation; either version 2 of of the License, or
17966# (at your option) any later version.
17967#
17968# As a special exception to the GNU General Public License, if you
17969# distribute this file as part of a program or library that is built
17970# using GNU Libtool, you may include this file under the  same
17971# distribution terms that you use for the rest of that program.
17972#
17973# GNU Libtool is distributed in the hope that it will be useful, but
17974# WITHOUT ANY WARRANTY; without even the implied warranty of
17975# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17976# GNU General Public License for more details.
17977#
17978# You should have received a copy of the GNU General Public License
17979# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17980
17981
17982# The names of the tagged configurations supported by this script.
17983available_tags='CXX '
17984
17985# Configured defaults for sys_lib_dlsearch_path munging.
17986: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17987
17988# ### BEGIN LIBTOOL CONFIG
17989
17990# Whether or not to build static libraries.
17991build_old_libs=$enable_static
17992
17993# Which release of libtool.m4 was used?
17994macro_version=$macro_version
17995macro_revision=$macro_revision
17996
17997# Whether or not to build shared libraries.
17998build_libtool_libs=$enable_shared
17999
18000# What type of objects to build.
18001pic_mode=$pic_mode
18002
18003# Whether or not to optimize for fast installation.
18004fast_install=$enable_fast_install
18005
18006# Shared archive member basename,for filename based shared library versioning on AIX.
18007shared_archive_member_spec=$shared_archive_member_spec
18008
18009# Shell to use when invoking shell scripts.
18010SHELL=$lt_SHELL
18011
18012# An echo program that protects backslashes.
18013ECHO=$lt_ECHO
18014
18015# The PATH separator for the build system.
18016PATH_SEPARATOR=$lt_PATH_SEPARATOR
18017
18018# The host system.
18019host_alias=$host_alias
18020host=$host
18021host_os=$host_os
18022
18023# The build system.
18024build_alias=$build_alias
18025build=$build
18026build_os=$build_os
18027
18028# A sed program that does not truncate output.
18029SED=$lt_SED
18030
18031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18032Xsed="\$SED -e 1s/^X//"
18033
18034# A grep program that handles long lines.
18035GREP=$lt_GREP
18036
18037# An ERE matcher.
18038EGREP=$lt_EGREP
18039
18040# A literal string matcher.
18041FGREP=$lt_FGREP
18042
18043# A BSD- or MS-compatible name lister.
18044NM=$lt_NM
18045
18046# Whether we need soft or hard links.
18047LN_S=$lt_LN_S
18048
18049# What is the maximum length of a command?
18050max_cmd_len=$max_cmd_len
18051
18052# Object file suffix (normally "o").
18053objext=$ac_objext
18054
18055# Executable file suffix (normally "").
18056exeext=$exeext
18057
18058# whether the shell understands "unset".
18059lt_unset=$lt_unset
18060
18061# turn spaces into newlines.
18062SP2NL=$lt_lt_SP2NL
18063
18064# turn newlines into spaces.
18065NL2SP=$lt_lt_NL2SP
18066
18067# convert \$build file names to \$host format.
18068to_host_file_cmd=$lt_cv_to_host_file_cmd
18069
18070# convert \$build files to toolchain format.
18071to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18072
18073# An object symbol dumper.
18074OBJDUMP=$lt_OBJDUMP
18075
18076# Method to check whether dependent libraries are shared objects.
18077deplibs_check_method=$lt_deplibs_check_method
18078
18079# Command to use when deplibs_check_method = "file_magic".
18080file_magic_cmd=$lt_file_magic_cmd
18081
18082# How to find potential files when deplibs_check_method = "file_magic".
18083file_magic_glob=$lt_file_magic_glob
18084
18085# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18086want_nocaseglob=$lt_want_nocaseglob
18087
18088# DLL creation program.
18089DLLTOOL=$lt_DLLTOOL
18090
18091# Command to associate shared and link libraries.
18092sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18093
18094# The archiver.
18095AR=$lt_AR
18096
18097# Flags to create an archive.
18098AR_FLAGS=$lt_AR_FLAGS
18099
18100# How to feed a file listing to the archiver.
18101archiver_list_spec=$lt_archiver_list_spec
18102
18103# A symbol stripping program.
18104STRIP=$lt_STRIP
18105
18106# Commands used to install an old-style archive.
18107RANLIB=$lt_RANLIB
18108old_postinstall_cmds=$lt_old_postinstall_cmds
18109old_postuninstall_cmds=$lt_old_postuninstall_cmds
18110
18111# Whether to use a lock for old archive extraction.
18112lock_old_archive_extraction=$lock_old_archive_extraction
18113
18114# A C compiler.
18115LTCC=$lt_CC
18116
18117# LTCC compiler flags.
18118LTCFLAGS=$lt_CFLAGS
18119
18120# Take the output of nm and produce a listing of raw symbols and C names.
18121global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18122
18123# Transform the output of nm in a proper C declaration.
18124global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18125
18126# Transform the output of nm into a list of symbols to manually relocate.
18127global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18128
18129# Transform the output of nm in a C name address pair.
18130global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18131
18132# Transform the output of nm in a C name address pair when lib prefix is needed.
18133global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18134
18135# The name lister interface.
18136nm_interface=$lt_lt_cv_nm_interface
18137
18138# Specify filename containing input files for \$NM.
18139nm_file_list_spec=$lt_nm_file_list_spec
18140
18141# The root where to search for dependent libraries,and where our libraries should be installed.
18142lt_sysroot=$lt_sysroot
18143
18144# Command to truncate a binary pipe.
18145lt_truncate_bin=$lt_lt_cv_truncate_bin
18146
18147# The name of the directory that contains temporary libtool files.
18148objdir=$objdir
18149
18150# Used to examine libraries when file_magic_cmd begins with "file".
18151MAGIC_CMD=$MAGIC_CMD
18152
18153# Must we lock files when doing compilation?
18154need_locks=$lt_need_locks
18155
18156# Manifest tool.
18157MANIFEST_TOOL=$lt_MANIFEST_TOOL
18158
18159# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18160DSYMUTIL=$lt_DSYMUTIL
18161
18162# Tool to change global to local symbols on Mac OS X.
18163NMEDIT=$lt_NMEDIT
18164
18165# Tool to manipulate fat objects and archives on Mac OS X.
18166LIPO=$lt_LIPO
18167
18168# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18169OTOOL=$lt_OTOOL
18170
18171# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18172OTOOL64=$lt_OTOOL64
18173
18174# Old archive suffix (normally "a").
18175libext=$libext
18176
18177# Shared library suffix (normally ".so").
18178shrext_cmds=$lt_shrext_cmds
18179
18180# The commands to extract the exported symbol list from a shared archive.
18181extract_expsyms_cmds=$lt_extract_expsyms_cmds
18182
18183# Variables whose values should be saved in libtool wrapper scripts and
18184# restored at link time.
18185variables_saved_for_relink=$lt_variables_saved_for_relink
18186
18187# Do we need the "lib" prefix for modules?
18188need_lib_prefix=$need_lib_prefix
18189
18190# Do we need a version for libraries?
18191need_version=$need_version
18192
18193# Library versioning type.
18194version_type=$version_type
18195
18196# Shared library runtime path variable.
18197runpath_var=$runpath_var
18198
18199# Shared library path variable.
18200shlibpath_var=$shlibpath_var
18201
18202# Is shlibpath searched before the hard-coded library search path?
18203shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18204
18205# Format of library name prefix.
18206libname_spec=$lt_libname_spec
18207
18208# List of archive names.  First name is the real one, the rest are links.
18209# The last name is the one that the linker finds with -lNAME
18210library_names_spec=$lt_library_names_spec
18211
18212# The coded name of the library, if different from the real name.
18213soname_spec=$lt_soname_spec
18214
18215# Permission mode override for installation of shared libraries.
18216install_override_mode=$lt_install_override_mode
18217
18218# Command to use after installation of a shared archive.
18219postinstall_cmds=$lt_postinstall_cmds
18220
18221# Command to use after uninstallation of a shared archive.
18222postuninstall_cmds=$lt_postuninstall_cmds
18223
18224# Commands used to finish a libtool library installation in a directory.
18225finish_cmds=$lt_finish_cmds
18226
18227# As "finish_cmds", except a single script fragment to be evaled but
18228# not shown.
18229finish_eval=$lt_finish_eval
18230
18231# Whether we should hardcode library paths into libraries.
18232hardcode_into_libs=$hardcode_into_libs
18233
18234# Compile-time system search path for libraries.
18235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18236
18237# Detected run-time system search path for libraries.
18238sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18239
18240# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18241configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18242
18243# Whether dlopen is supported.
18244dlopen_support=$enable_dlopen
18245
18246# Whether dlopen of programs is supported.
18247dlopen_self=$enable_dlopen_self
18248
18249# Whether dlopen of statically linked programs is supported.
18250dlopen_self_static=$enable_dlopen_self_static
18251
18252# Commands to strip libraries.
18253old_striplib=$lt_old_striplib
18254striplib=$lt_striplib
18255
18256
18257# The linker used to build libraries.
18258LD=$lt_LD
18259
18260# How to create reloadable object files.
18261reload_flag=$lt_reload_flag
18262reload_cmds=$lt_reload_cmds
18263
18264# Commands used to build an old-style archive.
18265old_archive_cmds=$lt_old_archive_cmds
18266
18267# A language specific compiler.
18268CC=$lt_compiler
18269
18270# Is the compiler the GNU compiler?
18271with_gcc=$GCC
18272
18273# Compiler flag to turn off builtin functions.
18274no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18275
18276# Additional compiler flags for building library objects.
18277pic_flag=$lt_lt_prog_compiler_pic
18278
18279# How to pass a linker flag through the compiler.
18280wl=$lt_lt_prog_compiler_wl
18281
18282# Compiler flag to prevent dynamic linking.
18283link_static_flag=$lt_lt_prog_compiler_static
18284
18285# Does compiler simultaneously support -c and -o options?
18286compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18287
18288# Whether or not to add -lc for building shared libraries.
18289build_libtool_need_lc=$archive_cmds_need_lc
18290
18291# Whether or not to disallow shared libs when runtime libs are static.
18292allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18293
18294# Compiler flag to allow reflexive dlopens.
18295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18296
18297# Compiler flag to generate shared objects directly from archives.
18298whole_archive_flag_spec=$lt_whole_archive_flag_spec
18299
18300# Whether the compiler copes with passing no objects directly.
18301compiler_needs_object=$lt_compiler_needs_object
18302
18303# Create an old-style archive from a shared archive.
18304old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18305
18306# Create a temporary old-style archive to link instead of a shared archive.
18307old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18308
18309# Commands used to build a shared archive.
18310archive_cmds=$lt_archive_cmds
18311archive_expsym_cmds=$lt_archive_expsym_cmds
18312
18313# Commands used to build a loadable module if different from building
18314# a shared archive.
18315module_cmds=$lt_module_cmds
18316module_expsym_cmds=$lt_module_expsym_cmds
18317
18318# Whether we are building with GNU ld or not.
18319with_gnu_ld=$lt_with_gnu_ld
18320
18321# Flag that allows shared libraries with undefined symbols to be built.
18322allow_undefined_flag=$lt_allow_undefined_flag
18323
18324# Flag that enforces no undefined symbols.
18325no_undefined_flag=$lt_no_undefined_flag
18326
18327# Flag to hardcode \$libdir into a binary during linking.
18328# This must work even if \$libdir does not exist
18329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18330
18331# Whether we need a single "-rpath" flag with a separated argument.
18332hardcode_libdir_separator=$lt_hardcode_libdir_separator
18333
18334# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18335# DIR into the resulting binary.
18336hardcode_direct=$hardcode_direct
18337
18338# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18339# DIR into the resulting binary and the resulting library dependency is
18340# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18341# library is relocated.
18342hardcode_direct_absolute=$hardcode_direct_absolute
18343
18344# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18345# into the resulting binary.
18346hardcode_minus_L=$hardcode_minus_L
18347
18348# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18349# into the resulting binary.
18350hardcode_shlibpath_var=$hardcode_shlibpath_var
18351
18352# Set to "yes" if building a shared library automatically hardcodes DIR
18353# into the library and all subsequent libraries and executables linked
18354# against it.
18355hardcode_automatic=$hardcode_automatic
18356
18357# Set to yes if linker adds runtime paths of dependent libraries
18358# to runtime path list.
18359inherit_rpath=$inherit_rpath
18360
18361# Whether libtool must link a program against all its dependency libraries.
18362link_all_deplibs=$link_all_deplibs
18363
18364# Set to "yes" if exported symbols are required.
18365always_export_symbols=$always_export_symbols
18366
18367# The commands to list exported symbols.
18368export_symbols_cmds=$lt_export_symbols_cmds
18369
18370# Symbols that should not be listed in the preloaded symbols.
18371exclude_expsyms=$lt_exclude_expsyms
18372
18373# Symbols that must always be exported.
18374include_expsyms=$lt_include_expsyms
18375
18376# Commands necessary for linking programs (against libraries) with templates.
18377prelink_cmds=$lt_prelink_cmds
18378
18379# Commands necessary for finishing linking programs.
18380postlink_cmds=$lt_postlink_cmds
18381
18382# Specify filename containing input files.
18383file_list_spec=$lt_file_list_spec
18384
18385# How to hardcode a shared library path into an executable.
18386hardcode_action=$hardcode_action
18387
18388# The directories searched by this compiler when creating a shared library.
18389compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18390
18391# Dependencies to place before and after the objects being linked to
18392# create a shared library.
18393predep_objects=$lt_predep_objects
18394postdep_objects=$lt_postdep_objects
18395predeps=$lt_predeps
18396postdeps=$lt_postdeps
18397
18398# The library search path used internally by the compiler when linking
18399# a shared library.
18400compiler_lib_search_path=$lt_compiler_lib_search_path
18401
18402# ### END LIBTOOL CONFIG
18403
18404_LT_EOF
18405
18406    cat <<'_LT_EOF' >> "$cfgfile"
18407
18408# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18409
18410# func_munge_path_list VARIABLE PATH
18411# -----------------------------------
18412# VARIABLE is name of variable containing _space_ separated list of
18413# directories to be munged by the contents of PATH, which is string
18414# having a format:
18415# "DIR[:DIR]:"
18416#       string "DIR[ DIR]" will be prepended to VARIABLE
18417# ":DIR[:DIR]"
18418#       string "DIR[ DIR]" will be appended to VARIABLE
18419# "DIRP[:DIRP]::[DIRA:]DIRA"
18420#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18421#       "DIRA[ DIRA]" will be appended to VARIABLE
18422# "DIR[:DIR]"
18423#       VARIABLE will be replaced by "DIR[ DIR]"
18424func_munge_path_list ()
18425{
18426    case x$2 in
18427    x)
18428        ;;
18429    *:)
18430        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18431        ;;
18432    x:*)
18433        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18434        ;;
18435    *::*)
18436        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18437        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18438        ;;
18439    *)
18440        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18441        ;;
18442    esac
18443}
18444
18445
18446# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18447func_cc_basename ()
18448{
18449    for cc_temp in $*""; do
18450      case $cc_temp in
18451        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18452        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18453        \-*) ;;
18454        *) break;;
18455      esac
18456    done
18457    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18458}
18459
18460
18461# ### END FUNCTIONS SHARED WITH CONFIGURE
18462
18463_LT_EOF
18464
18465  case $host_os in
18466  aix3*)
18467    cat <<\_LT_EOF >> "$cfgfile"
18468# AIX sometimes has problems with the GCC collect2 program.  For some
18469# reason, if we set the COLLECT_NAMES environment variable, the problems
18470# vanish in a puff of smoke.
18471if test set != "${COLLECT_NAMES+set}"; then
18472  COLLECT_NAMES=
18473  export COLLECT_NAMES
18474fi
18475_LT_EOF
18476    ;;
18477  esac
18478
18479
18480ltmain=$ac_aux_dir/ltmain.sh
18481
18482
18483  # We use sed instead of cat because bash on DJGPP gets confused if
18484  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18485  # text mode, it properly converts lines to CR/LF.  This bash problem
18486  # is reportedly fixed, but why not run on old versions too?
18487  sed '$q' "$ltmain" >> "$cfgfile" \
18488     || (rm -f "$cfgfile"; exit 1)
18489
18490   mv -f "$cfgfile" "$ofile" ||
18491    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18492  chmod +x "$ofile"
18493
18494
18495    cat <<_LT_EOF >> "$ofile"
18496
18497# ### BEGIN LIBTOOL TAG CONFIG: CXX
18498
18499# The linker used to build libraries.
18500LD=$lt_LD_CXX
18501
18502# How to create reloadable object files.
18503reload_flag=$lt_reload_flag_CXX
18504reload_cmds=$lt_reload_cmds_CXX
18505
18506# Commands used to build an old-style archive.
18507old_archive_cmds=$lt_old_archive_cmds_CXX
18508
18509# A language specific compiler.
18510CC=$lt_compiler_CXX
18511
18512# Is the compiler the GNU compiler?
18513with_gcc=$GCC_CXX
18514
18515# Compiler flag to turn off builtin functions.
18516no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18517
18518# Additional compiler flags for building library objects.
18519pic_flag=$lt_lt_prog_compiler_pic_CXX
18520
18521# How to pass a linker flag through the compiler.
18522wl=$lt_lt_prog_compiler_wl_CXX
18523
18524# Compiler flag to prevent dynamic linking.
18525link_static_flag=$lt_lt_prog_compiler_static_CXX
18526
18527# Does compiler simultaneously support -c and -o options?
18528compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18529
18530# Whether or not to add -lc for building shared libraries.
18531build_libtool_need_lc=$archive_cmds_need_lc_CXX
18532
18533# Whether or not to disallow shared libs when runtime libs are static.
18534allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18535
18536# Compiler flag to allow reflexive dlopens.
18537export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18538
18539# Compiler flag to generate shared objects directly from archives.
18540whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18541
18542# Whether the compiler copes with passing no objects directly.
18543compiler_needs_object=$lt_compiler_needs_object_CXX
18544
18545# Create an old-style archive from a shared archive.
18546old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18547
18548# Create a temporary old-style archive to link instead of a shared archive.
18549old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18550
18551# Commands used to build a shared archive.
18552archive_cmds=$lt_archive_cmds_CXX
18553archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18554
18555# Commands used to build a loadable module if different from building
18556# a shared archive.
18557module_cmds=$lt_module_cmds_CXX
18558module_expsym_cmds=$lt_module_expsym_cmds_CXX
18559
18560# Whether we are building with GNU ld or not.
18561with_gnu_ld=$lt_with_gnu_ld_CXX
18562
18563# Flag that allows shared libraries with undefined symbols to be built.
18564allow_undefined_flag=$lt_allow_undefined_flag_CXX
18565
18566# Flag that enforces no undefined symbols.
18567no_undefined_flag=$lt_no_undefined_flag_CXX
18568
18569# Flag to hardcode \$libdir into a binary during linking.
18570# This must work even if \$libdir does not exist
18571hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18572
18573# Whether we need a single "-rpath" flag with a separated argument.
18574hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18575
18576# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18577# DIR into the resulting binary.
18578hardcode_direct=$hardcode_direct_CXX
18579
18580# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18581# DIR into the resulting binary and the resulting library dependency is
18582# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18583# library is relocated.
18584hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18585
18586# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18587# into the resulting binary.
18588hardcode_minus_L=$hardcode_minus_L_CXX
18589
18590# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18591# into the resulting binary.
18592hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18593
18594# Set to "yes" if building a shared library automatically hardcodes DIR
18595# into the library and all subsequent libraries and executables linked
18596# against it.
18597hardcode_automatic=$hardcode_automatic_CXX
18598
18599# Set to yes if linker adds runtime paths of dependent libraries
18600# to runtime path list.
18601inherit_rpath=$inherit_rpath_CXX
18602
18603# Whether libtool must link a program against all its dependency libraries.
18604link_all_deplibs=$link_all_deplibs_CXX
18605
18606# Set to "yes" if exported symbols are required.
18607always_export_symbols=$always_export_symbols_CXX
18608
18609# The commands to list exported symbols.
18610export_symbols_cmds=$lt_export_symbols_cmds_CXX
18611
18612# Symbols that should not be listed in the preloaded symbols.
18613exclude_expsyms=$lt_exclude_expsyms_CXX
18614
18615# Symbols that must always be exported.
18616include_expsyms=$lt_include_expsyms_CXX
18617
18618# Commands necessary for linking programs (against libraries) with templates.
18619prelink_cmds=$lt_prelink_cmds_CXX
18620
18621# Commands necessary for finishing linking programs.
18622postlink_cmds=$lt_postlink_cmds_CXX
18623
18624# Specify filename containing input files.
18625file_list_spec=$lt_file_list_spec_CXX
18626
18627# How to hardcode a shared library path into an executable.
18628hardcode_action=$hardcode_action_CXX
18629
18630# The directories searched by this compiler when creating a shared library.
18631compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18632
18633# Dependencies to place before and after the objects being linked to
18634# create a shared library.
18635predep_objects=$lt_predep_objects_CXX
18636postdep_objects=$lt_postdep_objects_CXX
18637predeps=$lt_predeps_CXX
18638postdeps=$lt_postdeps_CXX
18639
18640# The library search path used internally by the compiler when linking
18641# a shared library.
18642compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18643
18644# ### END LIBTOOL TAG CONFIG: CXX
18645_LT_EOF
18646
18647 ;;
18648
18649  esac
18650done # for ac_tag
18651
18652
18653as_fn_exit 0
18654_ACEOF
18655ac_clean_files=$ac_clean_files_save
18656
18657test $ac_write_fail = 0 ||
18658  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18659
18660
18661# configure is writing to config.log, and then calls config.status.
18662# config.status does its own redirection, appending to config.log.
18663# Unfortunately, on DOS this fails, as config.log is still kept open
18664# by configure, so config.status won't be able to write to it; its
18665# output is simply discarded.  So we exec the FD to /dev/null,
18666# effectively closing config.log, so it can be properly (re)opened and
18667# appended to by config.status.  When coming back to configure, we
18668# need to make the FD available again.
18669if test "$no_create" != yes; then
18670  ac_cs_success=:
18671  ac_config_status_args=
18672  test "$silent" = yes &&
18673    ac_config_status_args="$ac_config_status_args --quiet"
18674  exec 5>/dev/null
18675  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18676  exec 5>>config.log
18677  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18678  # would make configure fail if this is the last instruction.
18679  $ac_cs_success || as_fn_exit 1
18680fi
18681if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18682  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18683$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18684fi
18685
18686